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