Update spring boot to 1.5.12
[aai/resources.git] / aai-resources / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4     ============LICENSE_START=======================================================
5     org.onap.aai
6     ================================================================================
7     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13        http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <groupId>org.onap.aai.resources</groupId>
27     <artifactId>aai-resources</artifactId>
28     <version>1.2.0-SNAPSHOT</version>
29
30     <parent>
31         <groupId>org.springframework.boot</groupId>
32         <artifactId>spring-boot-starter-parent</artifactId>
33         <version>1.5.12.RELEASE</version>
34     </parent>
35
36     <properties>
37         <swagger.directory>${basedir}/target/classes/META-INF/resources/swagger</swagger.directory>
38         <icd.file>service.json</icd.file>
39         <icd.package>com.att.ajsc.ajsc6configdemo.service.rs</icd.package>
40         <java.version>1.8</java.version>
41         <build.number>local</build.number>
42         <kube.namespace>org-onap-aai</kube.namespace>
43         <service.account>ajsc-svc-account</service.account>
44         <namespace>com.att.ajsc</namespace>
45         <start-class>org.onap.aai.ResourcesApp</start-class>
46
47         <aai-schema.version>1.2.2-SNAPSHOT</aai-schema.version>
48         <aai.core.version>1.2.2-SNAPSHOT</aai.core.version>
49         <aai.client.loadbalancer.version>1.2.2-SNAPSHOT</aai.client.loadbalancer.version>
50
51         <hbase.version>1.0.2</hbase.version>
52
53         <!-- Start of the jacoco plugin properties -->
54         <sonar.language>java</sonar.language>
55         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
56         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
57         <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
58         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
59         <sonar.projectVersion>${project.version}</sonar.projectVersion>
60         <!-- End of the jacoco plugin properties -->
61
62         <jolt.version>0.0.24</jolt.version>
63         <jopt.simple.version>4.9</jopt.simple.version>
64
65         <io.swagger.version>1.5.8</io.swagger.version>
66         <apache.log4j.version>1.2.17</apache.log4j.version>
67
68         <commons.beanutils.version>1.9.2</commons.beanutils.version>
69         <commons.compress.version>1.10</commons.compress.version>
70         <commons.configuration.version>1.9</commons.configuration.version>
71
72         <googlecode.diffutils.version>1.3.0</googlecode.diffutils.version>
73         <scamper.encryption.version>1.8.20</scamper.encryption.version>
74         <httpcomponents.httpmime.version>4.5.2</httpcomponents.httpmime.version>
75         <scamper.version>1.8.36</scamper.version>
76         <dom4j.version>1.6.1</dom4j.version>
77         <commons.lang.version>2.6</commons.lang.version>
78         <eelf.core.version>1.0.0</eelf.core.version>
79         <logback.version>1.2.3</logback.version>
80         <hamcrest.junit.version>2.0.0.0</hamcrest.junit.version>
81         <janino.version>2.7.8</janino.version>
82         <google.guava.version>16.0</google.guava.version>
83         <janusgraph.version>0.2.0</janusgraph.version>
84         <gremlin.driver.version>3.2.2</gremlin.driver.version>
85         <gremlin.core.version>3.2.2</gremlin.core.version>
86         <gremlin.version>3.2.2</gremlin.version>
87         <hbase.version>1.0.2</hbase.version>
88         <smack.version>3.0.4</smack.version>
89         <json.simple.version>1.1.1</json.simple.version>
90         <mockito.version>1.10.19</mockito.version>
91         <powermock.version>1.6.2</powermock.version>
92         <jcommander.version>1.48</jcommander.version>
93         <json.version>20090211</json.version>
94         <freemarker.version>2.3.21</freemarker.version>
95         <jaxb.version>2.2.11</jaxb.version>
96         <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
97         <json.patch.version>1.9</json.patch.version>
98         <javatuples.version>1.2</javatuples.version>
99         <gson.version>2.7</gson.version>
100         <dmaap.client.version>0.2.12</dmaap.client.version>
101         <httpcore.version>4.4</httpcore.version>
102         <json.path.version>2.2.0</json.path.version>
103         <activemq.version>5.15.3</activemq.version>
104         <httpclient.version>4.5.3</httpclient.version>
105         <spring.jms.version>4.3.2.RELEASE</spring.jms.version>
106         <spotify.docker.version>0.4.11</spotify.docker.version>
107         <spring.security.version>1.0.3.RELEASE</spring.security.version>
108
109         <dme2.version>2.8.5</dme2.version>
110         <async.retry.version>0.0.7</async.retry.version>
111         <jsonassert.version>1.4.0</jsonassert.version>
112
113         <eclipse.jetty.version>9.4.1.v20170120</eclipse.jetty.version>
114
115         <docker.fabric.version>0.23.0</docker.fabric.version>
116         <!-- Default docker registry that maven fabric plugin will try to pull from -->
117         <docker.registry>docker.io</docker.registry>
118         <!-- Specifying the docker push registry where the image should be pushed -->
119         <!-- This value should be overwritten at runtime to wherever need to be pushed to -->
120         <docker.push.registry>localhost:5000</docker.push.registry>
121
122         <!--
123              Location where assembly of our scripts, resources and main jar will be held
124                  Check the aai-resources/src/main/assembly/descriptor.xml for more info
125         -->
126         <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/
127         </aai.build.directory>
128         <aai.docker.namespace>onap</aai.docker.namespace>
129         <maven.skip.tests>true</maven.skip.tests>
130
131         <spring.web.version>4.3.6.RELEASE</spring.web.version>
132         <aai.project.version>1.2.0</aai.project.version>
133         <aai.docker.version>1.2</aai.docker.version>
134
135         <!--
136             Nexus Proxy Properties and Snapshot Locations
137             Ideally this can be overwritten at runtime per internal environment specific values at runtime
138         -->
139         <nexusproxy>https://nexus.onap.org</nexusproxy>
140         <site.path>/content/sites/site/org/onap/aai/resources/${project.artifactId}/${project.version}</site.path>
141         <release.path>/content/repositories/releases/</release.path>
142         <snapshot.path>/content/repositories/snapshots/</snapshot.path>
143
144         <netty.handler.version>4.1.9.Final</netty.handler.version>
145         <netty.version>4.0.37.Final</netty.version>
146         <jackson.core.version>2.8.11.1</jackson.core.version>
147         <groovy.version>2.4.4</groovy.version>
148
149         <spring.test.version>4.3.6.RELEASE</spring.test.version>
150
151         <!-- This will be used for the docker images as the default format of maven build has issues -->
152         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
153
154         <license.goal.type>check</license.goal.type>
155         <jacoco.line.coverage.limit>0.55</jacoco.line.coverage.limit>
156     </properties>
157     <profiles>
158         <!-- Docker profile to be used for building docker image and pushing to nexus -->
159         <profile>
160             <id>docker</id>
161             <build>
162                 <plugins>
163                     <plugin>
164                         <groupId>io.fabric8</groupId>
165                         <artifactId>docker-maven-plugin</artifactId>
166                         <version>${docker.fabric.version}</version>
167                         <configuration>
168                             <verbose>true</verbose>
169                             <apiVersion>1.23</apiVersion>
170                             <images>
171                                 <image>
172                                     <name>${docker.push.registry}/${aai.docker.namespace}/aai-resources:%l</name>
173                                     <build>
174                                         <filter>@</filter>
175                                         <tags>
176                                             <tag>latest</tag>
177                                             <tag>${aai.docker.version}-STAGING-${maven.build.timestamp}</tag>
178                                             <tag>${aai.docker.version}-STAGING-latest</tag>
179                                         </tags>
180                                         <cleanup>try</cleanup>
181                                         <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
182                                         <assembly>
183                                             <inline>
184                                                 <fileSets>
185                                                     <fileSet>
186                                                         <directory>${aai.build.directory}</directory>
187                                                         <outputDirectory>/${project.artifactId}</outputDirectory>
188                                                     </fileSet>
189                                                 </fileSets>
190                                             </inline>
191                                         </assembly>
192                                     </build>
193                                 </image>
194                             </images>
195                         </configuration>
196                         <executions>
197                             <execution>
198                                 <id>clean-images</id>
199                                 <phase>pre-clean</phase>
200                                 <goals>
201                                     <goal>remove</goal>
202                                 </goals>
203                                 <configuration>
204                                     <removeAll>true</removeAll>
205                                 </configuration>
206                             </execution>
207                             <execution>
208                                 <id>generate-images</id>
209                                 <phase>package</phase>
210                                 <goals>
211                                     <goal>build</goal>
212                                 </goals>
213                             </execution>
214                             <execution>
215                                 <id>push-images</id>
216                                 <phase>deploy</phase>
217                                 <goals>
218                                     <goal>push</goal>
219                                 </goals>
220                             </execution>
221                         </executions>
222                     </plugin>
223                 </plugins>
224             </build>
225         </profile>
226         <!--
227             Use of this profile is a way to support legacy runAjsc profile seen using AJSC 2
228             and also because spring-boot:run doesn't work with large classpaths in windows
229             so this accommodates the behavior of running the application from maven
230         -->
231         <profile>
232             <id>runAjsc</id>
233             <properties>
234                 <skipTests>${maven.skip.tests}</skipTests>
235             </properties>
236             <build>
237                 <defaultGoal>pre-integration-test</defaultGoal>
238                 <plugins>
239                     <plugin>
240                         <groupId>org.codehaus.mojo</groupId>
241                         <artifactId>exec-maven-plugin</artifactId>
242                         <version>1.6.0</version>
243                         <executions>
244                             <execution>
245                                 <id>run-spring-boot</id>
246                                 <phase>package</phase>
247                                 <goals>
248                                     <goal>java</goal>
249                                 </goals>
250                             </execution>
251                         </executions>
252                         <configuration>
253                             <mainClass>${start-class}</mainClass>
254                             <systemProperties>
255                                 <systemProperty>
256                                     <key>snapshot.location</key>
257                                     <value>${snapshot.file}</value>
258                                 </systemProperty>
259                             </systemProperties>
260                             <executable>java</executable>
261                         </configuration>
262                     </plugin>
263                 </plugins>
264             </build>
265         </profile>
266     </profiles>
267     <dependencies>
268         <dependency>
269             <groupId>org.springframework.boot</groupId>
270             <artifactId>spring-boot-starter-jersey</artifactId>
271             <exclusions>
272                 <exclusion>
273                     <groupId>com.sun.jersey</groupId>
274                     <artifactId>jersey-servlet</artifactId>
275                 </exclusion>
276                 <exclusion>
277                     <groupId>org.springframework.boot</groupId>
278                     <artifactId>spring-boot-starter-tomcat</artifactId>
279                 </exclusion>
280             </exclusions>
281         </dependency>
282         <dependency>
283             <groupId>net.sf.jopt-simple</groupId>
284             <artifactId>jopt-simple</artifactId>
285             <version>${jopt.simple.version}</version>
286         </dependency>
287         <dependency>
288             <groupId>io.swagger</groupId>
289             <artifactId>swagger-core</artifactId>
290             <version>${io.swagger.version}</version>
291             <exclusions>
292                 <exclusion>
293                     <groupId>javax.ws.rs</groupId>
294                     <artifactId>jsr311-api</artifactId>
295                 </exclusion>
296             </exclusions>
297         </dependency>
298         <dependency>
299             <groupId>io.swagger</groupId>
300             <artifactId>swagger-annotations</artifactId>
301             <version>${io.swagger.version}</version>
302         </dependency>
303         <dependency>
304             <groupId>io.swagger</groupId>
305             <artifactId>swagger-jersey-jaxrs</artifactId>
306             <version>${io.swagger.version}</version>
307             <exclusions>
308                 <exclusion>
309                     <groupId>org.glassfish.jersey.media</groupId>
310                     <artifactId>jersey-media-multipart</artifactId>
311                 </exclusion>
312                 <exclusion>
313                     <artifactId>jersey-core</artifactId>
314                     <groupId>com.sun.jersey</groupId>
315                 </exclusion>
316                 <exclusion>
317                     <artifactId>jersey-json</artifactId>
318                     <groupId>com.sun.jersey</groupId>
319                 </exclusion>
320                 <exclusion>
321                     <artifactId>jersey-server</artifactId>
322                     <groupId>com.sun.jersey</groupId>
323                 </exclusion>
324                 <exclusion>
325                     <artifactId>jersey-client</artifactId>
326                     <groupId>com.sun.jersey</groupId>
327                 </exclusion>
328                 <exclusion>
329                     <artifactId>jsr311-api</artifactId>
330                     <groupId>javax.ws.rs</groupId>
331                 </exclusion>
332                 <exclusion>
333                     <artifactId>jersey-multipart</artifactId>
334                     <groupId>com.sun.jersey.contribs</groupId>
335                 </exclusion>
336             </exclusions>
337         </dependency>
338         <dependency>
339             <groupId>commons-configuration</groupId>
340             <artifactId>commons-configuration</artifactId>
341             <version>${commons.configuration.version}</version>
342             <exclusions>
343                 <exclusion>
344                     <artifactId>commons-lang</artifactId>
345                     <groupId>commons-lang</groupId>
346                 </exclusion>
347             </exclusions>
348         </dependency>
349         <dependency>
350             <groupId>commons-lang</groupId>
351             <artifactId>commons-lang</artifactId>
352             <version>${commons.lang.version}</version>
353         </dependency>
354         <!-- eelf dependency -->
355         <dependency>
356             <groupId>com.att.eelf</groupId>
357             <artifactId>eelf-core</artifactId>
358             <version>${eelf.core.version}</version>
359         </dependency>
360         <dependency>
361             <groupId>ch.qos.logback</groupId>
362             <artifactId>logback-core</artifactId>
363             <version>${logback.version}</version>
364         </dependency>
365         <dependency>
366             <groupId>ch.qos.logback</groupId>
367             <artifactId>logback-classic</artifactId>
368             <version>${logback.version}</version>
369         </dependency>
370         <dependency>
371             <groupId>ch.qos.logback</groupId>
372             <artifactId>logback-access</artifactId>
373             <version>${logback.version}</version>
374         </dependency>
375         <dependency>
376             <groupId>org.hamcrest</groupId>
377             <artifactId>hamcrest-junit</artifactId>
378             <version>${hamcrest.junit.version}</version>
379         </dependency>
380         <dependency>
381             <groupId>junit</groupId>
382             <artifactId>junit</artifactId>
383             <scope>test</scope>
384         </dependency>
385         <dependency>
386             <groupId>com.google.guava</groupId>
387             <artifactId>guava</artifactId>
388             <version>${google.guava.version}</version>
389         </dependency>
390         <dependency>
391             <groupId>org.janusgraph</groupId>
392             <artifactId>janusgraph-core</artifactId>
393             <version>${janusgraph.version}</version>
394             <exclusions>
395                 <exclusion>
396                     <groupId>org.slf4j</groupId>
397                     <artifactId>slf4j-log4j12</artifactId>
398                 </exclusion>
399             </exclusions>
400         </dependency>
401         <dependency>
402             <groupId>org.janusgraph</groupId>
403             <artifactId>janusgraph-cassandra</artifactId>
404             <version>${janusgraph.version}</version>
405             <exclusions>
406                 <exclusion>
407                     <groupId>org.slf4j</groupId>
408                     <artifactId>slf4j-log4j12</artifactId>
409                 </exclusion>
410             </exclusions>
411         </dependency>
412         <dependency>
413             <groupId>org.apache.tinkerpop</groupId>
414             <artifactId>tinkergraph-gremlin</artifactId>
415             <version>${gremlin.version}</version>
416         </dependency>
417         <dependency>
418             <groupId>org.apache.tinkerpop</groupId>
419             <artifactId>gremlin-core</artifactId>
420             <version>${gremlin.version}</version>
421         </dependency>
422         <dependency>
423             <groupId>org.apache.tinkerpop</groupId>
424             <artifactId>gremlin-driver</artifactId>
425             <version>${gremlin.version}</version>
426         </dependency>
427         <dependency>
428             <groupId>com.fasterxml.jackson.jaxrs</groupId>
429             <artifactId>jackson-jaxrs-json-provider</artifactId>
430         </dependency>
431         <dependency>
432             <groupId>org.mockito</groupId>
433             <artifactId>mockito-all</artifactId>
434             <version>${mockito.version}</version>
435             <scope>test</scope>
436         </dependency>
437         <dependency>
438             <groupId>org.powermock</groupId>
439             <artifactId>powermock-module-junit4</artifactId>
440             <version>${powermock.version}</version>
441             <scope>test</scope>
442         </dependency>
443         <dependency>
444             <groupId>org.powermock</groupId>
445             <artifactId>powermock-api-mockito</artifactId>
446             <version>${powermock.version}</version>
447             <scope>test</scope>
448         </dependency>
449         <dependency>
450             <groupId>com.beust</groupId>
451             <artifactId>jcommander</artifactId>
452             <version>${jcommander.version}</version>
453         </dependency>
454         <dependency>
455             <groupId>org.json</groupId>
456             <artifactId>json</artifactId>
457             <version>${json.version}</version>
458         </dependency>
459         <dependency>
460             <groupId>org.freemarker</groupId>
461             <artifactId>freemarker</artifactId>
462             <version>${freemarker.version}</version>
463         </dependency>
464         <dependency>
465             <groupId>javax.xml.bind</groupId>
466             <artifactId>jaxb-api</artifactId>
467             <version>${jaxb.version}</version>
468         </dependency>
469         <dependency>
470             <groupId>com.sun.xml.bind</groupId>
471             <artifactId>jaxb-impl</artifactId>
472             <version>${jaxb.version}</version>
473         </dependency>
474         <dependency>
475             <groupId>com.sun.xml.bind</groupId>
476             <artifactId>jaxb-core</artifactId>
477             <version>${jaxb.version}</version>
478         </dependency>
479         <dependency>
480             <groupId>com.sun.xml.bind</groupId>
481             <artifactId>jaxb-xjc</artifactId>
482             <version>${jaxb.version}</version>
483         </dependency>
484         <dependency>
485             <groupId>org.eclipse.persistence</groupId>
486             <artifactId>eclipselink</artifactId>
487             <version>${eclipse.persistence.version}</version>
488         </dependency>
489         <dependency>
490             <groupId>org.eclipse.persistence</groupId>
491             <artifactId>org.eclipse.persistence.moxy</artifactId>
492             <version>${eclipse.persistence.version}</version>
493             <scope>compile</scope>
494         </dependency>
495         <dependency>
496             <groupId>org.powermock</groupId>
497             <artifactId>powermock-module-javaagent</artifactId>
498             <version>${powermock.version}</version>
499             <scope>test</scope>
500         </dependency>
501         <dependency>
502             <groupId>org.powermock</groupId>
503             <artifactId>powermock-module-junit4-rule-agent</artifactId>
504             <version>${powermock.version}</version>
505             <scope>test</scope>
506         </dependency>
507         <dependency>
508             <groupId>com.github.fge</groupId>
509             <artifactId>json-patch</artifactId>
510             <version>${json.patch.version}</version>
511         </dependency>
512         <dependency>
513             <groupId>org.javatuples</groupId>
514             <artifactId>javatuples</artifactId>
515             <version>${javatuples.version}</version>
516             <scope>compile</scope>
517         </dependency>
518         <dependency>
519             <groupId>com.google.code.gson</groupId>
520             <artifactId>gson</artifactId>
521             <version>${gson.version}</version>
522         </dependency>
523         <dependency>
524             <groupId>com.att.nsa</groupId>
525             <artifactId>dmaapClient</artifactId>
526             <version>${dmaap.client.version}</version>
527             <exclusions>
528                 <exclusion>
529                     <groupId>org.slf4j</groupId>
530                     <artifactId>slf4j-log4j12</artifactId>
531                 </exclusion>
532                 <exclusion>
533                     <groupId>com.att.aft</groupId>
534                     <artifactId>dme2</artifactId>
535                 </exclusion>
536             </exclusions>
537         </dependency>
538         <dependency>
539             <groupId>com.bazaarvoice.jolt</groupId>
540             <artifactId>jolt-complete</artifactId>
541             <version>${jolt.version}</version>
542         </dependency>
543         <dependency>
544             <groupId>com.jayway.jsonpath</groupId>
545             <artifactId>json-path</artifactId>
546             <version>${json.path.version}</version>
547         </dependency>
548         <!-- Do not use activemq-all because they force you to use a specific logging
549             and they shade it so you can't simply exclude it and when you deploy the
550             jar, you will notice failure -->
551         <dependency>
552             <groupId>org.apache.activemq</groupId>
553             <artifactId>activemq-broker</artifactId>
554             <version>${activemq.version}</version>
555         </dependency>
556         <dependency>
557             <groupId>org.apache.activemq</groupId>
558             <artifactId>activemq-client</artifactId>
559             <version>${activemq.version}</version>
560         </dependency>
561         <dependency>
562             <groupId>org.onap.aai.aai-common</groupId>
563             <artifactId>aai-core</artifactId>
564             <version>${aai.core.version}</version>
565             <exclusions>
566                 <exclusion>
567                     <groupId>com.sun.jersey</groupId>
568                     <artifactId>jersey-core</artifactId>
569                 </exclusion>
570                 <exclusion>
571                     <groupId>org.codehaus.jackson</groupId>
572                     <artifactId>jackson-mapper-asl</artifactId>
573                 </exclusion>
574             </exclusions>
575         </dependency>
576         <dependency>
577             <groupId>org.onap.aai.aai-common</groupId>
578             <artifactId>aai-schema</artifactId>
579             <version>${aai-schema.version}</version>
580         </dependency>
581         <dependency>
582             <groupId>org.springframework</groupId>
583             <artifactId>spring-jms</artifactId>
584             <version>${spring.jms.version}</version>
585             <exclusions>
586                 <exclusion>
587                     <groupId>com.sun.jersey</groupId>
588                     <artifactId>jersey-core</artifactId>
589                 </exclusion>
590             </exclusions>
591         </dependency>
592         <!-- Do not use the jersey-client since jersey client 1.0 version clashes
593             with jersey 2 which we are using -->
594         <!-- Use this to make http requests instead of jersey 1.0 client -->
595         <dependency>
596             <groupId>org.apache.httpcomponents</groupId>
597             <artifactId>httpclient</artifactId>
598             <version>${httpclient.version}</version>
599         </dependency>
600         <dependency>
601             <groupId>org.springframework.boot</groupId>
602             <artifactId>spring-boot-devtools</artifactId>
603         </dependency>
604         <dependency>
605             <groupId>org.skyscreamer</groupId>
606             <artifactId>jsonassert</artifactId>
607             <version>${jsonassert.version}</version>
608             <scope>test</scope>
609         </dependency>
610         <!--
611             Explicitly stating the security spring framework and
612             exclude the bouncy castle since that is somehow overwriting
613             our p12 file decryption that's built into java security
614             This will cause the password is incorrect
615             This needs to be added back if org.bouncy castle dependency
616             sneaks backs in and causing issues with the two way ssl
617         -->
618         <dependency>
619             <groupId>org.springframework.security</groupId>
620             <artifactId>spring-security-rsa</artifactId>
621             <version>${spring.security.version}</version>
622             <exclusions>
623                 <exclusion>
624                     <groupId>org.bouncycastle</groupId>
625                     <artifactId>bcpkix-jdk15on</artifactId>
626                 </exclusion>
627             </exclusions>
628         </dependency>
629         <dependency>
630             <groupId>org.onap.aai.aai-common</groupId>
631             <artifactId>aai-client-loadbalancer</artifactId>
632             <version>${aai.client.loadbalancer.version}</version>
633             <exclusions>
634                 <exclusion>
635                     <groupId>io.netty</groupId>
636                     <artifactId>netty-handler</artifactId>
637                 </exclusion>
638                 <exclusion>
639                     <groupId>com.sun.jersey.contribs</groupId>
640                     <artifactId>jersey-apache-client4</artifactId>
641                 </exclusion>
642             </exclusions>
643         </dependency>
644         <dependency>
645             <groupId>io.netty</groupId>
646             <artifactId>netty-handler</artifactId>
647             <version>${netty.handler.version}</version>
648         </dependency>
649         <dependency>
650             <groupId>org.springframework.boot</groupId>
651             <artifactId>spring-boot-starter-web</artifactId>
652             <exclusions>
653                 <exclusion>
654                     <groupId>org.springframework.boot</groupId>
655                     <artifactId>spring-boot-starter-tomcat</artifactId>
656                 </exclusion>
657             </exclusions>
658         </dependency>
659         <dependency>
660             <groupId>org.springframework.boot</groupId>
661             <artifactId>spring-boot-starter-jetty</artifactId>
662         </dependency>
663         <dependency>
664             <groupId>org.springframework</groupId>
665             <artifactId>spring-web</artifactId>
666             <version>${spring.web.version}</version>
667         </dependency>
668         <dependency>
669             <groupId>io.netty</groupId>
670             <artifactId>netty-all</artifactId>
671             <version>${netty.version}</version>
672         </dependency>
673         <dependency>
674             <groupId>org.codehaus.groovy</groupId>
675             <artifactId>groovy</artifactId>
676             <version>${groovy.version}</version>
677             <classifier>indy</classifier>
678         </dependency>
679         <dependency>
680             <groupId>org.springframework</groupId>
681             <artifactId>spring-test</artifactId>
682             <version>${spring.test.version}</version>
683             <scope>test</scope>
684         </dependency>
685         <dependency>
686             <groupId>org.springframework.boot</groupId>
687             <artifactId>spring-boot-test</artifactId>
688             <scope>test</scope>
689         </dependency>
690         <dependency>
691             <groupId>org.apache.tinkerpop</groupId>
692             <artifactId>gremlin-groovy</artifactId>
693             <version>${gremlin.version}</version>
694         </dependency>
695     </dependencies>
696     <build>
697         <resources>
698             <resource>
699                 <directory>${project.basedir}/src/main/swm</directory>
700                 <targetPath>${project.build.directory}/swm</targetPath>
701                 <filtering>false</filtering>
702             </resource>
703             <resource>
704                 <directory>${project.basedir}/src/main/resources</directory>
705                 <includes>
706                     <include>application.properties</include>
707                     <include>dme2.properties</include>
708                     <include>logback.xml</include>
709                     <include>localhost-access-logback.xml</include>
710                 </includes>
711                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/aai-resources/appconfig
712                 </targetPath>
713                 <filtering>false</filtering>
714             </resource>
715             <resource>
716                 <directory>${project.basedir}/src/main/resources</directory>
717                 <includes>
718                     <include>**/*</include>
719                 </includes>
720                 <filtering>true</filtering>
721             </resource>
722             <resource>
723                 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
724                 <includes>
725                     <include>janusgraph-realtime.properties</include>
726                     <include>janusgraph-cached.properties</include>
727                     <include>aaiconfig.properties</include>
728                 </includes>
729                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/aai-resources/appconfig
730                 </targetPath>
731                 <filtering>false</filtering>
732             </resource>
733             <resource>
734                 <directory>${project.basedir}/src/main/resources/etc/auth/</directory>
735                 <includes>
736                     <include>aai-client-cert.p12</include>
737                     <include>tomcat_keystore</include>
738                     <include>aai_policy.json</include>
739                 </includes>
740                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/aai-resources/appconfig
741                 </targetPath>
742                 <filtering>true</filtering>
743             </resource>
744             <resource>
745                 <directory>${project.basedir}/src/main/resources/</directory>
746                 <includes>
747                     <include>logback.xml</include>
748                     <include>localhost-access-logback.xml</include>
749                 </includes>
750                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/aai-resources/appconfig
751                 </targetPath>
752                 <filtering>true</filtering>
753             </resource>
754             <resource>
755                 <directory>${project.basedir}/src/main/docker</directory>
756                 <includes>
757                     <include>**/*</include>
758                 </includes>
759                 <targetPath>${aai.build.directory}</targetPath>
760                 <filtering>true</filtering>
761             </resource>
762         </resources>
763         <pluginManagement>
764             <plugins>
765                 <plugin>
766                     <groupId>org.apache.maven.plugins</groupId>
767                     <artifactId>maven-dependency-plugin</artifactId>
768                     <version>2.8</version>
769                     <executions>
770                         <execution>
771                             <id>unpack-schema-dependency</id>
772                             <phase>initialize</phase>
773                             <goals>
774                                 <goal>unpack</goal>
775                             </goals>
776                             <configuration>
777                                 <artifactItems>
778                                     <artifactItem>
779                                         <groupId>org.onap.aai.aai-common</groupId>
780                                         <artifactId>aai-schema</artifactId>
781                                         <version>${aai.core.version}</version>
782                                         <outputDirectory>${project.basedir}/src/main/resources/etc/</outputDirectory>
783                                         <includes>oxm/*.xml</includes>
784                                     </artifactItem>
785                                 </artifactItems>
786                                 <!-- other configurations here -->
787                             </configuration>
788                         </execution>
789                     </executions>
790                 </plugin>
791                 <plugin>
792                     <groupId>org.codehaus.groovy.maven</groupId>
793                     <artifactId>gmaven-plugin</artifactId>
794                     <version>1.0</version>
795                     <executions>
796                         <execution>
797                             <phase>validate</phase>
798                             <goals>
799                                 <goal>execute</goal>
800                             </goals>
801                             <configuration>
802                                 <source>
803                                     println project.properties['aai.project.version'];
804                                     def versionArray;
805                                     if (project.properties['aai.project.version'] != null) {
806                                         versionArray = project.properties['aai.project.version'].split('\\.');
807                                     }
808
809                                     if (project.properties['aai.project.version'].endsWith("-SNAPSHOT")) {
810                                         project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest";
811                                     } else {
812                                         project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
813                                     }
814
815                                     println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
816                                 </source>
817                             </configuration>
818                         </execution>
819                     </executions>
820                 </plugin>
821             </plugins>
822         </pluginManagement>
823         <plugins>
824             <plugin>
825                 <groupId>org.springframework.boot</groupId>
826                 <artifactId>spring-boot-maven-plugin</artifactId>
827             </plugin>
828             <plugin>
829                 <groupId>org.apache.maven.plugins</groupId>
830                 <artifactId>maven-gpg-plugin</artifactId>
831                 <configuration>
832                     <skip>true</skip>
833                 </configuration>
834             </plugin>
835             <plugin>
836                 <groupId>org.codehaus.groovy.maven</groupId>
837                 <artifactId>gmaven-plugin</artifactId>
838             </plugin>
839             <plugin>
840                 <artifactId>exec-maven-plugin</artifactId>
841                 <groupId>org.codehaus.mojo</groupId>
842             </plugin>
843             <plugin>
844                 <groupId>org.apache.maven.plugins</groupId>
845                 <artifactId>maven-javadoc-plugin</artifactId>
846                 <configuration>
847                     <additionalparam>-Xdoclint:none</additionalparam>
848                 </configuration>
849             </plugin>
850             <plugin>
851                 <artifactId>maven-assembly-plugin</artifactId>
852                 <configuration>
853                     <descriptors>
854                         <descriptor>src/main/assembly/descriptor.xml</descriptor>
855                     </descriptors>
856                 </configuration>
857                 <executions>
858                     <execution>
859                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
860                         <phase>package</phase> <!-- bind to the packaging phase -->
861                         <goals>
862                             <goal>single</goal>
863                         </goals>
864                     </execution>
865                 </executions>
866             </plugin>
867             <plugin>
868                 <groupId>org.apache.maven.plugins</groupId>
869                 <artifactId>maven-surefire-plugin</artifactId>
870                 <version>2.12.4</version>
871                 <configuration>
872                     <argLine>-noverify ${argLine}</argLine>
873                     <runOrder>alphabetical</runOrder>
874                 </configuration>
875             </plugin>
876             <plugin>
877                 <groupId>org.codehaus.mojo</groupId>
878                 <artifactId>sonar-maven-plugin</artifactId>
879                 <version>3.3</version>
880             </plugin>
881             <plugin>
882                 <groupId>org.jacoco</groupId>
883                 <artifactId>jacoco-maven-plugin</artifactId>
884                 <version>0.7.9</version>
885                 <configuration>
886                     <dumpOnExit>true</dumpOnExit>
887                     <excludes>
888                         <exclude>**/**/models/**/*.class</exclude>
889                     </excludes>
890                 </configuration>
891                 <executions>
892                     <execution>
893                         <id>jacoco-initialize-unit-tests</id>
894                         <goals>
895                             <goal>prepare-agent</goal>
896                         </goals>
897                         <configuration>
898                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
899                             <!-- <append>true</append> -->
900                         </configuration>
901                     </execution>
902                     <execution>
903                         <id>post-unit-test</id>
904                         <phase>test</phase>
905                         <goals>
906                             <goal>report</goal>
907                         </goals>
908                         <configuration>
909                             <!-- Sets the path to the file which contains the execution data. -->
910                             <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
911                             <!-- Sets the output directory for the code coverage report. -->
912                             <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
913                         </configuration>
914                     </execution>
915                     <execution>
916                         <id>default-check</id>
917                         <goals>
918                             <goal>check</goal>
919                         </goals>
920                         <configuration>
921                             <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
922                             <rules>
923                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
924                                     <element>BUNDLE</element>
925                                     <limits>
926                                         <limit implementation="org.jacoco.report.check.Limit">
927                                             <counter>LINE</counter>
928                                             <value>COVEREDRATIO</value>
929                                             <minimum>${jacoco.line.coverage.limit}</minimum>
930                                         </limit>
931                                     </limits>
932                                 </rule>
933                             </rules>
934                         </configuration>
935                     </execution>
936                 </executions>
937             </plugin>
938             <plugin>
939                 <groupId>org.apache.maven.plugins</groupId>
940                 <artifactId>maven-deploy-plugin</artifactId>
941                 <executions>
942                     <execution>
943                         <id>default-deploy</id>
944                         <phase>none</phase>
945                     </execution>
946                 </executions>
947             </plugin>
948             <plugin>
949                 <groupId>org.sonatype.plugins</groupId>
950                 <artifactId>nexus-staging-maven-plugin</artifactId>
951                 <version>1.6.7</version>
952                 <extensions>true</extensions>
953                 <configuration>
954                     <nexusUrl>${nexusproxy}</nexusUrl>
955                     <stagingProfileId>176c31dfe190a</stagingProfileId>
956                     <serverId>ecomp-staging</serverId>
957                 </configuration>
958             </plugin>
959             <plugin>
960                 <groupId>org.springframework.boot</groupId>
961                 <artifactId>spring-boot-maven-plugin</artifactId>
962                 <configuration>
963                     <mainClass>${start-class}</mainClass>
964                     <layout>ZIP</layout>
965                 </configuration>
966                 <executions>
967                     <execution>
968                         <goals>
969                             <goal>repackage</goal>
970                         </goals>
971                     </execution>
972                 </executions>
973             </plugin>
974             <plugin>
975                 <groupId>com.mycila</groupId>
976                 <artifactId>license-maven-plugin</artifactId>
977                 <version>3.0</version>
978                 <configuration>
979                     <header>LICENSE.TXT</header>
980                     <includes>
981                         <include>src/main/java/**</include>
982                         <include>src/test/java/**</include>
983                         <include>pom.xml</include>
984                     </includes>
985                     <skipExistingHeaders>true</skipExistingHeaders>
986                     <skip>false</skip>
987                 </configuration>
988                 <executions>
989                     <execution>
990                         <goals>
991                             <!-- Set goal to "format" to auto update license headers -->
992                             <goal>${license.goal.type}</goal>
993                         </goals>
994                         <phase>initialize</phase>
995                     </execution>
996                 </executions>
997             </plugin>
998         </plugins>
999     </build>
1000     <reporting>
1001         <plugins>
1002             <plugin>
1003                 <groupId>org.apache.maven.plugins</groupId>
1004                 <artifactId>maven-javadoc-plugin</artifactId>
1005                 <version>2.10.4</version>
1006                 <configuration>
1007                     <failOnError>false</failOnError>
1008                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
1009                     <docletArtifact>
1010                         <groupId>org.umlgraph</groupId>
1011                         <artifactId>umlgraph</artifactId>
1012                         <version>5.6</version>
1013                     </docletArtifact>
1014                     <additionalparam>-views</additionalparam>
1015                     <useStandardDocletOptions>true</useStandardDocletOptions>
1016                 </configuration>
1017             </plugin>
1018         </plugins>
1019     </reporting>
1020     <distributionManagement>
1021         <repository>
1022             <id>ecomp-releases</id>
1023             <name>ECOMP Release Repository</name>
1024             <url>${nexusproxy}${release.path}</url>
1025         </repository>
1026         <snapshotRepository>
1027             <id>ecomp-snapshots</id>
1028             <name>ECOMP Snapshot Repository</name>
1029             <url>${nexusproxy}${snapshot.path}</url>
1030         </snapshotRepository>
1031         <site>
1032             <id>ecomp-site</id>
1033             <url>dav:${nexusproxy}${site.path}</url>
1034         </site>
1035     </distributionManagement>
1036 </project>