Migrate custom jars to install-plugin

This commit is contained in:
Antonin Delpeuch 2018-09-09 17:26:08 +01:00
parent 9af847ae10
commit e846df0b9d
4 changed files with 167 additions and 60 deletions

View File

@ -84,6 +84,46 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>install-wdtk-datamodel</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/module/MOD-INF/lib/wdtk-datamodel-0.9.0-SNAPSHOT-jar-with-dependencies.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-datamodel</artifactId>
<version>0.9.0-SNAPSHOT</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-wdtk-wikibaseapi</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/module/MOD-INF/lib/wdtk-wikibaseapi-0.9.0-SNAPSHOT.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-wikibaseapi</artifactId>
<version>0.9.0-SNAPSHOT</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>

View File

@ -89,16 +89,6 @@
</suiteXmlFiles>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<mainClass>com.google.refine.Refine</mainClass>
<skip>true</skip>
<executable>java</executable>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
@ -107,6 +97,109 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>install-marc4j</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/webapp/WEB-INF/lib/marc4j-2.4.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>marc4j</groupId>
<artifactId>marc4j</artifactId>
<version>2.4</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-tableschema</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/webapp/WEB-INF/lib/tableschema-java-1.0-SNAPSHOT.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>io.frictionlessdata</groupId>
<artifactId>tableschema-java</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-datapackage</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/webapp/WEB-INF/lib/datapackage-java-1.0-SNAPSHOT.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>io.frictionlessdata</groupId>
<artifactId>datapackage-java</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-opencsv</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/webapp/WEB-INF/lib/opencsv-2.4-SNAPSHOT.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>net.sf.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>2.4-SNAPSHOT</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-butterfly</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/webapp/WEB-INF/lib/butterfly-1.0.1.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>edu.mit.simile</groupId>
<artifactId>butterfly</artifactId>
<version>1.0.1</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-vicino</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/webapp/WEB-INF/lib/vicino-1.1.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>edu.mit.simile</groupId>
<artifactId>vicino</artifactId>
<version>1.1</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
@ -200,7 +293,7 @@
<dependency>
<groupId>net.sf.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>2.4-refine-20130712</version>
<version>2.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>

49
pom.xml
View File

@ -94,46 +94,6 @@
</suiteXmlFiles>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>install-marc4j</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/libs/marc4j/marc4j/2.4/marc4j-2.4.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>marc4j.marc4j</groupId>
<artifactId>marc4j</artifactId>
<version>2.4</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-butterfly</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/libs/edu/mit/simile/butterfly/1.0.1/butterfly-1.0.1.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>edu.mit.simile</groupId>
<artifactId>butterfly</artifactId>
<version>1.0.1</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
@ -146,14 +106,5 @@
see main/pom.xml, server/pom.xml and each extension.
-->
</dependencies>
<repositories>
<repository>
<id>local-jars</id>
<name>Local JARs</name>
<url>file://${project.basedir}${file.separator}libs</url>
</repository>
</repositories>
</project>

View File

@ -81,6 +81,29 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>install-jdapath</id>
<phase>process-resources</phase>
<configuration>
<file>${basedir}/libs/jdatapath-alpha2.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>com.codeberry.jdatapath</groupId>
<artifactId>jdatapath</artifactId>
<version>alpha2</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>