Fix for NexusIQ security vunerabilities
[aai/champ.git] / champ-service / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2017-2018 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.aai</groupId>
28         <artifactId>champ</artifactId>
29         <version>1.3.0-SNAPSHOT</version>
30     </parent>
31
32     <groupId>org.onap.aai.champ</groupId>
33     <artifactId>champ-service</artifactId>
34
35     <properties>
36         <docker.location>${basedir}/target</docker.location>
37         <docker.name>champ</docker.name>
38         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
39         <common.logging.groupid>org.onap.aai.logging-service</common.logging.groupid>
40         <common.logging.version>1.2.2</common.logging.version>
41
42         <version.org.apache.commons.commons-lang3>3.7</version.org.apache.commons.commons-lang3>
43         <version.org.hamcrest.hamcrest-library>1.3</version.org.hamcrest.hamcrest-library>
44         <version.org.springframework.boot.spring-boot-dependencies>1.5.15.RELEASE</version.org.springframework.boot.spring-boot-dependencies>
45     </properties>
46
47     <dependencyManagement>
48         <dependencies>
49             <dependency>
50                 <groupId>org.springframework.boot</groupId>
51                 <artifactId>spring-boot-dependencies</artifactId>
52                 <version>${version.org.springframework.boot.spring-boot-dependencies}</version>
53                 <type>pom</type>
54                 <scope>import</scope>
55             </dependency>
56
57             <dependency>
58                 <groupId>org.apache.httpcomponents</groupId>
59                 <artifactId>httpclient</artifactId>
60                 <version>4.5.3</version>
61             </dependency>
62
63             <dependency>
64                 <groupId>org.apache.httpcomponents</groupId>
65                 <artifactId>httpclient-cache</artifactId>
66                 <version>4.5.3</version>
67             </dependency>
68         </dependencies>
69     </dependencyManagement>
70
71     <dependencies>
72         <dependency>
73             <groupId>org.springframework.boot</groupId>
74             <artifactId>spring-boot-starter-web</artifactId>
75             <exclusions>
76                 <exclusion>
77                     <groupId>org.springframework.boot</groupId>
78                     <artifactId>spring-boot-starter-tomcat</artifactId>
79                 </exclusion>
80                 <exclusion>
81                     <groupId>ch.qos.logback</groupId>
82                     <artifactId>logback-classic</artifactId>
83                 </exclusion>
84             </exclusions>
85         </dependency>
86
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter-jetty</artifactId>
90         </dependency>
91
92         <dependency>
93             <groupId>org.springframework.boot</groupId>
94             <artifactId>spring-boot-starter-jersey</artifactId>
95         </dependency>
96
97         <dependency>
98             <groupId>dom4j</groupId>
99             <artifactId>dom4j</artifactId>
100             <version>1.6.1</version>
101             <scope>provided</scope>
102         </dependency>
103
104         <dependency>
105             <groupId>org.json</groupId>
106             <artifactId>json</artifactId>
107             <version>20160212</version>
108         </dependency>
109
110         <dependency>
111             <groupId>commons-io</groupId>
112             <artifactId>commons-io</artifactId>
113             <version>2.4</version>
114         </dependency>
115
116         <dependency>
117             <groupId>com.google.code.gson</groupId>
118             <artifactId>gson</artifactId>
119             <version>2.6.2</version>
120         </dependency>
121
122          <dependency>
123           <groupId>com.google.guava</groupId>
124           <artifactId>guava</artifactId>
125         </dependency>
126
127         <dependency>
128             <groupId>${common.logging.groupid}</groupId>
129             <artifactId>common-logging</artifactId>
130             <version>${common.logging.version}</version>
131             <exclusions>
132                 <exclusion>
133                     <groupId>ch.qos.logback</groupId>
134                     <artifactId>logback-classic</artifactId>
135                 </exclusion>
136                 <exclusion>
137                     <groupId>ch.qos.logback</groupId>
138                     <artifactId>logback-core</artifactId>
139                 </exclusion>
140                 <exclusion>
141                     <groupId>org.slf4j</groupId>
142                     <artifactId>slf4j-api</artifactId>
143                 </exclusion>
144             </exclusions>
145         </dependency>
146
147         <dependency>
148             <groupId>org.eclipse.persistence</groupId>
149             <artifactId>eclipselink</artifactId>
150             <version>2.6.2</version>
151         </dependency>
152
153         <dependency>
154             <groupId>org.apache.commons</groupId>
155             <artifactId>commons-lang3</artifactId>
156             <version>3.7</version>
157         </dependency>
158
159         <dependency>
160             <groupId>org.onap.aai.champ.champ-lib</groupId>
161             <artifactId>champ-core</artifactId>
162             <version>${project.version}</version>
163             <scope>compile</scope>
164             <exclusions>
165                 <exclusion>
166                     <groupId>org.apache.hbase</groupId>
167                     <artifactId>hbase-client</artifactId>
168                 </exclusion>
169                 <exclusion>
170                     <groupId>log4j</groupId>
171                     <artifactId>log4j</artifactId>
172                 </exclusion>
173                 <exclusion>
174                     <groupId>log4j</groupId>
175                     <artifactId>apache-log4j-extras</artifactId>
176                 </exclusion>
177                 <exclusion>
178                     <groupId>org.slf4j</groupId>
179                     <artifactId>slf4j-api</artifactId>
180                 </exclusion>
181             </exclusions>
182         </dependency>
183
184         <dependency>
185             <groupId>org.hamcrest</groupId>
186             <artifactId>hamcrest-library</artifactId>
187             <scope>test</scope>
188         </dependency>
189
190         <dependency>
191             <groupId>org.skyscreamer</groupId>
192             <artifactId>jsonassert</artifactId>
193             <version>1.5.0</version>
194             <scope>test</scope>
195         </dependency>
196
197         <dependency>
198             <groupId>ch.qos.logback</groupId>
199             <artifactId>logback-classic</artifactId>
200             <version>1.2.3</version>
201         </dependency>
202
203         <dependency>
204             <groupId>ch.qos.logback</groupId>
205             <artifactId>logback-core</artifactId>
206             <version>1.2.3</version>
207         </dependency>
208
209         <dependency>
210             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
211             <artifactId>dmaapClient</artifactId>
212             <version>1.1.5</version>
213         </dependency>
214     </dependencies>
215
216     <distributionManagement>
217         <repository>
218             <id>ecomp-releases</id>
219             <name>ECOMP Release Repository</name>
220             <url>${onap.nexus.url}/content/repositories/releases/</url>
221         </repository>
222         <snapshotRepository>
223             <id>ecomp-snapshots</id>
224             <name>ECOMP Snapshot Repository</name>
225             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
226         </snapshotRepository>
227     </distributionManagement>
228
229     <build>
230         <finalName>${project.artifactId}</finalName>
231         <plugins>
232             <plugin>
233                 <groupId>org.springframework.boot</groupId>
234                 <artifactId>spring-boot-maven-plugin</artifactId>
235                 <configuration>
236                     <layout>ZIP</layout>
237                 </configuration>
238                 <executions>
239                     <execution>
240                         <goals>
241                             <goal>repackage</goal>
242                         </goals>
243                     </execution>
244                 </executions>
245             </plugin>
246
247             <plugin>
248                 <groupId>org.apache.maven.plugins</groupId>
249                 <artifactId>maven-resources-plugin</artifactId>
250                 <version>2.7</version>
251                 <executions>
252                     <execution>
253                         <id>copy-docker-file</id>
254                         <phase>package</phase>
255                         <goals>
256                             <goal>copy-resources</goal>
257                         </goals>
258                         <configuration>
259                             <outputDirectory>target</outputDirectory>
260                             <overwrite>true</overwrite>
261                             <resources>
262                                 <resource>
263                                     <directory>${basedir}/src/main/docker</directory>
264                                     <filtering>true</filtering>
265                                     <includes>
266                                         <include>**/*</include>
267                                     </includes>
268                                 </resource>
269                                 <resource>
270                                     <directory>${basedir}/src/main/bin/</directory>
271                                 </resource>
272                                 <resource>
273                                     <directory>../champ-service-deps-janus/target/</directory>
274                                 </resource>
275                                 <resource>
276                                     <directory>../champ-service-deps-titan/target/</directory>
277                                 </resource>
278                                 <resource>
279                                     <directory>${basedir}</directory>
280                                     <includes>
281                                         <include>**/dynamic/**/*</include>
282                                     </includes>
283                                 </resource>
284                             </resources>
285                         </configuration>
286                     </execution>
287                 </executions>
288             </plugin>
289
290             <plugin>
291                 <groupId>com.mycila</groupId>
292                 <artifactId>license-maven-plugin</artifactId>
293                 <version>3.0</version>
294                 <configuration>
295                     <header>License.txt</header>
296                     <includes>
297                         <include>src/main/java/**</include>
298                         <include>src/test/java/**</include>
299                         <include>pom.xml</include>
300                     </includes>
301                     <skipExistingHeaders>true</skipExistingHeaders>
302                 </configuration>
303                 <executions>
304                     <execution>
305                         <goals>
306                             <!-- Set goal to "format" to auto update license headers -->
307                             <goal>check</goal>
308                         </goals>
309                         <phase>process-sources</phase>
310                     </execution>
311                 </executions>
312             </plugin>
313
314             <plugin>
315                 <groupId>com.spotify</groupId>
316                 <artifactId>docker-maven-plugin</artifactId>
317                 <version>0.4.11</version>
318                 <configuration>
319                     <verbose>true</verbose>
320                     <serverId>docker-hub</serverId>
321                     <imageName>${docker.push.registry}/onap/${docker.name}</imageName>
322                     <dockerDirectory>${docker.location}</dockerDirectory>
323                     <imageTags>
324                         <imageTag>latest</imageTag>
325                     </imageTags>
326                     <forceTags>true</forceTags>
327                 </configuration>
328             </plugin>
329
330             <plugin>
331                 <groupId>org.apache.maven.plugins</groupId>
332                 <artifactId>maven-deploy-plugin</artifactId>
333             </plugin>
334
335             <plugin>
336                 <groupId>org.sonatype.plugins</groupId>
337                 <artifactId>nexus-staging-maven-plugin</artifactId>
338             </plugin>
339
340             <plugin>
341                 <groupId>org.apache.maven.plugins</groupId>
342                 <artifactId>maven-site-plugin</artifactId>
343             </plugin>
344         </plugins>
345     </build>
346 </project>