java 1.8 default, new source packages in zip format
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/build-utils/maven-parent@148250 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a61068c596
commit
b41c5dbad7
131
pom.xml
131
pom.xml
|
@ -19,6 +19,7 @@
|
|||
|
||||
|
||||
<profiles>
|
||||
|
||||
<!-- this profile sets an additional parameter for javadoc generation that disable the doclint (it makes
|
||||
component build fail if formal/syntax errors are found in javadoc comments).
|
||||
The parameter is only understood by jdk 1.8, so we set it only when jdk 1.8 is used -->
|
||||
|
@ -31,9 +32,112 @@
|
|||
<javadoc.opts>-Xdoclint:none</javadoc.opts>
|
||||
</properties>
|
||||
</profile>
|
||||
|
||||
|
||||
<profile>
|
||||
<id>generate-distribution-packages</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>generateDistribution</name>
|
||||
<value>true</value>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.gcube.tools</groupId>
|
||||
<artifactId>shared-assemblies</artifactId>
|
||||
<version>1.1.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<executions>
|
||||
|
||||
|
||||
|
||||
<!-- Disable the execution of the legacy servicearchive. When/If a centralized
|
||||
generation of binary packages is implemented, this will allow to disable the
|
||||
execution of the plugin specified in the single pom files -->
|
||||
<!--
|
||||
|
||||
<execution>
|
||||
<id>servicearchive</id>
|
||||
<configuration>
|
||||
<skipAssembly>true</skipAssembly>
|
||||
</configuration>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
|
||||
-->
|
||||
|
||||
<!-- generation of the source package -->
|
||||
|
||||
<execution>
|
||||
<id>source-package-generation</id>
|
||||
<configuration>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>gcube-source-package</descriptorRef>
|
||||
</descriptorRefs>
|
||||
|
||||
<!--
|
||||
override the plugin-scope configuration:
|
||||
<descriptors>
|
||||
<descriptor>${distroDirectory}/descriptor.xml</descriptor>
|
||||
</descriptors>
|
||||
|
||||
If not done, the servicearchive will be built also during
|
||||
this execution.
|
||||
-->
|
||||
<descriptors combine.self="override"></descriptors>
|
||||
</configuration>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
|
||||
|
||||
<!-- TODO: generation of the binary package. Centralized solution. -->
|
||||
<!--
|
||||
<execution>
|
||||
<id>binary-package-generation</id>
|
||||
<configuration>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>shred assembly here</descriptorRef>
|
||||
</descriptorRefs>
|
||||
|
||||
<descriptors combine.self="override"></descriptors>
|
||||
</configuration>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
-->
|
||||
|
||||
</executions>
|
||||
|
||||
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
</profile>
|
||||
|
||||
</profiles>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<build>
|
||||
|
||||
<pluginManagement>
|
||||
|
@ -122,31 +226,6 @@
|
|||
<source>${java_version}</source>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- common configuration for the assembly plugin -->
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.gcube.tools</groupId>
|
||||
<artifactId>shared-assemblies</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<executions>
|
||||
<!-- generation of the source package -->
|
||||
<execution>
|
||||
<id>make-source-package</id>
|
||||
<configuration combine.self="override">
|
||||
<descriptorRefs>
|
||||
<descriptorRef>gcube-source-package</descriptorRef>
|
||||
</descriptorRefs>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
|
@ -221,7 +300,7 @@
|
|||
<!-- default value for the distro directory -->
|
||||
<distroDirectory>distro</distroDirectory>
|
||||
|
||||
<java_version>1.7</java_version>
|
||||
<java_version>1.8</java_version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.version>3.0.0</maven.version>
|
||||
<snapshots.repository.url.deploy>http://maven.research-infrastructures.eu:8081/nexus/content/repositories/gcube-snapshots</snapshots.repository.url.deploy>
|
||||
|
|
Loading…
Reference in New Issue