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>so-monitoring</module>
34 <module>packages</module>
37 <project.mso.base.folder>.</project.mso.base.folder>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
40 <sonar.language>java</sonar.language>
41 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
42 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
43 <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
44 <!--sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath -->
45 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
46 <sonar.projectVersion>${project.version}</sonar.projectVersion>
47 <sonar.cpd.exclusions>**/*</sonar.cpd.exclusions>
48 <jacoco.version>0.7.5.201505241946</jacoco.version>
49 <org.apache.maven.user-settings/>
50 <!-- TODO: update to version 1.4.0 for Dublin -->
51 <openstack.version>1.3.0</openstack.version>
52 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
53 <springboot.version>1.5.13.RELEASE</springboot.version>
54 <springframework.version>5.0.8.RELEASE</springframework.version>
55 <tomcat.version>8.5.33</tomcat.version>
56 <h2.version>1.4.196</h2.version>
57 <originalClassifier>original</originalClassifier>
58 <docker.skip>true</docker.skip>
59 <docker.skip.build>true</docker.skip.build>
60 <docker.skip.push>true</docker.skip.push>
61 <docker.buildArg.project_version>${project.version}</docker.buildArg.project_version>
62 <docker.buildArg.artifact_id>${project.artifactId}</docker.buildArg.artifact_id>
63 <docker.buildArg.docker_repository>${dockerPullRepo}</docker.buildArg.docker_repository>
64 <enforcer.skip>true</enforcer.skip>
65 <nexusproxy>https://nexus.onap.org</nexusproxy>
66 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
67 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
68 <publicNexusPath>content/repositories/public/</publicNexusPath>
69 <siteNexusPath>content/sites/site/org/onap/so/${project.version}/</siteNexusPath>
70 <cxf.version>3.2.6</cxf.version>
71 <jax.ws.rs>2.1</jax.ws.rs>
73 <distributionManagement>
75 <id>ecomp-releases</id>
76 <url>${nexusproxy}/${releaseNexusPath}</url>
79 <id>ecomp-snapshots</id>
80 <url>${nexusproxy}/${snapshotNexusPath}</url>
84 <url>dav:${nexusproxy}${siteNexusPath}</url>
86 </distributionManagement>
90 <groupId>org.apache.maven.plugins</groupId>
91 <artifactId>maven-javadoc-plugin</artifactId>
92 <version>2.10.4</version>
94 <failOnError>false</failOnError>
95 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
97 <groupId>org.umlgraph</groupId>
98 <artifactId>umlgraph</artifactId>
99 <version>5.6</version>
101 <additionalparam>-views</additionalparam>
102 <useStandardDocletOptions>true</useStandardDocletOptions>
107 <!-- configure build -->
108 <!-- *********************************************************************************************************** -->
109 <!-- Plugins and repositories -->
113 <url>http://repo1.maven.org/maven2</url>
117 <url>http://maven.restlet.com</url>
120 <id>ecomp-public</id>
121 <url>${nexusproxy}/${publicNexusPath}</url>
123 <enabled>false</enabled>
127 <id>ecomp-release</id>
128 <url>${nexusproxy}/${releaseNexusPath}</url>
130 <enabled>false</enabled>
134 <id>ecomp-snapshots</id>
135 <url>${nexusproxy}/${snapshotNexusPath}</url>
137 <enabled>false</enabled>
140 </pluginRepositories>
143 <id>ecomp-public</id>
144 <url>https://nexus.onap.org/content/repositories/public/</url>
146 <enabled>false</enabled>
150 <id>ecomp-releases</id>
151 <url>https://nexus.onap.org/content/repositories/releases/</url>
153 <enabled>false</enabled>
157 <id>ecomp-snapshots</id>
158 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
160 <enabled>false</enabled>
165 <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
168 <id>camunda-public</id>
169 <url>https://app.camunda.com/nexus/content/groups/public</url>
172 <!-- TODO: remove from ONAP environemnt -->
173 <id>onap-releases</id>
174 <url>https://nexus.onap.org/content/repositories/releases/</url>
176 <enabled>false</enabled>
180 <!-- TODO: remove from ONAP environemnt -->
181 <id>onap-snapshots</id>
182 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
184 <enabled>false</enabled>
188 <!-- *********************************************************************************************************** -->
193 <directory>src/main/resources</directory>
194 <filtering>true</filtering>
197 <directory>target/generated-sources/license</directory>
199 <include>third-party-licenses.txt</include>
203 <directory>target/generated-resources/licenses</directory>
205 <include>*.*</include>
207 <targetPath>third-party-licenses</targetPath>
212 <groupId>org.sonatype.plugins</groupId>
213 <artifactId>nexus-staging-maven-plugin</artifactId>
214 <version>1.6.7</version>
215 <extensions>true</extensions>
217 <nexusUrl>${nexusproxy}</nexusUrl>
218 <stagingProfileId>176c31dfe190a</stagingProfileId>
219 <serverId>ecomp-staging</serverId>
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-deploy-plugin</artifactId>
225 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-compiler-plugin</artifactId>
234 <version>3.6.1</version>
237 <compilerArgument>-Xlint</compilerArgument>
238 <verbose>true</verbose>
239 <showDeprecation>true</showDeprecation>
240 <showWarnings>true</showWarnings>
244 <arg>-parameters</arg>
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-ejb-plugin</artifactId>
251 <version>2.2.1</version>
253 <ejbVersion>3.0</ejbVersion>
256 <addClasspath>true</addClasspath>
262 <groupId>org.apache.maven.plugins</groupId>
263 <artifactId>maven-checkstyle-plugin</artifactId>
264 <version>2.17</version>
267 <includes>**/org/openecomp/**/*.java</includes>
268 <configLocation>/google_checks.xml</configLocation>
272 <groupId>org.codehaus.mojo</groupId>
273 <artifactId>findbugs-maven-plugin</artifactId>
274 <version>2.5.2</version>
276 <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
277 <nested>true</nested>
278 <findbugsXmlOutput>true</findbugsXmlOutput>
279 <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
280 <xmlOutput>true</xmlOutput>
284 <groupId>org.codehaus.mojo</groupId>
285 <artifactId>sonar-maven-plugin</artifactId>
286 <version>5.1</version>
289 <artifactId>maven-scm-plugin</artifactId>
290 <version>1.8.1</version>
292 <tag>${project.artifactId}-${project.version}</tag>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-javadoc-plugin</artifactId>
298 <version>2.9</version>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-site-plugin</artifactId>
303 <version>3.6</version>
306 <groupId>org.apache.maven.wagon</groupId>
307 <artifactId>wagon-webdav-jackrabbit</artifactId>
308 <version>2.10</version>
313 <groupId>org.codehaus.mojo</groupId>
314 <artifactId>cobertura-maven-plugin</artifactId>
315 <version>2.5.2</version>
323 <groupId>org.codehaus.mojo</groupId>
324 <artifactId>versions-maven-plugin</artifactId>
325 <version>1.3.1</version>
329 <groupId>com.fortify.ps.maven.plugin</groupId>
330 <artifactId>sca-maven-plugin</artifactId>
331 <version>4.20</version>
333 <buildId>mso-${project.version}</buildId>
338 <groupId>org.jacoco</groupId>
339 <artifactId>jacoco-maven-plugin</artifactId>
340 <version>${jacoco.version}</version>
343 <id>default-prepare-agent</id>
345 <goal>prepare-agent</goal>
349 <id>default-report</id>
357 <groupId>org.codehaus.mojo</groupId>
358 <artifactId>license-maven-plugin</artifactId>
359 <version>1.15</version>
361 <inceptionYear>2017</inceptionYear>
362 <projectName>ONAP - SO</projectName>
363 <licenseName>apache_v2</licenseName>
364 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
365 <emptyLineAfterHeader>true</emptyLineAfterHeader>
366 <trimHeaderLine>true</trimHeaderLine>
367 <processStartTag>============LICENSE_START=======================================================</processStartTag>
368 <sectionDelimiter>================================================================================</sectionDelimiter>
369 <processEndTag>============LICENSE_END=========================================================</processEndTag>
371 <include>**/*.java</include>
372 <include>**/*.groovy</include>
375 <exclude>**/com/att/**</exclude>
380 <id>verify-headers</id>
382 <goal>check-file-header</goal>
385 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
386 <failOnMissingHeader>true</failOnMissingHeader>
395 <groupId>io.fabric8</groupId>
396 <artifactId>fabric8-maven-plugin</artifactId>
397 <version>3.5.33</version>
399 <skip>${docker.skip}</skip>
400 <skipBuild>${docker.skip.build}</skipBuild>
401 <skipPush>${docker.skip.push}</skipPush>
402 <dockerHost>${docker.newHost}</dockerHost> <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY
403 environment variable -->
404 <certPath>${docker.host.cert.path}</certPath><!-- Add -Ddocker.host.cert.pat="path
405 to your local certs directory" to maven build command -->
406 <pushRegistry>${dockerPushRepo}</pushRegistry> <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username,
408 <pullRegistry>${dockerPullRepo}</pullRegistry> <!-- If docker repo is not public. Update .m2/settings.xml Add server id
409 settings.dockerRepository, username, and password -->
412 <alias>service</alias>
413 <name>${artifactId}:${project.version}</name>
415 <dockerFileDir>${project.build.directory}</dockerFileDir>
431 <groupId>org.apache.maven.plugins</groupId>
432 <artifactId>maven-surefire-plugin</artifactId>
433 <version>2.20</version>
435 <systemPropertyVariables>
436 <so.log.level>DEBUG</so.log.level>
437 </systemPropertyVariables>
438 <rerunFailingTestsCount>2</rerunFailingTestsCount>
442 <groupId>org.apache.maven.plugins</groupId>
443 <artifactId>maven-failsafe-plugin</artifactId>
444 <version>2.20</version>
447 <systemPropertyVariables>
448 <so.log.level>DEBUG</so.log.level>
449 </systemPropertyVariables>
450 <rerunFailingTestsCount>2</rerunFailingTestsCount>
454 <groupId>org.apache.maven.plugins</groupId>
455 <artifactId>maven-dependency-plugin</artifactId>
458 <id>extract-docker-file</id>
465 <groupId>org.onap.so</groupId>
466 <artifactId>deployment-configs</artifactId>
467 <version>${project.version}</version>
468 <outputDirectory>${project.build.directory}</outputDirectory>
469 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
470 <excludes>Kubernetes</excludes>
478 <groupId>org.apache.maven.plugins</groupId>
479 <artifactId>maven-jar-plugin</artifactId>
480 <version>3.0.2</version>
485 <goal>test-jar</goal>
493 <phase>package</phase>
498 <classifier>${originalClassifier}</classifier>
500 <include>**</include>
509 <!-- *********************************************************************************************************** -->
510 <!-- Dependencies -->
513 <groupId>com.fasterxml.jackson.core</groupId>
514 <artifactId>jackson-core</artifactId>
517 <groupId>com.fasterxml.jackson.module</groupId>
518 <artifactId>jackson-module-jaxb-annotations</artifactId>
519 <version>2.4.0</version>
522 <groupId>com.fasterxml.jackson.core</groupId>
523 <artifactId>jackson-databind</artifactId>
524 <version>2.8.10</version>
527 <groupId>com.fasterxml.jackson.core</groupId>
528 <artifactId>jackson-annotations</artifactId>
529 <version>2.8.10</version>
532 <groupId>com.fasterxml.jackson.jaxrs</groupId>
533 <artifactId>jackson-jaxrs-base</artifactId>
534 <version>2.9.2</version>
537 <groupId>com.fasterxml.jackson.jaxrs</groupId>
538 <artifactId>jackson-jaxrs-json-provider</artifactId>
539 <version>2.9.2</version>
542 <groupId>javax.ws.rs</groupId>
543 <artifactId>javax.ws.rs-api</artifactId>
544 <version>${jax.ws.rs}</version>
547 <groupId>javax.annotation</groupId>
548 <artifactId>javax.annotation-api</artifactId>
549 <version>1.3.1</version>
552 <groupId>javax.inject</groupId>
553 <artifactId>javax.inject</artifactId>
557 <groupId>org.hamcrest</groupId>
558 <artifactId>hamcrest-core</artifactId>
559 <version>1.3</version>
562 <groupId>org.hamcrest</groupId>
563 <artifactId>hamcrest-all</artifactId>
564 <version>1.3</version>
567 <groupId>org.mockito</groupId>
568 <artifactId>mockito-all</artifactId>
569 <version>1.10.19</version>
573 <groupId>org.powermock</groupId>
574 <artifactId>powermock-api-mockito</artifactId>
575 <version>1.6.2</version>
579 <groupId>org.powermock</groupId>
580 <artifactId>powermock-module-junit4</artifactId>
581 <version>1.6.2</version>
585 <groupId>junit</groupId>
586 <artifactId>junit</artifactId>
587 <version>4.12</version>
591 <groupId>xmlunit</groupId>
592 <artifactId>xmlunit</artifactId>
593 <version>1.6</version>
597 <groupId>com.github.tomakehurst</groupId>
598 <artifactId>wiremock-standalone</artifactId>
599 <version>2.13.0</version>
603 <groupId>org.mortbay.jetty</groupId>
604 <artifactId>jetty</artifactId>
607 <groupId>com.google.guava</groupId>
608 <artifactId>guava</artifactId>
611 <groupId>com.fasterxml.jackson.core</groupId>
612 <artifactId>jackson-core</artifactId>
615 <groupId>com.fasterxml.jackson.core</groupId>
616 <artifactId>jackson-annotations</artifactId>
619 <groupId>com.fasterxml.jackson.core</groupId>
620 <artifactId>jackson-databind</artifactId>
623 <groupId>org.apache.httpcomponents</groupId>
624 <artifactId>httpclient</artifactId>
627 <groupId>org.skyscreamer</groupId>
628 <artifactId>jsonassert</artifactId>
631 <groupId>xmlunit</groupId>
632 <artifactId>xmlunit</artifactId>
635 <groupId>com.jayway.jsonpath</groupId>
636 <artifactId>json-path</artifactId>
639 <groupId>net.sf.jopt-simple</groupId>
640 <artifactId>jopt-simple</artifactId>
645 <groupId>com.openpojo</groupId>
646 <artifactId>openpojo</artifactId>
647 <version>0.8.10</version>
650 <groupId>com.shazam</groupId>
651 <artifactId>shazamcrest</artifactId>
652 <version>0.11</version>
656 <groupId>com.google.guava</groupId>
657 <artifactId>guava</artifactId>
660 <groupId>org.apache.commons</groupId>
661 <artifactId>commons-lang3</artifactId>
666 <groupId>org.assertj</groupId>
667 <artifactId>assertj-core</artifactId>
668 <version>3.9.0</version>
672 <groupId>com.googlecode.junit-toolbox</groupId>
673 <artifactId>junit-toolbox</artifactId>
674 <version>2.4</version>
677 <dependencyManagement>
679 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
680 <!-- force use of version 4.5 everywhere in transient deps, aligned on
681 WildFly 10 version -->
683 <groupId>org.apache.httpcomponents</groupId>
684 <artifactId>httpcore</artifactId>
685 <version>4.4.4</version>
686 <scope>compile</scope>
689 <groupId>commons-codec</groupId>
690 <artifactId>commons-codec</artifactId>
691 <version>1.10</version>
692 <scope>compile</scope>
695 <groupId>commons-io</groupId>
696 <artifactId>commons-io</artifactId>
697 <version>2.5</version>
698 <scope>compile</scope>
701 <groupId>log4j</groupId>
702 <artifactId>log4j</artifactId>
703 <version>1.2.17</version>
704 <scope>compile</scope>
707 <groupId>org.slf4j</groupId>
708 <artifactId>slf4j-api</artifactId>
709 <version>1.7.15</version>
710 <scope>compile</scope>
713 <groupId>com.sun.xml.fastinfoset</groupId>
714 <artifactId>FastInfoset</artifactId>
715 <version>1.2.13</version>
716 <scope>compile</scope>
719 <groupId>org.springframework.boot</groupId>
720 <artifactId>spring-boot-dependencies</artifactId>
721 <version>${springboot.version}</version>
723 <scope>import</scope>
726 <groupId>org.yaml</groupId>
727 <artifactId>snakeyaml</artifactId>
728 <version>1.23</version>
731 <groupId>org.springframework.boot</groupId>
732 <artifactId>spring-boot-starter-test</artifactId>
733 <version>${springboot.version}</version>
736 <groupId>com.vaadin.external.google</groupId>
737 <artifactId>android-json</artifactId>
742 <groupId>net.javacrumbs.shedlock</groupId>
743 <artifactId>shedlock-spring</artifactId>
744 <version>0.18.2</version>
747 <groupId>net.javacrumbs.shedlock</groupId>
748 <artifactId>shedlock-provider-jdbc-template</artifactId>
749 <version>0.18.2</version>
752 <groupId>net.javacrumbs.shedlock</groupId>
753 <artifactId>shedlock-provider-jdbc-template</artifactId>
754 <version>0.18.2</version>
757 <groupId>org.flywaydb</groupId>
758 <artifactId>flyway-core</artifactId>
759 <version>4.2.0</version>
762 <groupId>org.apache.tomcat.embed</groupId>
763 <artifactId>tomcat-embed-core</artifactId>
764 <version>${tomcat.version}</version>
767 <groupId>org.apache.tomcat.embed</groupId>
768 <artifactId>tomcat-embed-el</artifactId>
769 <version>${tomcat.version}</version>
772 <groupId>org.apache.tomcat.embed</groupId>
773 <artifactId>tomcat-embed-websocket</artifactId>
774 <version>${tomcat.version}</version>
777 <groupId>org.apache.tomcat</groupId>
778 <artifactId>tomcat-annotations-api</artifactId>
779 <version>${tomcat.version}</version>
782 <groupId>org.json4s</groupId>
783 <artifactId>json4s-jackson_2.12</artifactId>
784 <version>3.6.0</version>
787 <groupId>org.json4s</groupId>
788 <artifactId>json4s-core_2.12</artifactId>
789 <version>3.6.0</version>
792 <groupId>org.apache.commons</groupId>
793 <artifactId>commons-email</artifactId>
794 <version>1.5</version>
797 <groupId>org.immutables</groupId>
798 <artifactId>value</artifactId>
799 <version>2.7.1</version>
802 <groupId>org.eclipse.jetty</groupId>
803 <artifactId>jetty-server</artifactId>
804 <version>9.4.12.v20180830</version>
807 <groupId>com.h2database</groupId>
808 <artifactId>h2</artifactId>
809 <version>${h2.version}</version>
812 </dependencyManagement>
815 <id>docker-image-build</id>
817 <docker.skip>false</docker.skip>
818 <docker.skip.build>false</docker.skip.build>
819 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
823 <id>docker-image-build-push</id>
825 <docker.skip>false</docker.skip>
826 <docker.skip.build>false</docker.skip.build>
827 <docker.skip.push>false</docker.skip.push>
828 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
835 <name>m2e.version</name>
839 <originalClassifier/>