removed source and javadoc packaging as unwanted transparencies, general cleanup
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/build-utils/maven-parent@46817 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
92283705d6
commit
b4da257905
118
pom.xml
118
pom.xml
|
@ -16,6 +16,7 @@
|
|||
<local.deploy.dir>${env.GLOBUS_LOCATION}/lib</local.deploy.dir>
|
||||
</properties>
|
||||
|
||||
<!-- gCube repositories -->
|
||||
<distributionManagement>
|
||||
<snapshotRepository>
|
||||
<id>gcube-snapshots</id>
|
||||
|
@ -31,41 +32,17 @@
|
|||
|
||||
<build>
|
||||
|
||||
<!-- fixes versions of plugins used in profiles -->
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>2.1.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<forkMode>always</forkMode>
|
||||
<forkMode>always</forkMode> <!-- integration tests require it -->
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.8</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.0.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.3.1</version>
|
||||
</plugin>
|
||||
|
||||
<!-- ecipse integration -->
|
||||
<plugin>
|
||||
<groupId>org.eclipse.m2e</groupId>
|
||||
<artifactId>lifecycle-mapping</artifactId>
|
||||
|
@ -107,6 +84,18 @@
|
|||
<versionRange>[1.0,)</versionRange>
|
||||
<goals>
|
||||
<goal>stub-gen</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<execute />
|
||||
</action>
|
||||
</pluginExecution>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>org.gcube.tools</groupId>
|
||||
<artifactId>maven-service-plugin</artifactId>
|
||||
<versionRange>[1.0,)</versionRange>
|
||||
<goals>
|
||||
<goal>gar-gen</goal>
|
||||
<goal>local-deploy</goal>
|
||||
</goals>
|
||||
|
@ -115,16 +104,28 @@
|
|||
<ignore></ignore>
|
||||
</action>
|
||||
</pluginExecution>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
||||
<artifactId>maven-replacer-plugin</artifactId>
|
||||
<versionRange>[1.0,)</versionRange>
|
||||
<goals>
|
||||
<goal>replace</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<execute />
|
||||
</action>
|
||||
</pluginExecution>
|
||||
</pluginExecutions>
|
||||
</lifecycleMappingMetadata>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- fix compiler plugin's version and JVM targets -->
|
||||
<!-- JVM targets -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
|
@ -135,17 +136,17 @@
|
|||
</pluginManagement>
|
||||
|
||||
|
||||
<!-- plugins attached to base life-cycle -->
|
||||
<!-- attached to all life-cycles -->
|
||||
<plugins>
|
||||
|
||||
<!-- enforce or advise on build requirements -->
|
||||
<!-- enforce integration build requirements -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.0.1</version>
|
||||
<executions>
|
||||
|
||||
<!-- enforce requirements on build environment -->
|
||||
<execution>
|
||||
<id>enforce-eager</id>
|
||||
<id>enforce</id>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
|
@ -163,63 +164,14 @@
|
|||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- later, warn on inclusion of auxiliary resources in artefact -->
|
||||
<execution>
|
||||
<id>enforce-lazy</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<fail>false</fail>
|
||||
<rules>
|
||||
<requireFilesExist>
|
||||
<files>
|
||||
<file>${basedir}/changelog.xml</file>
|
||||
<file>${basedir}/MAINTAINERS</file>
|
||||
<file>${basedir}/LICENSE</file>
|
||||
<file>${basedir}/README</file>
|
||||
<file>${basedir}/INSTALL</file>
|
||||
</files>
|
||||
</requireFilesExist>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- package source jar for installation and deployment -->
|
||||
<plugin>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- package javadoc jar for installation and deployment -->
|
||||
<plugin>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
|
||||
<!-- deploys main artefact and its dependencies in a local container -->
|
||||
<!-- deploys main artifact and its dependencies in a local container -->
|
||||
<profile>
|
||||
<id>deploy</id>
|
||||
<build>
|
||||
|
|
Loading…
Reference in New Issue