Refs #10136: Modify accounting-aggregator-se-plugin pom.xml to create uber-jar instead of jar-with-dependencies and to use new make-servicearchive directive

Task-Url: https://support.d4science.org/issues/10136

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-aggregator-se-plugin@158035 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-10-31 10:25:31 +00:00
parent 93f5d87c33
commit 2c6b5d39b5
2 changed files with 3 additions and 54 deletions

View File

@ -1,31 +0,0 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>servicearchive</id>
<formats>
<format>tar.gz</format>
</formats>
<baseDirectory>/</baseDirectory>
<fileSets>
<fileSet>
<directory>${distroDirectory}</directory>
<outputDirectory>${file.separator}</outputDirectory>
<useDefaultExcludes>true</useDefaultExcludes>
<includes>
<include>README</include>
<include>LICENSE</include>
<include>changelog.xml</include>
<include>profile.xml</include>
</includes>
<fileMode>755</fileMode>
<filtered>true</filtered>
</fileSet>
</fileSets>
<files>
<file>
<source>target${file.separator}${build.finalName}.${project.packaging}</source>
<outputDirectory>${file.separator}${artifactId}</outputDirectory>
</file>
</files>
</assembly>

26
pom.xml
View File

@ -11,13 +11,11 @@
<version>1.3.0-SNAPSHOT</version>
<name>Accounting Aggregator</name>
<description>Accounting Aggregator Smart Executor Plugin</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<distroDirectory>distro</distroDirectory>
<serviceClass>Accounting</serviceClass>
</properties>
<scm>
<connection>scm:https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/${project.artifactId}</connection>
<developerConnection>scm:https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/${project.artifactId}</developerConnection>
@ -34,7 +32,6 @@
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.gcube.vremanagement</groupId>
@ -62,9 +59,6 @@
<artifactId>common-encryption</artifactId>
<scope>provided</scope>
</dependency>
<!-- Document Store and Accounting libraries -->
<dependency>
<groupId>org.gcube.accounting</groupId>
@ -78,7 +72,6 @@
<scope>provided</scope>
</dependency>
<!-- END Document Store and Accounting libraries -->
<!-- Test libs -->
<dependency>
<groupId>junit</groupId>
@ -99,27 +92,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>${distroDirectory}/descriptor.xml</descriptor>
</descriptors>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>servicearchive</id>
<id>make-uberjar</id>
<phase>install</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<id>make-servicearchive</id>
<phase>install</phase>
</execution>
</executions>
</plugin>