1 <?xml version="1.0" encoding="UTF-8"?>
4 ============LICENSE_START=======================================================
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
13 http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
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.traversal</groupId>
27 <artifactId>aai-traversal</artifactId>
28 <version>1.3.0-SNAPSHOT</version>
31 <groupId>org.onap.aai.traversal</groupId>
32 <artifactId>traversal</artifactId>
33 <version>1.3.0-SNAPSHOT</version>
37 <java.version>1.8</java.version>
38 <start-class>org.onap.aai.TraversalApp</start-class>
40 <maven.skip.tests>true</maven.skip.tests>
41 <maven.compiler.source>1.8</maven.compiler.source>
42 <maven.compiler.target>1.8</maven.compiler.target>
44 <aai.schema.version>1.3.0-SNAPSHOT</aai.schema.version>
45 <aai.core.version>1.3.0-SNAPSHOT</aai.core.version>
47 <spring.boot.version>1.5.15.RELEASE</spring.boot.version>
49 <!-- Start of the jacoco plugin properties -->
50 <sonar.language>java</sonar.language>
51 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
52 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
53 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
54 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
55 <sonar.projectVersion>${project.version}</sonar.projectVersion>
56 <!-- End of the jacoco plugin properties -->
58 <jolt.version>0.0.24</jolt.version>
59 <jopt.simple.version>4.9</jopt.simple.version>
61 <io.swagger.version>1.5.8</io.swagger.version>
62 <apache.log4j.version>1.2.17</apache.log4j.version>
64 <commons.beanutils.version>1.9.2</commons.beanutils.version>
65 <commons.compress.version>1.10</commons.compress.version>
66 <commons.configuration.version>1.9</commons.configuration.version>
68 <googlecode.diffutils.version>1.3.0</googlecode.diffutils.version>
69 <scamper.encryption.version>1.8.20</scamper.encryption.version>
70 <httpcomponents.httpmime.version>4.5.2</httpcomponents.httpmime.version>
71 <scamper.version>1.8.36</scamper.version>
72 <dom4j.version>1.6.1</dom4j.version>
73 <aaf.version>2.1.2-SNAPSHOT</aaf.version>
74 <commons.lang.version>2.6</commons.lang.version>
75 <eelf.core.version>1.0.0</eelf.core.version>
76 <logback.version>1.2.3</logback.version>
77 <hamcrest.junit.version>2.0.0.0</hamcrest.junit.version>
78 <janino.version>2.7.8</janino.version>
79 <google.guava.version>16.0</google.guava.version>
80 <janusgraph.version>0.2.0</janusgraph.version>
81 <gremlin.version>3.2.2</gremlin.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.3</activemq.version>
98 <httpclient.version>4.5.3</httpclient.version>
99 <spring.jms.version>4.3.2.RELEASE</spring.jms.version>
100 <spotify.docker.version>0.4.11</spotify.docker.version>
101 <spring.security.version>1.0.3.RELEASE</spring.security.version>
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>
107 <eclipse.jetty.version>9.4.1.v20170120</eclipse.jetty.version>
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>
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
120 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/</aai.build.directory>
121 <aai.docker.namespace>onap</aai.docker.namespace>
123 <spring.web.version>4.3.6.RELEASE</spring.web.version>
124 <aai.project.version>1.3.0</aai.project.version>
125 <aai.docker.version>1.3</aai.docker.version>
128 Nexus Proxy Properties and Snapshot Locations
129 Ideally this can be overwritten at runtime per internal environment specific values at runtime
131 <nexusproxy>https://nexus.onap.org</nexusproxy>
132 <site.path>/content/sites/site/org/onap/aai/traversal/${project.artifactId}/${project.version}</site.path>
133 <release.path>/content/repositories/releases/</release.path>
134 <snapshot.path>/content/repositories/snapshots/</snapshot.path>
136 <netty.handler.version>4.1.9.Final</netty.handler.version>
137 <netty.version>4.0.37.Final</netty.version>
138 <jackson.core.version>2.8.11.1</jackson.core.version>
139 <groovy.version>2.4.4</groovy.version>
141 <spring.test.version>4.3.6.RELEASE</spring.test.version>
143 <!-- This will be used for the docker images as the default format of maven build has issues -->
144 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
146 <antlr4.visitor>true</antlr4.visitor>
147 <antlr4.listener>true</antlr4.listener>
148 <antlr.version>4.7</antlr.version>
150 <plexus.utils.version>3.1.0</plexus.utils.version>
152 <snapshot.file>${project.basedir}/snapshots/data.graphson</snapshot.file>
153 <license.goal.type>check</license.goal.type>
154 <jacoco.line.coverage.limit>0.67</jacoco.line.coverage.limit>
156 <!-- Start of Default ONAP Schema Properties -->
157 <schema.source.name>onap</schema.source.name>
158 <schema.configuration.location>N/A</schema.configuration.location>
159 <schema.nodes.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/oxm</schema.nodes.location>
160 <schema.edges.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/dbedgerules</schema.edges.location>
161 <schema.version.depth.start>v9</schema.version.depth.start>
162 <schema.version.related.link.start>v10</schema.version.related.link.start>
163 <schema.version.app.root.start>v11</schema.version.app.root.start>
164 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
165 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
166 <schema.version.api.default>v14</schema.version.api.default>
167 <schema.version.list>v8,v9,v10,v11,v12,v13,v14</schema.version.list>
168 <schema.uri.base.path>/aai</schema.uri.base.path>
169 <!-- End of Default ONAP Schema Properties -->
172 <!-- Docker profile to be used for building docker image and pushing to nexus -->
178 <groupId>io.fabric8</groupId>
179 <artifactId>docker-maven-plugin</artifactId>
180 <version>${docker.fabric.version}</version>
182 <verbose>true</verbose>
183 <apiVersion>1.23</apiVersion>
186 <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
191 <tag>${project.docker.latesttag.version}</tag>
192 <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag>
194 <cleanup>try</cleanup>
195 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
200 <directory>${aai.build.directory}</directory>
201 <outputDirectory>/${project.artifactId}</outputDirectory>
212 <id>clean-images</id>
213 <phase>pre-clean</phase>
218 <removeAll>true</removeAll>
222 <id>generate-images</id>
223 <phase>package</phase>
230 <phase>deploy</phase>
240 <!-- Start of ONAP Profile -->
244 <schema.source.name>onap</schema.source.name>
245 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
246 <schema.version.list>v8,v9,v10,v11,v12,v13,v14</schema.version.list>
249 <!-- End of ONAP Profile -->
253 <skipTests>${maven.skip.tests}</skipTests>
256 <defaultGoal>pre-integration-test</defaultGoal>
259 <groupId>org.codehaus.mojo</groupId>
260 <artifactId>exec-maven-plugin</artifactId>
261 <version>1.6.0</version>
264 <id>run-spring-boot</id>
265 <phase>package</phase>
272 <mainClass>${start-class}</mainClass>
275 <key>snapshot.location</key>
276 <value>${snapshot.file}</value>
279 <key>schema.source.name</key>
280 <value>${schema.source.name}</value>
283 <key>schema.configuration.location</key>
284 <value>${schema.configuration.location}</value>
287 <key>schema.nodes.location</key>
288 <value>${schema.nodes.location}</value>
291 <key>schema.edges.location</key>
292 <value>${schema.edges.location}</value>
295 <key>schema.version.depth.start</key>
296 <value>${schema.version.depth.start}</value>
299 <key>schema.version.related.link.start</key>
300 <value>${schema.version.related.link.start}</value>
303 <key>schema.version.app.root.start</key>
304 <value>${schema.version.app.root.start}</value>
307 <key>schema.version.namespace.change.start</key>
308 <value>${schema.version.namespace.change.start}</value>
311 <key>schema.version.edge.label.start</key>
312 <value>${schema.version.edge.label.start}</value>
315 <key>schema.version.api.default</key>
316 <value>${schema.version.api.default}</value>
319 <key>schema.version.list</key>
320 <value>${schema.version.list}</value>
323 <key>schema.uri.base.path</key>
324 <value>${schema.uri.base.path}</value>
327 <executable>java</executable>
334 <dependencyManagement>
337 <groupId>org.springframework.boot</groupId>
338 <artifactId>spring-boot-starter-parent</artifactId>
339 <version>${spring.boot.version}</version>
341 <scope>import</scope>
344 </dependencyManagement>
347 <groupId>net.sf.jopt-simple</groupId>
348 <artifactId>jopt-simple</artifactId>
349 <version>${jopt.simple.version}</version>
352 <groupId>io.swagger</groupId>
353 <artifactId>swagger-core</artifactId>
354 <version>${io.swagger.version}</version>
357 <groupId>javax.ws.rs</groupId>
358 <artifactId>jsr311-api</artifactId>
363 <groupId>io.swagger</groupId>
364 <artifactId>swagger-annotations</artifactId>
365 <version>${io.swagger.version}</version>
368 <groupId>io.swagger</groupId>
369 <artifactId>swagger-jersey-jaxrs</artifactId>
370 <version>${io.swagger.version}</version>
373 <groupId>org.glassfish.jersey.media</groupId>
374 <artifactId>jersey-media-multipart</artifactId>
377 <artifactId>jersey-core</artifactId>
378 <groupId>com.sun.jersey</groupId>
381 <artifactId>jersey-json</artifactId>
382 <groupId>com.sun.jersey</groupId>
385 <artifactId>jersey-server</artifactId>
386 <groupId>com.sun.jersey</groupId>
389 <artifactId>jersey-client</artifactId>
390 <groupId>com.sun.jersey</groupId>
393 <artifactId>jsr311-api</artifactId>
394 <groupId>javax.ws.rs</groupId>
397 <artifactId>jersey-multipart</artifactId>
398 <groupId>com.sun.jersey.contribs</groupId>
403 <groupId>commons-configuration</groupId>
404 <artifactId>commons-configuration</artifactId>
405 <version>${commons.configuration.version}</version>
408 <artifactId>commons-lang</artifactId>
409 <groupId>commons-lang</groupId>
414 <groupId>commons-lang</groupId>
415 <artifactId>commons-lang</artifactId>
416 <version>${commons.lang.version}</version>
418 <!-- eelf dependency -->
420 <groupId>com.att.eelf</groupId>
421 <artifactId>eelf-core</artifactId>
422 <version>${eelf.core.version}</version>
425 <groupId>ch.qos.logback</groupId>
426 <artifactId>logback-core</artifactId>
427 <version>${logback.version}</version>
430 <groupId>ch.qos.logback</groupId>
431 <artifactId>logback-classic</artifactId>
432 <version>${logback.version}</version>
435 <groupId>ch.qos.logback</groupId>
436 <artifactId>logback-access</artifactId>
437 <version>${logback.version}</version>
440 <groupId>org.hamcrest</groupId>
441 <artifactId>hamcrest-junit</artifactId>
442 <version>${hamcrest.junit.version}</version>
445 <groupId>junit</groupId>
446 <artifactId>junit</artifactId>
450 <groupId>com.google.guava</groupId>
451 <artifactId>guava</artifactId>
452 <version>${google.guava.version}</version>
455 <groupId>org.janusgraph</groupId>
456 <artifactId>janusgraph-core</artifactId>
457 <version>${janusgraph.version}</version>
460 <groupId>org.slf4j</groupId>
461 <artifactId>slf4j-log4j12</artifactId>
466 <groupId>org.janusgraph</groupId>
467 <artifactId>janusgraph-cassandra</artifactId>
468 <version>${janusgraph.version}</version>
471 <groupId>org.slf4j</groupId>
472 <artifactId>slf4j-log4j12</artifactId>
477 <groupId>org.apache.tinkerpop</groupId>
478 <artifactId>gremlin-driver</artifactId>
479 <version>${gremlin.version}</version>
482 <groupId>com.fasterxml.jackson.jaxrs</groupId>
483 <artifactId>jackson-jaxrs-json-provider</artifactId>
486 <groupId>org.mockito</groupId>
487 <artifactId>mockito-all</artifactId>
488 <version>${mockito.version}</version>
492 <groupId>org.powermock</groupId>
493 <artifactId>powermock-module-junit4</artifactId>
494 <version>${powermock.version}</version>
498 <groupId>org.powermock</groupId>
499 <artifactId>powermock-api-mockito</artifactId>
500 <version>${powermock.version}</version>
504 <groupId>com.beust</groupId>
505 <artifactId>jcommander</artifactId>
506 <version>${jcommander.version}</version>
509 <groupId>org.json</groupId>
510 <artifactId>json</artifactId>
511 <version>${json.version}</version>
514 <groupId>org.freemarker</groupId>
515 <artifactId>freemarker</artifactId>
516 <version>${freemarker.version}</version>
519 <groupId>javax.xml.bind</groupId>
520 <artifactId>jaxb-api</artifactId>
521 <version>${jaxb.version}</version>
524 <groupId>com.sun.xml.bind</groupId>
525 <artifactId>jaxb-impl</artifactId>
526 <version>${jaxb.version}</version>
529 <groupId>com.sun.xml.bind</groupId>
530 <artifactId>jaxb-core</artifactId>
531 <version>${jaxb.version}</version>
534 <groupId>com.sun.xml.bind</groupId>
535 <artifactId>jaxb-xjc</artifactId>
536 <version>${jaxb.version}</version>
539 <groupId>org.eclipse.persistence</groupId>
540 <artifactId>eclipselink</artifactId>
541 <version>${eclipse.persistence.version}</version>
544 <groupId>org.eclipse.persistence</groupId>
545 <artifactId>org.eclipse.persistence.moxy</artifactId>
546 <version>${eclipse.persistence.version}</version>
547 <scope>compile</scope>
550 <groupId>org.powermock</groupId>
551 <artifactId>powermock-module-javaagent</artifactId>
552 <version>${powermock.version}</version>
556 <groupId>org.powermock</groupId>
557 <artifactId>powermock-module-junit4-rule-agent</artifactId>
558 <version>${powermock.version}</version>
562 <groupId>com.github.fge</groupId>
563 <artifactId>json-patch</artifactId>
564 <version>${json.patch.version}</version>
567 <groupId>org.javatuples</groupId>
568 <artifactId>javatuples</artifactId>
569 <version>${javatuples.version}</version>
570 <scope>compile</scope>
573 <groupId>com.google.code.gson</groupId>
574 <artifactId>gson</artifactId>
575 <version>${gson.version}</version>
578 <groupId>com.bazaarvoice.jolt</groupId>
579 <artifactId>jolt-complete</artifactId>
580 <version>${jolt.version}</version>
583 <groupId>com.jayway.jsonpath</groupId>
584 <artifactId>json-path</artifactId>
585 <version>${json.path.version}</version>
587 <!-- Do not use activemq-all because they force you to use a specific logging
588 and they shade it so you can't simply exclude it and when you deploy the
589 jar, you will notice failure -->
591 <groupId>org.apache.activemq</groupId>
592 <artifactId>activemq-broker</artifactId>
593 <version>${activemq.version}</version>
596 <groupId>org.apache.activemq</groupId>
597 <artifactId>activemq-client</artifactId>
598 <version>${activemq.version}</version>
601 <groupId>org.onap.aai.aai-common</groupId>
602 <artifactId>aai-core</artifactId>
603 <version>${aai.core.version}</version>
606 <groupId>com.sun.jersey</groupId>
607 <artifactId>jersey-core</artifactId>
610 <groupId>org.codehaus.jackson</groupId>
611 <artifactId>jackson-mapper-asl</artifactId>
616 <groupId>org.springframework</groupId>
617 <artifactId>spring-jms</artifactId>
618 <version>${spring.jms.version}</version>
621 <groupId>com.sun.jersey</groupId>
622 <artifactId>jersey-core</artifactId>
626 <!-- Do not use the jersey-client since jersey client 1.0 version clashes
627 with jersey 2 which we are using -->
628 <!-- Use this to make http requests instead of jersey 1.0 client -->
630 <groupId>org.apache.httpcomponents</groupId>
631 <artifactId>httpclient</artifactId>
632 <version>${httpclient.version}</version>
635 <groupId>org.skyscreamer</groupId>
636 <artifactId>jsonassert</artifactId>
637 <version>${jsonassert.version}</version>
641 Explicitly stating the security spring framework and
642 exclude the bouncy castle since that is somehow overwriting
643 our p12 file decryption that's built into java security
644 This will cause the password is incorrect
645 This needs to be added back if org.bouncy castle dependency
646 sneaks backs in and causing issues with the two way ssl
649 <groupId>org.springframework.security</groupId>
650 <artifactId>spring-security-rsa</artifactId>
651 <version>${spring.security.version}</version>
654 <groupId>org.bouncycastle</groupId>
655 <artifactId>bcpkix-jdk15on</artifactId>
660 <groupId>io.netty</groupId>
661 <artifactId>netty-handler</artifactId>
662 <version>${netty.handler.version}</version>
665 <groupId>org.springframework.boot</groupId>
666 <artifactId>spring-boot-starter-web</artifactId>
669 <groupId>org.springframework.boot</groupId>
670 <artifactId>spring-boot-starter-tomcat</artifactId>
673 <groupId>org.slf4j</groupId>
674 <artifactId>log4j-over-slf4j</artifactId>
679 <groupId>org.springframework.boot</groupId>
680 <artifactId>spring-boot-starter-jetty</artifactId>
683 <groupId>org.springframework.boot</groupId>
684 <artifactId>spring-boot-starter-jersey</artifactId>
687 <groupId>org.springframework</groupId>
688 <artifactId>spring-web</artifactId>
689 <version>${spring.web.version}</version>
692 <groupId>org.onap.aaf.authz</groupId>
693 <artifactId>aaf-cadi-aaf</artifactId>
694 <version>${aaf.version}</version>
697 <groupId>io.netty</groupId>
698 <artifactId>netty-all</artifactId>
699 <version>${netty.version}</version>
702 <groupId>org.codehaus.groovy</groupId>
703 <artifactId>groovy</artifactId>
704 <version>${groovy.version}</version>
705 <classifier>indy</classifier>
708 <groupId>org.springframework</groupId>
709 <artifactId>spring-test</artifactId>
710 <version>${spring.test.version}</version>
714 <groupId>org.springframework.boot</groupId>
715 <artifactId>spring-boot-test</artifactId>
719 <groupId>org.antlr</groupId>
720 <artifactId>antlr4-runtime</artifactId>
721 <version>${antlr.version}</version>
724 <groupId>org.antlr</groupId>
725 <artifactId>antlr4-maven-plugin</artifactId>
726 <version>${antlr.version}</version>
729 <groupId>org.sonatype.sisu</groupId>
730 <artifactId>sisu-guava</artifactId>
735 <groupId>org.apache.tinkerpop</groupId>
736 <artifactId>gremlin-core</artifactId>
737 <version>${gremlin.version}</version>
740 <groupId>org.slf4j</groupId>
741 <artifactId>slf4j-log4j12</artifactId>
746 <groupId>org.apache.tinkerpop</groupId>
747 <artifactId>tinkergraph-gremlin</artifactId>
748 <version>${gremlin.version}</version>
751 <groupId>org.apache.tinkerpop</groupId>
752 <artifactId>gremlin-groovy</artifactId>
753 <version>${gremlin.version}</version>
756 <groupId>org.codehaus.plexus</groupId>
757 <artifactId>plexus-utils</artifactId>
758 <version>${plexus.utils.version}</version>
764 <directory>${project.basedir}/src/main/swm</directory>
765 <targetPath>${project.build.directory}/swm</targetPath>
766 <filtering>false</filtering>
769 <directory>${project.basedir}/src/main/resources</directory>
771 <include>application.properties</include>
772 <include>dme2.properties</include>
773 <include>logback.xml</include>
774 <include>localhost-access-logback.xml</include>
776 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
777 <filtering>false</filtering>
780 <directory>${project.basedir}/src/main/resources</directory>
782 <include>**/*</include>
784 <filtering>true</filtering>
787 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
789 <include>janusgraph-realtime.properties</include>
790 <include>janusgraph-cached.properties</include>
791 <include>aaiconfig.properties</include>
793 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
794 <filtering>false</filtering>
797 <directory>${project.basedir}/src/main/resources/etc/auth/</directory>
799 <include>aai-client-cert.p12</include>
800 <include>tomcat_keystore</include>
801 <include>aai_policy.json</include>
803 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
804 <filtering>true</filtering>
807 <directory>${project.basedir}/src/main/resources/</directory>
809 <include>logback.xml</include>
810 <include>localhost-access-logback.xml</include>
812 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
813 <filtering>true</filtering>
816 <directory>${project.basedir}/src/main/resources/schema/</directory>
818 <include>**/oxm/**/*.xml</include>
819 <include>**/dbedgerules/**/*.json</include>
820 <include>**/query/**</include>
822 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema</targetPath>
823 <filtering>false</filtering>
826 <directory>${project.basedir}/src/main/resources/query/</directory>
828 <include>**/*.json</include>
830 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/query</targetPath>
831 <filtering>false</filtering>
834 <directory>${project.basedir}/src/main/docker</directory>
836 <include>**/*</include>
838 <targetPath>${aai.build.directory}</targetPath>
839 <filtering>true</filtering>
845 <groupId>com.mycila</groupId>
846 <artifactId>license-maven-plugin</artifactId>
847 <version>3.0</version>
849 <header>LICENSE.TXT</header>
851 <include>src/main/java/**</include>
852 <include>src/test/java/**</include>
853 <include>pom.xml</include>
855 <skipExistingHeaders>true</skipExistingHeaders>
861 <!-- Set goal to "format" to auto update license headers -->
862 <goal>${license.goal.type}</goal>
864 <phase>process-sources</phase>
869 <groupId>org.codehaus.groovy.maven</groupId>
870 <artifactId>gmaven-plugin</artifactId>
871 <version>1.0</version>
874 <phase>validate</phase>
880 println project.properties['aai.project.version'];
882 if (project.properties['aai.project.version'] != null) {
883 versionArray = project.properties['aai.project.version'].split('\\.');
886 project.properties["project.major.version"] = versionArray[0];
887 project.properties["project.minor.version"] = versionArray[1];
888 project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest';
889 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
899 <groupId>org.apache.maven.plugins</groupId>
900 <artifactId>maven-clean-plugin</artifactId>
901 <version>2.4.1</version>
905 <directory>${project.basedir}/src/main/resources/etc/oxm</directory>
907 <include>**/*</include>
909 <followSymlinks>false</followSymlinks>
912 <directory>${project.basedir}/src/main/resources/etc/dbedgerules</directory>
914 <include>**/*</include>
916 <followSymlinks>false</followSymlinks>
919 <directory>${project.basedir}/src/main/resources/schema</directory>
921 <include>**/oxm/**</include>
922 <include>**/dbedgerules/**</include>
924 <followSymlinks>false</followSymlinks>
930 <groupId>org.springframework.boot</groupId>
931 <artifactId>spring-boot-maven-plugin</artifactId>
934 <artifactId>exec-maven-plugin</artifactId>
935 <groupId>org.codehaus.mojo</groupId>
938 <groupId>org.apache.maven.plugins</groupId>
939 <artifactId>maven-javadoc-plugin</artifactId>
942 <groupId>com.mycila</groupId>
943 <artifactId>license-maven-plugin</artifactId>
946 <artifactId>maven-assembly-plugin</artifactId>
949 <descriptor>src/main/assembly/descriptor.xml</descriptor>
954 <id>make-assembly</id> <!-- this is used for inheritance merges -->
955 <phase>package</phase> <!-- bind to the packaging phase -->
963 <groupId>org.apache.maven.plugins</groupId>
964 <artifactId>maven-surefire-plugin</artifactId>
965 <version>2.12.4</version>
967 <argLine>-noverify ${argLine}</argLine>
968 <runOrder>alphabetical</runOrder>
972 <groupId>org.codehaus.mojo</groupId>
973 <artifactId>sonar-maven-plugin</artifactId>
974 <version>3.3</version>
977 <groupId>org.codehaus.groovy.maven</groupId>
978 <artifactId>gmaven-plugin</artifactId>
981 <groupId>org.jacoco</groupId>
982 <artifactId>jacoco-maven-plugin</artifactId>
983 <version>0.7.9</version>
985 <dumpOnExit>true</dumpOnExit>
987 <exclude>**/**/models/**/*.class</exclude>
992 <id>jacoco-initialize-unit-tests</id>
994 <goal>prepare-agent</goal>
997 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
998 <!-- <append>true</append> -->
1002 <id>post-unit-test</id>
1008 <!-- Sets the path to the file which contains the execution data. -->
1009 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1010 <!-- Sets the output directory for the code coverage report. -->
1011 <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
1015 <id>default-check</id>
1020 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1022 <!-- implementation is needed only for Maven 2 -->
1023 <rule implementation="org.jacoco.maven.RuleConfiguration">
1024 <element>BUNDLE</element>
1026 <limit implementation="org.jacoco.report.check.Limit">
1027 <counter>LINE</counter>
1028 <value>COVEREDRATIO</value>
1029 <minimum>${jacoco.line.coverage.limit}</minimum>
1039 <groupId>org.springframework.boot</groupId>
1040 <artifactId>spring-boot-maven-plugin</artifactId>
1042 <mainClass>${start-class}</mainClass>
1043 <layout>ZIP</layout>
1048 <goal>repackage</goal>
1054 <groupId>org.antlr</groupId>
1055 <artifactId>antlr4-maven-plugin</artifactId>
1056 <version>4.7</version>
1063 <sourceDirectory>src/main/resources/antlr4</sourceDirectory>
1064 <!-- <outputDirectory>src/main/java/antlr4</outputDirectory> -->
1070 <groupId>org.apache.maven.plugins</groupId>
1071 <artifactId>maven-dependency-plugin</artifactId>
1072 <version>2.8</version>
1075 <id>unpack-schema-dependency</id>
1076 <phase>initialize</phase>
1083 <groupId>org.onap.aai.aai-common</groupId>
1084 <artifactId>aai-schema</artifactId>
1085 <version>${aai.schema.version}</version>
1086 <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
1087 <includes>**/oxm/**/*.xml</includes>
1090 <!-- other configurations here -->
1094 <id>unpack-edgerules-dependency</id>
1095 <phase>initialize</phase>
1102 <groupId>org.onap.aai.aai-common</groupId>
1103 <artifactId>aai-schema</artifactId>
1104 <version>${aai.schema.version}</version>
1105 <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
1106 <includes>**/dbedgerules/**/*.json</includes>
1109 <!-- other configurations here -->
1115 <groupId>com.mycila</groupId>
1116 <artifactId>license-maven-plugin</artifactId>
1117 <version>3.0</version>
1119 <header>LICENSE.TXT</header>
1121 <include>src/main/java/**</include>
1122 <include>src/test/java/**</include>
1123 <include>pom.xml</include>
1125 <skipExistingHeaders>false</skipExistingHeaders>
1131 <!-- Set goal to "format" to auto update license headers -->
1132 <goal>${license.goal.type}</goal>
1134 <phase>process-sources</phase>