2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.onap.oparent</groupId>
6 <artifactId>oparent</artifactId>
7 <version>1.2.1</version>
10 <groupId>org.onap.so</groupId>
11 <artifactId>so</artifactId>
12 <packaging>pom</packaging>
13 <version>1.4.0-SNAPSHOT</version>
15 <description>This Maven project is responsible to build and package all child projects - contributions in the MSO project.
16 This build can be configured to run Functional tests and to start/stop a jboss server + Mysql DB.
17 "mvn clean install -P with-integration-tests -Dintegration-tests-user=root -Dintegration-tests-group=root -Dintegration-tests-db-type=MYSQL"
20 <name>ONAP - SO</name>
21 <url>http://www.onap.org/</url>
24 <module>deployment-configs</module>
25 <module>common</module>
26 <module>mso-catalog-db</module>
27 <module>mso-api-handlers</module>
28 <module>adapters</module>
29 <module>asdc-controller</module>
31 <module>cloudify-client</module>
32 <module>cxf-logging</module>
33 <module>packages</module>
36 <project.mso.base.folder>.</project.mso.base.folder>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
39 <sonar.language>java</sonar.language>
40 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
41 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
42 <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
43 <!--sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath -->
44 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
45 <sonar.projectVersion>${project.version}</sonar.projectVersion>
46 <sonar.cpd.exclusions>**/*</sonar.cpd.exclusions>
47 <jacoco.version>0.7.5.201505241946</jacoco.version>
48 <org.apache.maven.user-settings/>
49 <!-- TODO: update to version 1.4.0 for Dublin -->
50 <openstack.version>1.4.0-SNAPSHOT</openstack.version>
51 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
52 <originalClassifier>original</originalClassifier>
53 <docker.skip>true</docker.skip>
54 <docker.skip.build>true</docker.skip.build>
55 <docker.skip.push>true</docker.skip.push>
56 <docker.buildArg.project_version>${project.version}</docker.buildArg.project_version>
57 <docker.buildArg.artifact_id>${project.artifactId}</docker.buildArg.artifact_id>
58 <docker.buildArg.docker_repository>${dockerPullRepo}</docker.buildArg.docker_repository>
59 <enforcer.skip>true</enforcer.skip>
60 <nexusproxy>https://nexus.onap.org</nexusproxy>
61 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
62 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
63 <publicNexusPath>content/repositories/public/</publicNexusPath>
64 <siteNexusPath>content/sites/site/org/onap/so/${project.version}/</siteNexusPath>
65 <cxf.version>3.2.6</cxf.version>
66 <jax.ws.rs>2.1</jax.ws.rs>
67 <springboot.version>2.0.5.RELEASE</springboot.version>
68 <camunda.springboot.version>3.2.0</camunda.springboot.version>
70 <distributionManagement>
72 <id>ecomp-releases</id>
73 <url>${nexusproxy}/${releaseNexusPath}</url>
76 <id>ecomp-snapshots</id>
77 <url>${nexusproxy}/${snapshotNexusPath}</url>
81 <url>dav:${nexusproxy}${siteNexusPath}</url>
83 </distributionManagement>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-javadoc-plugin</artifactId>
89 <version>2.10.4</version>
91 <failOnError>false</failOnError>
92 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
94 <groupId>org.umlgraph</groupId>
95 <artifactId>umlgraph</artifactId>
96 <version>5.6</version>
98 <additionalparam>-views</additionalparam>
99 <useStandardDocletOptions>true</useStandardDocletOptions>
104 <!-- configure build -->
105 <!-- *********************************************************************************************************** -->
106 <!-- Plugins and repositories -->
110 <url>http://repo1.maven.org/maven2</url>
114 <url>http://maven.restlet.com</url>
117 <id>ecomp-public</id>
118 <url>${nexusproxy}/${publicNexusPath}</url>
120 <enabled>false</enabled>
124 <id>ecomp-release</id>
125 <url>${nexusproxy}/${releaseNexusPath}</url>
127 <enabled>false</enabled>
131 <id>ecomp-snapshots</id>
132 <url>${nexusproxy}/${snapshotNexusPath}</url>
134 <enabled>false</enabled>
137 </pluginRepositories>
140 <id>ecomp-public</id>
141 <url>https://nexus.onap.org/content/repositories/public/</url>
143 <enabled>false</enabled>
147 <id>ecomp-releases</id>
148 <url>https://nexus.onap.org/content/repositories/releases/</url>
150 <enabled>false</enabled>
154 <id>ecomp-snapshots</id>
155 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
157 <enabled>false</enabled>
162 <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
165 <id>camunda-public</id>
166 <url>https://app.camunda.com/nexus/content/groups/public</url>
169 <!-- TODO: remove from ONAP environemnt -->
170 <id>onap-releases</id>
171 <url>https://nexus.onap.org/content/repositories/releases/</url>
173 <enabled>false</enabled>
177 <!-- TODO: remove from ONAP environemnt -->
178 <id>onap-snapshots</id>
179 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
181 <enabled>false</enabled>
185 <!-- *********************************************************************************************************** -->
190 <directory>src/main/resources</directory>
191 <filtering>true</filtering>
194 <directory>target/generated-sources/license</directory>
196 <include>third-party-licenses.txt</include>
200 <directory>target/generated-resources/licenses</directory>
202 <include>*.*</include>
204 <targetPath>third-party-licenses</targetPath>
209 <groupId>org.sonatype.plugins</groupId>
210 <artifactId>nexus-staging-maven-plugin</artifactId>
211 <version>1.6.7</version>
212 <extensions>true</extensions>
214 <nexusUrl>${nexusproxy}</nexusUrl>
215 <stagingProfileId>176c31dfe190a</stagingProfileId>
216 <serverId>ecomp-staging</serverId>
220 <groupId>org.apache.maven.plugins</groupId>
221 <artifactId>maven-deploy-plugin</artifactId>
222 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-compiler-plugin</artifactId>
231 <version>3.6.1</version>
234 <compilerArgument>-Xlint</compilerArgument>
235 <verbose>true</verbose>
236 <showDeprecation>true</showDeprecation>
237 <showWarnings>true</showWarnings>
241 <arg>-parameters</arg>
246 <groupId>org.apache.maven.plugins</groupId>
247 <artifactId>maven-ejb-plugin</artifactId>
248 <version>2.2.1</version>
250 <ejbVersion>3.0</ejbVersion>
253 <addClasspath>true</addClasspath>
259 <groupId>org.apache.maven.plugins</groupId>
260 <artifactId>maven-checkstyle-plugin</artifactId>
261 <version>2.17</version>
264 <includes>**/org/openecomp/**/*.java</includes>
265 <configLocation>/google_checks.xml</configLocation>
269 <groupId>org.codehaus.mojo</groupId>
270 <artifactId>findbugs-maven-plugin</artifactId>
271 <version>2.5.2</version>
273 <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
274 <nested>true</nested>
275 <findbugsXmlOutput>true</findbugsXmlOutput>
276 <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
277 <xmlOutput>true</xmlOutput>
281 <groupId>org.codehaus.mojo</groupId>
282 <artifactId>sonar-maven-plugin</artifactId>
283 <version>5.1</version>
286 <artifactId>maven-scm-plugin</artifactId>
287 <version>1.8.1</version>
289 <tag>${project.artifactId}-${project.version}</tag>
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-javadoc-plugin</artifactId>
295 <version>2.9</version>
298 <groupId>org.apache.maven.plugins</groupId>
299 <artifactId>maven-site-plugin</artifactId>
300 <version>3.6</version>
303 <groupId>org.apache.maven.wagon</groupId>
304 <artifactId>wagon-webdav-jackrabbit</artifactId>
305 <version>2.10</version>
310 <groupId>org.codehaus.mojo</groupId>
311 <artifactId>cobertura-maven-plugin</artifactId>
312 <version>2.5.2</version>
320 <groupId>org.codehaus.mojo</groupId>
321 <artifactId>versions-maven-plugin</artifactId>
322 <version>1.3.1</version>
326 <groupId>com.fortify.ps.maven.plugin</groupId>
327 <artifactId>sca-maven-plugin</artifactId>
328 <version>4.20</version>
330 <buildId>mso-${project.version}</buildId>
335 <groupId>org.jacoco</groupId>
336 <artifactId>jacoco-maven-plugin</artifactId>
337 <version>${jacoco.version}</version>
340 <id>default-prepare-agent</id>
342 <goal>prepare-agent</goal>
346 <id>default-report</id>
354 <groupId>org.codehaus.mojo</groupId>
355 <artifactId>license-maven-plugin</artifactId>
356 <version>1.15</version>
358 <inceptionYear>2017</inceptionYear>
359 <projectName>ONAP - SO</projectName>
360 <licenseName>apache_v2</licenseName>
361 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
362 <emptyLineAfterHeader>true</emptyLineAfterHeader>
363 <trimHeaderLine>true</trimHeaderLine>
364 <processStartTag>============LICENSE_START=======================================================</processStartTag>
365 <sectionDelimiter>================================================================================</sectionDelimiter>
366 <processEndTag>============LICENSE_END=========================================================</processEndTag>
368 <include>**/*.java</include>
369 <include>**/*.groovy</include>
372 <exclude>**/com/att/**</exclude>
377 <id>verify-headers</id>
379 <goal>check-file-header</goal>
382 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
383 <failOnMissingHeader>true</failOnMissingHeader>
392 <groupId>io.fabric8</groupId>
393 <artifactId>fabric8-maven-plugin</artifactId>
394 <version>3.5.33</version>
396 <skip>${docker.skip}</skip>
397 <skipBuild>${docker.skip.build}</skipBuild>
398 <skipPush>${docker.skip.push}</skipPush>
399 <dockerHost>${docker.newHost}</dockerHost> <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY
400 environment variable -->
401 <certPath>${docker.host.cert.path}</certPath><!-- Add -Ddocker.host.cert.pat="path
402 to your local certs directory" to maven build command -->
403 <pushRegistry>${dockerPushRepo}</pushRegistry> <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username,
405 <pullRegistry>${dockerPullRepo}</pullRegistry> <!-- If docker repo is not public. Update .m2/settings.xml Add server id
406 settings.dockerRepository, username, and password -->
409 <alias>service</alias>
410 <name>${artifactId}:${project.version}</name>
412 <dockerFileDir>${project.build.directory}</dockerFileDir>
428 <groupId>org.apache.maven.plugins</groupId>
429 <artifactId>maven-surefire-plugin</artifactId>
430 <version>2.20</version>
432 <systemPropertyVariables>
433 <so.log.level>DEBUG</so.log.level>
434 </systemPropertyVariables>
435 <rerunFailingTestsCount>2</rerunFailingTestsCount>
439 <groupId>org.apache.maven.plugins</groupId>
440 <artifactId>maven-failsafe-plugin</artifactId>
441 <version>2.20</version>
444 <systemPropertyVariables>
445 <so.log.level>DEBUG</so.log.level>
446 </systemPropertyVariables>
447 <rerunFailingTestsCount>2</rerunFailingTestsCount>
451 <groupId>org.apache.maven.plugins</groupId>
452 <artifactId>maven-dependency-plugin</artifactId>
455 <id>extract-docker-file</id>
462 <groupId>org.onap.so</groupId>
463 <artifactId>deployment-configs</artifactId>
464 <version>${project.version}</version>
465 <outputDirectory>${project.build.directory}</outputDirectory>
466 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
467 <excludes>Kubernetes</excludes>
475 <groupId>org.apache.maven.plugins</groupId>
476 <artifactId>maven-jar-plugin</artifactId>
477 <version>3.0.2</version>
482 <goal>test-jar</goal>
490 <phase>package</phase>
495 <classifier>${originalClassifier}</classifier>
497 <include>**</include>
504 <groupId>org.springframework.boot</groupId>
505 <artifactId>spring-boot-maven-plugin</artifactId>
506 <version>${springboot.version}</version>
511 <goal>build-info</goal>
519 <!-- *********************************************************************************************************** -->
520 <!-- Dependencies -->
523 <groupId>com.fasterxml.jackson.core</groupId>
524 <artifactId>jackson-core</artifactId>
527 <groupId>com.fasterxml.jackson.module</groupId>
528 <artifactId>jackson-module-jaxb-annotations</artifactId>
531 <groupId>com.fasterxml.jackson.core</groupId>
532 <artifactId>jackson-databind</artifactId>
535 <groupId>com.fasterxml.jackson.core</groupId>
536 <artifactId>jackson-annotations</artifactId>
539 <groupId>com.fasterxml.jackson.jaxrs</groupId>
540 <artifactId>jackson-jaxrs-base</artifactId>
543 <groupId>com.fasterxml.jackson.jaxrs</groupId>
544 <artifactId>jackson-jaxrs-json-provider</artifactId>
547 <groupId>javax.ws.rs</groupId>
548 <artifactId>javax.ws.rs-api</artifactId>
549 <version>${jax.ws.rs}</version>
552 <groupId>javax.annotation</groupId>
553 <artifactId>javax.annotation-api</artifactId>
554 <version>1.3.1</version>
557 <groupId>javax.inject</groupId>
558 <artifactId>javax.inject</artifactId>
562 <groupId>org.mockito</groupId>
563 <artifactId>mockito-core</artifactId>
566 <groupId>org.hamcrest</groupId>
567 <artifactId>hamcrest-core</artifactId>
570 <groupId>org.hamcrest</groupId>
571 <artifactId>hamcrest-library</artifactId>
574 <groupId>junit</groupId>
575 <artifactId>junit</artifactId>
579 <groupId>xmlunit</groupId>
580 <artifactId>xmlunit</artifactId>
581 <version>1.6</version>
585 <groupId>com.github.tomakehurst</groupId>
586 <artifactId>wiremock-standalone</artifactId>
587 <version>2.13.0</version>
591 <groupId>org.mortbay.jetty</groupId>
592 <artifactId>jetty</artifactId>
595 <groupId>com.google.guava</groupId>
596 <artifactId>guava</artifactId>
599 <groupId>com.fasterxml.jackson.core</groupId>
600 <artifactId>jackson-core</artifactId>
603 <groupId>com.fasterxml.jackson.core</groupId>
604 <artifactId>jackson-annotations</artifactId>
607 <groupId>com.fasterxml.jackson.core</groupId>
608 <artifactId>jackson-databind</artifactId>
611 <groupId>org.apache.httpcomponents</groupId>
612 <artifactId>httpclient</artifactId>
615 <groupId>org.skyscreamer</groupId>
616 <artifactId>jsonassert</artifactId>
619 <groupId>xmlunit</groupId>
620 <artifactId>xmlunit</artifactId>
623 <groupId>com.jayway.jsonpath</groupId>
624 <artifactId>json-path</artifactId>
627 <groupId>net.sf.jopt-simple</groupId>
628 <artifactId>jopt-simple</artifactId>
633 <groupId>com.openpojo</groupId>
634 <artifactId>openpojo</artifactId>
635 <version>0.8.10</version>
638 <groupId>com.shazam</groupId>
639 <artifactId>shazamcrest</artifactId>
640 <version>0.11</version>
644 <groupId>com.google.guava</groupId>
645 <artifactId>guava</artifactId>
648 <groupId>org.apache.commons</groupId>
649 <artifactId>commons-lang3</artifactId>
654 <groupId>org.assertj</groupId>
655 <artifactId>assertj-core</artifactId>
656 <version>3.11.1</version>
660 <groupId>com.googlecode.junit-toolbox</groupId>
661 <artifactId>junit-toolbox</artifactId>
662 <version>2.4</version>
665 <dependencyManagement>
667 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
668 <!-- force use of version 4.5 everywhere in transient deps, aligned on
669 WildFly 10 version -->
671 <groupId>org.apache.httpcomponents</groupId>
672 <artifactId>httpcore</artifactId>
673 <version>4.4.4</version>
674 <scope>compile</scope>
677 <groupId>commons-codec</groupId>
678 <artifactId>commons-codec</artifactId>
679 <version>1.10</version>
680 <scope>compile</scope>
683 <groupId>commons-io</groupId>
684 <artifactId>commons-io</artifactId>
685 <version>2.5</version>
686 <scope>compile</scope>
689 <groupId>com.sun.xml.fastinfoset</groupId>
690 <artifactId>FastInfoset</artifactId>
691 <version>1.2.13</version>
692 <scope>compile</scope>
695 <groupId>org.springframework.boot</groupId>
696 <artifactId>spring-boot-dependencies</artifactId>
697 <version>${springboot.version}</version>
699 <scope>import</scope>
702 <groupId>org.yaml</groupId>
703 <artifactId>snakeyaml</artifactId>
704 <version>1.23</version>
707 <groupId>javax.interceptor</groupId>
708 <artifactId>javax.interceptor-api</artifactId>
709 <version>1.2.2</version>
712 <groupId>org.springframework.boot</groupId>
713 <artifactId>spring-boot-starter-test</artifactId>
714 <version>${springboot.version}</version>
717 <groupId>com.vaadin.external.google</groupId>
718 <artifactId>android-json</artifactId>
723 <groupId>net.javacrumbs.shedlock</groupId>
724 <artifactId>shedlock-spring</artifactId>
725 <version>0.18.2</version>
728 <groupId>net.javacrumbs.shedlock</groupId>
729 <artifactId>shedlock-provider-jdbc-template</artifactId>
730 <version>0.18.2</version>
733 <groupId>org.flywaydb</groupId>
734 <artifactId>flyway-core</artifactId>
735 <version>5.1.4</version>
738 <groupId>org.json</groupId>
739 <artifactId>json</artifactId>
740 <version>20140107</version>
743 <groupId>org.yaml</groupId>
744 <artifactId>snakeyaml</artifactId>
745 <version>1.19</version>
748 </dependencyManagement>
751 <id>docker-image-build</id>
753 <docker.skip>false</docker.skip>
754 <docker.skip.build>false</docker.skip.build>
755 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
759 <id>docker-image-build-push</id>
761 <docker.skip>false</docker.skip>
762 <docker.skip.build>false</docker.skip.build>
763 <docker.skip.push>false</docker.skip.push>
764 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
771 <name>m2e.version</name>
775 <originalClassifier/>