From 42ec1b83573e5b94ba6b8f2785789448e73fd351 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 27 Oct 2017 15:19:20 +0000 Subject: [PATCH] Added directive to create service archive git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-aggregator-se-plugin@157737 82a268e6-3cf1-43bd-a215-b396298e98cf --- distro/LICENSE | 3 --- distro/descriptor.xml | 2 +- distro/profile.xml | 4 ++-- pom.xml | 46 ++++++++++++++++++++++++++++++++++++++----- 4 files changed, 44 insertions(+), 11 deletions(-) diff --git a/distro/LICENSE b/distro/LICENSE index cdf50bd..2d9616a 100644 --- a/distro/LICENSE +++ b/distro/LICENSE @@ -1,4 +1 @@ -gCube System - License ------------------------------------------------------------- - ${gcube.license} \ No newline at end of file diff --git a/distro/descriptor.xml b/distro/descriptor.xml index c5e5f83..ba2c192 100644 --- a/distro/descriptor.xml +++ b/distro/descriptor.xml @@ -24,7 +24,7 @@ - target${file.separator}${build.finalName}.jar + target${file.separator}${build.finalName}.${project.packaging} ${file.separator}${artifactId} diff --git a/distro/profile.xml b/distro/profile.xml index 89d379a..3a51bef 100644 --- a/distro/profile.xml +++ b/distro/profile.xml @@ -4,13 +4,13 @@ Plugin - {description} + ${description} ${serviceClass} ${artifactId} 1.0.0 - {description} + ${description} ${artifactId} ${version} diff --git a/pom.xml b/pom.xml index 5667c5f..f986251 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ LATEST pom import - + @@ -58,10 +58,10 @@ provided - org.gcube.core - common-encryption - provided - + org.gcube.core + common-encryption + provided + @@ -96,15 +96,51 @@ + + org.apache.maven.plugins + maven-resources-plugin + 2.5 + + + copy-profile + install + + copy-resources + + + target + + + ${distroDirectory} + true + + profile.xml + + + + + + + org.apache.maven.plugins maven-assembly-plugin + + ${distroDirectory}/descriptor.xml + jar-with-dependencies + + servicearchive + install + + single + + package