Skip to content
Snippets Groups Projects
pom.xml 82.2 KiB
Newer Older
								<id>drop-postgresql-db-after-test</id>
								<!-- there is no post-test phase, the next phase after "test" is "prepare-package" 
									for integration tests running against mysql generated via setupDatabase.sql 
									there is need to bind a similar drop/create/schema/drop to pre-integration-test 
									and post-integration-test -->
								<phase>prepare-package</phase>
								<goals>
									<goal>execute</goal>
								</goals>
								<configuration>
									<url>jdbc:postgresql://localhost:${test.env.db.postgresql.host.port}/postgres</url>
									<autocommit>true</autocommit>
									<sqlCommand>drop database if exists ${test.env.db.name}</sqlCommand>
								</configuration>
							</execution>
	
							<!-- Same for integration tests -->
							<execution>
								<id>drop-postgresql-db-before-integtration-test</id>
								<phase>pre-integration-test</phase>
								<goals>
									<goal>execute</goal>
								</goals>
								<configuration>
									<!-- need another database to drop the targeted one -->
									<url>jdbc:postgresql://localhost:${test.env.db.postgresql.host.port}/postgres</url>
									<autocommit>true</autocommit>
									<sqlCommand>drop database if exists ${test.env.db.name}</sqlCommand>
									<!-- ignore error when database is not avaiable -->
									<onError>continue</onError>
								</configuration>
							</execution>
	
							<execution>
								<id>create-postgresql-db-before-integration-test</id>
								<phase>pre-integration-test</phase>
								<goals>
									<goal>execute</goal>
								</goals>
								<configuration>
									<url>jdbc:postgresql://localhost:${test.env.db.postgresql.host.port}/postgres</url>
									<!-- no transaction -->
									<autocommit>true</autocommit>
									<sqlCommand>create database ${test.env.db.name}</sqlCommand>
								</configuration>
							</execution>
	
							<execution>
								<id>create-postgresql-schema-before-integration-test</id>
								<phase>pre-integration-test</phase>
								<goals>
									<goal>execute</goal>
								</goals>
								<configuration>
									<autocommit>true</autocommit>
									<srcFiles>
										<srcFile>target/test-classes/setupDatabase.sql</srcFile>
									</srcFiles>
								</configuration>
							</execution>
	
							<!-- drop db after test -->
							<execution>
								<id>drop-postgresql-db-after-integration-test</id>
								<phase>post-integration-test</phase>
								<goals>
									<goal>execute</goal>
								</goals>
								<configuration>
									<url>jdbc:postgresql://localhost:${test.env.db.postgresql.host.port}/postgres</url>
									<autocommit>true</autocommit>
									<sqlCommand>drop database if exists ${test.env.db.name}</sqlCommand>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	
		<profile>
			<id>oracleunittests</id>
			<activation>
				<property>
					<name>with-oracle</name>
				</property>
			</activation>
			<properties>
				<testFailureIgnore>false</testFailureIgnore>
				<test.env>oracle</test.env>
				<skipTests>false</skipTests>
			</properties>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-resources-plugin</artifactId>
						<version>2.4.3</version>
						<executions>
							<execution>
								<id>copy-resources-4-oracleunittests</id>
								<phase>generate-test-resources</phase>
								<goals>
									<goal>copy-resources</goal>
								</goals>
								<configuration>
									<outputDirectory>${basedir}/target/test-classes</outputDirectory>
									<resources>
										<resource>
											<!-- place resources you like to get filtered an copied -->
											<directory>src/test/profile/${test.env}</directory>
											<includes>
												<include>olat.local.properties</include>
											</includes>
											<filtering>true</filtering>
										</resource>
										<resource>
											<!-- place resources you like to get filtered an copied -->
											<directory>src/main/resources/database/oracle</directory>
											<includes>
												<include>setupDatabase.sql</include>
											</includes>
											<filtering>true</filtering>
										</resource>
									</resources>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
			<dependencies>
				<dependency>
					<groupId>com.oracle.ojdbc</groupId>
					<artifactId>ojdbc8</artifactId>
					<version>19.3.0.0</version>
