added configuration for the uberjar
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/build-utils/maven-parent@157985 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
67fc54de6c
commit
89e5e44a74
264
pom.xml
264
pom.xml
|
@ -33,112 +33,34 @@
|
|||
</properties>
|
||||
</profile>
|
||||
|
||||
|
||||
<!--
|
||||
This profile enables the generation fo the source package
|
||||
-->
|
||||
<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>
|
||||
|
||||
<!--
|
||||
make sure the "-src" is appended to the filename. It is the default
|
||||
behaviour but it has been set explicitly because some components
|
||||
(e.g. ghn-distribution) set it to false in their pom
|
||||
-->
|
||||
<appendAssemblyId>true</appendAssemblyId>
|
||||
</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>
|
||||
|
||||
|
||||
<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>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-source-package</id>
|
||||
<phase>install</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
|
||||
</profiles>
|
||||
</profiles>
|
||||
|
||||
|
||||
|
||||
|
@ -148,6 +70,142 @@
|
|||
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
|
||||
<!--
|
||||
maven-assembly-plugin configuration
|
||||
|
||||
|
||||
|
||||
Defines some default assemblies. The configuration is not bound to any phase, so they are not created
|
||||
by default. To use them, a component must bound them to a phase.
|
||||
|
||||
E.g.
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-uberjar</id>
|
||||
<phase>install</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>make-servicearchive</id>
|
||||
<phase>install</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
-->
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
<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>
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<!-- uberjar creation -->
|
||||
<execution>
|
||||
<id>make-uberjar</id>
|
||||
<configuration>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>gcube-uberjar</descriptorRef>
|
||||
</descriptorRefs>
|
||||
<!--
|
||||
override the plugin-scope configuration that some components have in their pom:
|
||||
<descriptors>
|
||||
<descriptor>${distroDirectory}/descriptor.xml</descriptor>
|
||||
</descriptors>
|
||||
|
||||
If not done, the servicearchive will be built also during this execution.
|
||||
-->
|
||||
<descriptors combine.self="override"></descriptors>
|
||||
|
||||
<!--
|
||||
make sure the "-src" is appended to the filename. It is the default
|
||||
behaviour but it has been set explicitly because some components
|
||||
(e.g. ghn-distribution) set it to false in their pom
|
||||
-->
|
||||
<appendAssemblyId>true</appendAssemblyId>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
|
||||
<!-- default servicearchive creation-->
|
||||
<execution>
|
||||
<id>make-servicearchive</id>
|
||||
<configuration>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>gcube-default-servicearchive</descriptorRef>
|
||||
</descriptorRefs>
|
||||
<appendAssemblyId>true</appendAssemblyId>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
|
||||
|
||||
<!-- source package creation -->
|
||||
<execution>
|
||||
<id>make-source-package</id>
|
||||
<configuration>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>gcube-source-package</descriptorRef>
|
||||
</descriptorRefs>
|
||||
|
||||
<!--
|
||||
override the plugin-scope configuration that some components have in their pom:
|
||||
<descriptors>
|
||||
<descriptor>${distroDirectory}/descriptor.xml</descriptor>
|
||||
</descriptors>
|
||||
|
||||
If not done, the servicearchive will be built also during this execution.
|
||||
-->
|
||||
<descriptors combine.self="override"></descriptors>
|
||||
|
||||
<!--
|
||||
make sure the "-src" is appended to the filename. It is the default
|
||||
behaviour but it has been set explicitly because some components
|
||||
(e.g. ghn-distribution) set it to false in their pom
|
||||
-->
|
||||
<appendAssemblyId>true</appendAssemblyId>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
|
|
Loading…
Reference in New Issue