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.6.0-SNAPSHOT</version>
30 <groupId>org.onap.aai.resources</groupId>
31 <artifactId>resources</artifactId>
32 <version>1.6.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.1</aai.schema.version>
39 <aai.core.version>1.5.3</aai.core.version>
40 <aai.schema.ingest.version>1.5.3</aai.schema.ingest.version>
41 <hbase.version>1.0.2</hbase.version>
43 <spring.boot.version>1.5.21.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.3</janusgraph.version>
77 <jnr.ffi.version>2.1.9</jnr.ffi.version>
78 <gremlin.driver.version>3.2.2</gremlin.driver.version>
79 <gremlin.core.version>3.2.2</gremlin.core.version>
80 <gremlin.version>3.2.2</gremlin.version>
81 <groovy.version>2.4.15</groovy.version>
82 <hbase.version>1.0.2</hbase.version>
83 <smack.version>3.0.4</smack.version>
84 <json.simple.version>1.1.1</json.simple.version>
85 <mockito.version>1.10.19</mockito.version>
86 <powermock.version>1.6.2</powermock.version>
87 <jcommander.version>1.48</jcommander.version>
88 <json.version>20090211</json.version>
89 <freemarker.version>2.3.21</freemarker.version>
90 <jaxb.version>2.2.11</jaxb.version>
91 <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
92 <json.patch.version>1.9</json.patch.version>
93 <javatuples.version>1.2</javatuples.version>
94 <gson.version>2.7</gson.version>
95 <dmaap.client.version>0.2.12</dmaap.client.version>
96 <httpcore.version>4.4</httpcore.version>
97 <json.path.version>2.2.0</json.path.version>
98 <activemq.version>5.15.8</activemq.version>
99 <httpclient.version>4.5.3</httpclient.version>
100 <spring.jms.version>4.3.21.RELEASE</spring.jms.version>
101 <spotify.docker.version>0.4.11</spotify.docker.version>
102 <spring.security.version>1.0.8.RELEASE</spring.security.version>
104 <dme2.version>2.8.5</dme2.version>
105 <async.retry.version>0.0.7</async.retry.version>
106 <jsonassert.version>1.4.0</jsonassert.version>
108 <eclipse.jetty.version>9.4.1.v20170120</eclipse.jetty.version>
110 <docker.fabric.version>0.28.0</docker.fabric.version>
111 <!-- Default docker registry that maven fabric plugin will try to pull from -->
112 <docker.registry>docker.io</docker.registry>
113 <!-- Specifying the docker push registry where the image should be pushed -->
114 <!-- This value should be overwritten at runtime to wherever need to be pushed to -->
115 <docker.push.registry>localhost:5000</docker.push.registry>
116 <aai.docker.version>1.0.0</aai.docker.version>
117 <aai.base.image>alpine</aai.base.image>
118 <aai.base.image.version>1.6.0</aai.base.image.version>
121 Location where assembly of our scripts, resources and main jar will be held
122 Check the ${project.artifactId}/src/main/assembly/descriptor.xml for more info
124 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/
125 </aai.build.directory>
126 <aai.docker.namespace>onap</aai.docker.namespace>
128 <maven.skip.tests>true</maven.skip.tests>
129 <snapshot.file>${project.basedir}/snapshots/snapshot.graphson</snapshot.file>
131 <jacoco.line.coverage.limit>0.68</jacoco.line.coverage.limit>
132 <license.goal.type>check</license.goal.type>
134 <spring.web.version>4.3.21.RELEASE</spring.web.version>
135 <netty.handler.version>4.1.9.Final</netty.handler.version>
136 <netty.version>4.0.56.Final</netty.version>
137 <spring.test.version>4.3.21.RELEASE</spring.test.version>
139 <!-- This will be used for the docker images as the default format of maven build has issues -->
140 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
141 <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
143 <!-- Start of Default ONAP Schema Properties -->
144 <schema.source.name>onap</schema.source.name>
145 <schema.configuration.location>N/A</schema.configuration.location>
146 <schema.nodes.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/oxm</schema.nodes.location>
147 <schema.edges.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/dbedgerules</schema.edges.location>
148 <schema.version.depth.start>v10</schema.version.depth.start>
149 <schema.version.related.link.start>v10</schema.version.related.link.start>
150 <schema.version.app.root.start>v11</schema.version.app.root.start>
151 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
152 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
153 <schema.version.api.default>v16</schema.version.api.default>
154 <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
155 <schema.uri.base.path>/aai</schema.uri.base.path>
156 <!-- <schema.translator.list>config</schema.translator.list> -->
157 <schema.ingest.file>${project.basedir}/src/main/resources/application.properties</schema.ingest.file>
159 <!-- End of Default ONAP Schema Properties -->
161 <!-- Setting some default value to not complain by editor but it will be overridden by gmaven plugin -->
164 <!-- Docker profile to be used for building docker image and pushing to nexus -->
170 <groupId>org.codehaus.groovy.maven</groupId>
171 <artifactId>gmaven-plugin</artifactId>
172 <version>1.0</version>
175 <phase>pre-clean</phase>
179 <phase>prepare-package</phase>
185 def userAaiBaseImage = session.userProperties['aai.base.image']
186 def userAaiCommonVersion = session.userProperties['aai.base.image.version']
187 if (userAaiCommonVersion != null) {
188 project.properties['aai.base.image.version'] = userAaiCommonVersion
190 if (userAaiBaseImage != null) {
191 project.properties['aai.base.image'] = userAaiBaseImage
193 log.info 'Base image flavour: ' + project.properties['aai.base.image']
194 log.info 'Base image version: ' + project.properties['aai.base.image.version']
201 <groupId>io.fabric8</groupId>
202 <artifactId>docker-maven-plugin</artifactId>
203 <version>${docker.fabric.version}</version>
205 <verbose>true</verbose>
206 <apiVersion>1.23</apiVersion>
209 <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l
215 <tag>${project.docker.latesttag.version}</tag>
216 <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag>
218 <cleanup>try</cleanup>
219 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
224 <directory>${aai.build.directory}</directory>
225 <outputDirectory>/${project.artifactId}</outputDirectory>
236 <id>clean-images</id>
237 <phase>pre-clean</phase>
242 <removeAll>true</removeAll>
246 <id>generate-images</id>
247 <phase>package</phase>
254 <phase>deploy</phase>
264 <!-- Start of ONAP Profile -->
268 <schema.source.name>onap</schema.source.name>
269 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
270 <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
271 <schema.ingest.file>${project.basedir}/src/main/resources/application.properties</schema.ingest.file>
274 <!-- End of ONAP Profile -->
278 <skipTests>${maven.skip.tests}</skipTests>
281 <defaultGoal>pre-integration-test</defaultGoal>
284 <groupId>org.codehaus.mojo</groupId>
285 <artifactId>exec-maven-plugin</artifactId>
286 <version>1.6.0</version>
289 <id>run-spring-boot</id>
290 <phase>package</phase>
297 <mainClass>${start-class}</mainClass>
300 <key>snapshot.location</key>
301 <value>${snapshot.file}</value>
304 <key>schema.source.name</key>
305 <value>${schema.source.name}</value>
308 <key>schema.configuration.location</key>
309 <value>${schema.configuration.location}</value>
312 <key>schema.nodes.location</key>
313 <value>${schema.nodes.location}</value>
316 <key>schema.edges.location</key>
317 <value>${schema.edges.location}</value>
320 <key>schema.version.depth.start</key>
321 <value>${schema.version.depth.start}</value>
324 <key>schema.version.related.link.start</key>
325 <value>${schema.version.related.link.start}</value>
328 <key>schema.version.app.root.start</key>
329 <value>${schema.version.app.root.start}</value>
332 <key>schema.version.namespace.change.start</key>
333 <value>${schema.version.namespace.change.start}</value>
336 <key>schema.version.edge.label.start</key>
337 <value>${schema.version.edge.label.start}</value>
340 <key>schema.version.api.default</key>
341 <value>${schema.version.api.default}</value>
344 <key>schema.version.list</key>
345 <value>${schema.version.list}</value>
348 <key>schema.uri.base.path</key>
349 <value>${schema.uri.base.path}</value>
352 <key>schema.ingest.file</key>
353 <value>${schema.ingest.file}</value>
356 <executable>java</executable>
363 <dependencyManagement>
366 <groupId>org.springframework.boot</groupId>
367 <artifactId>spring-boot-starter-parent</artifactId>
368 <version>${spring.boot.version}</version>
370 <scope>import</scope>
373 </dependencyManagement>
376 <groupId>net.sf.jopt-simple</groupId>
377 <artifactId>jopt-simple</artifactId>
378 <version>${jopt.simple.version}</version>
381 <groupId>io.swagger</groupId>
382 <artifactId>swagger-core</artifactId>
383 <version>${io.swagger.version}</version>
386 <groupId>javax.ws.rs</groupId>
387 <artifactId>jsr311-api</artifactId>
392 <groupId>io.swagger</groupId>
393 <artifactId>swagger-annotations</artifactId>
394 <version>${io.swagger.version}</version>
397 <groupId>commons-configuration</groupId>
398 <artifactId>commons-configuration</artifactId>
399 <version>${commons.configuration.version}</version>
402 <artifactId>commons-lang</artifactId>
403 <groupId>commons-lang</groupId>
408 <groupId>io.swagger</groupId>
409 <artifactId>swagger-jersey-jaxrs</artifactId>
410 <version>${io.swagger.version}</version>
413 <groupId>org.glassfish.jersey.media</groupId>
414 <artifactId>jersey-media-multipart</artifactId>
417 <artifactId>jersey-core</artifactId>
418 <groupId>com.sun.jersey</groupId>
421 <artifactId>jersey-json</artifactId>
422 <groupId>com.sun.jersey</groupId>
425 <artifactId>jersey-server</artifactId>
426 <groupId>com.sun.jersey</groupId>
429 <artifactId>jersey-client</artifactId>
430 <groupId>com.sun.jersey</groupId>
433 <artifactId>jsr311-api</artifactId>
434 <groupId>javax.ws.rs</groupId>
437 <artifactId>jersey-multipart</artifactId>
438 <groupId>com.sun.jersey.contribs</groupId>
443 <groupId>commons-lang</groupId>
444 <artifactId>commons-lang</artifactId>
445 <version>${commons.lang.version}</version>
447 <!-- eelf dependency -->
449 <groupId>com.att.eelf</groupId>
450 <artifactId>eelf-core</artifactId>
451 <version>${eelf.core.version}</version>
454 <groupId>ch.qos.logback</groupId>
455 <artifactId>logback-core</artifactId>
456 <version>${logback.version}</version>
459 <groupId>ch.qos.logback</groupId>
460 <artifactId>logback-classic</artifactId>
461 <version>${logback.version}</version>
464 <groupId>ch.qos.logback</groupId>
465 <artifactId>logback-access</artifactId>
466 <version>${logback.version}</version>
469 <groupId>org.hamcrest</groupId>
470 <artifactId>hamcrest-junit</artifactId>
471 <version>${hamcrest.junit.version}</version>
474 <groupId>junit</groupId>
475 <artifactId>junit</artifactId>
476 <version>${junit.version}</version>
480 <groupId>com.google.guava</groupId>
481 <artifactId>guava</artifactId>
482 <version>${google.guava.version}</version>
485 <groupId>org.janusgraph</groupId>
486 <artifactId>janusgraph-core</artifactId>
487 <version>${janusgraph.version}</version>
490 <groupId>org.slf4j</groupId>
491 <artifactId>slf4j-log4j12</artifactId>
494 <groupId>dom4j</groupId>
495 <artifactId>dom4j</artifactId>
500 <groupId>org.janusgraph</groupId>
501 <artifactId>janusgraph-cassandra</artifactId>
502 <version>${janusgraph.version}</version>
505 <groupId>org.slf4j</groupId>
506 <artifactId>slf4j-log4j12</artifactId>
509 <groupId>dom4j</groupId>
510 <artifactId>dom4j</artifactId>
515 indirect janusgraph-cassandra dependency
516 need to be newer than default one
517 in order to support multiple cpu archs
520 <groupId>com.github.jnr</groupId>
521 <artifactId>jnr-ffi</artifactId>
522 <version>${jnr.ffi.version}</version>
525 <groupId>org.janusgraph</groupId>
526 <artifactId>janusgraph-cql</artifactId>
527 <version>${janusgraph.version}</version>
530 <groupId>org.slf4j</groupId>
531 <artifactId>slf4j-log4j12</artifactId>
536 <groupId>org.apache.tinkerpop</groupId>
537 <artifactId>tinkergraph-gremlin</artifactId>
538 <version>${gremlin.version}</version>
541 <groupId>org.apache.tinkerpop</groupId>
542 <artifactId>gremlin-core</artifactId>
543 <version>${gremlin.version}</version>
546 <groupId>org.apache.tinkerpop</groupId>
547 <artifactId>gremlin-driver</artifactId>
548 <version>${gremlin.version}</version>
551 <groupId>com.fasterxml.jackson.jaxrs</groupId>
552 <artifactId>jackson-jaxrs-json-provider</artifactId>
555 <groupId>org.mockito</groupId>
556 <artifactId>mockito-all</artifactId>
557 <version>${mockito.version}</version>
561 <groupId>org.powermock</groupId>
562 <artifactId>powermock-module-junit4</artifactId>
563 <version>${powermock.version}</version>
567 <groupId>org.powermock</groupId>
568 <artifactId>powermock-api-mockito</artifactId>
569 <version>${powermock.version}</version>
573 <groupId>com.beust</groupId>
574 <artifactId>jcommander</artifactId>
575 <version>${jcommander.version}</version>
578 <groupId>org.json</groupId>
579 <artifactId>json</artifactId>
580 <version>${json.version}</version>
583 <groupId>org.freemarker</groupId>
584 <artifactId>freemarker</artifactId>
585 <version>${freemarker.version}</version>
588 <groupId>javax.xml.bind</groupId>
589 <artifactId>jaxb-api</artifactId>
590 <version>${jaxb.version}</version>
593 <groupId>com.sun.xml.bind</groupId>
594 <artifactId>jaxb-impl</artifactId>
595 <version>${jaxb.version}</version>
598 <groupId>com.sun.xml.bind</groupId>
599 <artifactId>jaxb-core</artifactId>
600 <version>${jaxb.version}</version>
603 <groupId>org.onap.aaf.authz</groupId>
604 <artifactId>aaf-cadi-aaf</artifactId>
605 <version>${aaf.version}</version>
608 <groupId>com.sun.xml.bind</groupId>
609 <artifactId>jaxb-xjc</artifactId>
610 <version>${jaxb.version}</version>
613 <groupId>org.eclipse.persistence</groupId>
614 <artifactId>eclipselink</artifactId>
615 <version>${eclipse.persistence.version}</version>
618 <groupId>org.eclipse.persistence</groupId>
619 <artifactId>org.eclipse.persistence.moxy</artifactId>
620 <version>${eclipse.persistence.version}</version>
621 <scope>compile</scope>
624 <groupId>com.github.fge</groupId>
625 <artifactId>json-patch</artifactId>
626 <version>${json.patch.version}</version>
629 <groupId>org.javatuples</groupId>
630 <artifactId>javatuples</artifactId>
631 <version>${javatuples.version}</version>
632 <scope>compile</scope>
635 <groupId>com.google.code.gson</groupId>
636 <artifactId>gson</artifactId>
637 <version>${gson.version}</version>
640 <groupId>com.att.nsa</groupId>
641 <artifactId>dmaapClient</artifactId>
642 <version>${dmaap.client.version}</version>
645 <groupId>org.slf4j</groupId>
646 <artifactId>slf4j-log4j12</artifactId>
649 <groupId>com.att.aft</groupId>
650 <artifactId>dme2</artifactId>
655 <groupId>com.jayway.jsonpath</groupId>
656 <artifactId>json-path</artifactId>
657 <version>${json.path.version}</version>
659 <!-- Do not use activemq-all because they force you to use a specific logging
660 and they shade it so you can't simply exclude it and when you deploy the
661 jar, you will notice failure -->
663 <groupId>org.apache.activemq</groupId>
664 <artifactId>activemq-broker</artifactId>
665 <version>${activemq.version}</version>
668 <groupId>org.apache.activemq</groupId>
669 <artifactId>activemq-client</artifactId>
670 <version>${activemq.version}</version>
673 <groupId>org.onap.aai.aai-common</groupId>
674 <artifactId>aai-core</artifactId>
675 <version>${aai.core.version}</version>
678 <groupId>com.sun.jersey</groupId>
679 <artifactId>jersey-core</artifactId>
682 <groupId>org.codehaus.jackson</groupId>
683 <artifactId>jackson-mapper-asl</artifactId>
686 <groupId>org.eclipse.jetty</groupId>
687 <artifactId>jetty-http</artifactId>
690 <groupId>org.eclipse.jetty</groupId>
691 <artifactId>jetty-server</artifactId>
694 <groupId>org.springframework</groupId>
695 <artifactId>spring-web</artifactId>
700 <groupId>org.onap.aai.aai-common</groupId>
701 <artifactId>aai-schema-ingest</artifactId>
702 <version>${aai.schema.ingest.version}</version>
706 <groupId>org.springframework</groupId>
707 <artifactId>spring-jms</artifactId>
708 <version>${spring.jms.version}</version>
711 <groupId>com.sun.jersey</groupId>
712 <artifactId>jersey-core</artifactId>
716 <!-- Do not use the jersey-client since jersey client 1.0 version clashes
717 with jersey 2 which we are using -->
718 <!-- Use this to make http requests instead of jersey 1.0 client -->
720 <groupId>org.apache.httpcomponents</groupId>
721 <artifactId>httpclient</artifactId>
722 <version>${httpclient.version}</version>
725 <groupId>org.skyscreamer</groupId>
726 <artifactId>jsonassert</artifactId>
727 <version>${jsonassert.version}</version>
731 Explicitly stating the security spring framework and
732 exclude the bouncy castle since that is somehow overwriting
733 our p12 file decryption that's built into java security
734 This will cause the password is incorrect
735 This needs to be added back if org.bouncy castle dependency
736 sneaks backs in and causing issues with the two way ssl
739 <groupId>org.springframework.security</groupId>
740 <artifactId>spring-security-rsa</artifactId>
741 <version>${spring.security.version}</version>
744 <groupId>org.bouncycastle</groupId>
745 <artifactId>bcpkix-jdk15on</artifactId>
750 <groupId>io.netty</groupId>
751 <artifactId>netty-handler</artifactId>
752 <version>${netty.handler.version}</version>
755 <groupId>org.springframework.boot</groupId>
756 <artifactId>spring-boot-starter-web</artifactId>
759 <groupId>org.springframework.boot</groupId>
760 <artifactId>spring-boot-starter-tomcat</artifactId>
765 <groupId>org.springframework.boot</groupId>
766 <artifactId>spring-boot-starter-jetty</artifactId>
769 <groupId>org.springframework.boot</groupId>
770 <artifactId>spring-boot-starter-jersey</artifactId>
773 <groupId>io.netty</groupId>
774 <artifactId>netty-all</artifactId>
775 <version>${netty.version}</version>
778 <groupId>org.codehaus.groovy</groupId>
779 <artifactId>groovy</artifactId>
780 <version>${groovy.version}</version>
781 <classifier>indy</classifier>
784 <groupId>org.springframework</groupId>
785 <artifactId>spring-test</artifactId>
786 <version>${spring.test.version}</version>
790 <groupId>org.springframework.boot</groupId>
791 <artifactId>spring-boot-test</artifactId>
795 <groupId>org.apache.tinkerpop</groupId>
796 <artifactId>gremlin-groovy</artifactId>
797 <version>${gremlin.version}</version>
803 <directory>${project.basedir}/src/main/swm</directory>
804 <targetPath>${project.build.directory}/swm</targetPath>
805 <filtering>false</filtering>
808 <directory>${project.basedir}/src/main/resources</directory>
810 <include>application.properties</include>
811 <include>dme2.properties</include>
812 <include>logback.xml</include>
813 <include>localhost-access-logback.xml</include>
815 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
816 <filtering>false</filtering>
819 <directory>${project.basedir}/src/main/resources</directory>
821 <include>**/*</include>
823 <filtering>true</filtering>
826 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
828 <include>janusgraph-realtime.properties</include>
829 <include>janusgraph-cached.properties</include>
830 <include>aaiconfig.properties</include>
832 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
833 <filtering>false</filtering>
836 <directory>${project.basedir}/src/main/resources/etc/auth/</directory>
838 <include>aai-client-cert.p12</include>
839 <include>tomcat_keystore</include>
840 <include>aai_policy.json</include>
842 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
843 <filtering>true</filtering>
846 <directory>${project.basedir}/src/main/resources/</directory>
848 <include>logback.xml</include>
849 <include>localhost-access-logback.xml</include>
850 <include>hbase-site.xml</include>
852 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
853 <filtering>true</filtering>
856 <directory>${project.basedir}/src/main/resources/schema/</directory>
858 <include>**/oxm/**/*.xml</include>
859 <include>**/dbedgerules/**/*.json</include>
861 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema</targetPath>
862 <filtering>false</filtering>
865 <directory>${project.basedir}/src/main/docker</directory>
867 <include>**/*</include>
869 <targetPath>${aai.build.directory}</targetPath>
870 <filtering>true</filtering>
873 <directory>${project.build.directory}/</directory>
875 <include>${project.artifactId}-${project.version}.jar</include>
877 <targetPath>${aai.build.directory}/lib/</targetPath>
878 <filtering>false</filtering>
884 <groupId>org.apache.maven.plugins</groupId>
885 <artifactId>maven-dependency-plugin</artifactId>
886 <version>2.8</version>
889 <id>unpack-schema-dependency</id>
890 <phase>initialize</phase>
897 <groupId>org.onap.aai.schema-service</groupId>
898 <artifactId>aai-schema</artifactId>
899 <version>${aai.schema.version}</version>
900 <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
901 <includes>**/oxm/**/*.xml</includes>
904 <!-- other configurations here -->
908 <id>unpack-edgerules-dependency</id>
909 <phase>initialize</phase>
916 <groupId>org.onap.aai.schema-service</groupId>
917 <artifactId>aai-schema</artifactId>
918 <version>${aai.schema.version}</version>
919 <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
920 <includes>**/dbedgerules/**/*.json</includes>
923 <!-- other configurations here -->
929 <groupId>org.codehaus.groovy.maven</groupId>
930 <artifactId>gmaven-plugin</artifactId>
931 <version>1.0</version>
934 <phase>validate</phase>
940 println project.properties['aai.project.version'];
942 if (project.properties['aai.project.version'] != null) {
943 versionArray = project.properties['aai.project.version'].split('\\.');
946 project.properties["project.major.version"] = versionArray[0];
947 project.properties["project.minor.version"] = versionArray[1];
948 project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest';
949 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
956 <groupId>com.mycila</groupId>
957 <artifactId>license-maven-plugin</artifactId>
958 <version>3.0</version>
960 <header>LICENSE.TXT</header>
962 <include>src/main/java/**</include>
963 <include>src/test/java/**</include>
964 <include>pom.xml</include>
966 <skipExistingHeaders>false</skipExistingHeaders>
974 <groupId>org.springframework.boot</groupId>
975 <artifactId>spring-boot-maven-plugin</artifactId>
978 <groupId>org.apache.maven.plugins</groupId>
979 <artifactId>maven-clean-plugin</artifactId>
980 <version>2.4.1</version>
984 <directory>${project.basedir}/src/main/resources/schema</directory>
986 <include>**/*</include>
988 <followSymlinks>false</followSymlinks>
994 <groupId>org.codehaus.groovy.maven</groupId>
995 <artifactId>gmaven-plugin</artifactId>
998 <groupId>org.apache.maven.plugins</groupId>
999 <artifactId>maven-dependency-plugin</artifactId>
1000 <version>2.10</version>
1003 <groupId>org.apache.maven.plugins</groupId>
1004 <artifactId>maven-javadoc-plugin</artifactId>
1005 <version>${javadoc.plugin.version}</version>
1008 <artifactId>maven-assembly-plugin</artifactId>
1011 <descriptor>src/main/assembly/descriptor.xml</descriptor>
1016 <id>make-assembly</id> <!-- this is used for inheritance merges -->
1017 <phase>package</phase> <!-- bind to the packaging phase -->
1025 <groupId>org.apache.maven.plugins</groupId>
1026 <artifactId>maven-surefire-plugin</artifactId>
1027 <version>2.12.4</version>
1029 <argLine>-noverify ${argLine}</argLine>
1030 <runOrder>alphabetical</runOrder>
1034 <groupId>com.mycila</groupId>
1035 <artifactId>license-maven-plugin</artifactId>
1038 <groupId>org.codehaus.mojo</groupId>
1039 <artifactId>sonar-maven-plugin</artifactId>
1040 <version>3.3</version>
1043 <groupId>org.jacoco</groupId>
1044 <artifactId>jacoco-maven-plugin</artifactId>
1045 <version>0.7.9</version>
1047 <dumpOnExit>true</dumpOnExit>
1049 <exclude>**/**/models/**/*.class</exclude>
1054 <id>jacoco-initialize-unit-tests</id>
1056 <goal>prepare-agent</goal>
1059 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1060 <!-- <append>true</append> -->
1064 <id>post-unit-test</id>
1070 <!-- Sets the path to the file which contains the execution data. -->
1071 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1072 <!-- Sets the output directory for the code coverage report. -->
1073 <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
1077 <id>default-check</id>
1082 <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
1084 <!-- implementation is needed only for Maven 2 -->
1085 <rule implementation="org.jacoco.maven.RuleConfiguration">
1086 <element>BUNDLE</element>
1088 <limit implementation="org.jacoco.report.check.Limit">
1089 <counter>LINE</counter>
1090 <value>COVEREDRATIO</value>
1091 <minimum>${jacoco.line.coverage.limit}</minimum>
1101 <groupId>org.apache.maven.plugins</groupId>
1102 <artifactId>maven-deploy-plugin</artifactId>
1105 <groupId>org.springframework.boot</groupId>
1106 <artifactId>spring-boot-maven-plugin</artifactId>
1107 <version>${spring.boot.version}</version>
1109 <mainClass>${start-class}</mainClass>
1110 <layout>ZIP</layout>
1115 <goal>repackage</goal>
1125 <groupId>org.apache.maven.plugins</groupId>
1126 <artifactId>maven-javadoc-plugin</artifactId>
1127 <version>2.10.4</version>
1129 <failOnError>false</failOnError>
1130 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
1132 <groupId>org.umlgraph</groupId>
1133 <artifactId>umlgraph</artifactId>
1134 <version>5.6</version>
1136 <additionalparam>-views</additionalparam>
1137 <useStandardDocletOptions>true</useStandardDocletOptions>