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