security check issues
[sdc/dcae-d/dt-be-main.git] / dcaedt_be / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" 
3         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>
5         <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
6         <artifactId>dcae_dt_be</artifactId>
7         <packaging>war</packaging>
8         <name>DCAE DT BE</name>
9         <parent>
10                 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
11                 <artifactId>dcae_dt_be_main</artifactId>
12                 <version>1.3.0-SNAPSHOT</version>
13         </parent>
14
15         <properties>
16                 <!--suppress UnresolvedMavenProperty -->
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>2.0.0-beta.5</version>
90                         <scope>test</scope>
91                 </dependency>
92                 <dependency>
93                         <groupId>org.powermock</groupId>
94                         <artifactId>powermock-api-mockito2</artifactId>
95                         <version>2.0.0-beta.5</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.8.0</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>2.0.5.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-clean-plugin</artifactId>
174                                                 <executions>
175                                                         <execution>
176                                                                 <id>delete dcae be war</id>
177                                                                 <phase>clean</phase>
178                                                                 <goals>
179                                                                         <goal>clean</goal>
180                                                                 </goals>
181                                                                 <configuration>
182                                                                         <filesets>
183                                                                                 <fileset>
184                                                                                         <directory>${project.parent.basedir}/docker/docker_be/target</directory>
185                                                                                         <followSymlinks>false</followSymlinks>
186                                                                                         <includes>
187                                                                                                 <include>*.war</include>
188                                                                                         </includes>
189                                                                                 </fileset>
190                                                                         </filesets>
191                                                                 </configuration>
192                                                         </execution>
193                                                 </executions>
194                                         </plugin>
195                                         <plugin>
196                                                 <artifactId>maven-resources-plugin</artifactId>
197                                                 <version>3.0.2</version>
198                                                 <executions>
199                                                         <execution>
200                                                                 <id>copy-dcae-be-war</id>
201                                                                 <phase>install</phase>
202                                                                 <goals>
203                                                                         <goal>copy-resources</goal>
204                                                                 </goals>
205                                                                 <configuration>
206                                                                         <outputDirectory>${project.parent.basedir}/docker/docker_be/target</outputDirectory>
207                                                                         <resources>
208                                                                                 <resource>
209                                                                                         <directory>${project.basedir}/target</directory>
210                                                                                         <includes>
211                                                                                                 <include>dcae.war</include>
212                                                                                         </includes>
213                                                                                 </resource>
214                                                                         </resources>
215                                                                 </configuration>
216                                                         </execution>
217                                                 </executions>
218                                         </plugin>
219                                         <plugin>
220                                                 <groupId>io.fabric8</groupId>
221                                                 <artifactId>docker-maven-plugin</artifactId>
222                                                 <version>0.23.0</version>
223                                                 <configuration>
224                                                         <verbose>true</verbose>
225                                                         <apiVersion>1.23</apiVersion>
226                                                         <registry>nexus3.onap.org:10001</registry>
227                                                         <authConfig>
228                                                                 <pull>
229                                                                         <username>docker</username>
230                                                                         <password>docker</password>
231                                                                 </pull>
232                                                         </authConfig>
233                                                         <images>
234                                                                 <!-- Build backend image -->
235                                                                 <image>
236                                                                         <name>onap/dcae-be</name>
237                                                                         <alias>dcae-be</alias>
238                                                                         <build>
239                                                                                 <cleanup>try</cleanup>
240                                                                                 <dockerFileDir>${project.parent.basedir}/docker/docker_be</dockerFileDir>
241                                                                                 <tags>
242                                                                                         <tag>${docker.tag}</tag>
243                                                                                         <tag>${docker.latest.tag}</tag>
244                                                                                         <tag>${docker.staging.tag}</tag>
245                                                                                 </tags>
246                                                                         </build>
247                                                                 </image>
248                                                         </images>
249                                                 </configuration>
250                                                 <executions>
251                                                         <execution>
252                                                                 <id>clean-images</id>
253                                                                 <phase>pre-clean</phase>
254                                                                 <goals>
255                                                                         <goal>remove</goal>
256                                                                 </goals>
257                                                                 <configuration>
258                                                                         <removeAll>true</removeAll>
259                                                                         <image>onap/dcae-be</image>
260                                                                 </configuration>
261                                                         </execution>
262                                                         <execution>
263                                                                 <id>generate-images</id>
264                                                                 <phase>install</phase>
265                                                                 <goals>
266                                                                         <goal>build</goal>
267                                                                 </goals>
268                                                         </execution>
269                                                         <execution>
270                                                                 <id>push-images</id>
271                                                                 <phase>deploy</phase>
272                                                                 <goals>
273                                                                         <goal>push</goal>
274                                                                 </goals>
275                                                                 <configuration>
276                                                                         <image>onap/dcae-be</image>
277                                                                 </configuration>
278                                                         </execution>
279                                                 </executions>
280                                         </plugin>
281                                 </plugins>
282                         </build>
283                 </profile>
284
285         </profiles>
286         <build>
287                 <finalName>dcae</finalName>
288                 <plugins>
289                         <plugin>
290                                 <groupId>org.apache.maven.plugins</groupId>
291                                 <artifactId>maven-surefire-plugin</artifactId>
292                         </plugin>
293                         <plugin>
294                                 <groupId>org.springframework.boot</groupId>
295                                 <artifactId>spring-boot-maven-plugin</artifactId>
296                                 <executions>
297                                         <execution>
298                                                 <goals>
299                                                         <goal>repackage</goal>
300                                                 </goals>
301                                                 <configuration>
302                                                         <classifier>exec</classifier>
303                                                 </configuration>
304                                         </execution>
305                                 </executions>
306                                 <configuration>
307                                         <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
308                                         <webResources>
309                                                 <resource>
310                                                         <!-- this is relative to the pom.xml directory -->
311                                                         <directory>src/main/webapp/</directory>
312                                                 </resource>
313                                         </webResources>
314                                 </configuration>
315                         </plugin>
316                         <plugin>
317                                 <groupId>org.apache.maven.plugins</groupId>
318                                 <artifactId>maven-war-plugin</artifactId>
319                                 <configuration>
320                                         <archive>
321                                                 <manifestEntries>
322                                                         <Specification-Version>${project.version}</Specification-Version>
323                                                 </manifestEntries>
324                                         </archive>
325                                 </configuration>
326                         </plugin>
327                 </plugins>
328         </build>
329 </project>