From: huangjian Date: Tue, 20 Sep 2016 12:13:43 +0000 (+0800) Subject: Output Linux distribution package X-Git-Tag: release/sun~49 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=368219ed3caa2a2de7d92a7f45626e9d37529b7e;p=vfc%2Fnfvo%2Fcatalog.git Output Linux distribution package Change-Id: I359b251d96076718c704b3d68127c9401e345643 Issue-id: TOSCA-63 Signed-off-by: huangjian --- diff --git a/catalog-core/distribution/catalog-all/pom.xml b/catalog-core/distribution/catalog-all/pom.xml index 341a070d..315ba121 100644 --- a/catalog-core/distribution/catalog-all/pom.xml +++ b/catalog-core/distribution/catalog-all/pom.xml @@ -27,23 +27,43 @@ catalog-all openo/commontosca/catalog/distribution/catalog-all pom - - - openo-commontosca-catalog - + maven-resources-plugin - copy-resources + copy-resources-${linux64id} + process-resources + + copy-resources + + + ${linux64outputdir} + + + src/main/assembly/ + false + + **/* + + + **/*.bat + + + + true + + + + copy-resources-${win64id} process-resources copy-resources - target/assembly/ + ${win64outputdir} src/main/assembly/ @@ -51,6 +71,9 @@ **/* + + **/*.sh + true @@ -64,72 +87,125 @@ maven-dependency-plugin - unpack-catalog - package + unpack-catalog-${linux64id} - unpack-dependencies + unpack + prepare-package - org.openo.common-tosca.catalog - catalog-standalone - - target/assembly/catalog - + + + org.openo.common-tosca.catalog + catalog-standalone + tar.gz + linux64 + + + **/*.bat,*.cmd + ${linux64outputdir}/catalog + false + true + true - unpack-httpserver - package + unpack-httpserver-${linux64id} - unpack-dependencies + unpack + prepare-package - org.openo.common-tosca.catalog - httpserver - - target/assembly/ - + + + org.openo.common-tosca.catalog + httpserver + zip + + + **/*.bat,*.cmd + ${linux64outputdir} + false + true + true - - - - org.apache.maven.plugins - maven-antrun-plugin - - zip - package + unpack-catalog-${win64id} - run + unpack + prepare-package - - - - - + + + org.openo.common-tosca.catalog + catalog-standalone + zip + win64 + + + *.sh,*/*.sh,*/*/*.sh + ${win64outputdir}/catalog + false + true + true + + + + unpack-httpserver-${win64id} + + unpack + + prepare-package + + + + org.openo.common-tosca.catalog + httpserver + zip + + + *.sh,*/*.sh,*/*/*.sh + ${win64outputdir} + false + true + true - + - org.codehaus.mojo - build-helper-maven-plugin + org.apache.maven.plugins + maven-antrun-plugin - attach-artifacts + distribution package - attach-artifact + run - - - target/${packagename}-${project.version}.zip - zip - - + + + + + + + + + + + + + + + + + + + + + @@ -142,6 +218,14 @@ catalog-standalone ${project.version} zip + win64 + + + org.openo.common-tosca.catalog + catalog-standalone + ${project.version} + tar.gz + linux64 org.openo.common-tosca.catalog diff --git a/catalog-core/distribution/catalog-standalone/pom.xml b/catalog-core/distribution/catalog-standalone/pom.xml index e06a6bc7..c873d40e 100644 --- a/catalog-core/distribution/catalog-standalone/pom.xml +++ b/catalog-core/distribution/catalog-standalone/pom.xml @@ -22,29 +22,25 @@ distribution 1.0.0-SNAPSHOT - + 4.0.0 catalog-standalone openo/commontosca/catalog/distribution/catalog-standalone pom - - openo-catalog - - maven-resources-plugin - copy-resources + copy-resources-${linux64id} process-resources copy-resources - ${basedir}/target/assembly/ + ${linux64outputdir} src/main/assembly/ @@ -52,6 +48,32 @@ **/* + + **/*.bat + + + + true + + + + copy-resources-${win64id} + process-resources + + copy-resources + + + ${win64outputdir} + + + src/main/assembly/ + false + + **/* + + + **/*.sh + true @@ -64,7 +86,7 @@ maven-dependency-plugin - copy-jar + copy-jar-${linux64id} copy @@ -76,51 +98,59 @@ catalog-mgr jar true - target/assembly/ + ${linux64outputdir} catalog-service.jar - - - - org.apache.maven.plugins - maven-antrun-plugin - - zip - package + copy-jar-${win64id} - run + copy + prepare-package - - - - - + + + org.openo.common-tosca.catalog + catalog-mgr + jar + true + ${win64outputdir} + catalog-service.jar + + - org.codehaus.mojo - build-helper-maven-plugin + org.apache.maven.plugins + maven-antrun-plugin - attach-artifacts + distribution package - attach-artifact + run - - - target/${packagename}-${project.version}.zip - zip - - + + + + + + + + + + + + + + + diff --git a/catalog-core/distribution/pom.xml b/catalog-core/distribution/pom.xml index 6d6d0b02..11f78f0b 100644 --- a/catalog-core/distribution/pom.xml +++ b/catalog-core/distribution/pom.xml @@ -28,6 +28,15 @@ openo/commontosca/catalog/distribution pom + + openo-commontosca-catalog + linux64 + win64 + target/assembly/${linux64id} + target/assembly/${win64id} + target/version + + catalog-standalone catalog-all diff --git a/catalog-parent/catalogparent-lite/pom.xml b/catalog-parent/catalogparent-lite/pom.xml index 3cf43712..5d5dc649 100644 --- a/catalog-parent/catalogparent-lite/pom.xml +++ b/catalog-parent/catalogparent-lite/pom.xml @@ -111,6 +111,10 @@ license-maven-plugin 3.0.rc1 + + maven-antrun-plugin + 1.8 +