summaryrefslogtreecommitdiffstats
path: root/deployment/pom.xml
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-09-07 13:56:19 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-09-07 14:19:04 +0530
commit0db7ecb7cc357eddb5257745b143586698d8640c (patch)
tree51f475225821f0c14662ab7cddc853462df1a0df /deployment/pom.xml
parentbc62e9e36a3cc020d5e4782f53f86f79b0eceb65 (diff)
VTP: Enable deployment in csar validation
Issue-ID: VNFSDK-305 Change-Id: Ic711d38514870b6af7db425ede7b96feff92c4f1 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'deployment/pom.xml')
-rw-r--r--deployment/pom.xml78
1 files changed, 73 insertions, 5 deletions
diff --git a/deployment/pom.xml b/deployment/pom.xml
index fd2c99d..f929aa8 100644
--- a/deployment/pom.xml
+++ b/deployment/pom.xml
@@ -28,9 +28,77 @@
<name>csarvalidation/deployment</name>
<packaging>pom</packaging>
-<!--
- <modules>
- <module>docker</module>
- </modules>
--->
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.gmaven</groupId>
+ <artifactId>groovy-maven-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.gmaven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <version>1.5</version>
+ <executions>
+ <execution>
+ <id>CSAR validator</id>
+ <phase>package</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <source>
+ System.out.println("******** Going to make release zip ********")
+
+ deployFolder = "${project.build.directory}/deployoutput"
+ deployUnzip = "${project.build.directory}/deployunzip"
+ outfileName = "csarvalidator-${project.version}.zip"
+
+ ant.delete(dir: "${deployFolder}")
+ ant.mkdir(dir: "${deployFolder}")
+
+ ant.delete(dir: "${deployUnzip}")
+ ant.mkdir(dir: "${deployUnzip}")
+
+ ant.copy(todir: "${deployUnzip}/") {
+ fileset(dir: "${project.build.directory}/../../csarvalidation/target/lib")
+ }
+
+ ant.zip(destfile: "${deployFolder}/${outfileName}") {
+ fileset(dir: "${deployUnzip}")
+ }
+
+ System.out.println("******** completed. ************")
+ </source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${project.build.directory}/deployoutput/csarvalidator-${project.version}.zip</file>
+ <type>zip</type>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>