Update the version of vfc-nfvo-driver-vnfm-svnfm
[vfc/nfvo/driver/vnfm/svnfm.git] / huawei / vnfmadapter / VnfmadapterService / deployment / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     Copyright (c) 2016-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  -->
17 <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">
18     <modelVersion>4.0.0</modelVersion>
19     <parent>
20         <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.huawei.vnfmadapter</groupId>
21         <artifactId>vnfmadapter-service-root</artifactId>
22         <version>1.4.0-SNAPSHOT</version>
23     </parent>
24
25     <artifactId>hw-vnfmadapter-deployment</artifactId>
26     <packaging>pom</packaging>
27
28     <properties>
29         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30         <java.version>11</java.version>
31     </properties>
32
33     <build>
34         <plugins>
35             <plugin>
36                 <groupId>org.codehaus.gmaven</groupId>
37                 <artifactId>gmaven-plugin</artifactId>
38                 <version>1.5</version>
39                 <executions>
40                     <execution>
41                         <id>vnfmadapter package</id>
42                         <phase>package</phase>
43                         <goals>
44                             <goal>execute</goal>
45                         </goals>
46                         <configuration>
47                             <source>
48                                 System.out.println("******** Going to make release zip ********")
49
50                                 deployFolder =
51                                 "${project.build.directory}/deployoutput"
52                                 deployUnzip =
53                                 "${project.build.directory}/deployunzip"
54                                 outfileName =
55                                 "${package.name}-${project.version}.zip"
56                                 ant.delete(dir: "${deployFolder}")
57                                 ant.mkdir(dir:
58                                 "${deployFolder}")
59
60                                 ant.delete(dir: "${deployUnzip}")
61                                 ant.mkdir(dir: "${deployUnzip}")
62
63                                 ant.mkdir(dir:
64                                 "${deployUnzip}/webapps/")
65                                 ant.mkdir(dir: "${deployUnzip}/webapps/ROOT")
66                                 ant.mkdir(dir:
67                                 "${deployUnzip}/logs")
68
69                                 ant.copy(todir: "${deployUnzip}") {
70                                 fileset(dir: "${basedir}/src/main/release"){
71                                 exclude(name: "**/.gitignore")
72                                 }
73                                 }
74                                 ant.copy(todir: "${deployUnzip}/docker") {
75                                 fileset(dir: "${basedir}/../docker"){
76                                 exclude(name: "**/.gitignore")
77                                 }
78                                 }
79                                 ant.copy(todir:
80                                 "${deployUnzip}/webapps/ROOT") {
81                                 fileset(dir:
82                                 "${project.build.directory}/../../service/target/${package.name}-${project.version}")
83                                 }
84
85                                 ant.zip(destfile:
86                                 "${deployFolder}/${outfileName}") {
87                                 fileset(dir: "${deployUnzip}")
88                                 }
89                                 System.out.println("******** completed. ************")
90                             </source>
91                         </configuration>
92                     </execution>
93                 </executions>
94             </plugin>
95
96             <plugin>
97                 <groupId>org.codehaus.mojo</groupId>
98                 <artifactId>build-helper-maven-plugin</artifactId>
99                 <executions>
100                     <execution>
101                         <id>attach-artifacts</id>
102                         <phase>package</phase>
103                         <goals>
104                             <goal>attach-artifact</goal>
105                         </goals>
106                         <configuration>
107                             <artifacts>
108                                 <artifact>
109                                     <file>${project.build.directory}/deployoutput/${package.name}-${project.version}.zip</file>
110                                     <type>zip</type>
111                                 </artifact>
112                             </artifacts>
113                         </configuration>
114                     </execution>
115                 </executions>
116             </plugin>
117
118
119
120         </plugins>
121     </build>
122 <name>vfc/nfvo/drivers/vnfm/svnfm/huawei/vnfmadapter/VnfmadapterService/deployment</name></project>