Working pom.xml for tests

This commit is contained in:
Antonin Delpeuch 2018-08-12 19:51:17 +01:00
parent 5dbfc44335
commit aeb7338b22

790
pom.xml
View File

@ -1,401 +1,421 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.openrefine</groupId> <groupId>org.openrefine</groupId>
<artifactId>openrefine</artifactId> <artifactId>openrefine</artifactId>
<packaging>war</packaging> <packaging>jar</packaging>
<version>3.0-SNAPSHOT</version> <version>3.0-SNAPSHOT</version>
<name>Open Refine</name> <name>Open Refine</name>
<description>OpenRefine is a free, open source power tool for working with messy data and improving it</description> <description>OpenRefine is a free, open source power tool for working with messy data and improving it</description>
<properties> <properties>
<jee.path>/</jee.path> <jee.path>/</jee.path>
<jee.port>3333</jee.port> <jee.port>3333</jee.port>
<refine.data>/tmp/refine</refine.data> <refine.data>/tmp/refine</refine.data>
</properties> </properties>
<scm> <scm>
<connection>scm:git:http://github.com/OpenRefine/OpenRefine</connection> <connection>scm:git:http://github.com/OpenRefine/OpenRefine</connection>
<url>http://github.com/OpenRefine/OpenRefine</url> <url>http://github.com/OpenRefine/OpenRefine</url>
</scm> </scm>
<build> <build>
<finalName>openrefine</finalName> <finalName>openrefine</finalName>
<resources> <resources>
<resource> <resource>
<directory>main/src</directory> <directory>main/src</directory>
<includes> <includes>
<include>log4j.properties</include> <include>log4j.properties</include>
</includes> </includes>
</resource> </resource>
</resources> </resources>
<testSourceDirectory>main/tests/server/src</testSourceDirectory> <testSourceDirectory>main/tests/server/src</testSourceDirectory>
<testResources> <testResources>
<testResource> <testResource>
<directory>main/tests/server/src</directory> <directory>main/tests/data</directory>
</testResource> </testResource>
</testResources> </testResources>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId> <artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version> <version>1.8</version>
<executions> <executions>
<execution> <execution>
<phase>generate-sources</phase> <phase>generate-sources</phase>
<goals> <goals>
<goal>add-source</goal> <goal>add-source</goal>
</goals> </goals>
<configuration> <configuration>
<sources> <sources>
<source>src</source> <source>src</source>
<source>main/src</source> <source>main/src</source>
</sources> </sources>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version> <version>3.1</version>
<configuration> <configuration>
<source>1.8</source> <source>1.8</source>
<target>1.8</target> <target>1.8</target>
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
<showDeprecation>false</showDeprecation> <showDeprecation>false</showDeprecation>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<version>2.6</version> <version>2.6</version>
<configuration> <configuration>
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <!-- <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
<version>2.2</version> <version>2.2</version>
<configuration> <configuration>
<webResources> <webResources>
<resource> <resource>
<directory>main/webapp</directory> <directory>main/webapp</directory>
<excludes> <excludes>
<exclude>WEB-INF/butterfly.properties</exclude> <exclude>WEB-INF/butterfly.properties</exclude>
<exclude>WEB-INF/lib/*.jar</exclude> <exclude>WEB-INF/lib/*.jar</exclude>
<exclude>WEB-INF/lib-src/**</exclude> <exclude>WEB-INF/lib-src/**</exclude>
</excludes> </excludes>
</resource> </resource>
<resource> <resource>
<directory>patches</directory> <directory>patches</directory>
<includes> <includes>
<include>butterfly.properties</include> <include>butterfly.properties</include>
</includes> </includes>
<targetPath>WEB-INF</targetPath> <targetPath>WEB-INF</targetPath>
</resource> </resource>
<resource> <resource>
<directory>extensions</directory> <directory>extensions</directory>
<targetPath>extensions</targetPath> <targetPath>extensions</targetPath>
<excludes> <excludes>
<exclude>**/jackson-core-asl-*.jar</exclude> <exclude>**/jackson-core-asl-*.jar</exclude>
<exclude>**/jackson-mapper-asl-*.jar</exclude> <exclude>**/jackson-mapper-asl-*.jar</exclude>
<exclude>lmf/**/jena-*.jar</exclude> <exclude>lmf/**/jena-*.jar</exclude>
</excludes> </excludes>
</resource> </resource>
</webResources> </webResources>
</configuration> </configuration>
</plugin> </plugin> -->
<plugin> <!-- <plugin>
<groupId>org.apache.tomcat.maven</groupId> <groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId> <artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version> <version>2.2</version>
<configuration> <configuration>
<warSourceDirectory>main/webapp</warSourceDirectory> <warSourceDirectory>main/webapp</warSourceDirectory>
<path>${jee.path}</path> <path>${jee.path}</path>
<port>${jee.port}</port> <port>${jee.port}</port>
<systemProperties> <systemProperties>
<refine.version>${project.version}</refine.version> <refine.version>${project.version}</refine.version>
<refine.data>${refine.data}</refine.data> <refine.data>${refine.data}</refine.data>
</systemProperties> </systemProperties>
</configuration> </configuration>
</plugin> </plugin> -->
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
</plugin> </plugin>
</plugins> <plugin>
<pluginManagement> <groupId>org.apache.maven.plugins</groupId>
<plugins> <artifactId>maven-surefire-plugin</artifactId>
<plugin> <version>2.22.0</version>
<groupId>org.codehaus.mojo</groupId> <configuration>
<artifactId>exec-maven-plugin</artifactId> <suiteXmlFiles>
<version>1.1.1</version> <suiteXmlFile>main/tests/server/conf/tests.xml</suiteXmlFile>
<executions> </suiteXmlFiles>
<execution> </configuration>
<id>antclean</id> </plugin>
<phase>clean</phase> </plugins>
<goals> <pluginManagement>
<goal>exec</goal> <plugins>
</goals> <plugin>
<inherited>false</inherited> <groupId>org.codehaus.mojo</groupId>
<configuration> <artifactId>exec-maven-plugin</artifactId>
<executable>ant</executable> <version>1.1.1</version>
<arguments> <executions>
<argument>clean</argument> <execution>
</arguments> <id>antclean</id>
</configuration> <phase>clean</phase>
</execution> <goals>
<execution> <goal>exec</goal>
<id>ant</id> </goals>
<phase>validate</phase> <inherited>false</inherited>
<goals> <configuration>
<goal>exec</goal> <executable>ant</executable>
</goals> <arguments>
<inherited>false</inherited> <argument>clean</argument>
<configuration> </arguments>
<executable>ant</executable> </configuration>
</configuration> </execution>
</execution> <execution>
</executions> <id>ant</id>
</plugin> <phase>validate</phase>
</plugins> <goals>
</pluginManagement> <goal>exec</goal>
</build> </goals>
<inherited>false</inherited>
<configuration>
<executable>ant</executable>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId> <artifactId>servlet-api</artifactId>
<version>2.5</version> <version>2.5</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mortbay.jetty</groupId> <groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-servlet</artifactId> <artifactId>jetty-servlet</artifactId>
<version>7.0.0.pre5</version> <version>7.0.0.pre5</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>edu.mit.simile</groupId> <groupId>edu.mit.simile</groupId>
<artifactId>butterfly</artifactId> <artifactId>butterfly</artifactId>
<version>1.0.1</version> <version>1.0.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mozilla</groupId> <groupId>org.mozilla</groupId>
<artifactId>rhino</artifactId> <artifactId>rhino</artifactId>
<version>1.7.10</version> <version>1.7.10</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
<version>13.0</version> <version>13.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.json</groupId> <groupId>org.json</groupId>
<artifactId>json</artifactId> <artifactId>json</artifactId>
<version>20160810</version> <version>20160810</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>2.9.1</version> <version>2.9.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId> <artifactId>jackson-annotations</artifactId>
<version>2.9.1</version> <version>2.9.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId> <artifactId>slf4j-log4j12</artifactId>
<version>1.5.6</version> <version>1.7.18</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.slf4j</groupId>
<artifactId>commons-lang3</artifactId> <artifactId>slf4j-api</artifactId>
<version>3.6</version> <version>1.7.18</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>commons-digester</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-digester</artifactId> <artifactId>commons-lang3</artifactId>
<version>1.8.1</version> <version>3.6</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>commons-fileupload</groupId> <groupId>commons-digester</groupId>
<artifactId>commons-fileupload</artifactId> <artifactId>commons-digester</artifactId>
<version>1.2.1</version> <version>1.8.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>velocity</groupId> <groupId>commons-fileupload</groupId>
<artifactId>velocity</artifactId> <artifactId>commons-fileupload</artifactId>
<version>1.5</version> <version>1.2.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>marc4j</groupId> <groupId>velocity</groupId>
<artifactId>marc4j</artifactId> <artifactId>velocity</artifactId>
<version>2.4</version> <version>1.5</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.ant</groupId> <groupId>marc4j</groupId>
<artifactId>ant</artifactId> <artifactId>marc4j</artifactId>
<version>1.8.0</version> <version>2.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jsoup</groupId> <groupId>org.apache.ant</groupId>
<artifactId>jsoup</artifactId> <artifactId>ant</artifactId>
<version>1.4.1</version> <version>1.8.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.sf.opencsv</groupId> <groupId>org.jsoup</groupId>
<artifactId>opencsv</artifactId> <artifactId>jsoup</artifactId>
<version>2.4-refine-20130712</version> <version>1.4.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.poi</groupId> <groupId>net.sf.opencsv</groupId>
<artifactId>poi</artifactId> <artifactId>opencsv</artifactId>
<version>3.8</version> <!-- in classpath: 3.13-20150929 --> <version>2.4-refine-20130712</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.poi</groupId> <groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId> <artifactId>poi</artifactId>
<version>3.8</version> <!-- in classpath: 3.13-20150929 --> <version>3.8</version> <!-- in classpath: 3.13-20150929 -->
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.odftoolkit</groupId> <groupId>org.apache.poi</groupId>
<artifactId>odfdom-java</artifactId> <artifactId>poi-ooxml</artifactId>
<version>0.8.8-incubating</version> <!-- in classpath: 0.8.7 --> <version>3.8</version> <!-- in classpath: 3.13-20150929 -->
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.ibm.icu</groupId> <groupId>org.apache.odftoolkit</groupId>
<artifactId>icu4j</artifactId> <artifactId>odfdom-java</artifactId>
<version>4.0.1</version> <version>0.8.8-incubating</version> <!-- in classpath: 0.8.7 -->
</dependency> </dependency>
<dependency> <dependency>
<groupId>edu.mit.simile</groupId> <groupId>com.ibm.icu</groupId>
<artifactId>vicino</artifactId> <artifactId>icu4j</artifactId>
<version>1.1</version> <version>4.0.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>oauth.signpost</groupId> <groupId>edu.mit.simile</groupId>
<artifactId>signpost-core</artifactId> <artifactId>vicino</artifactId>
<version>1.2.1.2</version> <version>1.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>oauth.signpost</groupId> <groupId>oauth.signpost</groupId>
<artifactId>signpost-commonshttp4</artifactId> <artifactId>signpost-core</artifactId>
<version>1.2.1.2</version> <version>1.2.1.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.clojure</groupId> <groupId>oauth.signpost</groupId>
<artifactId>clojure</artifactId> <artifactId>signpost-commonshttp4</artifactId>
<version>1.5.1</version> <version>1.2.1.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.httpcomponents</groupId> <groupId>org.clojure</groupId>
<artifactId>httpclient</artifactId> <artifactId>clojure</artifactId>
<version>4.5.5</version> <version>1.5.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.httpcomponents</groupId> <groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId> <artifactId>httpclient</artifactId>
<version>4.4.9</version> <version>4.5.5</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.sweble.wikitext</groupId> <groupId>org.apache.httpcomponents</groupId>
<artifactId>swc-parser-lazy</artifactId> <artifactId>httpcore</artifactId>
<version>3.1.7</version> <version>4.4.9</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.everit.json</groupId> <groupId>org.sweble.wikitext</groupId>
<artifactId>org.everit.json.schema</artifactId> <artifactId>swc-parser-lazy</artifactId>
<version>1.5.1</version> <version>3.1.7</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.frictionlessdata</groupId> <groupId>org.everit.json</groupId>
<artifactId>datapackage-java</artifactId> <artifactId>org.everit.json.schema</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.5.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.frictionlessdata</groupId> <groupId>io.frictionlessdata</groupId>
<artifactId>tableschema-java</artifactId> <artifactId>datapackage-java</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency>
<dependency> <groupId>io.frictionlessdata</groupId>
<groupId>org.apache.jena</groupId> <artifactId>tableschema-java</artifactId>
<artifactId>jena-arq</artifactId> <version>1.0-SNAPSHOT</version>
<version>3.6.0</version> </dependency>
</dependency> <dependency>
<dependency> <groupId>joda-time</groupId>
<groupId>org.apache.jena</groupId> <artifactId>joda-time</artifactId>
<artifactId>jena-base</artifactId> <version>2.9.9</version>
<version>3.6.0</version> </dependency>
</dependency>
<dependency> <dependency>
<groupId>org.apache.jena</groupId> <groupId>org.apache.jena</groupId>
<artifactId>jena-cmds</artifactId> <artifactId>jena-arq</artifactId>
<version>3.6.0</version> <version>3.6.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.jena</groupId> <groupId>org.apache.jena</groupId>
<artifactId>jena-core</artifactId> <artifactId>jena-base</artifactId>
<version>3.6.0</version> <version>3.6.0</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-cmds</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-core</artifactId>
<version>3.6.0</version>
</dependency>
<dependency> <dependency>
<groupId>org.testng</groupId> <groupId>org.testng</groupId>
<artifactId>testng</artifactId> <artifactId>testng</artifactId>
<version>6.9.10</version> <version>6.9.10</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mockito</groupId> <groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId> <artifactId>mockito-core</artifactId>
<version>2.8.9</version> <version>2.8.9</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.12</version> <version>4.12</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.powermock</groupId> <groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId> <artifactId>powermock-module-junit4</artifactId>
<version>1.7.1</version> <version>1.7.1</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.powermock</groupId> <groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito</artifactId> <artifactId>powermock-api-mockito2</artifactId>
<version>1.7.1</version> <version>1.7.1</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<repositories> <repositories>
<repository> <repository>
<id>nightlabs</id> <id>nightlabs</id>
<url>http://oss.sonatype.org/content/repositories/sourceforge-snapshots/</url> <url>http://oss.sonatype.org/content/repositories/sourceforge-snapshots/</url>
</repository> </repository>
<repository> <repository>
<id>kint</id> <id>kint</id>
<url>http://developer.k-int.com/maven2</url> <url>http://developer.k-int.com/maven2</url>
</repository> </repository>
<repository> <repository>
<id>local-jars</id> <id>local-jars</id>
<name>Local JARs</name> <name>Local JARs</name>
<url>file://${project.basedir}/libs</url> <url>file://${project.basedir}/libs</url>
</repository> </repository>
</repositories> </repositories>
</project> </project>