bps's avatar
bps committed
	</profiles>
	<repositories>
		<repository>
			<id>central</id>
			<name>Maven Repository Switchboard</name>
			<layout>default</layout>
			<url>https://repo1.maven.org/maven2</url>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>openolat-repo</id>
			<name>OpenOLAT Public Maven Repository Group</name>
			<url>https://nexus.openolat.org/nexus/content/groups/public</url>
			<layout>default</layout>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>never</updatePolicy>
				<enabled>true</enabled>
				<updatePolicy>daily</updatePolicy>
			</snapshots>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>openolat-plugin-repo</id>
			<name>OpenOLAT Public Maven Repository Group</name>
			<url>https://nexus.openolat.org/nexus/content/groups/public</url>
			<layout>default</layout>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>never</updatePolicy>
			</releases>
		</pluginRepository>
bps's avatar
bps committed
	</pluginRepositories>
	<build>
		<!-- Useful maven commands: o mvn dependency:tree - check to see what other 
			dependencies get downloaded by an artifact o Maven lifecycle: Each phase 
			of the lifecycle can also be called independent - e.g. mvn process-resources 
			- http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference 
			o mvn versions:display-plugin-updates (find updates to maven plugins) o mvn 
			versions:use-latest-versions (automatically update dependencies. WARNING!!!) 
			o mvn versions:display-dependency-updates (shows updates for dependencies) 
			o mvn help:effective-pom - displays the computed pom, where you will see 
			what is getting executed after expanding vars and plugin settings -->

		<resources>
			<!-- as long as we have resources like html, css, js in the src/main/java 
				tree we need these two entries. the first tells maven to treat the java folder 
				as the resource folder but not to copy the java files. The later tell maven 
				that we have an other resource folder which is normally the default -->
			<resource>
				<directory>src/main/java</directory>
				<excludes>
					<exclude>**/*.java</exclude>
					<exclude>**/*.vsd</exclude>
					<exclude>**/*.odg</exclude>
					<exclude>**/*.odt</exclude>
					<exclude>**/*.pdf</exclude>
					<exclude>**/*.graffle</exclude>
					<exclude>**/doc-files/**</exclude>
					<exclude>**/propertyHandlers.jpg</exclude>
					<exclude>**/package.html</exclude>
bps's avatar
bps committed
				</excludes>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<!-- when enabled resources will be searched and variables replaces with 
					values -->
				<filtering>false</filtering>
					<exclude>log4j2.xml</exclude>
