fix pom
[sdc/dcae-d/dt-be-main.git] / dcaedt_be / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project
3         xmlns="http://maven.apache.org/POM/4.0.0"
4         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">
5         <modelVersion>4.0.0</modelVersion>
6         <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
7         <artifactId>dcae_dt_be</artifactId>
8         <packaging>war</packaging>
9         <name>DCAE DT BE</name>
10         <parent>
11                 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
12                 <artifactId>dcae_dt_be_main</artifactId>
13                 <version>1.2.0-SNAPSHOT</version>
14         </parent>
15
16         <properties>
17                 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
18         </properties>
19
20         <dependencies>
21                 <dependency>
22                         <groupId>org.springframework.boot</groupId>
23                         <artifactId>spring-boot-starter-web</artifactId>
24                         <exclusions>
25                                 <exclusion>
26                                         <groupId>org.springframework.boot</groupId>
27                                         <artifactId>spring-boot-starter-tomcat</artifactId>
28                                 </exclusion>
29                         </exclusions>
30                 </dependency>
31                 <dependency>
32                         <groupId>org.springframework.boot</groupId>
33                         <artifactId>spring-boot-starter-test</artifactId>
34                         <scope>test</scope>
35                 </dependency>
36                 <dependency>
37                         <groupId>org.apache.commons</groupId>
38                         <artifactId>commons-lang3</artifactId>
39                         <version>3.5</version>
40                 </dependency>
41                 <dependency>
42                         <groupId>commons-net</groupId>
43                         <artifactId>commons-net</artifactId>
44                         <version>3.3</version>
45                 </dependency>
46                 <dependency>
47                         <groupId>com.jcraft</groupId>
48                         <artifactId>jsch</artifactId>
49                         <version>0.1.54</version>
50                 </dependency>
51                 <dependency>
52                         <groupId>com.google.code.gson</groupId>
53                         <artifactId>gson</artifactId>
54                         <version>2.8.0</version>
55                 </dependency>
56                 <dependency>
57                         <groupId>org.json</groupId>
58                         <artifactId>json</artifactId>
59                         <version>20160810</version>
60                 </dependency>
61                 <dependency>
62                         <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
63                         <artifactId>DCAE-DT-Catalog-ASDC</artifactId>
64                         <version>${project.version}</version>
65                 </dependency>
66                 <dependency>
67                         <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
68                         <artifactId>DCAE-DT-Catalog-API</artifactId>
69                         <version>${project.version}</version>
70                 </dependency>
71                 <dependency>
72                         <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
73                         <artifactId>DCAE-DT-Catalog-Commons</artifactId>
74                         <version>${project.version}</version>
75                 </dependency>
76                 <dependency>
77                         <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
78                         <artifactId>DCAE-DT-Catalog-DB</artifactId>
79                         <version>${project.version}</version>
80                 </dependency>
81                 <dependency>
82                         <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
83                         <artifactId>DCAE-DT-Catalog-Service</artifactId>
84                         <version>${project.version}</version>
85                 </dependency>
86                 <dependency>
87                         <groupId>org.powermock</groupId>
88                         <artifactId>powermock-module-junit4</artifactId>
89                         <version>1.6.4</version>
90                         <scope>test</scope>
91                 </dependency>
92                 <dependency>
93                         <groupId>org.powermock</groupId>
94                         <artifactId>powermock-api-mockito</artifactId>
95                         <version>1.6.4</version>
96                         <scope>test</scope>
97                 </dependency>
98                 <dependency>
99                         <groupId>org.testng</groupId>
100                         <artifactId>testng</artifactId>
101                         <version>6.9.10</version>
102                         <scope>test</scope>
103                 </dependency>
104                 <dependency>
105                         <groupId>com.googlecode.json-simple</groupId>
106                         <artifactId>json-simple</artifactId>
107                         <version>1.1.1</version>
108                 </dependency>
109                 <dependency>
110                         <groupId>io.springfox</groupId>
111                         <artifactId>springfox-swagger2</artifactId>
112                         <version>2.6.1</version>
113                         <scope>compile</scope>
114                 </dependency>
115                 <dependency>
116                         <groupId>io.springfox</groupId>
117                         <artifactId>springfox-swagger-ui</artifactId>
118                         <version>2.6.1</version>
119                         <scope>compile</scope>
120                 </dependency>
121                 <dependency>
122                         <groupId>javax.servlet</groupId>
123                         <artifactId>javax.servlet-api</artifactId>
124                         <version>4.0.0</version>
125                         <scope>provided</scope>
126                 </dependency>
127     </dependencies>
128         <profiles>
129                 <profile>
130                         <id>local</id>
131                         <activation>
132                                 <activeByDefault>false</activeByDefault>
133                         </activation>
134                         <dependencies>
135                                 <dependency>
136                                         <groupId>org.springframework.boot</groupId>
137                                         <artifactId>spring-boot-starter-jetty</artifactId>
138                                         <version>1.5.2.RELEASE</version>
139                                         <exclusions>
140                                                 <exclusion>
141                                                         <groupId>org.eclipse.jetty.websocket</groupId>
142                                                         <artifactId>*</artifactId>
143                                                 </exclusion>
144                                         </exclusions>
145                                 </dependency>
146                                 <dependency>
147                                         <groupId>javax.servlet</groupId>
148                                         <artifactId>javax.servlet-api</artifactId>
149                                         <version>4.0.0</version>
150                                         <scope>provided</scope>
151                                 </dependency>
152                         </dependencies>
153                 </profile>
154                 <!--<profile>-->
155                         <!--<id>server</id>-->
156                         <!--<activation>-->
157                                 <!--<activeByDefault>true</activeByDefault>-->
158                         <!--</activation>-->
159                         <!--<dependencies>-->
160                                 <!--<dependency>-->
161                                         <!--<groupId>javax.servlet</groupId>-->
162                                         <!--<artifactId>javax.servlet-api</artifactId>-->
163                                         <!--<version>4.0.0</version>-->
164                                 <!--</dependency>-->
165                         <!--</dependencies>-->
166                 <!--</profile>-->
167
168                 <profile>
169                      <id>docker</id>
170                         <build>
171                             <plugins>
172                                     <plugin>
173                                                 <artifactId>maven-resources-plugin</artifactId>
174                                                 <version>3.0.2</version>
175                                                 <executions>
176                                                         <execution>
177                                                                 <id>copy-dcae-be-war</id>
178                                                                 <phase>prepare-package</phase>
179                                                                         <goals>
180                                                                                 <goal>copy-resources</goal>
181                                                                         </goals>
182                                                                         <configuration>
183                                                                                 <outputDirectory>${project.parent.basedir}/docker/docker_be/target</outputDirectory>
184                                                                                 <resources>
185                                                                                         <resource>
186                                                                                                 <directory>${project.basedir}/target</directory>
187                                                                                                 <includes>
188                                                                                                         <include>dcae.war</include>
189                                                                                                 </includes>
190                                                                                         </resource>
191                                                                                 </resources>
192                                                                         </configuration>
193                                                         </execution>
194                                                 </executions>
195                                         </plugin>
196                                         <plugin>
197                                                 <groupId>io.fabric8</groupId>
198                                                 <artifactId>docker-maven-plugin</artifactId>
199                                                 <version>0.23.0</version>
200                                                 <configuration>
201                                                         <verbose>true</verbose>
202                                                         <apiVersion>1.23</apiVersion>
203                                                         <registry>nexus3.onap.org:10001</registry>
204                                                         <authConfig>
205                                                                 <pull>
206                                                                         <username>docker</username>
207                                                                         <password>docker</password>
208                                                                  </pull>
209                                                         </authConfig>
210                                                         <images>
211                                                                 <!-- Build backend image -->
212                                                                 <image>
213                                                                         <name>onap/dcae-be</name>
214                                                                         <alias>dcae-be</alias>
215                                                                         <build>
216                                                                                 <cleanup>try</cleanup>
217                                                                                 <dockerFileDir>${project.parent.basedir}/docker/docker_be</dockerFileDir>
218                                                                                 <tags>
219                                                                                         <tag>${docker.tag}</tag>
220                                                                                         <tag>${docker.latest.tag}</tag>
221                                                                                         <tag>${docker.staging.tag}</tag>
222                                                                                 </tags>
223                                                                         </build>
224                                                                 </image>
225                                                         </images>
226                                                 </configuration>
227                                                 <executions>
228                                                         <execution>
229                                                                 <id>clean-images</id>
230                                                                 <phase>pre-clean</phase>
231                                                                 <goals>
232                                                                         <goal>remove</goal>
233                                                                 </goals>
234                                                                 <configuration>
235                                                                         <removeAll>true</removeAll>
236                                                                         <image>onap/dcae-be</image>
237                                                                 </configuration>
238                                                         </execution>
239                                                         <execution>
240                                                                 <id>generate-images</id>
241                                                                 <phase>package</phase>
242                                                                 <goals>
243                                                                         <goal>build</goal>
244                                                                 </goals>
245                                                         </execution>
246                                                         <execution>
247                                                                 <id>push-images</id>
248                                                                 <phase>deploy</phase>
249                                                                 <goals>
250                                                                         <goal>push</goal>
251                                                                 </goals>
252                                                                 <configuration>
253                                                                         <image>onap/dcae-be</image>
254                                                                 </configuration>
255                                                         </execution>
256                                                 </executions>
257                                         </plugin>
258                         </plugins>
259                 </build>
260         </profile>
261
262         </profiles>
263         <build>
264                 <finalName>dcae</finalName>
265                 <plugins>
266                         <plugin>
267                                 <groupId>org.apache.maven.plugins</groupId>
268                                 <artifactId>maven-surefire-plugin</artifactId>
269                         </plugin>
270                         <plugin>
271                                 <groupId>org.springframework.boot</groupId>
272                                 <artifactId>spring-boot-maven-plugin</artifactId>
273                                 <configuration>
274                                         <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
275                                         <webResources>
276                                                 <resource>
277                                                         <!-- this is relative to the pom.xml directory -->
278                                                         <directory>src/main/webapp/</directory>
279                                                 </resource>
280                                         </webResources>
281                                 </configuration>
282                         </plugin>
283                         <plugin>
284                                 <groupId>org.apache.maven.plugins</groupId>
285                                 <artifactId>maven-war-plugin</artifactId>
286                                 <configuration>
287                                         <archive>
288                                                 <manifestEntries>
289                                                         <Specification-Version>${project.version}</Specification-Version>
290                                                 </manifestEntries>
291                                         </archive>
292                                 </configuration>
293                         </plugin>
294                 </plugins>
295         </build>
296 </project>