blob: 466f9dbde3c370597159f389abf9375d67e030c2 [file] [log] [blame]
AvinashS3c4d26e2017-09-07 13:46:54 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2017 Huawei Technologies Co., Ltd.
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
Gary Wud8f0e752018-08-24 15:33:40 -070017<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
AvinashS3c4d26e2017-09-07 13:46:54 +000018 <modelVersion>4.0.0</modelVersion>
Bogumil Zebek158248d2020-08-04 12:56:12 +020019 <properties>
20 <groovy-maven-plugin.version>2.0</groovy-maven-plugin.version>
21 <gmaven-plugin.version>1.5</gmaven-plugin.version>
22 </properties>
AvinashS3c4d26e2017-09-07 13:46:54 +000023
24 <parent>
25 <groupId>org.onap.vnfsdk.validation</groupId>
26 <artifactId>validation</artifactId>
Bartosz Gardziejewski59010372021-01-20 09:10:29 +010027 <version>1.2.20-SNAPSHOT</version>
AvinashS3c4d26e2017-09-07 13:46:54 +000028 </parent>
29
30 <artifactId>csarvalidation-deployment</artifactId>
AvinashS3c4d26e2017-09-07 13:46:54 +000031 <name>csarvalidation/deployment</name>
32 <packaging>pom</packaging>
33
Kanagaraj Manickam k003651060db7ecb2018-09-07 13:56:19 +053034 <build>
35 <pluginManagement>
36 <plugins>
37 <plugin>
38 <groupId>org.codehaus.gmaven</groupId>
39 <artifactId>groovy-maven-plugin</artifactId>
Bogumil Zebek158248d2020-08-04 12:56:12 +020040 <version>${groovy-maven-plugin.version}</version>
Kanagaraj Manickam k003651060db7ecb2018-09-07 13:56:19 +053041 </plugin>
42 </plugins>
43 </pluginManagement>
44 <plugins>
45 <plugin>
46 <groupId>org.codehaus.gmaven</groupId>
47 <artifactId>gmaven-plugin</artifactId>
Bogumil Zebek158248d2020-08-04 12:56:12 +020048 <version>${gmaven-plugin.version}</version>
Kanagaraj Manickam k003651060db7ecb2018-09-07 13:56:19 +053049 <executions>
50 <execution>
51 <id>CSAR validator</id>
52 <phase>package</phase>
53 <goals>
54 <goal>execute</goal>
55 </goals>
56 <configuration>
57 <source>
58 System.out.println("******** Going to make release zip ********")
59
60 deployFolder = "${project.build.directory}/deployoutput"
61 deployUnzip = "${project.build.directory}/deployunzip"
62 outfileName = "csarvalidator-${project.version}.zip"
63
64 ant.delete(dir: "${deployFolder}")
65 ant.mkdir(dir: "${deployFolder}")
66
67 ant.delete(dir: "${deployUnzip}")
68 ant.mkdir(dir: "${deployUnzip}")
69
70 ant.copy(todir: "${deployUnzip}/") {
71 fileset(dir: "${project.build.directory}/../../csarvalidation/target/lib")
72 }
73
74 ant.zip(destfile: "${deployFolder}/${outfileName}") {
75 fileset(dir: "${deployUnzip}")
76 }
77
78 System.out.println("******** completed. ************")
79 </source>
80 </configuration>
81 </execution>
82 </executions>
83 </plugin>
84 <plugin>
85 <groupId>org.codehaus.mojo</groupId>
86 <artifactId>build-helper-maven-plugin</artifactId>
87 <executions>
88 <execution>
89 <id>attach-artifacts</id>
90 <phase>package</phase>
91 <goals>
92 <goal>attach-artifact</goal>
93 </goals>
94 <configuration>
95 <artifacts>
96 <artifact>
97 <file>${project.build.directory}/deployoutput/csarvalidator-${project.version}.zip</file>
98 <type>zip</type>
99 </artifact>
100 </artifacts>
101 </configuration>
102 </execution>
103 </executions>
104 </plugin>
105 </plugins>
106 </build>
AvinashS3c4d26e2017-09-07 13:46:54 +0000107</project>