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</aai.schema.version>
45 <aai.core.version>1.3.0</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 <aaf.version>2.1.2</aaf.version>
73 <commons.lang.version>2.6</commons.lang.version>
74 <eelf.core.version>1.0.0</eelf.core.version>
75 <logback.version>1.2.3</logback.version>
76 <hamcrest.junit.version>2.0.0.0</hamcrest.junit.version>
77 <janino.version>2.7.8</janino.version>
78 <google.guava.version>19.0</google.guava.version>
79 <janusgraph.version>0.2.0</janusgraph.version>
80 <gremlin.version>3.2.2</gremlin.version>
81 <smack.version>3.0.4</smack.version>
82 <json.simple.version>1.1.1</json.simple.version>
83 <mockito.version>1.10.19</mockito.version>
84 <powermock.version>1.6.2</powermock.version>
85 <jcommander.version>1.48</jcommander.version>
86 <json.version>20090211</json.version>
87 <freemarker.version>2.3.21</freemarker.version>
88 <jaxb.version>2.2.11</jaxb.version>
89 <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
90 <json.patch.version>1.9</json.patch.version>
91 <javatuples.version>1.2</javatuples.version>
92 <gson.version>2.7</gson.version>
93 <dmaap.client.version>0.2.12</dmaap.client.version>
94 <httpcore.version>4.4</httpcore.version>
95 <json.path.version>2.2.0</json.path.version>
96 <activemq.version>5.15.6</activemq.version>
97 <httpclient.version>4.5.3</httpclient.version>
98 <spring.jms.version>4.3.2.RELEASE</spring.jms.version>
99 <spotify.docker.version>0.4.11</spotify.docker.version>
100 <spring.security.version>1.0.3.RELEASE</spring.security.version>
102 <dme2.version>2.8.5</dme2.version>
103 <async.retry.version>0.0.7</async.retry.version>
104 <jsonassert.version>1.4.0</jsonassert.version>
106 <eclipse.jetty.version>9.4.1.v20170120</eclipse.jetty.version>
108 <docker.fabric.version>0.23.0</docker.fabric.version>
109 <!-- Default docker registry that maven fabric plugin will try to pull from -->
110 <docker.registry>docker.io</docker.registry>
111 <!-- Specifying the docker push registry where the image should be pushed -->
112 <!-- This value should be overwritten at runtime to wherever need to be pushed to -->
113 <docker.push.registry>localhost:5000</docker.push.registry>
116 Location where assembly of our scripts, resources and main jar will be held
117 Check the ${project.artifactId}/src/main/assembly/descriptor.xml for more info
119 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/</aai.build.directory>
120 <aai.docker.namespace>onap</aai.docker.namespace>
122 <aai.project.version>1.3.0</aai.project.version>
123 <aai.docker.version>1.3</aai.docker.version>
126 Nexus Proxy Properties and Snapshot Locations
127 Ideally this can be overwritten at runtime per internal environment specific values at runtime
129 <nexusproxy>https://nexus.onap.org</nexusproxy>
130 <site.path>/content/sites/site/org/onap/aai/traversal/${project.artifactId}/${project.version}</site.path>
131 <release.path>/content/repositories/releases/</release.path>
132 <snapshot.path>/content/repositories/snapshots/</snapshot.path>
134 <netty.handler.version>4.1.9.Final</netty.handler.version>
135 <netty.version>4.0.37.Final</netty.version>
136 <jackson.core.version>2.8.11.1</jackson.core.version>
138 <spring.test.version>4.3.6.RELEASE</spring.test.version>
140 <!-- This will be used for the docker images as the default format of maven build has issues -->
141 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
143 <antlr4.visitor>true</antlr4.visitor>
144 <antlr4.listener>true</antlr4.listener>
145 <antlr.version>4.7</antlr.version>
147 <plexus.utils.version>3.1.0</plexus.utils.version>
149 <snapshot.file>${project.basedir}/snapshots/data.graphson</snapshot.file>
150 <license.goal.type>check</license.goal.type>
151 <jacoco.line.coverage.limit>0.67</jacoco.line.coverage.limit>
153 <!-- Start of Default ONAP Schema Properties -->
154 <schema.source.name>onap</schema.source.name>
155 <schema.configuration.location>N/A</schema.configuration.location>
156 <schema.nodes.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/oxm</schema.nodes.location>
157 <schema.edges.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/dbedgerules</schema.edges.location>
158 <schema.version.depth.start>v9</schema.version.depth.start>
159 <schema.version.related.link.start>v10</schema.version.related.link.start>
160 <schema.version.app.root.start>v11</schema.version.app.root.start>
161 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
162 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
163 <schema.version.api.default>v14</schema.version.api.default>
164 <schema.version.list>v8,v9,v10,v11,v12,v13,v14</schema.version.list>
165 <schema.uri.base.path>/aai</schema.uri.base.path>
166 <!-- End of Default ONAP Schema Properties -->
169 <!-- Docker profile to be used for building docker image and pushing to nexus -->
175 <groupId>io.fabric8</groupId>
176 <artifactId>docker-maven-plugin</artifactId>
177 <version>${docker.fabric.version}</version>
179 <verbose>true</verbose>
180 <apiVersion>1.23</apiVersion>
183 <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
188 <tag>${project.docker.latesttag.version}</tag>
189 <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag>
191 <cleanup>try</cleanup>
192 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
197 <directory>${aai.build.directory}</directory>
198 <outputDirectory>/${project.artifactId}</outputDirectory>
209 <id>clean-images</id>
210 <phase>pre-clean</phase>
215 <removeAll>true</removeAll>
219 <id>generate-images</id>
220 <phase>package</phase>
227 <phase>deploy</phase>
237 <!-- Start of ONAP Profile -->
241 <schema.source.name>onap</schema.source.name>
242 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
243 <schema.version.list>v8,v9,v10,v11,v12,v13,v14</schema.version.list>
246 <!-- End of ONAP Profile -->
250 <skipTests>${maven.skip.tests}</skipTests>
253 <defaultGoal>pre-integration-test</defaultGoal>
256 <groupId>org.codehaus.mojo</groupId>
257 <artifactId>exec-maven-plugin</artifactId>
258 <version>1.6.0</version>
261 <id>run-spring-boot</id>
262 <phase>package</phase>
269 <mainClass>${start-class}</mainClass>
272 <key>snapshot.location</key>
273 <value>${snapshot.file}</value>
276 <key>schema.source.name</key>
277 <value>${schema.source.name}</value>
280 <key>schema.configuration.location</key>
281 <value>${schema.configuration.location}</value>
284 <key>schema.nodes.location</key>
285 <value>${schema.nodes.location}</value>
288 <key>schema.edges.location</key>
289 <value>${schema.edges.location}</value>
292 <key>schema.version.depth.start</key>
293 <value>${schema.version.depth.start}</value>
296 <key>schema.version.related.link.start</key>
297 <value>${schema.version.related.link.start}</value>
300 <key>schema.version.app.root.start</key>
301 <value>${schema.version.app.root.start}</value>
304 <key>schema.version.namespace.change.start</key>
305 <value>${schema.version.namespace.change.start}</value>
308 <key>schema.version.edge.label.start</key>
309 <value>${schema.version.edge.label.start}</value>
312 <key>schema.version.api.default</key>
313 <value>${schema.version.api.default}</value>
316 <key>schema.version.list</key>
317 <value>${schema.version.list}</value>
320 <key>schema.uri.base.path</key>
321 <value>${schema.uri.base.path}</value>
324 <executable>java</executable>
331 <dependencyManagement>
334 <groupId>org.springframework.boot</groupId>
335 <artifactId>spring-boot-starter-parent</artifactId>
336 <version>${spring.boot.version}</version>
338 <scope>import</scope>
341 </dependencyManagement>
344 <groupId>net.sf.jopt-simple</groupId>
345 <artifactId>jopt-simple</artifactId>
346 <version>${jopt.simple.version}</version>
349 <groupId>io.swagger</groupId>
350 <artifactId>swagger-core</artifactId>
351 <version>${io.swagger.version}</version>
354 <groupId>javax.ws.rs</groupId>
355 <artifactId>jsr311-api</artifactId>
360 <groupId>io.swagger</groupId>
361 <artifactId>swagger-annotations</artifactId>
362 <version>${io.swagger.version}</version>
365 <groupId>io.swagger</groupId>
366 <artifactId>swagger-jersey-jaxrs</artifactId>
367 <version>${io.swagger.version}</version>
370 <groupId>org.glassfish.jersey.media</groupId>
371 <artifactId>jersey-media-multipart</artifactId>
374 <artifactId>jersey-core</artifactId>
375 <groupId>com.sun.jersey</groupId>
378 <artifactId>jersey-json</artifactId>
379 <groupId>com.sun.jersey</groupId>
382 <artifactId>jersey-server</artifactId>
383 <groupId>com.sun.jersey</groupId>
386 <artifactId>jersey-client</artifactId>
387 <groupId>com.sun.jersey</groupId>
390 <artifactId>jsr311-api</artifactId>
391 <groupId>javax.ws.rs</groupId>
394 <artifactId>jersey-multipart</artifactId>
395 <groupId>com.sun.jersey.contribs</groupId>
400 <groupId>commons-configuration</groupId>
401 <artifactId>commons-configuration</artifactId>
402 <version>${commons.configuration.version}</version>
405 <artifactId>commons-lang</artifactId>
406 <groupId>commons-lang</groupId>
411 <groupId>commons-lang</groupId>
412 <artifactId>commons-lang</artifactId>
413 <version>${commons.lang.version}</version>
415 <!-- eelf dependency -->
417 <groupId>com.att.eelf</groupId>
418 <artifactId>eelf-core</artifactId>
419 <version>${eelf.core.version}</version>
422 <groupId>ch.qos.logback</groupId>
423 <artifactId>logback-core</artifactId>
424 <version>${logback.version}</version>
427 <groupId>ch.qos.logback</groupId>
428 <artifactId>logback-classic</artifactId>
429 <version>${logback.version}</version>
432 <groupId>ch.qos.logback</groupId>
433 <artifactId>logback-access</artifactId>
434 <version>${logback.version}</version>
437 <groupId>org.hamcrest</groupId>
438 <artifactId>hamcrest-junit</artifactId>
439 <version>${hamcrest.junit.version}</version>
442 <groupId>junit</groupId>
443 <artifactId>junit</artifactId>
447 <groupId>com.google.guava</groupId>
448 <artifactId>guava</artifactId>
449 <version>${google.guava.version}</version>
452 <groupId>org.janusgraph</groupId>
453 <artifactId>janusgraph-core</artifactId>
454 <version>${janusgraph.version}</version>
457 <groupId>org.slf4j</groupId>
458 <artifactId>slf4j-log4j12</artifactId>
461 <groupId>dom4j</groupId>
462 <artifactId>dom4j</artifactId>
467 <groupId>org.janusgraph</groupId>
468 <artifactId>janusgraph-cassandra</artifactId>
469 <version>${janusgraph.version}</version>
472 <groupId>org.slf4j</groupId>
473 <artifactId>slf4j-log4j12</artifactId>
476 <groupId>dom4j</groupId>
477 <artifactId>dom4j</artifactId>
482 <groupId>org.apache.tinkerpop</groupId>
483 <artifactId>gremlin-driver</artifactId>
484 <version>${gremlin.version}</version>
487 <groupId>org.codehaus.groovy</groupId>
488 <artifactId>groovy</artifactId>
493 <groupId>com.fasterxml.jackson.jaxrs</groupId>
494 <artifactId>jackson-jaxrs-json-provider</artifactId>
497 <groupId>org.mockito</groupId>
498 <artifactId>mockito-all</artifactId>
499 <version>${mockito.version}</version>
503 <groupId>org.powermock</groupId>
504 <artifactId>powermock-module-junit4</artifactId>
505 <version>${powermock.version}</version>
509 <groupId>org.powermock</groupId>
510 <artifactId>powermock-api-mockito</artifactId>
511 <version>${powermock.version}</version>
515 <groupId>com.beust</groupId>
516 <artifactId>jcommander</artifactId>
517 <version>${jcommander.version}</version>
520 <groupId>org.json</groupId>
521 <artifactId>json</artifactId>
522 <version>${json.version}</version>
525 <groupId>org.freemarker</groupId>
526 <artifactId>freemarker</artifactId>
527 <version>${freemarker.version}</version>
530 <groupId>javax.xml.bind</groupId>
531 <artifactId>jaxb-api</artifactId>
532 <version>${jaxb.version}</version>
535 <groupId>com.sun.xml.bind</groupId>
536 <artifactId>jaxb-impl</artifactId>
537 <version>${jaxb.version}</version>
540 <groupId>com.sun.xml.bind</groupId>
541 <artifactId>jaxb-core</artifactId>
542 <version>${jaxb.version}</version>
545 <groupId>com.sun.xml.bind</groupId>
546 <artifactId>jaxb-xjc</artifactId>
547 <version>${jaxb.version}</version>
550 <groupId>org.eclipse.persistence</groupId>
551 <artifactId>eclipselink</artifactId>
552 <version>${eclipse.persistence.version}</version>
555 <groupId>org.eclipse.persistence</groupId>
556 <artifactId>org.eclipse.persistence.moxy</artifactId>
557 <version>${eclipse.persistence.version}</version>
558 <scope>compile</scope>
561 <groupId>org.powermock</groupId>
562 <artifactId>powermock-module-javaagent</artifactId>
563 <version>${powermock.version}</version>
567 <groupId>org.powermock</groupId>
568 <artifactId>powermock-module-junit4-rule-agent</artifactId>
569 <version>${powermock.version}</version>
573 <groupId>com.github.fge</groupId>
574 <artifactId>json-patch</artifactId>
575 <version>${json.patch.version}</version>
578 <groupId>org.javatuples</groupId>
579 <artifactId>javatuples</artifactId>
580 <version>${javatuples.version}</version>
581 <scope>compile</scope>
584 <groupId>com.google.code.gson</groupId>
585 <artifactId>gson</artifactId>
586 <version>${gson.version}</version>
589 <groupId>com.bazaarvoice.jolt</groupId>
590 <artifactId>jolt-complete</artifactId>
591 <version>${jolt.version}</version>
594 <groupId>com.jayway.jsonpath</groupId>
595 <artifactId>json-path</artifactId>
596 <version>${json.path.version}</version>
598 <!-- Do not use activemq-all because they force you to use a specific logging
599 and they shade it so you can't simply exclude it and when you deploy the
600 jar, you will notice failure -->
602 <groupId>org.apache.activemq</groupId>
603 <artifactId>activemq-broker</artifactId>
604 <version>${activemq.version}</version>
607 <groupId>org.apache.activemq</groupId>
608 <artifactId>activemq-client</artifactId>
609 <version>${activemq.version}</version>
612 <groupId>org.onap.aai.aai-common</groupId>
613 <artifactId>aai-core</artifactId>
614 <version>${aai.core.version}</version>
617 <groupId>com.sun.jersey</groupId>
618 <artifactId>jersey-core</artifactId>
621 <groupId>org.codehaus.jackson</groupId>
622 <artifactId>jackson-mapper-asl</artifactId>
625 <groupId>org.eclipse.jetty</groupId>
626 <artifactId>jetty-http</artifactId>
629 <groupId>org.eclipse.jetty</groupId>
630 <artifactId>jetty-server</artifactId>
633 <groupId>org.springframework</groupId>
634 <artifactId>spring-web</artifactId>
639 <groupId>org.springframework</groupId>
640 <artifactId>spring-jms</artifactId>
641 <version>${spring.jms.version}</version>
644 <groupId>com.sun.jersey</groupId>
645 <artifactId>jersey-core</artifactId>
649 <!-- Do not use the jersey-client since jersey client 1.0 version clashes
650 with jersey 2 which we are using -->
651 <!-- Use this to make http requests instead of jersey 1.0 client -->
653 <groupId>org.apache.httpcomponents</groupId>
654 <artifactId>httpclient</artifactId>
655 <version>${httpclient.version}</version>
658 <groupId>org.skyscreamer</groupId>
659 <artifactId>jsonassert</artifactId>
660 <version>${jsonassert.version}</version>
664 Explicitly stating the security spring framework and
665 exclude the bouncy castle since that is somehow overwriting
666 our p12 file decryption that's built into java security
667 This will cause the password is incorrect
668 This needs to be added back if org.bouncy castle dependency
669 sneaks backs in and causing issues with the two way ssl
672 <groupId>org.springframework.security</groupId>
673 <artifactId>spring-security-rsa</artifactId>
674 <version>${spring.security.version}</version>
677 <groupId>org.bouncycastle</groupId>
678 <artifactId>bcpkix-jdk15on</artifactId>
683 <groupId>io.netty</groupId>
684 <artifactId>netty-handler</artifactId>
685 <version>${netty.handler.version}</version>
688 <groupId>org.springframework.boot</groupId>
689 <artifactId>spring-boot-starter-web</artifactId>
692 <groupId>org.springframework.boot</groupId>
693 <artifactId>spring-boot-starter-tomcat</artifactId>
696 <groupId>org.slf4j</groupId>
697 <artifactId>log4j-over-slf4j</artifactId>
702 <groupId>org.springframework.boot</groupId>
703 <artifactId>spring-boot-starter-jetty</artifactId>
706 <groupId>org.springframework.boot</groupId>
707 <artifactId>spring-boot-starter-jersey</artifactId>
710 <groupId>org.onap.aaf.authz</groupId>
711 <artifactId>aaf-cadi-aaf</artifactId>
712 <version>${aaf.version}</version>
715 <groupId>io.netty</groupId>
716 <artifactId>netty-all</artifactId>
717 <version>${netty.version}</version>
720 <groupId>org.springframework</groupId>
721 <artifactId>spring-test</artifactId>
722 <version>${spring.test.version}</version>
726 <groupId>org.springframework.boot</groupId>
727 <artifactId>spring-boot-test</artifactId>
731 <groupId>org.antlr</groupId>
732 <artifactId>antlr4-runtime</artifactId>
733 <version>${antlr.version}</version>
736 <groupId>org.antlr</groupId>
737 <artifactId>antlr4-maven-plugin</artifactId>
738 <version>${antlr.version}</version>
741 <groupId>org.sonatype.sisu</groupId>
742 <artifactId>sisu-guava</artifactId>
747 <groupId>org.apache.tinkerpop</groupId>
748 <artifactId>gremlin-core</artifactId>
749 <version>${gremlin.version}</version>
752 <groupId>org.slf4j</groupId>
753 <artifactId>slf4j-log4j12</artifactId>
758 <groupId>org.apache.tinkerpop</groupId>
759 <artifactId>tinkergraph-gremlin</artifactId>
760 <version>${gremlin.version}</version>
763 <groupId>org.apache.tinkerpop</groupId>
764 <artifactId>gremlin-groovy</artifactId>
765 <version>${gremlin.version}</version>
768 <groupId>org.codehaus.plexus</groupId>
769 <artifactId>plexus-utils</artifactId>
770 <version>${plexus.utils.version}</version>
776 <directory>${project.basedir}/src/main/swm</directory>
777 <targetPath>${project.build.directory}/swm</targetPath>
778 <filtering>false</filtering>
781 <directory>${project.basedir}/src/main/resources</directory>
783 <include>application.properties</include>
784 <include>dme2.properties</include>
785 <include>logback.xml</include>
786 <include>localhost-access-logback.xml</include>
788 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
789 <filtering>false</filtering>
792 <directory>${project.basedir}/src/main/resources</directory>
794 <include>**/*</include>
796 <filtering>true</filtering>
799 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
801 <include>janusgraph-realtime.properties</include>
802 <include>janusgraph-cached.properties</include>
803 <include>aaiconfig.properties</include>
805 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
806 <filtering>false</filtering>
809 <directory>${project.basedir}/src/main/resources/etc/auth/</directory>
811 <include>aai-client-cert.p12</include>
812 <include>tomcat_keystore</include>
813 <include>aai_policy.json</include>
815 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
816 <filtering>true</filtering>
819 <directory>${project.basedir}/src/main/resources/</directory>
821 <include>logback.xml</include>
822 <include>localhost-access-logback.xml</include>
824 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
825 <filtering>true</filtering>
828 <directory>${project.basedir}/src/main/resources/schema/</directory>
830 <include>**/oxm/**/*.xml</include>
831 <include>**/dbedgerules/**/*.json</include>
832 <include>**/query/**</include>
834 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema</targetPath>
835 <filtering>false</filtering>
838 <directory>${project.basedir}/src/main/resources/query/</directory>
840 <include>**/*.json</include>
842 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/query</targetPath>
843 <filtering>false</filtering>
846 <directory>${project.basedir}/src/main/docker</directory>
848 <include>**/*</include>
850 <targetPath>${aai.build.directory}</targetPath>
851 <filtering>true</filtering>
857 <groupId>com.mycila</groupId>
858 <artifactId>license-maven-plugin</artifactId>
859 <version>3.0</version>
861 <header>LICENSE.TXT</header>
863 <include>src/main/java/**</include>
864 <include>src/test/java/**</include>
865 <include>pom.xml</include>
867 <skipExistingHeaders>true</skipExistingHeaders>
873 <!-- Set goal to "format" to auto update license headers -->
874 <goal>${license.goal.type}</goal>
876 <phase>process-sources</phase>
881 <groupId>org.codehaus.groovy.maven</groupId>
882 <artifactId>gmaven-plugin</artifactId>
883 <version>1.0</version>
886 <phase>validate</phase>
892 println project.properties['aai.project.version'];
894 if (project.properties['aai.project.version'] != null) {
895 versionArray = project.properties['aai.project.version'].split('\\.');
898 project.properties["project.major.version"] = versionArray[0];
899 project.properties["project.minor.version"] = versionArray[1];
900 project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest';
901 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
911 <groupId>org.apache.maven.plugins</groupId>
912 <artifactId>maven-clean-plugin</artifactId>
913 <version>2.4.1</version>
917 <directory>${project.basedir}/src/main/resources/etc/oxm</directory>
919 <include>**/*</include>
921 <followSymlinks>false</followSymlinks>
924 <directory>${project.basedir}/src/main/resources/etc/dbedgerules</directory>
926 <include>**/*</include>
928 <followSymlinks>false</followSymlinks>
931 <directory>${project.basedir}/src/main/resources/schema</directory>
933 <include>**/oxm/**</include>
934 <include>**/dbedgerules/**</include>
936 <followSymlinks>false</followSymlinks>
942 <groupId>org.springframework.boot</groupId>
943 <artifactId>spring-boot-maven-plugin</artifactId>
946 <artifactId>exec-maven-plugin</artifactId>
947 <groupId>org.codehaus.mojo</groupId>
950 <groupId>org.apache.maven.plugins</groupId>
951 <artifactId>maven-javadoc-plugin</artifactId>
954 <groupId>com.mycila</groupId>
955 <artifactId>license-maven-plugin</artifactId>
958 <artifactId>maven-assembly-plugin</artifactId>
961 <descriptor>src/main/assembly/descriptor.xml</descriptor>
966 <id>make-assembly</id> <!-- this is used for inheritance merges -->
967 <phase>package</phase> <!-- bind to the packaging phase -->
975 <groupId>org.apache.maven.plugins</groupId>
976 <artifactId>maven-surefire-plugin</artifactId>
977 <version>2.12.4</version>
979 <argLine>-noverify ${argLine}</argLine>
980 <runOrder>alphabetical</runOrder>
984 <groupId>org.codehaus.mojo</groupId>
985 <artifactId>sonar-maven-plugin</artifactId>
986 <version>3.3</version>
989 <groupId>org.codehaus.groovy.maven</groupId>
990 <artifactId>gmaven-plugin</artifactId>
993 <groupId>org.jacoco</groupId>
994 <artifactId>jacoco-maven-plugin</artifactId>
995 <version>0.7.9</version>
997 <dumpOnExit>true</dumpOnExit>
999 <exclude>**/**/models/**/*.class</exclude>
1004 <id>jacoco-initialize-unit-tests</id>
1006 <goal>prepare-agent</goal>
1009 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1010 <!-- <append>true</append> -->
1014 <id>post-unit-test</id>
1020 <!-- Sets the path to the file which contains the execution data. -->
1021 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1022 <!-- Sets the output directory for the code coverage report. -->
1023 <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
1027 <id>default-check</id>
1032 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1034 <!-- implementation is needed only for Maven 2 -->
1035 <rule implementation="org.jacoco.maven.RuleConfiguration">
1036 <element>BUNDLE</element>
1038 <limit implementation="org.jacoco.report.check.Limit">
1039 <counter>LINE</counter>
1040 <value>COVEREDRATIO</value>
1041 <minimum>${jacoco.line.coverage.limit}</minimum>
1051 <groupId>org.springframework.boot</groupId>
1052 <artifactId>spring-boot-maven-plugin</artifactId>
1054 <mainClass>${start-class}</mainClass>
1055 <layout>ZIP</layout>
1060 <goal>repackage</goal>
1066 <groupId>org.antlr</groupId>
1067 <artifactId>antlr4-maven-plugin</artifactId>
1068 <version>4.7</version>
1075 <sourceDirectory>src/main/resources/antlr4</sourceDirectory>
1076 <!-- <outputDirectory>src/main/java/antlr4</outputDirectory> -->
1082 <groupId>org.apache.maven.plugins</groupId>
1083 <artifactId>maven-dependency-plugin</artifactId>
1084 <version>2.8</version>
1087 <id>unpack-schema-dependency</id>
1088 <phase>initialize</phase>
1095 <groupId>org.onap.aai.aai-common</groupId>
1096 <artifactId>aai-schema</artifactId>
1097 <version>${aai.schema.version}</version>
1098 <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
1099 <includes>**/oxm/**/*.xml</includes>
1102 <!-- other configurations here -->
1106 <id>unpack-edgerules-dependency</id>
1107 <phase>initialize</phase>
1114 <groupId>org.onap.aai.aai-common</groupId>
1115 <artifactId>aai-schema</artifactId>
1116 <version>${aai.schema.version}</version>
1117 <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
1118 <includes>**/dbedgerules/**/*.json</includes>
1121 <!-- other configurations here -->
1127 <groupId>com.mycila</groupId>
1128 <artifactId>license-maven-plugin</artifactId>
1129 <version>3.0</version>
1131 <header>LICENSE.TXT</header>
1133 <include>src/main/java/**</include>
1134 <include>src/test/java/**</include>
1135 <include>pom.xml</include>
1137 <skipExistingHeaders>false</skipExistingHeaders>
1143 <!-- Set goal to "format" to auto update license headers -->
1144 <goal>${license.goal.type}</goal>
1146 <phase>process-sources</phase>