blob: 15753ccdbf8df917dc1458dd425b628e005b16b2 [file] [log] [blame]
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03001<?xml version="1.0" encoding="UTF-8"?>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +03002<project xmlns="http://maven.apache.org/POM/4.0.0"
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03003 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">
4 <modelVersion>4.0.0</modelVersion>
Stone, Avi (as206k)e649f4e2018-05-14 14:14:30 +03005 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03006 <artifactId>dcae_dt_be</artifactId>
7 <packaging>war</packaging>
8 <name>DCAE DT BE</name>
9 <parent>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +030010 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030011 <artifactId>dcae_dt_be_main</artifactId>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +030012 <version>1.3.0-SNAPSHOT</version>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030013 </parent>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +030014
15 <properties>
16 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
17 </properties>
18
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030019 <dependencies>
20 <dependency>
21 <groupId>org.springframework.boot</groupId>
22 <artifactId>spring-boot-starter-web</artifactId>
23 <exclusions>
24 <exclusion>
25 <groupId>org.springframework.boot</groupId>
26 <artifactId>spring-boot-starter-tomcat</artifactId>
27 </exclusion>
28 </exclusions>
29 </dependency>
30 <dependency>
31 <groupId>org.springframework.boot</groupId>
32 <artifactId>spring-boot-starter-test</artifactId>
33 <scope>test</scope>
34 </dependency>
35 <dependency>
36 <groupId>org.apache.commons</groupId>
37 <artifactId>commons-lang3</artifactId>
38 <version>3.5</version>
39 </dependency>
40 <dependency>
41 <groupId>commons-net</groupId>
42 <artifactId>commons-net</artifactId>
43 <version>3.3</version>
44 </dependency>
45 <dependency>
46 <groupId>com.jcraft</groupId>
47 <artifactId>jsch</artifactId>
48 <version>0.1.54</version>
49 </dependency>
50 <dependency>
51 <groupId>com.google.code.gson</groupId>
52 <artifactId>gson</artifactId>
53 <version>2.8.0</version>
54 </dependency>
55 <dependency>
56 <groupId>org.json</groupId>
57 <artifactId>json</artifactId>
58 <version>20160810</version>
59 </dependency>
60 <dependency>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +030061 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030062 <artifactId>DCAE-DT-Catalog-ASDC</artifactId>
63 <version>${project.version}</version>
64 </dependency>
65 <dependency>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +030066 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030067 <artifactId>DCAE-DT-Catalog-API</artifactId>
68 <version>${project.version}</version>
69 </dependency>
70 <dependency>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +030071 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030072 <artifactId>DCAE-DT-Catalog-Commons</artifactId>
73 <version>${project.version}</version>
74 </dependency>
75 <dependency>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +030076 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030077 <artifactId>DCAE-DT-Catalog-DB</artifactId>
78 <version>${project.version}</version>
79 </dependency>
80 <dependency>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +030081 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030082 <artifactId>DCAE-DT-Catalog-Service</artifactId>
83 <version>${project.version}</version>
84 </dependency>
85 <dependency>
86 <groupId>org.powermock</groupId>
87 <artifactId>powermock-module-junit4</artifactId>
88 <version>1.6.4</version>
89 <scope>test</scope>
90 </dependency>
91 <dependency>
92 <groupId>org.powermock</groupId>
93 <artifactId>powermock-api-mockito</artifactId>
94 <version>1.6.4</version>
95 <scope>test</scope>
96 </dependency>
97 <dependency>
98 <groupId>org.testng</groupId>
99 <artifactId>testng</artifactId>
100 <version>6.9.10</version>
101 <scope>test</scope>
102 </dependency>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300103 <dependency>
104 <groupId>com.googlecode.json-simple</groupId>
105 <artifactId>json-simple</artifactId>
106 <version>1.1.1</version>
107 </dependency>
108 <dependency>
109 <groupId>io.springfox</groupId>
110 <artifactId>springfox-swagger2</artifactId>
111 <version>2.6.1</version>
112 <scope>compile</scope>
113 </dependency>
114 <dependency>
115 <groupId>io.springfox</groupId>
116 <artifactId>springfox-swagger-ui</artifactId>
117 <version>2.6.1</version>
118 <scope>compile</scope>
119 </dependency>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300120 <dependency>
121 <groupId>javax.servlet</groupId>
122 <artifactId>javax.servlet-api</artifactId>
123 <version>4.0.0</version>
124 <scope>provided</scope>
125 </dependency>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +0300126 </dependencies>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300127 <profiles>
128 <profile>
129 <id>local</id>
130 <activation>
131 <activeByDefault>false</activeByDefault>
132 </activation>
133 <dependencies>
134 <dependency>
135 <groupId>org.springframework.boot</groupId>
136 <artifactId>spring-boot-starter-jetty</artifactId>
137 <version>1.5.2.RELEASE</version>
138 <exclusions>
139 <exclusion>
140 <groupId>org.eclipse.jetty.websocket</groupId>
141 <artifactId>*</artifactId>
142 </exclusion>
143 </exclusions>
144 </dependency>
145 <dependency>
146 <groupId>javax.servlet</groupId>
147 <artifactId>javax.servlet-api</artifactId>
148 <version>4.0.0</version>
149 <scope>provided</scope>
150 </dependency>
151 </dependencies>
152 </profile>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300153 <!--<profile>-->
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +0300154 <!--<id>server</id>-->
155 <!--<activation>-->
156 <!--<activeByDefault>true</activeByDefault>-->
157 <!--</activation>-->
158 <!--<dependencies>-->
159 <!--<dependency>-->
160 <!--<groupId>javax.servlet</groupId>-->
161 <!--<artifactId>javax.servlet-api</artifactId>-->
162 <!--<version>4.0.0</version>-->
163 <!--</dependency>-->
164 <!--</dependencies>-->
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300165 <!--</profile>-->
166
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300167 <profile>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +0300168 <id>docker</id>
Stone, Avi (as206k)c936da82018-05-17 13:04:39 +0300169 <build>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +0300170 <plugins>
Areli, Fuss (af732p)a808ee12018-05-17 20:15:19 +0300171 <plugin>
172 <artifactId>maven-clean-plugin</artifactId>
173 <executions>
174 <execution>
175 <id>delete dcae be war</id>
176 <phase>clean</phase>
177 <goals>
178 <goal>clean</goal>
179 </goals>
180 <configuration>
181 <filesets>
182 <fileset>
183 <directory>${project.parent.basedir}/docker/docker_be/target</directory>
184 <followSymlinks>false</followSymlinks>
185 <includes>
186 <include>*.war</include>
187 </includes>
188 </fileset>
189 </filesets>
190 </configuration>
191 </execution>
192 </executions>
193 </plugin>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +0300194 <plugin>
Stone, Avi (as206k)c936da82018-05-17 13:04:39 +0300195 <artifactId>maven-resources-plugin</artifactId>
196 <version>3.0.2</version>
197 <executions>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300198 <execution>
199 <id>copy-dcae-be-war</id>
Areli, Fuss (af732p)a808ee12018-05-17 20:15:19 +0300200 <phase>install</phase>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +0300201 <goals>
202 <goal>copy-resources</goal>
203 </goals>
204 <configuration>
205 <outputDirectory>${project.parent.basedir}/docker/docker_be/target</outputDirectory>
206 <resources>
207 <resource>
208 <directory>${project.basedir}/target</directory>
209 <includes>
210 <include>dcae.war</include>
211 </includes>
212 </resource>
213 </resources>
214 </configuration>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300215 </execution>
Stone, Avi (as206k)c936da82018-05-17 13:04:39 +0300216 </executions>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300217 </plugin>
218 <plugin>
Stone, Avi (as206k)e59dd952018-05-17 14:57:16 +0300219 <groupId>io.fabric8</groupId>
220 <artifactId>docker-maven-plugin</artifactId>
221 <version>0.23.0</version>
222 <configuration>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300223 <verbose>true</verbose>
224 <apiVersion>1.23</apiVersion>
225 <registry>nexus3.onap.org:10001</registry>
226 <authConfig>
227 <pull>
228 <username>docker</username>
229 <password>docker</password>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +0300230 </pull>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300231 </authConfig>
232 <images>
233 <!-- Build backend image -->
234 <image>
235 <name>onap/dcae-be</name>
236 <alias>dcae-be</alias>
237 <build>
238 <cleanup>try</cleanup>
239 <dockerFileDir>${project.parent.basedir}/docker/docker_be</dockerFileDir>
240 <tags>
241 <tag>${docker.tag}</tag>
242 <tag>${docker.latest.tag}</tag>
243 <tag>${docker.staging.tag}</tag>
244 </tags>
245 </build>
246 </image>
247 </images>
Stone, Avi (as206k)e59dd952018-05-17 14:57:16 +0300248 </configuration>
249 <executions>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300250 <execution>
251 <id>clean-images</id>
252 <phase>pre-clean</phase>
253 <goals>
254 <goal>remove</goal>
255 </goals>
256 <configuration>
257 <removeAll>true</removeAll>
258 <image>onap/dcae-be</image>
259 </configuration>
260 </execution>
261 <execution>
262 <id>generate-images</id>
Areli, Fuss (af732p)a808ee12018-05-17 20:15:19 +0300263 <phase>install</phase>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300264 <goals>
265 <goal>build</goal>
266 </goals>
267 </execution>
268 <execution>
269 <id>push-images</id>
270 <phase>deploy</phase>
271 <goals>
272 <goal>push</goal>
273 </goals>
274 <configuration>
275 <image>onap/dcae-be</image>
276 </configuration>
277 </execution>
Stone, Avi (as206k)e59dd952018-05-17 14:57:16 +0300278 </executions>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +0300279 </plugin>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +0300280 </plugins>
281 </build>
282 </profile>
Stone, Avi (as206k)c936da82018-05-17 13:04:39 +0300283
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300284 </profiles>
285 <build>
286 <finalName>dcae</finalName>
287 <plugins>
288 <plugin>
289 <groupId>org.apache.maven.plugins</groupId>
290 <artifactId>maven-surefire-plugin</artifactId>
291 </plugin>
292 <plugin>
293 <groupId>org.springframework.boot</groupId>
294 <artifactId>spring-boot-maven-plugin</artifactId>
295 <configuration>
296 <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
297 <webResources>
298 <resource>
299 <!-- this is relative to the pom.xml directory -->
300 <directory>src/main/webapp/</directory>
301 </resource>
302 </webResources>
303 </configuration>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300304 </plugin>
305 <plugin>
306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-war-plugin</artifactId>
308 <configuration>
309 <archive>
310 <manifestEntries>
311 <Specification-Version>${project.version}</Specification-Version>
312 </manifestEntries>
313 </archive>
314 </configuration>
315 </plugin>
316 </plugins>
317 </build>
318</project>