bps's avatar
bps committed
			</resource>
		</resources>
		<testResources>
			<!-- Same comment as for src/main/java also applies to src/test/java -->
			<testResource>
				<directory>src/test/java</directory>
				<excludes>
					<exclude>**/*.java</exclude>
				</excludes>
			</testResource>
			<testResource>
				<directory>src/test/resources</directory>
				<!-- when enabled resources will be searched and variables replaces with values -->
				<filtering>true</filtering>
			</testResource>
		</testResources>
bps's avatar
bps committed
		<plugins>
			<!-- Set the build number from git -->
				<groupId>pl.project13.maven</groupId>
				<artifactId>git-commit-id-plugin</artifactId>
				<version>2.2.5</version>
					<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
					<execution>
						<id>copy-notices-txt</id>
						<phase>compile</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target name="copy notice.txt to web project">      
								<copy file="${project.basedir}/NOTICE.TXT"
									tofile="${project.build.outputDirectory}/NOTICE.TXT"/>
							</target>
						</configuration>                       
					</execution>
					<!-- Download tomcat for integration test -->
					<execution>
						<phase>pre-integration-test</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target>
								<mkdir dir="${project.build.directory}/downloads" />
								<get src="https://nexus.openolat.org/nexus/content/repositories/openolat/org/apache/tomcat/apache-tomcat-arq/8.5.45/apache-tomcat-arq-8.5.45.zip" dest="${project.build.directory}/downloads" verbose="true" skipexisting="true" />
								<unzip src="${project.build.directory}/downloads/apache-tomcat-arq-8.5.45.zip" dest="${project.build.directory}/arq-apache-tomcat-8.5.45" />
				</executions>
			</plugin>
            <!-- Unit tests -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.22.2</version>
srosse's avatar
srosse committed
					<argLine>-Xmx512m -Xms256m -Djava.awt.headless=true</argLine>
					<systemPropertyVariables>
						<java.io.tmpdir>${project.build.directory}/olatdata</java.io.tmpdir>
					</systemPropertyVariables>
					<trimStackTrace>false</trimStackTrace>
					<testNGArtifactName>none:none</testNGArtifactName>
					<includes>
						<include>org/olat/test/AllTestsJunit4.java</include>
						<include>org/olat/test/QtiWorksTests.java</include>
					</includes>
				</configuration>
			</plugin>
			<!-- Selenium tests -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-failsafe-plugin</artifactId>
				<version>2.22.2</version>
					<skipITs>${skipSeleniumTests}</skipITs>
					<skipTests>${skipSeleniumTests}</skipTests>
					<reuseForks>false</reuseForks>
					<argLine>-Xmx512m -Xms256m -Djava.awt.headless=true</argLine>
					<trimStackTrace>false</trimStackTrace>
						<test.env.db.name>${test.env.db.name}</test.env.db.name>
						<test.env.db.user>${test.env.db.user}</test.env.db.user>
						<test.env.db.pass>${test.env.db.pass}</test.env.db.pass>
						<test.env.db.host.port>${test.env.db.host.port}</test.env.db.host.port>
						<test.env.db.postgresql.user>${test.env.db.postgresql.user}</test.env.db.postgresql.user>
						<test.env.db.postgresql.pass>${test.env.db.postgresql.pass}</test.env.db.postgresql.pass>
						<test.env.db.postgresql.host.port>${test.env.db.postgresql.host.port}</test.env.db.postgresql.host.port>
						<test.env.instance.id>${test.env.instance.id}</test.env.instance.id>
						<arquillian.launch>tomcat-7-managed</arquillian.launch>
						<webdriver.browser>${test.env.webdriver.browser}</webdriver.browser>
						<webdriver.firefox.version>${test.env.webdriver.firefox.version}</webdriver.firefox.version>
						<webdriver.chrome.version>${test.env.webdriver.chrome.version}</webdriver.chrome.version>
						<webdriver.chrome.arguments>${test.env.webdriver.chrome.arguments}</webdriver.chrome.arguments>
					<testNGArtifactName>none:none</testNGArtifactName>
srosse's avatar
srosse committed
						<include>org/olat/selenium/*Test.java</include>
				</configuration>
				<executions>
					<execution>
						<id>selenium-test</id>
						<goals>
							<goal>integration-test</goal>
						</goals>
					</execution>
					<execution>
						<id>selenium-verify</id>
						<goals>
							<goal>verify</goal>
						</goals>
					</execution>
bps's avatar
bps committed
		</plugins>
		<pluginManagement>
			<plugins>
srosse's avatar
srosse committed
				<!-- OLAT requires JDK 1.8 or later ! -->
bps's avatar
bps committed
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.8.1</version>
bps's avatar
bps committed
					<configuration>
						<source>${targetJdk}</source>
						<target>${targetJdk}</target>
bps's avatar
bps committed
						<encoding>UTF-8</encoding>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-war-plugin</artifactId>
					<version>3.2.2</version>
bps's avatar
bps committed
					<configuration>
						<attachClasses>true</attachClasses>
						<directory>src/main/java</directory>
						<archive>
							<manifest>
								<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
							</manifest>
							<manifestEntries>
								<Build-Change-Set>${git.commit.id}</Build-Change-Set>
								<Build-Change-Set-Date>${git.commit.time}</Build-Change-Set-Date>
								<Build-Revision-Number>${git.commit.id.abbrev}</Build-Revision-Number>
								<Implementation-Build>${buildNumber}</Implementation-Build>
							</manifestEntries>
						</archive>
						<warSourceExcludes>**/*.pxm, **/*.psd, **/*.sh, static/bootstrap/**, **/*.README</warSourceExcludes>
						<webResources>
							<resource>
								<directory>src/main/webapp</directory>
								<filtering>false</filtering>
							</resource>
						</webResources>
