org.onap.vnfsdk.lctest vnf-sdk-validate-lc-test 1.0.0-SNAPSHOT 4.0.0 lifecycle-test-deployment 1.0.0-SNAPSHOT vnf-sdk-validate-lc-test/deployment pom UTF-8 org.codehaus.gmaven gmaven-plugin 1.5 lifecycle-test package package execute System.out.println("******** Going to make release zip ********") deployFolder = "${project.build.directory}/deployoutput" deployUnzip = "${project.build.directory}/deployunzip" outfileName = "${package.name}-${project.version}.zip" ant.delete(dir: "${deployFolder}") ant.mkdir(dir: "${deployFolder}") ant.delete(dir: "${deployUnzip}") ant.mkdir(dir: "${deployUnzip}") ant.mkdir(dir: "${deployUnzip}/webapps/") ant.mkdir(dir: "${deployUnzip}/webapps/ROOT") ant.mkdir(dir: "${deployUnzip}/logs") ant.copy(todir: "${deployUnzip}") { fileset(dir: "${basedir}/src/main/release"){ exclude(name: "**/.gitignore") } } ant.copy(todir: "${deployUnzip}/webapps/ROOT") { fileset(dir: "${project.build.directory}/../../lifecycle-test/target/${package.name}-${project.version}") } ant.zip(destfile: "${deployFolder}/${outfileName}") { fileset(dir: "${deployUnzip}") } System.out.println("******** completed. ************") org.codehaus.mojo build-helper-maven-plugin attach-artifacts package attach-artifact ${project.build.directory}/deployoutput/${package.name}-${project.version}.zip zip