Update pom and docker version of vfc-emsdriver
[vfc/nfvo/driver/ems.git] / ems / microservice-standalone / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3     Copyright (c) 2017, CMCC Technologies Co., Ltd.\r
4 \r
5     Licensed under the Apache License, Version 2.0 (the "License");\r
6     you may not use this file except in compliance with the License.\r
7     You may obtain a copy of the License at\r
8 \r
9     http://www.apache.org/licenses/LICENSE-2.0\r
10 \r
11     Unless required by applicable law or agreed to in writing, software\r
12     distributed under the License is distributed on an "AS IS" BASIS,\r
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14     See the License for the specific language governing permissions and\r
15     limitations under the License.\r
16  -->\r
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/maven-v4_0_0.xsd">\r
18     <parent>\r
19         <groupId>org.onap.vfc.nfvo.driver.ems.ems</groupId>\r
20         <artifactId>ems-driver-boco-parent</artifactId>\r
21         <version>1.2.0-SNAPSHOT</version>\r
22     </parent>\r
23     <modelVersion>4.0.0</modelVersion>\r
24     <artifactId>emsdriver-standalone</artifactId>\r
25         <version>1.2.0-SNAPSHOT</version>\r
26     <name>vfc-nfvo-driver-ems-ems-microservice-standalone</name>\r
27     <packaging>pom</packaging>\r
28 \r
29     <properties>\r
30         <packagename>onap-emsdriver</packagename>\r
31     </properties>\r
32 \r
33     <build>\r
34 \r
35         <plugins>\r
36             <plugin>\r
37                 <artifactId>maven-resources-plugin</artifactId>\r
38                 <executions>\r
39                     <execution>\r
40                         <id>copy-resources</id>\r
41                         <phase>process-resources</phase>\r
42                         <goals>\r
43                             <goal>copy-resources</goal>\r
44                         </goals>\r
45                         <configuration>\r
46                             <outputDirectory>${basedir}/target/assembly/</outputDirectory>\r
47                             <resources>\r
48                                 <resource>\r
49                                     <directory>src/main/assembly/</directory>\r
50                                     <filtering>false</filtering>\r
51                                     <includes>\r
52                                         <include>**/*</include>\r
53                                     </includes>\r
54                                 </resource>\r
55                             </resources>\r
56                             <overwrite>true</overwrite>\r
57                         </configuration>\r
58                     </execution>\r
59                 </executions>\r
60             </plugin>\r
61             <plugin>\r
62                 <groupId>org.apache.maven.plugins</groupId>\r
63                 <artifactId>maven-dependency-plugin</artifactId>\r
64                 <version>2.8</version>\r
65                 <executions>\r
66                     <execution>\r
67                         <id>copy-jar</id>\r
68                         <goals>\r
69                             <goal>copy</goal>\r
70                         </goals>\r
71                         <phase>prepare-package</phase>\r
72                         <configuration>\r
73                             <artifactItems>\r
74                                 <artifactItem>\r
75                                     <groupId>org.onap.vfc.nfvo.driver.ems.ems</groupId>\r
76                                     <artifactId>boco-driver</artifactId>\r
77                                     <type>jar</type>\r
78                                     <overWrite>true</overWrite>\r
79                                     <outputDirectory>target/assembly/</outputDirectory>\r
80                                     <destFileName>boco-driver.jar</destFileName>\r
81                                 </artifactItem>\r
82                             </artifactItems>\r
83                         </configuration>\r
84                     </execution>\r
85                 </executions>\r
86             </plugin>\r
87             <plugin>\r
88                 <groupId>org.apache.maven.plugins</groupId>\r
89                 <artifactId>maven-antrun-plugin</artifactId>\r
90                 <executions>\r
91                     <execution>\r
92                         <id>zip</id>\r
93                         <phase>package</phase>\r
94                         <goals>\r
95                             <goal>run</goal>\r
96                         </goals>\r
97                         <configuration>\r
98                             <tasks name="${project.artifactId}">\r
99                                 <zip destfile="target/${packagename}-${project.version}.zip" update="true">\r
100                                     <zipfileset dir="target/assembly" includes="**" />\r
101                                 </zip>\r
102                             </tasks>\r
103                         </configuration>\r
104                     </execution>\r
105                     <!--execution>\r
106                         <id>prapare repos env</id>\r
107                         <phase>install</phase>\r
108                         <goals>\r
109                             <goal>run</goal>\r
110                         </goals>\r
111                         <configuration>\r
112                             <target>\r
113                                 <taskdef resource="net/sf/antcontrib/antlib.xml">\r
114                                     <classpath>\r
115                                         <pathelement location="${ant-contrib:ant-contrib:jar}" />\r
116                                     </classpath>\r
117                                 </taskdef>\r
118                                 <if>\r
119                                     <contains string="${project.version}" substring="SNAPSHOT" />\r
120                                     <then>\r
121                                         <property name="repos.url" value="${project.distributionManagement.snapshotRepository.url}" />\r
122                                         <property name="repos.id" value="${project.distributionManagement.snapshotRepository.id}" />\r
123                                     </then>\r
124                                     <else>\r
125                                         <property name="repos.url" value="${project.distributionManagement.repository.url}" />\r
126                                         <property name="repos.id" value="${project.distributionManagement.repository.id}" />\r
127                                     </else>\r
128                                 </if>\r
129                                 <echo>set repos.url: ${repos.url}</echo>\r
130                                 <echo>set repos.id: ${repos.id}</echo>\r
131                             </target>\r
132                             <exportAntProperties>true</exportAntProperties>\r
133                         </configuration>\r
134                     </execution>\r
135                     <execution>\r
136                         <id>echo repos env</id>\r
137                         <phase>install</phase>\r
138                         <goals>\r
139                             <goal>run</goal>\r
140                         </goals>\r
141                         <configuration>\r
142                             <target>\r
143                                 <echo>[prepare deploy] repos.url: ${repos.url}</echo>\r
144                                 <echo>[prepare deploy] repos.id: ${repos.id}</echo>\r
145                             </target>\r
146                         </configuration>\r
147                     </execution-->\r
148                 </executions>\r
149             </plugin>\r
150             <plugin>\r
151                 <groupId>org.codehaus.mojo</groupId>\r
152                 <artifactId>build-helper-maven-plugin</artifactId>\r
153                 <executions>\r
154                     <execution>\r
155                         <id>attach-artifacts</id>\r
156                         <phase>package</phase>\r
157                         <goals>\r
158                             <goal>attach-artifact</goal>\r
159                         </goals>\r
160                         <configuration>\r
161                             <artifacts>\r
162                                 <artifact>\r
163                                     <file>target/${packagename}-${project.version}.zip</file>\r
164                                     <type>zip</type>\r
165                                 </artifact>\r
166                             </artifacts>\r
167                         </configuration>\r
168                     </execution>\r
169                 </executions>\r
170             </plugin>\r
171             <!--plugin>\r
172                 <groupId>org.apache.maven.plugins</groupId>\r
173                 <artifactId>maven-deploy-plugin</artifactId>\r
174                 <executions>\r
175                     <execution>\r
176                         <id>deploy-zip-file</id>\r
177                         <phase>install</phase>\r
178                         <goals>\r
179                             <goal>deploy-file</goal>\r
180                         </goals>\r
181                         <configuration>\r
182                             <url>${repos.url}</url>\r
183                             <repositoryId>${repos.id}</repositoryId>\r
184                             <groupId>${deploy.openo.groupid}</groupId>\r
185                             <artifactId>${packagename}</artifactId>\r
186                             <version>${project.version}</version>\r
187                             <packaging>zip</packaging>\r
188                             <file>target/${packagename}-${project.version}.zip</file>\r
189                         </configuration>\r
190                     </execution>\r
191                 </executions>\r
192             </plugin-->\r
193         </plugins>\r
194 \r
195     </build>\r
196         <dependencyManagement>\r
197     <dependencies>\r
198         <dependency>\r
199             <groupId>ant-contrib</groupId>\r
200             <artifactId>ant-contrib</artifactId>\r
201         </dependency>\r
202         <dependency>\r
203             <groupId>org.onap.vfc.nfvo.driver.ems.ems</groupId>\r
204             <artifactId>boco-driver</artifactId>\r
205             <version>${project.version}</version>\r
206         </dependency>\r
207     </dependencies>\r
208         </dependencyManagement>\r
209 </project>\r
210 \r