bps's avatar
bps committed
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-antrun-plugin</artifactId>
										<versionRange>[1.8,)</versionRange>
										<goals>
											<goal>run</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.codehaus.mojo</groupId>
										<artifactId>sql-maven-plugin</artifactId>
										<versionRange>[1.5,)</versionRange>
										<goals>
											<goal>execute</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
bps's avatar
bps committed

				<!-- The Eclipse plugin is only of interest to developers and requires 
					that WTP be installed. -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-eclipse-plugin</artifactId>
bps's avatar
bps committed
					<configuration>
				        <linkedResources>
			               	<linkedResource>
		                        <name>/src/main/java/olat.local.properties</name>
		                        <type>1</type>
		                        <location>${basedir}/olat.local.properties</location>
                			</linkedResource>
                			<linkedResource>
		                        <name>/src/test/java/olat.local.properties</name>
		                        <type>1</type>
		                        <location>${basedir}/src/test/profile/mysql/olat.local.properties</location>
				        </linkedResources>				        
bps's avatar
bps committed
						<wtpversion>2.0</wtpversion>
						<!-- context name for servlet container e.g. localhost:8080/olat -->
						<wtpContextName>olat</wtpContextName>
						<downloadSources>true</downloadSources>
								<additionalConfig>
									<file>
										<name>.settings/org.eclipse.core.resources.prefs</name>
										<content>
											<![CDATA[eclipse.preferences.version=1
											encoding/<project>=UTF-8]]>
										</content>
									</file>
								</additionalConfig>
bps's avatar
bps committed
					</configuration>
				</plugin>

				<!-- reporting i.e., the site goal requires a more recent plugin version -->
				<plugin>
					<artifactId>maven-site-plugin</artifactId>
bps's avatar
bps committed
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-enforcer-plugin</artifactId>
					<version>3.0.0-M2</version>
bps's avatar
bps committed
					<executions>
						<execution>
							<id>show-versions</id>
							<phase>validate</phase>
							<goals>
								<goal>display-info</goal>
							</goals>
						</execution>
						<execution>
							<id>enforce-versions</id>
							<goals>
								<goal>enforce</goal>
							</goals>
							<configuration>
								<rules>
									<requireMavenVersion>
										<version>3.0.5</version>
bps's avatar
bps committed
									</requireMavenVersion>
									<requireJavaVersion>
srosse's avatar
srosse committed
										<version>1.8+</version>
bps's avatar
bps committed
									</requireJavaVersion>
								</rules>
							</configuration>
						</execution>
					</executions>
				</plugin>

				<!-- Dependency checks -->
				<plugin>
					<groupId>org.owasp</groupId>
					<artifactId>dependency-check-maven</artifactId>
					<version>4.0.0</version>
					<executions>
						<execution>
							<goals>
								<goal>check</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>versions-maven-plugin</artifactId>
					<version>2.7</version>
					<configuration>
						<rulesUri>file://${basedir}/scripts/version-rules.xml</rulesUri>
					</configuration>
				</plugin>
