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.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>
43 <spring.boot.version>1.5.20.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>
128 <license.goal.type>check</license.goal.type>
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>
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>
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>
155 <!-- End of Default ONAP Schema Properties -->
157 <!-- Setting some default value to not complain by editor but it will be overridden by gmaven plugin -->
160 <!-- Docker profile to be used for building docker image and pushing to nexus -->
166 <groupId>io.fabric8</groupId>
167 <artifactId>docker-maven-plugin</artifactId>
168 <version>${docker.fabric.version}</version>
170 <verbose>true</verbose>
171 <apiVersion>1.23</apiVersion>
174 <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
179 <tag>${project.docker.latesttag.version}</tag>
180 <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag>
182 <cleanup>try</cleanup>
183 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
188 <directory>${aai.build.directory}</directory>
189 <outputDirectory>/${project.artifactId}</outputDirectory>
200 <id>clean-images</id>
201 <phase>pre-clean</phase>
206 <removeAll>true</removeAll>
210 <id>generate-images</id>
211 <phase>package</phase>
218 <phase>deploy</phase>
228 <!-- Start of ONAP Profile -->
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>
238 <!-- End of ONAP Profile -->
242 <skipTests>${maven.skip.tests}</skipTests>
245 <defaultGoal>pre-integration-test</defaultGoal>
248 <groupId>org.codehaus.mojo</groupId>
249 <artifactId>exec-maven-plugin</artifactId>
250 <version>1.6.0</version>
253 <id>run-spring-boot</id>
254 <phase>package</phase>
261 <mainClass>${start-class}</mainClass>
264 <key>snapshot.location</key>
265 <value>${snapshot.file}</value>
268 <key>schema.source.name</key>
269 <value>${schema.source.name}</value>
272 <key>schema.configuration.location</key>
273 <value>${schema.configuration.location}</value>
276 <key>schema.nodes.location</key>
277 <value>${schema.nodes.location}</value>
280 <key>schema.edges.location</key>
281 <value>${schema.edges.location}</value>
284 <key>schema.version.depth.start</key>
285 <value>${schema.version.depth.start}</value>
288 <key>schema.version.related.link.start</key>
289 <value>${schema.version.related.link.start}</value>
292 <key>schema.version.app.root.start</key>
293 <value>${schema.version.app.root.start}</value>
296 <key>schema.version.namespace.change.start</key>
297 <value>${schema.version.namespace.change.start}</value>
300 <key>schema.version.edge.label.start</key>
301 <value>${schema.version.edge.label.start}</value>
304 <key>schema.version.api.default</key>
305 <value>${schema.version.api.default}</value>
308 <key>schema.version.list</key>
309 <value>${schema.version.list}</value>
312 <key>schema.uri.base.path</key>
313 <value>${schema.uri.base.path}</value>
316 <key>schema.ingest.file</key>
317 <value>${schema.ingest.file}</value>
320 <executable>java</executable>
327 <dependencyManagement>
330 <groupId>org.springframework.boot</groupId>
331 <artifactId>spring-boot-starter-parent</artifactId>
332 <version>${spring.boot.version}</version>
334 <scope>import</scope>
337 </dependencyManagement>
340 <groupId>net.sf.jopt-simple</groupId>
341 <artifactId>jopt-simple</artifactId>
342 <version>${jopt.simple.version}</version>
345 <groupId>io.swagger</groupId>
346 <artifactId>swagger-core</artifactId>
347 <version>${io.swagger.version}</version>
350 <groupId>javax.ws.rs</groupId>
351 <artifactId>jsr311-api</artifactId>
356 <groupId>io.swagger</groupId>
357 <artifactId>swagger-annotations</artifactId>
358 <version>${io.swagger.version}</version>
361 <groupId>commons-configuration</groupId>
362 <artifactId>commons-configuration</artifactId>
363 <version>${commons.configuration.version}</version>
366 <artifactId>commons-lang</artifactId>
367 <groupId>commons-lang</groupId>
372 <groupId>io.swagger</groupId>
373 <artifactId>swagger-jersey-jaxrs</artifactId>
374 <version>${io.swagger.version}</version>
377 <groupId>org.glassfish.jersey.media</groupId>
378 <artifactId>jersey-media-multipart</artifactId>
381 <artifactId>jersey-core</artifactId>
382 <groupId>com.sun.jersey</groupId>
385 <artifactId>jersey-json</artifactId>
386 <groupId>com.sun.jersey</groupId>
389 <artifactId>jersey-server</artifactId>
390 <groupId>com.sun.jersey</groupId>
393 <artifactId>jersey-client</artifactId>
394 <groupId>com.sun.jersey</groupId>
397 <artifactId>jsr311-api</artifactId>
398 <groupId>javax.ws.rs</groupId>
401 <artifactId>jersey-multipart</artifactId>
402 <groupId>com.sun.jersey.contribs</groupId>
407 <groupId>commons-lang</groupId>
408 <artifactId>commons-lang</artifactId>
409 <version>${commons.lang.version}</version>
411 <!-- eelf dependency -->
413 <groupId>com.att.eelf</groupId>
414 <artifactId>eelf-core</artifactId>
415 <version>${eelf.core.version}</version>
418 <groupId>ch.qos.logback</groupId>
419 <artifactId>logback-core</artifactId>
420 <version>${logback.version}</version>
423 <groupId>ch.qos.logback</groupId>
424 <artifactId>logback-classic</artifactId>
425 <version>${logback.version}</version>
428 <groupId>ch.qos.logback</groupId>
429 <artifactId>logback-access</artifactId>
430 <version>${logback.version}</version>
433 <groupId>org.hamcrest</groupId>
434 <artifactId>hamcrest-junit</artifactId>
435 <version>${hamcrest.junit.version}</version>
438 <groupId>junit</groupId>
439 <artifactId>junit</artifactId>
440 <version>${junit.version}</version>
444 <groupId>com.google.guava</groupId>
445 <artifactId>guava</artifactId>
446 <version>${google.guava.version}</version>
449 <groupId>org.janusgraph</groupId>
450 <artifactId>janusgraph-core</artifactId>
451 <version>${janusgraph.version}</version>
454 <groupId>org.slf4j</groupId>
455 <artifactId>slf4j-log4j12</artifactId>
458 <groupId>dom4j</groupId>
459 <artifactId>dom4j</artifactId>
464 <groupId>org.janusgraph</groupId>
465 <artifactId>janusgraph-cassandra</artifactId>
466 <version>${janusgraph.version}</version>
469 <groupId>org.slf4j</groupId>
470 <artifactId>slf4j-log4j12</artifactId>
473 <groupId>dom4j</groupId>
474 <artifactId>dom4j</artifactId>
479 <groupId>org.janusgraph</groupId>
480 <artifactId>janusgraph-cql</artifactId>
481 <version>${janusgraph.version}</version>
484 <groupId>org.slf4j</groupId>
485 <artifactId>slf4j-log4j12</artifactId>
490 <groupId>org.apache.tinkerpop</groupId>
491 <artifactId>tinkergraph-gremlin</artifactId>
492 <version>${gremlin.version}</version>
495 <groupId>org.apache.tinkerpop</groupId>
496 <artifactId>gremlin-core</artifactId>
497 <version>${gremlin.version}</version>
500 <groupId>org.apache.tinkerpop</groupId>
501 <artifactId>gremlin-driver</artifactId>
502 <version>${gremlin.version}</version>
505 <groupId>com.fasterxml.jackson.jaxrs</groupId>
506 <artifactId>jackson-jaxrs-json-provider</artifactId>
509 <groupId>org.mockito</groupId>
510 <artifactId>mockito-all</artifactId>
511 <version>${mockito.version}</version>
515 <groupId>org.powermock</groupId>
516 <artifactId>powermock-module-junit4</artifactId>
517 <version>${powermock.version}</version>
521 <groupId>org.powermock</groupId>
522 <artifactId>powermock-api-mockito</artifactId>
523 <version>${powermock.version}</version>
527 <groupId>com.beust</groupId>
528 <artifactId>jcommander</artifactId>
529 <version>${jcommander.version}</version>
532 <groupId>org.json</groupId>
533 <artifactId>json</artifactId>
534 <version>${json.version}</version>
537 <groupId>org.freemarker</groupId>
538 <artifactId>freemarker</artifactId>
539 <version>${freemarker.version}</version>
542 <groupId>javax.xml.bind</groupId>
543 <artifactId>jaxb-api</artifactId>
544 <version>${jaxb.version}</version>
547 <groupId>com.sun.xml.bind</groupId>
548 <artifactId>jaxb-impl</artifactId>
549 <version>${jaxb.version}</version>
552 <groupId>com.sun.xml.bind</groupId>
553 <artifactId>jaxb-core</artifactId>
554 <version>${jaxb.version}</version>
557 <groupId>org.onap.aaf.authz</groupId>
558 <artifactId>aaf-cadi-aaf</artifactId>
559 <version>${aaf.version}</version>
562 <groupId>com.sun.xml.bind</groupId>
563 <artifactId>jaxb-xjc</artifactId>
564 <version>${jaxb.version}</version>
567 <groupId>org.eclipse.persistence</groupId>
568 <artifactId>eclipselink</artifactId>
569 <version>${eclipse.persistence.version}</version>
572 <groupId>org.eclipse.persistence</groupId>
573 <artifactId>org.eclipse.persistence.moxy</artifactId>
574 <version>${eclipse.persistence.version}</version>
575 <scope>compile</scope>
578 <groupId>com.github.fge</groupId>
579 <artifactId>json-patch</artifactId>
580 <version>${json.patch.version}</version>
583 <groupId>org.javatuples</groupId>
584 <artifactId>javatuples</artifactId>
585 <version>${javatuples.version}</version>
586 <scope>compile</scope>
589 <groupId>com.google.code.gson</groupId>
590 <artifactId>gson</artifactId>
591 <version>${gson.version}</version>
594 <groupId>com.att.nsa</groupId>
595 <artifactId>dmaapClient</artifactId>
596 <version>${dmaap.client.version}</version>
599 <groupId>org.slf4j</groupId>
600 <artifactId>slf4j-log4j12</artifactId>
603 <groupId>com.att.aft</groupId>
604 <artifactId>dme2</artifactId>
609 <groupId>com.jayway.jsonpath</groupId>
610 <artifactId>json-path</artifactId>
611 <version>${json.path.version}</version>
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 -->
617 <groupId>org.apache.activemq</groupId>
618 <artifactId>activemq-broker</artifactId>
619 <version>${activemq.version}</version>
622 <groupId>org.apache.activemq</groupId>
623 <artifactId>activemq-client</artifactId>
624 <version>${activemq.version}</version>
627 <groupId>org.onap.aai.aai-common</groupId>
628 <artifactId>aai-core</artifactId>
629 <version>${aai.core.version}</version>
632 <groupId>com.sun.jersey</groupId>
633 <artifactId>jersey-core</artifactId>
636 <groupId>org.codehaus.jackson</groupId>
637 <artifactId>jackson-mapper-asl</artifactId>
640 <groupId>org.eclipse.jetty</groupId>
641 <artifactId>jetty-http</artifactId>
644 <groupId>org.eclipse.jetty</groupId>
645 <artifactId>jetty-server</artifactId>
648 <groupId>org.springframework</groupId>
649 <artifactId>spring-web</artifactId>
654 <groupId>org.onap.aai.aai-common</groupId>
655 <artifactId>aai-schema-ingest</artifactId>
656 <version>${aai.schema.ingest.version}</version>
660 <groupId>org.springframework</groupId>
661 <artifactId>spring-jms</artifactId>
662 <version>${spring.jms.version}</version>
665 <groupId>com.sun.jersey</groupId>
666 <artifactId>jersey-core</artifactId>
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 -->
674 <groupId>org.apache.httpcomponents</groupId>
675 <artifactId>httpclient</artifactId>
676 <version>${httpclient.version}</version>
679 <groupId>org.skyscreamer</groupId>
680 <artifactId>jsonassert</artifactId>
681 <version>${jsonassert.version}</version>
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
693 <groupId>org.springframework.security</groupId>
694 <artifactId>spring-security-rsa</artifactId>
695 <version>${spring.security.version}</version>
698 <groupId>org.bouncycastle</groupId>
699 <artifactId>bcpkix-jdk15on</artifactId>
704 <groupId>io.netty</groupId>
705 <artifactId>netty-handler</artifactId>
706 <version>${netty.handler.version}</version>
709 <groupId>org.springframework.boot</groupId>
710 <artifactId>spring-boot-starter-web</artifactId>
713 <groupId>org.springframework.boot</groupId>
714 <artifactId>spring-boot-starter-tomcat</artifactId>
719 <groupId>org.springframework.boot</groupId>
720 <artifactId>spring-boot-starter-jetty</artifactId>
723 <groupId>org.springframework.boot</groupId>
724 <artifactId>spring-boot-starter-jersey</artifactId>
727 <groupId>io.netty</groupId>
728 <artifactId>netty-all</artifactId>
729 <version>${netty.version}</version>
732 <groupId>org.codehaus.groovy</groupId>
733 <artifactId>groovy</artifactId>
734 <version>${groovy.version}</version>
735 <classifier>indy</classifier>
738 <groupId>org.springframework</groupId>
739 <artifactId>spring-test</artifactId>
740 <version>${spring.test.version}</version>
744 <groupId>org.springframework.boot</groupId>
745 <artifactId>spring-boot-test</artifactId>
749 <groupId>org.apache.tinkerpop</groupId>
750 <artifactId>gremlin-groovy</artifactId>
751 <version>${gremlin.version}</version>
757 <directory>${project.basedir}/src/main/swm</directory>
758 <targetPath>${project.build.directory}/swm</targetPath>
759 <filtering>false</filtering>
762 <directory>${project.basedir}/src/main/resources</directory>
764 <include>application.properties</include>
765 <include>dme2.properties</include>
766 <include>logback.xml</include>
767 <include>localhost-access-logback.xml</include>
769 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
770 <filtering>false</filtering>
773 <directory>${project.basedir}/src/main/resources</directory>
775 <include>**/*</include>
777 <filtering>true</filtering>
780 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
782 <include>janusgraph-realtime.properties</include>
783 <include>janusgraph-cached.properties</include>
784 <include>aaiconfig.properties</include>
786 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
787 <filtering>false</filtering>
790 <directory>${project.basedir}/src/main/resources/etc/auth/</directory>
792 <include>aai-client-cert.p12</include>
793 <include>tomcat_keystore</include>
794 <include>aai_policy.json</include>
796 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
797 <filtering>true</filtering>
800 <directory>${project.basedir}/src/main/resources/</directory>
802 <include>logback.xml</include>
803 <include>localhost-access-logback.xml</include>
804 <include>hbase-site.xml</include>
806 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
807 <filtering>true</filtering>
810 <directory>${project.basedir}/src/main/resources/schema/</directory>
812 <include>**/oxm/**/*.xml</include>
813 <include>**/dbedgerules/**/*.json</include>
815 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema</targetPath>
816 <filtering>false</filtering>
819 <directory>${project.basedir}/src/main/docker</directory>
821 <include>**/*</include>
823 <targetPath>${aai.build.directory}</targetPath>
824 <filtering>true</filtering>
827 <directory>${project.build.directory}/</directory>
829 <include>${project.artifactId}-${project.version}.jar</include>
831 <targetPath>${aai.build.directory}/lib/</targetPath>
832 <filtering>false</filtering>
838 <groupId>org.apache.maven.plugins</groupId>
839 <artifactId>maven-dependency-plugin</artifactId>
840 <version>2.8</version>
843 <id>unpack-schema-dependency</id>
844 <phase>initialize</phase>
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>
858 <!-- other configurations here -->
862 <id>unpack-edgerules-dependency</id>
863 <phase>initialize</phase>
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>
877 <!-- other configurations here -->
883 <groupId>org.codehaus.groovy.maven</groupId>
884 <artifactId>gmaven-plugin</artifactId>
885 <version>1.0</version>
888 <phase>validate</phase>
894 println project.properties['aai.project.version'];
896 if (project.properties['aai.project.version'] != null) {
897 versionArray = project.properties['aai.project.version'].split('\\.');
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'];
910 <groupId>com.mycila</groupId>
911 <artifactId>license-maven-plugin</artifactId>
912 <version>3.0</version>
914 <header>LICENSE.TXT</header>
916 <include>src/main/java/**</include>
917 <include>src/test/java/**</include>
918 <include>pom.xml</include>
920 <skipExistingHeaders>false</skipExistingHeaders>
928 <groupId>org.springframework.boot</groupId>
929 <artifactId>spring-boot-maven-plugin</artifactId>
932 <groupId>org.apache.maven.plugins</groupId>
933 <artifactId>maven-clean-plugin</artifactId>
934 <version>2.4.1</version>
938 <directory>${project.basedir}/src/main/resources/schema</directory>
940 <include>**/*</include>
942 <followSymlinks>false</followSymlinks>
948 <groupId>org.codehaus.groovy.maven</groupId>
949 <artifactId>gmaven-plugin</artifactId>
952 <groupId>org.apache.maven.plugins</groupId>
953 <artifactId>maven-dependency-plugin</artifactId>
954 <version>2.10</version>
957 <groupId>org.apache.maven.plugins</groupId>
958 <artifactId>maven-javadoc-plugin</artifactId>
959 <version>${javadoc.plugin.version}</version>
962 <artifactId>maven-assembly-plugin</artifactId>
965 <descriptor>src/main/assembly/descriptor.xml</descriptor>
970 <id>make-assembly</id> <!-- this is used for inheritance merges -->
971 <phase>package</phase> <!-- bind to the packaging phase -->
979 <groupId>org.apache.maven.plugins</groupId>
980 <artifactId>maven-surefire-plugin</artifactId>
981 <version>2.12.4</version>
983 <argLine>-noverify ${argLine}</argLine>
984 <runOrder>alphabetical</runOrder>
988 <groupId>com.mycila</groupId>
989 <artifactId>license-maven-plugin</artifactId>
992 <groupId>org.codehaus.mojo</groupId>
993 <artifactId>sonar-maven-plugin</artifactId>
994 <version>3.3</version>
997 <groupId>org.jacoco</groupId>
998 <artifactId>jacoco-maven-plugin</artifactId>
999 <version>0.7.9</version>
1001 <dumpOnExit>true</dumpOnExit>
1003 <exclude>**/**/models/**/*.class</exclude>
1008 <id>jacoco-initialize-unit-tests</id>
1010 <goal>prepare-agent</goal>
1013 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1014 <!-- <append>true</append> -->
1018 <id>post-unit-test</id>
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>
1031 <id>default-check</id>
1036 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1038 <!-- implementation is needed only for Maven 2 -->
1039 <rule implementation="org.jacoco.maven.RuleConfiguration">
1040 <element>BUNDLE</element>
1042 <limit implementation="org.jacoco.report.check.Limit">
1043 <counter>LINE</counter>
1044 <value>COVEREDRATIO</value>
1045 <minimum>${jacoco.line.coverage.limit}</minimum>
1055 <groupId>org.apache.maven.plugins</groupId>
1056 <artifactId>maven-deploy-plugin</artifactId>
1059 <id>default-deploy</id>
1065 <groupId>org.sonatype.plugins</groupId>
1066 <artifactId>nexus-staging-maven-plugin</artifactId>
1067 <version>1.6.7</version>
1068 <extensions>true</extensions>
1070 <nexusUrl>${nexusproxy}</nexusUrl>
1071 <stagingProfileId>176c31dfe190a</stagingProfileId>
1072 <serverId>ecomp-staging</serverId>
1076 <groupId>org.springframework.boot</groupId>
1077 <artifactId>spring-boot-maven-plugin</artifactId>
1078 <version>${spring.boot.version}</version>
1080 <mainClass>${start-class}</mainClass>
1081 <layout>ZIP</layout>
1086 <goal>repackage</goal>
1096 <groupId>org.apache.maven.plugins</groupId>
1097 <artifactId>maven-javadoc-plugin</artifactId>
1098 <version>2.10.4</version>
1100 <failOnError>false</failOnError>
1101 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
1103 <groupId>org.umlgraph</groupId>
1104 <artifactId>umlgraph</artifactId>
1105 <version>5.6</version>
1107 <additionalparam>-views</additionalparam>
1108 <useStandardDocletOptions>true</useStandardDocletOptions>