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.resources</groupId>
27 <artifactId>aai-resources</artifactId>
28 <version>1.4.0-SNAPSHOT</version>
30 <groupId>org.onap.aai.resources</groupId>
31 <artifactId>resources</artifactId>
32 <version>1.4.0-SNAPSHOT</version>
35 <java.version>1.8</java.version>
36 <start-class>org.onap.aai.ResourcesApp</start-class>
38 <aai.schema.version>1.0.1-SNAPSHOT</aai.schema.version>
39 <aai.core.version>1.4.1-SNAPSHOT</aai.core.version>
40 <aai.schema.ingest.version>1.4.1-SNAPSHOT</aai.schema.ingest.version>
41 <hbase.version>1.0.2</hbase.version>
43 <spring.boot.version>1.5.18.RELEASE</spring.boot.version>
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 -->
54 <jopt.simple.version>4.9</jopt.simple.version>
56 <io.swagger.version>1.5.8</io.swagger.version>
57 <apache.log4j.version>1.2.17</apache.log4j.version>
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>
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>
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/
121 </aai.build.directory>
122 <aai.docker.namespace>onap</aai.docker.namespace>
124 <maven.skip.tests>true</maven.skip.tests>
125 <snapshot.file>${project.basedir}/snapshots/snapshot.graphson</snapshot.file>
127 <jacoco.line.coverage.limit>0.68</jacoco.line.coverage.limit>
129 <spring.web.version>4.3.21.RELEASE</spring.web.version>
130 <netty.handler.version>4.1.9.Final</netty.handler.version>
131 <netty.version>4.0.56.Final</netty.version>
132 <spring.test.version>4.3.21.RELEASE</spring.test.version>
134 <!-- This will be used for the docker images as the default format of maven build has issues -->
135 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
136 <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
138 <!-- Start of Default ONAP Schema Properties -->
139 <schema.source.name>onap</schema.source.name>
140 <schema.configuration.location>N/A</schema.configuration.location>
141 <schema.nodes.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/oxm</schema.nodes.location>
142 <schema.edges.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/dbedgerules</schema.edges.location>
143 <schema.version.depth.start>v10</schema.version.depth.start>
144 <schema.version.related.link.start>v10</schema.version.related.link.start>
145 <schema.version.app.root.start>v11</schema.version.app.root.start>
146 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
147 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
148 <schema.version.api.default>v15</schema.version.api.default>
149 <schema.version.list>v10,v11,v12,v13,v14,v15</schema.version.list>
150 <schema.uri.base.path>/aai</schema.uri.base.path>
151 <!-- <schema.translator.list>config</schema.translator.list> -->
152 <schema.ingest.file>${project.basedir}/src/main/resources/application.properties</schema.ingest.file>
154 <!-- End of Default ONAP Schema Properties -->
156 <!-- Setting some default value to not complain by editor but it will be overridden by gmaven plugin -->
159 <!-- Docker profile to be used for building docker image and pushing to nexus -->
165 <groupId>io.fabric8</groupId>
166 <artifactId>docker-maven-plugin</artifactId>
167 <version>${docker.fabric.version}</version>
169 <verbose>true</verbose>
170 <apiVersion>1.23</apiVersion>
173 <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
178 <tag>${project.docker.latesttag.version}</tag>
179 <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag>
181 <cleanup>try</cleanup>
182 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
187 <directory>${aai.build.directory}</directory>
188 <outputDirectory>/${project.artifactId}</outputDirectory>
199 <id>clean-images</id>
200 <phase>pre-clean</phase>
205 <removeAll>true</removeAll>
209 <id>generate-images</id>
210 <phase>package</phase>
217 <phase>deploy</phase>
227 <!-- Start of ONAP Profile -->
231 <schema.source.name>onap</schema.source.name>
232 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
233 <schema.version.list>v10,v11,v12,v13,v14,v15</schema.version.list>
234 <schema.ingest.file>${project.basedir}/src/main/resources/application.properties</schema.ingest.file>
237 <!-- End of ONAP Profile -->
241 <skipTests>${maven.skip.tests}</skipTests>
244 <defaultGoal>pre-integration-test</defaultGoal>
247 <groupId>org.codehaus.mojo</groupId>
248 <artifactId>exec-maven-plugin</artifactId>
249 <version>1.6.0</version>
252 <id>run-spring-boot</id>
253 <phase>package</phase>
260 <mainClass>${start-class}</mainClass>
263 <key>snapshot.location</key>
264 <value>${snapshot.file}</value>
267 <key>schema.source.name</key>
268 <value>${schema.source.name}</value>
271 <key>schema.configuration.location</key>
272 <value>${schema.configuration.location}</value>
275 <key>schema.nodes.location</key>
276 <value>${schema.nodes.location}</value>
279 <key>schema.edges.location</key>
280 <value>${schema.edges.location}</value>
283 <key>schema.version.depth.start</key>
284 <value>${schema.version.depth.start}</value>
287 <key>schema.version.related.link.start</key>
288 <value>${schema.version.related.link.start}</value>
291 <key>schema.version.app.root.start</key>
292 <value>${schema.version.app.root.start}</value>
295 <key>schema.version.namespace.change.start</key>
296 <value>${schema.version.namespace.change.start}</value>
299 <key>schema.version.edge.label.start</key>
300 <value>${schema.version.edge.label.start}</value>
303 <key>schema.version.api.default</key>
304 <value>${schema.version.api.default}</value>
307 <key>schema.version.list</key>
308 <value>${schema.version.list}</value>
311 <key>schema.uri.base.path</key>
312 <value>${schema.uri.base.path}</value>
315 <key>schema.ingest.file</key>
316 <value>${schema.ingest.file}</value>
319 <executable>java</executable>
326 <dependencyManagement>
329 <groupId>org.springframework.boot</groupId>
330 <artifactId>spring-boot-starter-parent</artifactId>
331 <version>${spring.boot.version}</version>
333 <scope>import</scope>
336 </dependencyManagement>
339 <groupId>net.sf.jopt-simple</groupId>
340 <artifactId>jopt-simple</artifactId>
341 <version>${jopt.simple.version}</version>
344 <groupId>io.swagger</groupId>
345 <artifactId>swagger-core</artifactId>
346 <version>${io.swagger.version}</version>
349 <groupId>javax.ws.rs</groupId>
350 <artifactId>jsr311-api</artifactId>
355 <groupId>io.swagger</groupId>
356 <artifactId>swagger-annotations</artifactId>
357 <version>${io.swagger.version}</version>
360 <groupId>commons-configuration</groupId>
361 <artifactId>commons-configuration</artifactId>
362 <version>${commons.configuration.version}</version>
365 <artifactId>commons-lang</artifactId>
366 <groupId>commons-lang</groupId>
371 <groupId>io.swagger</groupId>
372 <artifactId>swagger-jersey-jaxrs</artifactId>
373 <version>${io.swagger.version}</version>
376 <groupId>org.glassfish.jersey.media</groupId>
377 <artifactId>jersey-media-multipart</artifactId>
380 <artifactId>jersey-core</artifactId>
381 <groupId>com.sun.jersey</groupId>
384 <artifactId>jersey-json</artifactId>
385 <groupId>com.sun.jersey</groupId>
388 <artifactId>jersey-server</artifactId>
389 <groupId>com.sun.jersey</groupId>
392 <artifactId>jersey-client</artifactId>
393 <groupId>com.sun.jersey</groupId>
396 <artifactId>jsr311-api</artifactId>
397 <groupId>javax.ws.rs</groupId>
400 <artifactId>jersey-multipart</artifactId>
401 <groupId>com.sun.jersey.contribs</groupId>
406 <groupId>commons-lang</groupId>
407 <artifactId>commons-lang</artifactId>
408 <version>${commons.lang.version}</version>
410 <!-- eelf dependency -->
412 <groupId>com.att.eelf</groupId>
413 <artifactId>eelf-core</artifactId>
414 <version>${eelf.core.version}</version>
417 <groupId>ch.qos.logback</groupId>
418 <artifactId>logback-core</artifactId>
419 <version>${logback.version}</version>
422 <groupId>ch.qos.logback</groupId>
423 <artifactId>logback-classic</artifactId>
424 <version>${logback.version}</version>
427 <groupId>ch.qos.logback</groupId>
428 <artifactId>logback-access</artifactId>
429 <version>${logback.version}</version>
432 <groupId>org.hamcrest</groupId>
433 <artifactId>hamcrest-junit</artifactId>
434 <version>${hamcrest.junit.version}</version>
437 <groupId>junit</groupId>
438 <artifactId>junit</artifactId>
439 <version>${junit.version}</version>
443 <groupId>com.google.guava</groupId>
444 <artifactId>guava</artifactId>
445 <version>${google.guava.version}</version>
448 <groupId>org.janusgraph</groupId>
449 <artifactId>janusgraph-core</artifactId>
450 <version>${janusgraph.version}</version>
453 <groupId>org.slf4j</groupId>
454 <artifactId>slf4j-log4j12</artifactId>
457 <groupId>dom4j</groupId>
458 <artifactId>dom4j</artifactId>
463 <groupId>org.janusgraph</groupId>
464 <artifactId>janusgraph-cassandra</artifactId>
465 <version>${janusgraph.version}</version>
468 <groupId>org.slf4j</groupId>
469 <artifactId>slf4j-log4j12</artifactId>
472 <groupId>dom4j</groupId>
473 <artifactId>dom4j</artifactId>
478 <groupId>org.janusgraph</groupId>
479 <artifactId>janusgraph-cql</artifactId>
480 <version>${janusgraph.version}</version>
483 <groupId>org.slf4j</groupId>
484 <artifactId>slf4j-log4j12</artifactId>
489 <groupId>org.apache.tinkerpop</groupId>
490 <artifactId>tinkergraph-gremlin</artifactId>
491 <version>${gremlin.version}</version>
494 <groupId>org.apache.tinkerpop</groupId>
495 <artifactId>gremlin-core</artifactId>
496 <version>${gremlin.version}</version>
499 <groupId>org.apache.tinkerpop</groupId>
500 <artifactId>gremlin-driver</artifactId>
501 <version>${gremlin.version}</version>
504 <groupId>com.fasterxml.jackson.jaxrs</groupId>
505 <artifactId>jackson-jaxrs-json-provider</artifactId>
508 <groupId>org.mockito</groupId>
509 <artifactId>mockito-all</artifactId>
510 <version>${mockito.version}</version>
514 <groupId>org.powermock</groupId>
515 <artifactId>powermock-module-junit4</artifactId>
516 <version>${powermock.version}</version>
520 <groupId>org.powermock</groupId>
521 <artifactId>powermock-api-mockito</artifactId>
522 <version>${powermock.version}</version>
526 <groupId>com.beust</groupId>
527 <artifactId>jcommander</artifactId>
528 <version>${jcommander.version}</version>
531 <groupId>org.json</groupId>
532 <artifactId>json</artifactId>
533 <version>${json.version}</version>
536 <groupId>org.freemarker</groupId>
537 <artifactId>freemarker</artifactId>
538 <version>${freemarker.version}</version>
541 <groupId>javax.xml.bind</groupId>
542 <artifactId>jaxb-api</artifactId>
543 <version>${jaxb.version}</version>
546 <groupId>com.sun.xml.bind</groupId>
547 <artifactId>jaxb-impl</artifactId>
548 <version>${jaxb.version}</version>
551 <groupId>com.sun.xml.bind</groupId>
552 <artifactId>jaxb-core</artifactId>
553 <version>${jaxb.version}</version>
556 <groupId>org.onap.aaf.authz</groupId>
557 <artifactId>aaf-cadi-aaf</artifactId>
558 <version>${aaf.version}</version>
561 <groupId>com.sun.xml.bind</groupId>
562 <artifactId>jaxb-xjc</artifactId>
563 <version>${jaxb.version}</version>
566 <groupId>org.eclipse.persistence</groupId>
567 <artifactId>eclipselink</artifactId>
568 <version>${eclipse.persistence.version}</version>
571 <groupId>org.eclipse.persistence</groupId>
572 <artifactId>org.eclipse.persistence.moxy</artifactId>
573 <version>${eclipse.persistence.version}</version>
574 <scope>compile</scope>
577 <groupId>com.github.fge</groupId>
578 <artifactId>json-patch</artifactId>
579 <version>${json.patch.version}</version>
582 <groupId>org.javatuples</groupId>
583 <artifactId>javatuples</artifactId>
584 <version>${javatuples.version}</version>
585 <scope>compile</scope>
588 <groupId>com.google.code.gson</groupId>
589 <artifactId>gson</artifactId>
590 <version>${gson.version}</version>
593 <groupId>com.att.nsa</groupId>
594 <artifactId>dmaapClient</artifactId>
595 <version>${dmaap.client.version}</version>
598 <groupId>org.slf4j</groupId>
599 <artifactId>slf4j-log4j12</artifactId>
602 <groupId>com.att.aft</groupId>
603 <artifactId>dme2</artifactId>
608 <groupId>com.jayway.jsonpath</groupId>
609 <artifactId>json-path</artifactId>
610 <version>${json.path.version}</version>
612 <!-- Do not use activemq-all because they force you to use a specific logging
613 and they shade it so you can't simply exclude it and when you deploy the
614 jar, you will notice failure -->
616 <groupId>org.apache.activemq</groupId>
617 <artifactId>activemq-broker</artifactId>
618 <version>${activemq.version}</version>
621 <groupId>org.apache.activemq</groupId>
622 <artifactId>activemq-client</artifactId>
623 <version>${activemq.version}</version>
626 <groupId>org.onap.aai.aai-common</groupId>
627 <artifactId>aai-core</artifactId>
628 <version>${aai.core.version}</version>
631 <groupId>com.sun.jersey</groupId>
632 <artifactId>jersey-core</artifactId>
635 <groupId>org.codehaus.jackson</groupId>
636 <artifactId>jackson-mapper-asl</artifactId>
639 <groupId>org.eclipse.jetty</groupId>
640 <artifactId>jetty-http</artifactId>
643 <groupId>org.eclipse.jetty</groupId>
644 <artifactId>jetty-server</artifactId>
647 <groupId>org.springframework</groupId>
648 <artifactId>spring-web</artifactId>
653 <groupId>org.onap.aai.aai-common</groupId>
654 <artifactId>aai-schema-ingest</artifactId>
655 <version>${aai.schema.ingest.version}</version>
659 <groupId>org.springframework</groupId>
660 <artifactId>spring-jms</artifactId>
661 <version>${spring.jms.version}</version>
664 <groupId>com.sun.jersey</groupId>
665 <artifactId>jersey-core</artifactId>
669 <!-- Do not use the jersey-client since jersey client 1.0 version clashes
670 with jersey 2 which we are using -->
671 <!-- Use this to make http requests instead of jersey 1.0 client -->
673 <groupId>org.apache.httpcomponents</groupId>
674 <artifactId>httpclient</artifactId>
675 <version>${httpclient.version}</version>
678 <groupId>org.skyscreamer</groupId>
679 <artifactId>jsonassert</artifactId>
680 <version>${jsonassert.version}</version>
684 Explicitly stating the security spring framework and
685 exclude the bouncy castle since that is somehow overwriting
686 our p12 file decryption that's built into java security
687 This will cause the password is incorrect
688 This needs to be added back if org.bouncy castle dependency
689 sneaks backs in and causing issues with the two way ssl
692 <groupId>org.springframework.security</groupId>
693 <artifactId>spring-security-rsa</artifactId>
694 <version>${spring.security.version}</version>
697 <groupId>org.bouncycastle</groupId>
698 <artifactId>bcpkix-jdk15on</artifactId>
703 <groupId>io.netty</groupId>
704 <artifactId>netty-handler</artifactId>
705 <version>${netty.handler.version}</version>
708 <groupId>org.springframework.boot</groupId>
709 <artifactId>spring-boot-starter-web</artifactId>
712 <groupId>org.springframework.boot</groupId>
713 <artifactId>spring-boot-starter-tomcat</artifactId>
718 <groupId>org.springframework.boot</groupId>
719 <artifactId>spring-boot-starter-jetty</artifactId>
722 <groupId>org.springframework.boot</groupId>
723 <artifactId>spring-boot-starter-jersey</artifactId>
726 <groupId>io.netty</groupId>
727 <artifactId>netty-all</artifactId>
728 <version>${netty.version}</version>
731 <groupId>org.codehaus.groovy</groupId>
732 <artifactId>groovy</artifactId>
733 <version>${groovy.version}</version>
734 <classifier>indy</classifier>
737 <groupId>org.springframework</groupId>
738 <artifactId>spring-test</artifactId>
739 <version>${spring.test.version}</version>
743 <groupId>org.springframework.boot</groupId>
744 <artifactId>spring-boot-test</artifactId>
748 <groupId>org.apache.tinkerpop</groupId>
749 <artifactId>gremlin-groovy</artifactId>
750 <version>${gremlin.version}</version>
756 <directory>${project.basedir}/src/main/swm</directory>
757 <targetPath>${project.build.directory}/swm</targetPath>
758 <filtering>false</filtering>
761 <directory>${project.basedir}/src/main/resources</directory>
763 <include>application.properties</include>
764 <include>dme2.properties</include>
765 <include>logback.xml</include>
766 <include>localhost-access-logback.xml</include>
768 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
769 <filtering>false</filtering>
772 <directory>${project.basedir}/src/main/resources</directory>
774 <include>**/*</include>
776 <filtering>true</filtering>
779 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
781 <include>janusgraph-realtime.properties</include>
782 <include>janusgraph-cached.properties</include>
783 <include>aaiconfig.properties</include>
785 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
786 <filtering>false</filtering>
789 <directory>${project.basedir}/src/main/resources/etc/auth/</directory>
791 <include>aai-client-cert.p12</include>
792 <include>tomcat_keystore</include>
793 <include>aai_policy.json</include>
795 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
796 <filtering>true</filtering>
799 <directory>${project.basedir}/src/main/resources/</directory>
801 <include>logback.xml</include>
802 <include>localhost-access-logback.xml</include>
803 <include>hbase-site.xml</include>
805 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
806 <filtering>true</filtering>
809 <directory>${project.basedir}/src/main/resources/schema/</directory>
811 <include>**/oxm/**/*.xml</include>
812 <include>**/dbedgerules/**/*.json</include>
814 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema</targetPath>
815 <filtering>false</filtering>
818 <directory>${project.basedir}/src/main/docker</directory>
820 <include>**/*</include>
822 <targetPath>${aai.build.directory}</targetPath>
823 <filtering>true</filtering>
826 <directory>${project.build.directory}/</directory>
828 <include>${project.artifactId}-${project.version}.jar</include>
830 <targetPath>${aai.build.directory}/lib/</targetPath>
831 <filtering>false</filtering>
837 <groupId>org.apache.maven.plugins</groupId>
838 <artifactId>maven-dependency-plugin</artifactId>
839 <version>2.8</version>
842 <id>unpack-schema-dependency</id>
843 <phase>initialize</phase>
850 <groupId>org.onap.aai.schema-service</groupId>
851 <artifactId>aai-schema</artifactId>
852 <version>${aai.schema.version}</version>
853 <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
854 <includes>**/oxm/**/*.xml</includes>
857 <!-- other configurations here -->
861 <id>unpack-edgerules-dependency</id>
862 <phase>initialize</phase>
869 <groupId>org.onap.aai.schema-service</groupId>
870 <artifactId>aai-schema</artifactId>
871 <version>${aai.schema.version}</version>
872 <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
873 <includes>**/dbedgerules/**/*.json</includes>
876 <!-- other configurations here -->
882 <groupId>org.codehaus.groovy.maven</groupId>
883 <artifactId>gmaven-plugin</artifactId>
884 <version>1.0</version>
887 <phase>validate</phase>
893 println project.properties['aai.project.version'];
895 if (project.properties['aai.project.version'] != null) {
896 versionArray = project.properties['aai.project.version'].split('\\.');
899 project.properties["project.major.version"] = versionArray[0];
900 project.properties["project.minor.version"] = versionArray[1];
901 project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest';
902 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
909 <groupId>com.mycila</groupId>
910 <artifactId>license-maven-plugin</artifactId>
911 <version>3.0</version>
913 <header>LICENSE.TXT</header>
915 <include>src/main/java/**</include>
916 <include>src/test/java/**</include>
917 <include>pom.xml</include>
919 <skipExistingHeaders>false</skipExistingHeaders>
927 <groupId>org.springframework.boot</groupId>
928 <artifactId>spring-boot-maven-plugin</artifactId>
931 <groupId>org.apache.maven.plugins</groupId>
932 <artifactId>maven-clean-plugin</artifactId>
933 <version>2.4.1</version>
937 <directory>${project.basedir}/src/main/resources/schema</directory>
939 <include>**/*</include>
941 <followSymlinks>false</followSymlinks>
947 <groupId>org.codehaus.groovy.maven</groupId>
948 <artifactId>gmaven-plugin</artifactId>
951 <groupId>org.apache.maven.plugins</groupId>
952 <artifactId>maven-dependency-plugin</artifactId>
953 <version>2.10</version>
956 <groupId>org.apache.maven.plugins</groupId>
957 <artifactId>maven-javadoc-plugin</artifactId>
958 <version>${javadoc.plugin.version}</version>
961 <artifactId>maven-assembly-plugin</artifactId>
964 <descriptor>src/main/assembly/descriptor.xml</descriptor>
969 <id>make-assembly</id> <!-- this is used for inheritance merges -->
970 <phase>package</phase> <!-- bind to the packaging phase -->
978 <groupId>org.apache.maven.plugins</groupId>
979 <artifactId>maven-surefire-plugin</artifactId>
980 <version>2.12.4</version>
982 <argLine>-noverify ${argLine}</argLine>
983 <runOrder>alphabetical</runOrder>
987 <groupId>com.mycila</groupId>
988 <artifactId>license-maven-plugin</artifactId>
991 <groupId>org.codehaus.mojo</groupId>
992 <artifactId>sonar-maven-plugin</artifactId>
993 <version>3.3</version>
996 <groupId>org.jacoco</groupId>
997 <artifactId>jacoco-maven-plugin</artifactId>
998 <version>0.7.9</version>
1000 <dumpOnExit>true</dumpOnExit>
1002 <exclude>**/**/models/**/*.class</exclude>
1007 <id>jacoco-initialize-unit-tests</id>
1009 <goal>prepare-agent</goal>
1012 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1013 <!-- <append>true</append> -->
1017 <id>post-unit-test</id>
1023 <!-- Sets the path to the file which contains the execution data. -->
1024 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1025 <!-- Sets the output directory for the code coverage report. -->
1026 <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
1030 <id>default-check</id>
1035 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1037 <!-- implementation is needed only for Maven 2 -->
1038 <rule implementation="org.jacoco.maven.RuleConfiguration">
1039 <element>BUNDLE</element>
1041 <limit implementation="org.jacoco.report.check.Limit">
1042 <counter>LINE</counter>
1043 <value>COVEREDRATIO</value>
1044 <minimum>${jacoco.line.coverage.limit}</minimum>
1054 <groupId>org.apache.maven.plugins</groupId>
1055 <artifactId>maven-deploy-plugin</artifactId>
1058 <id>default-deploy</id>
1064 <groupId>org.sonatype.plugins</groupId>
1065 <artifactId>nexus-staging-maven-plugin</artifactId>
1066 <version>1.6.7</version>
1067 <extensions>true</extensions>
1069 <nexusUrl>${nexusproxy}</nexusUrl>
1070 <stagingProfileId>176c31dfe190a</stagingProfileId>
1071 <serverId>ecomp-staging</serverId>
1075 <groupId>org.springframework.boot</groupId>
1076 <artifactId>spring-boot-maven-plugin</artifactId>
1077 <version>${spring.boot.version}</version>
1079 <mainClass>${start-class}</mainClass>
1080 <layout>ZIP</layout>
1085 <goal>repackage</goal>
1095 <groupId>org.apache.maven.plugins</groupId>
1096 <artifactId>maven-javadoc-plugin</artifactId>
1097 <version>2.10.4</version>
1099 <failOnError>false</failOnError>
1100 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
1102 <groupId>org.umlgraph</groupId>
1103 <artifactId>umlgraph</artifactId>
1104 <version>5.6</version>
1106 <additionalparam>-views</additionalparam>
1107 <useStandardDocletOptions>true</useStandardDocletOptions>