bps's avatar
bps committed
			</plugins>
		</pluginManagement>
	</build>

	<!-- check with mvn dependency:tree to see what other dep. get downloaded -->
	<dependencies>
		<dependency>
			<groupId>org.apache.activemq</groupId>
			<artifactId>activemq-client</artifactId>
			<version>${activemq.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.activemq</groupId>
			<artifactId>activemq-broker</artifactId>
			<version>${activemq.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.activemq</groupId>
			<artifactId>activemq-spring</artifactId>
			<version>${activemq.version}</version>
bps's avatar
bps committed
			<exclusions>
				<exclusion>
					<groupId>org.apache.xbean</groupId>
					<artifactId>xbean-spring</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.activemq</groupId>
					<artifactId>activemq-pool</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-jta_1.0.1B_spec</artifactId>
				<exclusion>
					<groupId>commons-pool</groupId>
					<artifactId>commons-pool</artifactId>
bps's avatar
bps committed
			</exclusions>
		</dependency>
		<dependency>
			<!-- Used by SCORM implementation -->
			<groupId>org.apache-extras.beanshell</groupId>
			<artifactId>bsh</artifactId>
			<version>2.0b6</version>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>commons-codec</groupId>
			<artifactId>commons-codec</artifactId>
			<version>1.14</version>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<!-- Used by at least commons-validator -->
bps's avatar
bps committed
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
			<version>3.2.2</version>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<!-- Used by email address validator -->
			<groupId>commons-validator</groupId>
			<artifactId>commons-validator</artifactId>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
				<exclusion>
					<groupId>commons-digester</groupId>
					<artifactId>commons-digester</artifactId>
				</exclusion>
				<exclusion>
					<groupId>commons-beanutils</groupId>
					<artifactId>commons-beanutils</artifactId>
				</exclusion>
			</exclusions>
bps's avatar
bps committed
		<dependency>
			<!-- Used by at least commons-fileupload, webdriver -->
bps's avatar
bps committed
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>2.7</version>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>org.jcodec</groupId>
			<artifactId>jcodec</artifactId>
srosse's avatar
srosse committed
			<version>0.2.5</version>
srosse's avatar
srosse committed
		</dependency>
		<dependency>
			<groupId>org.jcodec</groupId>
			<artifactId>jcodec-javase</artifactId>
srosse's avatar
srosse committed
			<version>0.2.5</version>
bps's avatar
bps committed
		<dependency>
			<groupId>org.mnode.ical4j</groupId>
bps's avatar
bps committed
			<artifactId>ical4j</artifactId>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>org.mnode.ical4j</groupId>
			<artifactId>ical4j-zoneinfo-outlook</artifactId>
			<version>1.0.4</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
bps's avatar
bps committed
		<dependency>
			<groupId>org.openolat.jamwiki</groupId>
			<artifactId>jamwiki-core</artifactId>
			<version>1.0.3</version>
bps's avatar
bps committed
		</dependency>
			<groupId>org.openolat</groupId>
			<artifactId>openmeetingws</artifactId>
		<dependency>
			<groupId>org.openolat</groupId>
			<artifactId>viterows</artifactId>
			<version>9.1.2</version>
		<dependency>
			<groupId>org.openolat</groupId>
			<artifactId>edusharingws</artifactId>
			<version>4.1.0</version>
		</dependency>
bps's avatar
bps committed
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi</artifactId>
			<version>${apache.poi}</version>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi-scratchpad</artifactId>
			<version>${apache.poi}</version>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>org.apache.pdfbox</groupId>
			<artifactId>pdfbox</artifactId>
			<version>${apache.pdfbox}</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>org.apache.pdfbox</groupId>
			<artifactId>xmpbox</artifactId>
			<version>${apache.pdfbox}</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
bps's avatar
bps committed
		<dependency>
			<groupId>org.bouncycastle</groupId>
			<artifactId>bcmail-jdk15on</artifactId>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>org.bouncycastle</groupId>
			<artifactId>bcprov-jdk15on</artifactId>
bps's avatar
bps committed
		</dependency>
		    <groupId>com.github.scribejava</groupId>
		    <artifactId>scribejava-apis</artifactId>
		    <version>6.5.1</version>
		<dependency>
			<groupId>io.jsonwebtoken</groupId>
			<artifactId>jjwt-api</artifactId>
			<version>${io.jsonwebtoken}</version>
		</dependency>
		<dependency>
			<groupId>io.jsonwebtoken</groupId>
			<artifactId>jjwt-impl</artifactId>
			<version>${io.jsonwebtoken}</version>
			 <scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>io.jsonwebtoken</groupId>
			<artifactId>jjwt-jackson</artifactId>
			<version>${io.jsonwebtoken}</version>
bps's avatar
bps committed
		<dependency>
			<groupId>jaxen</groupId>
			<artifactId>jaxen</artifactId>
			<version>1.2.0</version>
			<exclusions>
				<exclusion>
					<groupId>com.ibm.icu</groupId>
					<artifactId>icu4j</artifactId>
				</exclusion>
				<exclusion>
					<groupId>xalan</groupId>
					<artifactId>xalan</artifactId>
				</exclusion>
				<exclusion>
					<groupId>jdom</groupId>
					<artifactId>jdom</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.jdom</groupId>
bps's avatar
bps committed
			<artifactId>jdom</artifactId>
			<version>1.1.3</version>
			<!-- used by reload-jdom (SCORM) -->
		</dependency>
		<dependency>
			<groupId>org.dom4j</groupId>
			<artifactId>dom4j</artifactId>
			<version>2.1.3</version>
		</dependency>
		<dependency>
			<groupId>fmath</groupId>
			<artifactId>fmath-latex-mathml</artifactId>
			<version>3.1</version>
			<!-- need org.jdom2 2.0.6 -->
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>jgrapht</groupId>
			<artifactId>jgrapht</artifactId>
			<version>0.6.0</version>
		</dependency>
		<dependency>
			<groupId>reload-diva</groupId>
			<artifactId>reload-diva</artifactId>
			<version>reload_dist255-diva.jar</version>
		</dependency>
		<dependency>
			<groupId>reload-dweezil</groupId>
			<artifactId>reload-dweezil</artifactId>
			<version>reload_dist255-dweezil.jar</version>
		</dependency>
		<dependency>
			<groupId>reload-jdom</groupId>
			<artifactId>reload-jdom</artifactId>
			<version>reload_dist255-jdom.jar</version>
		</dependency>
		<dependency>
			<groupId>reload-moonunit</groupId>
			<artifactId>reload-moonunit</artifactId>
			<version>reload_dist255-moonunit.jar</version>
		</dependency>
		<!-- Start dependency to qtiworks -->
			<groupId>org.openolat.qtiworks</groupId>
			<artifactId>qtiworks-jqtiplus</artifactId>
			<version>${qtiworks.version}</version>
		</dependency>
			<groupId>org.openolat.qtiworks</groupId>
			<artifactId>qtiworks-jqtiplus</artifactId>
			<version>${qtiworks.version}</version>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
			<groupId>org.openolat.qtiworks</groupId>
			<artifactId>qtiworks-mathassess</artifactId>
			<version>${qtiworks.version}</version>
		</dependency>
		<dependency>
			<groupId>org.openolat.qtiworks</groupId>
			<artifactId>qtiworks-mathassess-glue</artifactId>
			<version>${qtiworks.version}</version>
		</dependency>
			<groupId>org.openolat.qtiworks</groupId>
			<artifactId>qtiworks-mathassess-glue</artifactId>
			<version>${qtiworks.version}</version>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.openolat.qtiworks</groupId>
			<artifactId>qtiworks-samples</artifactId>
			<version>${qtiworks.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.openolat.qtiworks</groupId>
			<artifactId>qtiworks-samples</artifactId>
			<version>${qtiworks.version}</version>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<!-- End dependency to qtiworks -->
		<dependency>
			<groupId>org.openolat.imscp</groupId>
			<artifactId>manifest</artifactId>
			<version>1.4.4</version>
bps's avatar
bps committed
		<dependency>
uhensler's avatar
uhensler committed
			<groupId>com.rometools</groupId>
bps's avatar
bps committed
			<artifactId>rome</artifactId>
uhensler's avatar
uhensler committed
			<version>1.7.2</version>
			<exclusions>
				<exclusion>
					<groupId>jdom</groupId>
					<artifactId>jdom</artifactId>
				</exclusion>
			</exclusions>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>ch.ethz</groupId>
			<artifactId>pfplms-scorm</artifactId>
			<version>unknown</version>
			<classifier>patched</classifier><!-- patched version of scorm adapter: 
				contact: matthai.kurian@gmail.com -->
		</dependency>
		<dependency><!-- used by SCORM -->
			<groupId>gnu-regexp</groupId>
			<artifactId>gnu-regexp</artifactId>
			<version>1.1.4</version>
bps's avatar
bps committed
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.7.30</version>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
    		<artifactId>log4j-api</artifactId>
			<version>${apache.log4j}</version>
bps's avatar
bps committed
		</dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-jul</artifactId>
			<version>${apache.log4j}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-slf4j-impl</artifactId>
			<version>${apache.log4j}</version>
		</dependency>
		<!-- Replace commons-logging -->
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-jcl</artifactId>
			<version>${apache.log4j}</version>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-core</artifactId>
			<version>${apache.log4j}</version>
		<dependency>
			<groupId>com.lmax</groupId>
			<artifactId>disruptor</artifactId>
			<version>3.4.2</version>
		</dependency>
bps's avatar
bps committed
		<!-- basic LTI stuff for lti demo: http://www.imsglobal.org/toolsinteroperability2.cfm -->
		<dependency>
			<groupId>org.sakaiproject.basiclti</groupId>
			<artifactId>basiclti-util</artifactId>
			<version>2.10.SP1</version>
bps's avatar
bps committed
		</dependency>
		<!-- J2EE dependencies but provided -->
bps's avatar
bps committed
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
bps's avatar
bps committed
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-jms_1.1_spec</artifactId>
			<version>1.1.1</version>
		    <groupId>jakarta.xml.ws</groupId>
		    <artifactId>jakarta.xml.ws-api</artifactId>
		    <version>2.3.3</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>nu.validator</groupId>
			<artifactId>htmlparser</artifactId>
bps's avatar
bps committed
		<dependency>
			<groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
			<artifactId>owasp-java-html-sanitizer</artifactId>
			<version>20200713.1</version>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>org.w3c.css</groupId>
			<artifactId>sac</artifactId>
			<version>1.3</version>
		</dependency>
		<dependency>
			<groupId>org.apache.xmlgraphics</groupId>
bps's avatar
bps committed
			<artifactId>batik-css</artifactId>
			<version>1.13</version>
			<exclusions>
				<exclusion>
					<groupId>xml-apis</groupId>
					<artifactId>xml-apis-ext</artifactId>
				</exclusion>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>org.apache.xmlgraphics</groupId>
bps's avatar
bps committed
			<artifactId>batik-util</artifactId>
			<version>1.13</version>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>de.java2html</groupId>
			<artifactId>java2html</artifactId>
			<version>5.0</version>
		</dependency>
		<dependency>
			<groupId>commons-httpclient</groupId>
			<artifactId>commons-httpclient</artifactId>
			<version>3.1</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
bps's avatar
bps committed
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpcore</artifactId>
			<version>4.4.13</version>
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpclient</artifactId>
			<version>4.5.12</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpmime</artifactId>
			<version>4.5.12</version>
bps's avatar
bps committed
		<dependency>