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.5.0-SNAPSHOT</version>
30 <groupId>org.onap.aai.resources</groupId>
31 <artifactId>resources</artifactId>
32 <version>1.5.0-SNAPSHOT</version>
35 <java.version>1.8</java.version>
36 <start-class>org.onap.aai.ResourcesApp</start-class>
38 <aai.schema.version>1.5.0</aai.schema.version>
39 <aai.core.version>1.5.1</aai.core.version>
40 <aai.schema.ingest.version>1.5.1</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>
115 <aai.docker.version>1.0.0</aai.docker.version>
118 Location where assembly of our scripts, resources and main jar will be held
119 Check the ${project.artifactId}/src/main/assembly/descriptor.xml for more info
121 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/
122 </aai.build.directory>
123 <aai.docker.namespace>onap</aai.docker.namespace>
125 <maven.skip.tests>true</maven.skip.tests>
126 <snapshot.file>${project.basedir}/snapshots/snapshot.graphson</snapshot.file>
128 <jacoco.line.coverage.limit>0.68</jacoco.line.coverage.limit>
129 <license.goal.type>check</license.goal.type>
131 <spring.web.version>4.3.21.RELEASE</spring.web.version>
132 <netty.handler.version>4.1.9.Final</netty.handler.version>
133 <netty.version>4.0.56.Final</netty.version>
134 <spring.test.version>4.3.21.RELEASE</spring.test.version>
136 <!-- This will be used for the docker images as the default format of maven build has issues -->
137 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
138 <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
140 <!-- Start of Default ONAP Schema Properties -->
141 <schema.source.name>onap</schema.source.name>
142 <schema.configuration.location>N/A</schema.configuration.location>
143 <schema.nodes.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/oxm</schema.nodes.location>
144 <schema.edges.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/dbedgerules</schema.edges.location>
145 <schema.version.depth.start>v10</schema.version.depth.start>
146 <schema.version.related.link.start>v10</schema.version.related.link.start>
147 <schema.version.app.root.start>v11</schema.version.app.root.start>
148 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
149 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
150 <schema.version.api.default>v16</schema.version.api.default>
151 <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
152 <schema.uri.base.path>/aai</schema.uri.base.path>
153 <!-- <schema.translator.list>config</schema.translator.list> -->
154 <schema.ingest.file>${project.basedir}/src/main/resources/application.properties</schema.ingest.file>
156 <!-- End of Default ONAP Schema Properties -->
158 <!-- Setting some default value to not complain by editor but it will be overridden by gmaven plugin -->
161 <!-- Docker profile to be used for building docker image and pushing to nexus -->
167 <groupId>io.fabric8</groupId>
168 <artifactId>docker-maven-plugin</artifactId>
169 <version>${docker.fabric.version}</version>
171 <verbose>true</verbose>
172 <apiVersion>1.23</apiVersion>
175 <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
180 <tag>${project.docker.latesttag.version}</tag>
181 <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag>
183 <cleanup>try</cleanup>
184 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
189 <directory>${aai.build.directory}</directory>
190 <outputDirectory>/${project.artifactId}</outputDirectory>
201 <id>clean-images</id>
202 <phase>pre-clean</phase>
207 <removeAll>true</removeAll>
211 <id>generate-images</id>
212 <phase>package</phase>
219 <phase>deploy</phase>
229 <!-- Start of ONAP Profile -->
233 <schema.source.name>onap</schema.source.name>
234 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
235 <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
236 <schema.ingest.file>${project.basedir}/src/main/resources/application.properties</schema.ingest.file>
239 <!-- End of ONAP Profile -->
243 <skipTests>${maven.skip.tests}</skipTests>
246 <defaultGoal>pre-integration-test</defaultGoal>
249 <groupId>org.codehaus.mojo</groupId>
250 <artifactId>exec-maven-plugin</artifactId>
251 <version>1.6.0</version>
254 <id>run-spring-boot</id>
255 <phase>package</phase>
262 <mainClass>${start-class}</mainClass>
265 <key>snapshot.location</key>
266 <value>${snapshot.file}</value>
269 <key>schema.source.name</key>
270 <value>${schema.source.name}</value>
273 <key>schema.configuration.location</key>
274 <value>${schema.configuration.location}</value>
277 <key>schema.nodes.location</key>
278 <value>${schema.nodes.location}</value>
281 <key>schema.edges.location</key>
282 <value>${schema.edges.location}</value>
285 <key>schema.version.depth.start</key>
286 <value>${schema.version.depth.start}</value>
289 <key>schema.version.related.link.start</key>
290 <value>${schema.version.related.link.start}</value>
293 <key>schema.version.app.root.start</key>
294 <value>${schema.version.app.root.start}</value>
297 <key>schema.version.namespace.change.start</key>
298 <value>${schema.version.namespace.change.start}</value>
301 <key>schema.version.edge.label.start</key>
302 <value>${schema.version.edge.label.start}</value>
305 <key>schema.version.api.default</key>
306 <value>${schema.version.api.default}</value>
309 <key>schema.version.list</key>
310 <value>${schema.version.list}</value>
313 <key>schema.uri.base.path</key>
314 <value>${schema.uri.base.path}</value>
317 <key>schema.ingest.file</key>
318 <value>${schema.ingest.file}</value>
321 <executable>java</executable>
328 <dependencyManagement>
331 <groupId>org.springframework.boot</groupId>
332 <artifactId>spring-boot-starter-parent</artifactId>
333 <version>${spring.boot.version}</version>
335 <scope>import</scope>
338 </dependencyManagement>
341 <groupId>net.sf.jopt-simple</groupId>
342 <artifactId>jopt-simple</artifactId>
343 <version>${jopt.simple.version}</version>
346 <groupId>io.swagger</groupId>
347 <artifactId>swagger-core</artifactId>
348 <version>${io.swagger.version}</version>
351 <groupId>javax.ws.rs</groupId>
352 <artifactId>jsr311-api</artifactId>
357 <groupId>io.swagger</groupId>
358 <artifactId>swagger-annotations</artifactId>
359 <version>${io.swagger.version}</version>
362 <groupId>commons-configuration</groupId>
363 <artifactId>commons-configuration</artifactId>
364 <version>${commons.configuration.version}</version>
367 <artifactId>commons-lang</artifactId>
368 <groupId>commons-lang</groupId>
373 <groupId>io.swagger</groupId>
374 <artifactId>swagger-jersey-jaxrs</artifactId>
375 <version>${io.swagger.version}</version>
378 <groupId>org.glassfish.jersey.media</groupId>
379 <artifactId>jersey-media-multipart</artifactId>
382 <artifactId>jersey-core</artifactId>
383 <groupId>com.sun.jersey</groupId>
386 <artifactId>jersey-json</artifactId>
387 <groupId>com.sun.jersey</groupId>
390 <artifactId>jersey-server</artifactId>
391 <groupId>com.sun.jersey</groupId>
394 <artifactId>jersey-client</artifactId>
395 <groupId>com.sun.jersey</groupId>
398 <artifactId>jsr311-api</artifactId>
399 <groupId>javax.ws.rs</groupId>
402 <artifactId>jersey-multipart</artifactId>
403 <groupId>com.sun.jersey.contribs</groupId>
408 <groupId>commons-lang</groupId>
409 <artifactId>commons-lang</artifactId>
410 <version>${commons.lang.version}</version>
412 <!-- eelf dependency -->
414 <groupId>com.att.eelf</groupId>
415 <artifactId>eelf-core</artifactId>
416 <version>${eelf.core.version}</version>
419 <groupId>ch.qos.logback</groupId>
420 <artifactId>logback-core</artifactId>
421 <version>${logback.version}</version>
424 <groupId>ch.qos.logback</groupId>
425 <artifactId>logback-classic</artifactId>
426 <version>${logback.version}</version>
429 <groupId>ch.qos.logback</groupId>
430 <artifactId>logback-access</artifactId>
431 <version>${logback.version}</version>
434 <groupId>org.hamcrest</groupId>
435 <artifactId>hamcrest-junit</artifactId>
436 <version>${hamcrest.junit.version}</version>
439 <groupId>junit</groupId>
440 <artifactId>junit</artifactId>
441 <version>${junit.version}</version>
445 <groupId>com.google.guava</groupId>
446 <artifactId>guava</artifactId>
447 <version>${google.guava.version}</version>
450 <groupId>org.janusgraph</groupId>
451 <artifactId>janusgraph-core</artifactId>
452 <version>${janusgraph.version}</version>
455 <groupId>org.slf4j</groupId>
456 <artifactId>slf4j-log4j12</artifactId>
459 <groupId>dom4j</groupId>
460 <artifactId>dom4j</artifactId>
465 <groupId>org.janusgraph</groupId>
466 <artifactId>janusgraph-cassandra</artifactId>
467 <version>${janusgraph.version}</version>
470 <groupId>org.slf4j</groupId>
471 <artifactId>slf4j-log4j12</artifactId>
474 <groupId>dom4j</groupId>
475 <artifactId>dom4j</artifactId>
480 <groupId>org.janusgraph</groupId>
481 <artifactId>janusgraph-cql</artifactId>
482 <version>${janusgraph.version}</version>
485 <groupId>org.slf4j</groupId>
486 <artifactId>slf4j-log4j12</artifactId>
491 <groupId>org.apache.tinkerpop</groupId>
492 <artifactId>tinkergraph-gremlin</artifactId>
493 <version>${gremlin.version}</version>
496 <groupId>org.apache.tinkerpop</groupId>
497 <artifactId>gremlin-core</artifactId>
498 <version>${gremlin.version}</version>
501 <groupId>org.apache.tinkerpop</groupId>
502 <artifactId>gremlin-driver</artifactId>
503 <version>${gremlin.version}</version>
506 <groupId>com.fasterxml.jackson.jaxrs</groupId>
507 <artifactId>jackson-jaxrs-json-provider</artifactId>
510 <groupId>org.mockito</groupId>
511 <artifactId>mockito-all</artifactId>
512 <version>${mockito.version}</version>
516 <groupId>org.powermock</groupId>
517 <artifactId>powermock-module-junit4</artifactId>
518 <version>${powermock.version}</version>
522 <groupId>org.powermock</groupId>
523 <artifactId>powermock-api-mockito</artifactId>
524 <version>${powermock.version}</version>
528 <groupId>com.beust</groupId>
529 <artifactId>jcommander</artifactId>
530 <version>${jcommander.version}</version>
533 <groupId>org.json</groupId>
534 <artifactId>json</artifactId>
535 <version>${json.version}</version>
538 <groupId>org.freemarker</groupId>
539 <artifactId>freemarker</artifactId>
540 <version>${freemarker.version}</version>
543 <groupId>javax.xml.bind</groupId>
544 <artifactId>jaxb-api</artifactId>
545 <version>${jaxb.version}</version>
548 <groupId>com.sun.xml.bind</groupId>
549 <artifactId>jaxb-impl</artifactId>
550 <version>${jaxb.version}</version>
553 <groupId>com.sun.xml.bind</groupId>
554 <artifactId>jaxb-core</artifactId>
555 <version>${jaxb.version}</version>
558 <groupId>org.onap.aaf.authz</groupId>
559 <artifactId>aaf-cadi-aaf</artifactId>
560 <version>${aaf.version}</version>
563 <groupId>com.sun.xml.bind</groupId>
564 <artifactId>jaxb-xjc</artifactId>
565 <version>${jaxb.version}</version>
568 <groupId>org.eclipse.persistence</groupId>
569 <artifactId>eclipselink</artifactId>
570 <version>${eclipse.persistence.version}</version>
573 <groupId>org.eclipse.persistence</groupId>
574 <artifactId>org.eclipse.persistence.moxy</artifactId>
575 <version>${eclipse.persistence.version}</version>
576 <scope>compile</scope>
579 <groupId>com.github.fge</groupId>
580 <artifactId>json-patch</artifactId>
581 <version>${json.patch.version}</version>
584 <groupId>org.javatuples</groupId>
585 <artifactId>javatuples</artifactId>
586 <version>${javatuples.version}</version>
587 <scope>compile</scope>
590 <groupId>com.google.code.gson</groupId>
591 <artifactId>gson</artifactId>
592 <version>${gson.version}</version>
595 <groupId>com.att.nsa</groupId>
596 <artifactId>dmaapClient</artifactId>
597 <version>${dmaap.client.version}</version>
600 <groupId>org.slf4j</groupId>
601 <artifactId>slf4j-log4j12</artifactId>
604 <groupId>com.att.aft</groupId>
605 <artifactId>dme2</artifactId>
610 <groupId>com.jayway.jsonpath</groupId>
611 <artifactId>json-path</artifactId>
612 <version>${json.path.version}</version>
614 <!-- Do not use activemq-all because they force you to use a specific logging
615 and they shade it so you can't simply exclude it and when you deploy the
616 jar, you will notice failure -->
618 <groupId>org.apache.activemq</groupId>
619 <artifactId>activemq-broker</artifactId>
620 <version>${activemq.version}</version>
623 <groupId>org.apache.activemq</groupId>
624 <artifactId>activemq-client</artifactId>
625 <version>${activemq.version}</version>
628 <groupId>org.onap.aai.aai-common</groupId>
629 <artifactId>aai-core</artifactId>
630 <version>${aai.core.version}</version>
633 <groupId>com.sun.jersey</groupId>
634 <artifactId>jersey-core</artifactId>
637 <groupId>org.codehaus.jackson</groupId>
638 <artifactId>jackson-mapper-asl</artifactId>
641 <groupId>org.eclipse.jetty</groupId>
642 <artifactId>jetty-http</artifactId>
645 <groupId>org.eclipse.jetty</groupId>
646 <artifactId>jetty-server</artifactId>
649 <groupId>org.springframework</groupId>
650 <artifactId>spring-web</artifactId>
655 <groupId>org.onap.aai.aai-common</groupId>
656 <artifactId>aai-schema-ingest</artifactId>
657 <version>${aai.schema.ingest.version}</version>
661 <groupId>org.springframework</groupId>
662 <artifactId>spring-jms</artifactId>
663 <version>${spring.jms.version}</version>
666 <groupId>com.sun.jersey</groupId>
667 <artifactId>jersey-core</artifactId>
671 <!-- Do not use the jersey-client since jersey client 1.0 version clashes
672 with jersey 2 which we are using -->
673 <!-- Use this to make http requests instead of jersey 1.0 client -->
675 <groupId>org.apache.httpcomponents</groupId>
676 <artifactId>httpclient</artifactId>
677 <version>${httpclient.version}</version>
680 <groupId>org.skyscreamer</groupId>
681 <artifactId>jsonassert</artifactId>
682 <version>${jsonassert.version}</version>
686 Explicitly stating the security spring framework and
687 exclude the bouncy castle since that is somehow overwriting
688 our p12 file decryption that's built into java security
689 This will cause the password is incorrect
690 This needs to be added back if org.bouncy castle dependency
691 sneaks backs in and causing issues with the two way ssl
694 <groupId>org.springframework.security</groupId>
695 <artifactId>spring-security-rsa</artifactId>
696 <version>${spring.security.version}</version>
699 <groupId>org.bouncycastle</groupId>
700 <artifactId>bcpkix-jdk15on</artifactId>
705 <groupId>io.netty</groupId>
706 <artifactId>netty-handler</artifactId>
707 <version>${netty.handler.version}</version>
710 <groupId>org.springframework.boot</groupId>
711 <artifactId>spring-boot-starter-web</artifactId>
714 <groupId>org.springframework.boot</groupId>
715 <artifactId>spring-boot-starter-tomcat</artifactId>
720 <groupId>org.springframework.boot</groupId>
721 <artifactId>spring-boot-starter-jetty</artifactId>
724 <groupId>org.springframework.boot</groupId>
725 <artifactId>spring-boot-starter-jersey</artifactId>
728 <groupId>io.netty</groupId>
729 <artifactId>netty-all</artifactId>
730 <version>${netty.version}</version>
733 <groupId>org.codehaus.groovy</groupId>
734 <artifactId>groovy</artifactId>
735 <version>${groovy.version}</version>
736 <classifier>indy</classifier>
739 <groupId>org.springframework</groupId>
740 <artifactId>spring-test</artifactId>
741 <version>${spring.test.version}</version>
745 <groupId>org.springframework.boot</groupId>
746 <artifactId>spring-boot-test</artifactId>
750 <groupId>org.apache.tinkerpop</groupId>
751 <artifactId>gremlin-groovy</artifactId>
752 <version>${gremlin.version}</version>
758 <directory>${project.basedir}/src/main/swm</directory>
759 <targetPath>${project.build.directory}/swm</targetPath>
760 <filtering>false</filtering>
763 <directory>${project.basedir}/src/main/resources</directory>
765 <include>application.properties</include>
766 <include>dme2.properties</include>
767 <include>logback.xml</include>
768 <include>localhost-access-logback.xml</include>
770 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
771 <filtering>false</filtering>
774 <directory>${project.basedir}/src/main/resources</directory>
776 <include>**/*</include>
778 <filtering>true</filtering>
781 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
783 <include>janusgraph-realtime.properties</include>
784 <include>janusgraph-cached.properties</include>
785 <include>aaiconfig.properties</include>
787 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
788 <filtering>false</filtering>
791 <directory>${project.basedir}/src/main/resources/etc/auth/</directory>
793 <include>aai-client-cert.p12</include>
794 <include>tomcat_keystore</include>
795 <include>aai_policy.json</include>
797 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
798 <filtering>true</filtering>
801 <directory>${project.basedir}/src/main/resources/</directory>
803 <include>logback.xml</include>
804 <include>localhost-access-logback.xml</include>
805 <include>hbase-site.xml</include>
807 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
808 <filtering>true</filtering>
811 <directory>${project.basedir}/src/main/resources/schema/</directory>
813 <include>**/oxm/**/*.xml</include>
814 <include>**/dbedgerules/**/*.json</include>
816 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema</targetPath>
817 <filtering>false</filtering>
820 <directory>${project.basedir}/src/main/docker</directory>
822 <include>**/*</include>
824 <targetPath>${aai.build.directory}</targetPath>
825 <filtering>true</filtering>
828 <directory>${project.build.directory}/</directory>
830 <include>${project.artifactId}-${project.version}.jar</include>
832 <targetPath>${aai.build.directory}/lib/</targetPath>
833 <filtering>false</filtering>
839 <groupId>org.apache.maven.plugins</groupId>
840 <artifactId>maven-dependency-plugin</artifactId>
841 <version>2.8</version>
844 <id>unpack-schema-dependency</id>
845 <phase>initialize</phase>
852 <groupId>org.onap.aai.schema-service</groupId>
853 <artifactId>aai-schema</artifactId>
854 <version>${aai.schema.version}</version>
855 <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
856 <includes>**/oxm/**/*.xml</includes>
859 <!-- other configurations here -->
863 <id>unpack-edgerules-dependency</id>
864 <phase>initialize</phase>
871 <groupId>org.onap.aai.schema-service</groupId>
872 <artifactId>aai-schema</artifactId>
873 <version>${aai.schema.version}</version>
874 <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
875 <includes>**/dbedgerules/**/*.json</includes>
878 <!-- other configurations here -->
884 <groupId>org.codehaus.groovy.maven</groupId>
885 <artifactId>gmaven-plugin</artifactId>
886 <version>1.0</version>
889 <phase>validate</phase>
895 println project.properties['aai.project.version'];
897 if (project.properties['aai.project.version'] != null) {
898 versionArray = project.properties['aai.project.version'].split('\\.');
901 project.properties["project.major.version"] = versionArray[0];
902 project.properties["project.minor.version"] = versionArray[1];
903 project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest';
904 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
911 <groupId>com.mycila</groupId>
912 <artifactId>license-maven-plugin</artifactId>
913 <version>3.0</version>
915 <header>LICENSE.TXT</header>
917 <include>src/main/java/**</include>
918 <include>src/test/java/**</include>
919 <include>pom.xml</include>
921 <skipExistingHeaders>false</skipExistingHeaders>
929 <groupId>org.springframework.boot</groupId>
930 <artifactId>spring-boot-maven-plugin</artifactId>
933 <groupId>org.apache.maven.plugins</groupId>
934 <artifactId>maven-clean-plugin</artifactId>
935 <version>2.4.1</version>
939 <directory>${project.basedir}/src/main/resources/schema</directory>
941 <include>**/*</include>
943 <followSymlinks>false</followSymlinks>
949 <groupId>org.codehaus.groovy.maven</groupId>
950 <artifactId>gmaven-plugin</artifactId>
953 <groupId>org.apache.maven.plugins</groupId>
954 <artifactId>maven-dependency-plugin</artifactId>
955 <version>2.10</version>
958 <groupId>org.apache.maven.plugins</groupId>
959 <artifactId>maven-javadoc-plugin</artifactId>
960 <version>${javadoc.plugin.version}</version>
963 <artifactId>maven-assembly-plugin</artifactId>
966 <descriptor>src/main/assembly/descriptor.xml</descriptor>
971 <id>make-assembly</id> <!-- this is used for inheritance merges -->
972 <phase>package</phase> <!-- bind to the packaging phase -->
980 <groupId>org.apache.maven.plugins</groupId>
981 <artifactId>maven-surefire-plugin</artifactId>
982 <version>2.12.4</version>
984 <argLine>-noverify ${argLine}</argLine>
985 <runOrder>alphabetical</runOrder>
989 <groupId>com.mycila</groupId>
990 <artifactId>license-maven-plugin</artifactId>
993 <groupId>org.codehaus.mojo</groupId>
994 <artifactId>sonar-maven-plugin</artifactId>
995 <version>3.3</version>
998 <groupId>org.jacoco</groupId>
999 <artifactId>jacoco-maven-plugin</artifactId>
1000 <version>0.7.9</version>
1002 <dumpOnExit>true</dumpOnExit>
1004 <exclude>**/**/models/**/*.class</exclude>
1009 <id>jacoco-initialize-unit-tests</id>
1011 <goal>prepare-agent</goal>
1014 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1015 <!-- <append>true</append> -->
1019 <id>post-unit-test</id>
1025 <!-- Sets the path to the file which contains the execution data. -->
1026 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1027 <!-- Sets the output directory for the code coverage report. -->
1028 <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
1032 <id>default-check</id>
1037 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1039 <!-- implementation is needed only for Maven 2 -->
1040 <rule implementation="org.jacoco.maven.RuleConfiguration">
1041 <element>BUNDLE</element>
1043 <limit implementation="org.jacoco.report.check.Limit">
1044 <counter>LINE</counter>
1045 <value>COVEREDRATIO</value>
1046 <minimum>${jacoco.line.coverage.limit}</minimum>
1056 <groupId>org.apache.maven.plugins</groupId>
1057 <artifactId>maven-deploy-plugin</artifactId>
1060 <groupId>org.springframework.boot</groupId>
1061 <artifactId>spring-boot-maven-plugin</artifactId>
1062 <version>${spring.boot.version}</version>
1064 <mainClass>${start-class}</mainClass>
1065 <layout>ZIP</layout>
1070 <goal>repackage</goal>
1080 <groupId>org.apache.maven.plugins</groupId>
1081 <artifactId>maven-javadoc-plugin</artifactId>
1082 <version>2.10.4</version>
1084 <failOnError>false</failOnError>
1085 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
1087 <groupId>org.umlgraph</groupId>
1088 <artifactId>umlgraph</artifactId>
1089 <version>5.6</version>
1091 <additionalparam>-views</additionalparam>
1092 <useStandardDocletOptions>true</useStandardDocletOptions>