Add Maven configuration for Jython extension

This commit is contained in:
Antonin Delpeuch 2018-08-14 21:05:22 +01:00
parent 25e14cfe87
commit 3e0efc47fd
6 changed files with 160 additions and 10 deletions

119
extensions/jython/pom.xml Normal file
View File

@ -0,0 +1,119 @@
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openrefine</groupId>
<artifactId>jython</artifactId>
<packaging>jar</packaging>
<version>3.0-SNAPSHOT</version>
<name>OpenRefine - Jython extension</name>
<description>OpenRefine integration of Python as an expression language</description>
<url>http://openrefine.org/</url>
<parent>
<groupId>org.openrefine</groupId>
<artifactId>extensions</artifactId>
<version>3.0-SNAPSHOT</version>
</parent>
<build>
<finalName>openrefine-jython</finalName>
<resources>
<resource>
<directory>src</directory>
</resource>
</resources>
<testSourceDirectory>tests/src</testSourceDirectory>
<outputDirectory>module/MOD-INF/classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<showDeprecation>false</showDeprecation>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>tests/conf/tests.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>org.openrefine</groupId>
<artifactId>main</artifactId>
<version>3.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.python</groupId>
<artifactId>jython-standalone</artifactId>
<version>2.7.1</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.9.10</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

25
extensions/pom.xml Normal file
View File

@ -0,0 +1,25 @@
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openrefine</groupId>
<artifactId>extensions</artifactId>
<packaging>pom</packaging>
<version>3.0-SNAPSHOT</version>
<name>OpenRefine - extensions</name>
<description>OpenRefine is a free, open source power tool for working with messy data and improving it</description>
<url>http://openrefine.org/</url>
<parent>
<groupId>org.openrefine</groupId>
<artifactId>openrefine</artifactId>
<version>3.0-SNAPSHOT</version>
</parent>
<modules>
<module>jython</module>
<module>wikidata</module>
</modules>
</project>

View File

@ -23,6 +23,7 @@
<directory>src</directory> <directory>src</directory>
</resource> </resource>
</resources> </resources>
<testSourceDirectory>tests/src</testSourceDirectory>
<outputDirectory>module/MOD-INF/classes</outputDirectory> <outputDirectory>module/MOD-INF/classes</outputDirectory>
<plugins> <plugins>
<plugin> <plugin>
@ -116,6 +117,12 @@
<version>6.9.10</version> <version>6.9.10</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>

View File

@ -361,11 +361,11 @@
<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>

View File

@ -14,6 +14,7 @@
<modules> <modules>
<module>main</module> <module>main</module>
<module>server</module> <module>server</module>
<module>extensions</module>
</modules> </modules>
<properties> <properties>

View File

@ -74,13 +74,11 @@
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>1.3</version> <version>2.22.0</version>
<configuration> <configuration>
<mainClass>com.google.refine.Refine</mainClass> <skip>true</skip>
<skip>false</skip>
<executable>java</executable>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
@ -157,11 +155,11 @@
<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>