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.0</version>
10 <groupId>org.onap.so</groupId>
11 <artifactId>so</artifactId>
12 <packaging>pom</packaging>
13 <version>1.3.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 <openstack.version>1.2.2</openstack.version>
51 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
52 <springboot.version>1.5.13.RELEASE</springboot.version>
53 <originalClassifier>original</originalClassifier>
54 <docker.skip>true</docker.skip>
55 <docker.skip.build>true</docker.skip.build>
56 <docker.skip.push>true</docker.skip.push>
57 <docker.buildArg.project_version>${project.version}</docker.buildArg.project_version>
58 <docker.buildArg.artifact_id>${project.artifactId}</docker.buildArg.artifact_id>
59 <docker.buildArg.docker_repository>${dockerPullRepo}</docker.buildArg.docker_repository>
60 <enforcer.skip>true</enforcer.skip>
61 <nexusproxy>https://nexus.onap.org</nexusproxy>
62 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
63 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
64 <publicNexusPath>content/repositories/public/</publicNexusPath>
65 <siteNexusPath>content/sites/site/org/onap/so/${project.version}/</siteNexusPath>
66 <cxf.version>3.2.5</cxf.version>
67 <jax.ws.rs>2.1</jax.ws.rs>
69 <distributionManagement>
71 <id>ecomp-releases</id>
72 <url>${nexusproxy}/${releaseNexusPath}</url>
75 <id>ecomp-snapshots</id>
76 <url>${nexusproxy}/${snapshotNexusPath}</url>
80 <url>dav:${nexusproxy}${siteNexusPath}</url>
82 </distributionManagement>
86 <groupId>org.apache.maven.plugins</groupId>
87 <artifactId>maven-javadoc-plugin</artifactId>
88 <version>2.10.4</version>
90 <failOnError>false</failOnError>
91 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
93 <groupId>org.umlgraph</groupId>
94 <artifactId>umlgraph</artifactId>
95 <version>5.6</version>
97 <additionalparam>-views</additionalparam>
98 <useStandardDocletOptions>true</useStandardDocletOptions>
103 <!-- configure build -->
104 <!-- *********************************************************************************************************** -->
105 <!-- Plugins and repositories -->
109 <url>http://repo1.maven.org/maven2</url>
113 <url>http://maven.restlet.com</url>
116 <id>ecomp-public</id>
117 <url>${nexusproxy}/${publicNexusPath}</url>
119 <enabled>false</enabled>
123 <id>ecomp-release</id>
124 <url>${nexusproxy}/${releaseNexusPath}</url>
126 <enabled>false</enabled>
130 <id>ecomp-snapshots</id>
131 <url>${nexusproxy}/${snapshotNexusPath}</url>
133 <enabled>false</enabled>
136 </pluginRepositories>
139 <id>ecomp-public</id>
140 <url>https://nexus.onap.org/content/repositories/public/</url>
142 <enabled>false</enabled>
146 <id>ecomp-releases</id>
147 <url>https://nexus.onap.org/content/repositories/releases/</url>
149 <enabled>false</enabled>
153 <id>ecomp-snapshots</id>
154 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
156 <enabled>false</enabled>
161 <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
164 <id>camunda-public</id>
165 <url>https://app.camunda.com/nexus/content/groups/public</url>
168 <!-- TODO: remove from ONAP environemnt -->
169 <id>onap-releases</id>
170 <url>https://nexus.onap.org/content/repositories/releases/</url>
172 <enabled>false</enabled>
176 <!-- TODO: remove from ONAP environemnt -->
177 <id>onap-snapshots</id>
178 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
180 <enabled>false</enabled>
184 <!-- *********************************************************************************************************** -->
189 <directory>src/main/resources</directory>
190 <filtering>true</filtering>
193 <directory>target/generated-sources/license</directory>
195 <include>third-party-licenses.txt</include>
199 <directory>target/generated-resources/licenses</directory>
201 <include>*.*</include>
203 <targetPath>third-party-licenses</targetPath>
208 <groupId>org.sonatype.plugins</groupId>
209 <artifactId>nexus-staging-maven-plugin</artifactId>
210 <version>1.6.7</version>
211 <extensions>true</extensions>
213 <nexusUrl>${nexusproxy}</nexusUrl>
214 <stagingProfileId>176c31dfe190a</stagingProfileId>
215 <serverId>ecomp-staging</serverId>
219 <groupId>org.apache.maven.plugins</groupId>
220 <artifactId>maven-deploy-plugin</artifactId>
221 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
228 <groupId>org.apache.maven.plugins</groupId>
229 <artifactId>maven-compiler-plugin</artifactId>
230 <version>3.6.1</version>
233 <compilerArgument>-Xlint</compilerArgument>
234 <verbose>true</verbose>
235 <showDeprecation>true</showDeprecation>
236 <showWarnings>true</showWarnings>
240 <arg>-parameters</arg>
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-ejb-plugin</artifactId>
247 <version>2.2.1</version>
249 <ejbVersion>3.0</ejbVersion>
252 <addClasspath>true</addClasspath>
258 <groupId>org.apache.maven.plugins</groupId>
259 <artifactId>maven-checkstyle-plugin</artifactId>
260 <version>2.17</version>
263 <includes>**/org/openecomp/**/*.java</includes>
264 <configLocation>/google_checks.xml</configLocation>
268 <groupId>org.codehaus.mojo</groupId>
269 <artifactId>findbugs-maven-plugin</artifactId>
270 <version>2.5.2</version>
272 <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
273 <nested>true</nested>
274 <findbugsXmlOutput>true</findbugsXmlOutput>
275 <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
276 <xmlOutput>true</xmlOutput>
280 <groupId>org.codehaus.mojo</groupId>
281 <artifactId>sonar-maven-plugin</artifactId>
282 <version>5.1</version>
285 <artifactId>maven-scm-plugin</artifactId>
286 <version>1.8.1</version>
288 <tag>${project.artifactId}-${project.version}</tag>
292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-javadoc-plugin</artifactId>
294 <version>2.9</version>
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-site-plugin</artifactId>
299 <version>3.6</version>
302 <groupId>org.apache.maven.wagon</groupId>
303 <artifactId>wagon-webdav-jackrabbit</artifactId>
304 <version>2.10</version>
309 <groupId>org.codehaus.mojo</groupId>
310 <artifactId>cobertura-maven-plugin</artifactId>
311 <version>2.5.2</version>
319 <groupId>org.codehaus.mojo</groupId>
320 <artifactId>versions-maven-plugin</artifactId>
321 <version>1.3.1</version>
325 <groupId>com.fortify.ps.maven.plugin</groupId>
326 <artifactId>sca-maven-plugin</artifactId>
327 <version>4.20</version>
329 <buildId>mso-${project.version}</buildId>
334 <groupId>org.jacoco</groupId>
335 <artifactId>jacoco-maven-plugin</artifactId>
336 <version>${jacoco.version}</version>
339 <id>default-prepare-agent</id>
341 <goal>prepare-agent</goal>
345 <id>default-report</id>
353 <groupId>org.codehaus.mojo</groupId>
354 <artifactId>license-maven-plugin</artifactId>
355 <version>1.15</version>
357 <inceptionYear>2017</inceptionYear>
358 <projectName>ONAP - SO</projectName>
359 <licenseName>apache_v2</licenseName>
360 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
361 <emptyLineAfterHeader>true</emptyLineAfterHeader>
362 <trimHeaderLine>true</trimHeaderLine>
363 <processStartTag>============LICENSE_START=======================================================</processStartTag>
364 <sectionDelimiter>================================================================================</sectionDelimiter>
365 <processEndTag>============LICENSE_END=========================================================</processEndTag>
367 <include>**/*.java</include>
368 <include>**/*.groovy</include>
371 <exclude>**/com/att/**</exclude>
376 <id>verify-headers</id>
378 <goal>check-file-header</goal>
381 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
382 <failOnMissingHeader>true</failOnMissingHeader>
391 <groupId>io.fabric8</groupId>
392 <artifactId>fabric8-maven-plugin</artifactId>
393 <version>3.5.33</version>
395 <skip>${docker.skip}</skip>
396 <skipBuild>${docker.skip.build}</skipBuild>
397 <skipPush>${docker.skip.push}</skipPush>
398 <dockerHost>${docker.newHost}</dockerHost> <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY
399 environment variable -->
400 <certPath>${docker.host.cert.path}</certPath><!-- Add -Ddocker.host.cert.pat="path
401 to your local certs directory" to maven build command -->
402 <pushRegistry>${dockerPushRepo}</pushRegistry> <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username,
404 <pullRegistry>${dockerPullRepo}</pullRegistry> <!-- If docker repo is not public. Update .m2/settings.xml Add server id
405 settings.dockerRepository, username, and password -->
408 <alias>service</alias>
409 <name>${artifactId}:${project.version}</name>
411 <dockerFileDir>${project.build.directory}</dockerFileDir>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-surefire-plugin</artifactId>
429 <version>2.20</version>
431 <systemPropertyVariables>
432 <so.log.level>DEBUG</so.log.level>
433 </systemPropertyVariables>
434 <rerunFailingTestsCount>2</rerunFailingTestsCount>
438 <groupId>org.apache.maven.plugins</groupId>
439 <artifactId>maven-failsafe-plugin</artifactId>
440 <version>2.20</version>
443 <systemPropertyVariables>
444 <so.log.level>DEBUG</so.log.level>
445 </systemPropertyVariables>
446 <rerunFailingTestsCount>2</rerunFailingTestsCount>
450 <groupId>org.apache.maven.plugins</groupId>
451 <artifactId>maven-dependency-plugin</artifactId>
454 <id>extract-docker-file</id>
461 <groupId>org.onap.so</groupId>
462 <artifactId>deployment-configs</artifactId>
463 <version>${project.version}</version>
464 <outputDirectory>${project.build.directory}</outputDirectory>
465 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
466 <excludes>Kubernetes</excludes>
474 <groupId>org.apache.maven.plugins</groupId>
475 <artifactId>maven-jar-plugin</artifactId>
476 <version>3.0.2</version>
481 <goal>test-jar</goal>
489 <phase>package</phase>
494 <classifier>${originalClassifier}</classifier>
496 <include>**</include>
505 <!-- *********************************************************************************************************** -->
506 <!-- Dependencies -->
509 <groupId>com.fasterxml.jackson.core</groupId>
510 <artifactId>jackson-core</artifactId>
511 <version>2.8.10</version>
514 <groupId>com.fasterxml.jackson.module</groupId>
515 <artifactId>jackson-module-jaxb-annotations</artifactId>
516 <version>2.4.0</version>
519 <groupId>com.fasterxml.jackson.core</groupId>
520 <artifactId>jackson-databind</artifactId>
521 <version>2.8.10</version>
524 <groupId>com.fasterxml.jackson.core</groupId>
525 <artifactId>jackson-annotations</artifactId>
526 <version>2.8.10</version>
529 <groupId>com.fasterxml.jackson.jaxrs</groupId>
530 <artifactId>jackson-jaxrs-base</artifactId>
531 <version>2.9.2</version>
534 <groupId>com.fasterxml.jackson.jaxrs</groupId>
535 <artifactId>jackson-jaxrs-json-provider</artifactId>
536 <version>2.9.2</version>
539 <groupId>javax.ws.rs</groupId>
540 <artifactId>javax.ws.rs-api</artifactId>
541 <version>${jax.ws.rs}</version>
544 <groupId>javax.annotation</groupId>
545 <artifactId>javax.annotation-api</artifactId>
546 <version>1.3.1</version>
549 <groupId>javax.inject</groupId>
550 <artifactId>javax.inject</artifactId>
554 <groupId>org.hamcrest</groupId>
555 <artifactId>hamcrest-core</artifactId>
556 <version>1.3</version>
559 <groupId>org.hamcrest</groupId>
560 <artifactId>hamcrest-all</artifactId>
561 <version>1.3</version>
564 <groupId>org.mockito</groupId>
565 <artifactId>mockito-all</artifactId>
566 <version>1.10.19</version>
570 <groupId>org.powermock</groupId>
571 <artifactId>powermock-api-mockito</artifactId>
572 <version>1.6.2</version>
576 <groupId>org.powermock</groupId>
577 <artifactId>powermock-module-junit4</artifactId>
578 <version>1.6.2</version>
582 <groupId>junit</groupId>
583 <artifactId>junit</artifactId>
584 <version>4.12</version>
588 <groupId>xmlunit</groupId>
589 <artifactId>xmlunit</artifactId>
590 <version>1.6</version>
594 <groupId>com.github.tomakehurst</groupId>
595 <artifactId>wiremock-standalone</artifactId>
596 <version>2.13.0</version>
600 <groupId>org.mortbay.jetty</groupId>
601 <artifactId>jetty</artifactId>
604 <groupId>com.google.guava</groupId>
605 <artifactId>guava</artifactId>
608 <groupId>com.fasterxml.jackson.core</groupId>
609 <artifactId>jackson-core</artifactId>
612 <groupId>com.fasterxml.jackson.core</groupId>
613 <artifactId>jackson-annotations</artifactId>
616 <groupId>com.fasterxml.jackson.core</groupId>
617 <artifactId>jackson-databind</artifactId>
620 <groupId>org.apache.httpcomponents</groupId>
621 <artifactId>httpclient</artifactId>
624 <groupId>org.skyscreamer</groupId>
625 <artifactId>jsonassert</artifactId>
628 <groupId>xmlunit</groupId>
629 <artifactId>xmlunit</artifactId>
632 <groupId>com.jayway.jsonpath</groupId>
633 <artifactId>json-path</artifactId>
636 <groupId>net.sf.jopt-simple</groupId>
637 <artifactId>jopt-simple</artifactId>
642 <groupId>com.openpojo</groupId>
643 <artifactId>openpojo</artifactId>
644 <version>0.8.10</version>
647 <groupId>com.shazam</groupId>
648 <artifactId>shazamcrest</artifactId>
649 <version>0.11</version>
653 <groupId>com.google.guava</groupId>
654 <artifactId>guava</artifactId>
657 <groupId>org.apache.commons</groupId>
658 <artifactId>commons-lang3</artifactId>
663 <groupId>org.assertj</groupId>
664 <artifactId>assertj-core</artifactId>
665 <version>3.9.0</version>
669 <groupId>com.googlecode.junit-toolbox</groupId>
670 <artifactId>junit-toolbox</artifactId>
671 <version>2.4</version>
674 <dependencyManagement>
676 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
677 <!-- force use of version 4.5 everywhere in transient deps, aligned on
678 WildFly 10 version -->
680 <groupId>org.apache.httpcomponents</groupId>
681 <artifactId>httpclient</artifactId>
682 <version>4.5.5</version>
683 <scope>compile</scope>
686 <groupId>org.apache.httpcomponents</groupId>
687 <artifactId>httpcore</artifactId>
688 <version>4.4.4</version>
689 <scope>compile</scope>
692 <groupId>commons-codec</groupId>
693 <artifactId>commons-codec</artifactId>
694 <version>1.10</version>
695 <scope>compile</scope>
698 <groupId>commons-io</groupId>
699 <artifactId>commons-io</artifactId>
700 <version>2.5</version>
701 <scope>compile</scope>
704 <groupId>log4j</groupId>
705 <artifactId>log4j</artifactId>
706 <version>1.2.17</version>
707 <scope>compile</scope>
710 <groupId>org.slf4j</groupId>
711 <artifactId>slf4j-api</artifactId>
712 <version>1.7.15</version>
713 <scope>compile</scope>
716 <groupId>com.sun.xml.fastinfoset</groupId>
717 <artifactId>FastInfoset</artifactId>
718 <version>1.2.13</version>
719 <scope>compile</scope>
722 <groupId>org.springframework.boot</groupId>
723 <artifactId>spring-boot-dependencies</artifactId>
724 <version>${springboot.version}</version>
726 <scope>import</scope>
729 <groupId>org.yaml</groupId>
730 <artifactId>snakeyaml</artifactId>
731 <version>1.15</version>
734 <groupId>org.springframework.boot</groupId>
735 <artifactId>spring-boot-starter-test</artifactId>
736 <version>${springboot.version}</version>
739 <groupId>com.vaadin.external.google</groupId>
740 <artifactId>android-json</artifactId>
745 <groupId>net.javacrumbs.shedlock</groupId>
746 <artifactId>shedlock-spring</artifactId>
747 <version>0.18.2</version>
750 <groupId>net.javacrumbs.shedlock</groupId>
751 <artifactId>shedlock-provider-jdbc-template</artifactId>
752 <version>0.18.2</version>
755 <groupId>net.javacrumbs.shedlock</groupId>
756 <artifactId>shedlock-provider-jdbc-template</artifactId>
757 <version>0.18.2</version>
760 <groupId>org.flywaydb</groupId>
761 <artifactId>flyway-core</artifactId>
762 <version>4.2.0</version>
765 </dependencyManagement>
768 <id>docker-image-build</id>
770 <docker.skip>false</docker.skip>
771 <docker.skip.build>false</docker.skip.build>
772 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
776 <id>docker-image-build-push</id>
778 <docker.skip>false</docker.skip>
779 <docker.skip.build>false</docker.skip.build>
780 <docker.skip.push>false</docker.skip.push>
781 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
788 <name>m2e.version</name>
792 <originalClassifier/>