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>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 <openstack.version>1.2.2</openstack.version>
50 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
51 <springboot.version>1.5.13.RELEASE</springboot.version>
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.5</cxf.version>
66 <jax.ws.rs>2.1</jax.ws.rs>
68 <distributionManagement>
70 <id>ecomp-releases</id>
71 <url>${nexusproxy}/${releaseNexusPath}</url>
74 <id>ecomp-snapshots</id>
75 <url>${nexusproxy}/${snapshotNexusPath}</url>
79 <url>dav:${nexusproxy}${siteNexusPath}</url>
81 </distributionManagement>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-javadoc-plugin</artifactId>
87 <version>2.10.4</version>
89 <failOnError>false</failOnError>
90 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
92 <groupId>org.umlgraph</groupId>
93 <artifactId>umlgraph</artifactId>
94 <version>5.6</version>
96 <additionalparam>-views</additionalparam>
97 <useStandardDocletOptions>true</useStandardDocletOptions>
102 <!-- configure build -->
103 <!-- *********************************************************************************************************** -->
104 <!-- Plugins and repositories -->
108 <url>http://repo1.maven.org/maven2</url>
112 <url>http://maven.restlet.com</url>
115 <id>ecomp-public</id>
116 <url>${nexusproxy}/${publicNexusPath}</url>
118 <enabled>false</enabled>
122 <id>ecomp-release</id>
123 <url>${nexusproxy}/${releaseNexusPath}</url>
125 <enabled>false</enabled>
129 <id>ecomp-snapshots</id>
130 <url>${nexusproxy}/${snapshotNexusPath}</url>
132 <enabled>false</enabled>
135 </pluginRepositories>
138 <id>ecomp-public</id>
139 <url>https://nexus.onap.org/content/repositories/public/</url>
141 <enabled>false</enabled>
145 <id>ecomp-releases</id>
146 <url>https://nexus.onap.org/content/repositories/releases/</url>
148 <enabled>false</enabled>
152 <id>ecomp-snapshots</id>
153 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
155 <enabled>false</enabled>
160 <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
163 <id>camunda-public</id>
164 <url>https://app.camunda.com/nexus/content/groups/public</url>
167 <!-- TODO: remove from ONAP environemnt -->
168 <id>onap-releases</id>
169 <url>https://nexus.onap.org/content/repositories/releases/</url>
171 <enabled>false</enabled>
175 <!-- TODO: remove from ONAP environemnt -->
176 <id>onap-snapshots</id>
177 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
179 <enabled>false</enabled>
183 <!-- *********************************************************************************************************** -->
188 <directory>src/main/resources</directory>
189 <filtering>true</filtering>
192 <directory>target/generated-sources/license</directory>
194 <include>third-party-licenses.txt</include>
198 <directory>target/generated-resources/licenses</directory>
200 <include>*.*</include>
202 <targetPath>third-party-licenses</targetPath>
207 <groupId>org.sonatype.plugins</groupId>
208 <artifactId>nexus-staging-maven-plugin</artifactId>
209 <version>1.6.7</version>
210 <extensions>true</extensions>
212 <nexusUrl>${nexusproxy}</nexusUrl>
213 <stagingProfileId>176c31dfe190a</stagingProfileId>
214 <serverId>ecomp-staging</serverId>
218 <groupId>org.apache.maven.plugins</groupId>
219 <artifactId>maven-deploy-plugin</artifactId>
220 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
227 <groupId>org.apache.maven.plugins</groupId>
228 <artifactId>maven-compiler-plugin</artifactId>
229 <version>3.6.1</version>
232 <compilerArgument>-Xlint</compilerArgument>
233 <verbose>true</verbose>
234 <showDeprecation>true</showDeprecation>
235 <showWarnings>true</showWarnings>
239 <arg>-parameters</arg>
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-ejb-plugin</artifactId>
246 <version>2.2.1</version>
248 <ejbVersion>3.0</ejbVersion>
251 <addClasspath>true</addClasspath>
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-checkstyle-plugin</artifactId>
259 <version>2.17</version>
262 <includes>**/org/openecomp/**/*.java</includes>
263 <configLocation>/google_checks.xml</configLocation>
267 <groupId>org.codehaus.mojo</groupId>
268 <artifactId>findbugs-maven-plugin</artifactId>
269 <version>2.5.2</version>
271 <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
272 <nested>true</nested>
273 <findbugsXmlOutput>true</findbugsXmlOutput>
274 <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
275 <xmlOutput>true</xmlOutput>
279 <groupId>org.codehaus.mojo</groupId>
280 <artifactId>sonar-maven-plugin</artifactId>
281 <version>5.1</version>
284 <artifactId>maven-scm-plugin</artifactId>
285 <version>1.8.1</version>
287 <tag>${project.artifactId}-${project.version}</tag>
291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-javadoc-plugin</artifactId>
293 <version>2.9</version>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-site-plugin</artifactId>
298 <version>3.6</version>
301 <groupId>org.apache.maven.wagon</groupId>
302 <artifactId>wagon-webdav-jackrabbit</artifactId>
303 <version>2.10</version>
308 <groupId>org.codehaus.mojo</groupId>
309 <artifactId>cobertura-maven-plugin</artifactId>
310 <version>2.5.2</version>
318 <groupId>org.codehaus.mojo</groupId>
319 <artifactId>versions-maven-plugin</artifactId>
320 <version>1.3.1</version>
324 <groupId>com.fortify.ps.maven.plugin</groupId>
325 <artifactId>sca-maven-plugin</artifactId>
326 <version>4.20</version>
328 <buildId>mso-${project.version}</buildId>
333 <groupId>org.jacoco</groupId>
334 <artifactId>jacoco-maven-plugin</artifactId>
335 <version>${jacoco.version}</version>
338 <id>default-prepare-agent</id>
340 <goal>prepare-agent</goal>
344 <id>default-report</id>
352 <groupId>org.codehaus.mojo</groupId>
353 <artifactId>license-maven-plugin</artifactId>
354 <version>1.15</version>
356 <inceptionYear>2017</inceptionYear>
357 <projectName>ONAP - SO</projectName>
358 <licenseName>apache_v2</licenseName>
359 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
360 <emptyLineAfterHeader>true</emptyLineAfterHeader>
361 <trimHeaderLine>true</trimHeaderLine>
362 <processStartTag>============LICENSE_START=======================================================</processStartTag>
363 <sectionDelimiter>================================================================================</sectionDelimiter>
364 <processEndTag>============LICENSE_END=========================================================</processEndTag>
366 <include>**/*.java</include>
367 <include>**/*.groovy</include>
370 <exclude>**/com/att/**</exclude>
375 <id>verify-headers</id>
377 <goal>check-file-header</goal>
380 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
381 <failOnMissingHeader>true</failOnMissingHeader>
390 <groupId>io.fabric8</groupId>
391 <artifactId>fabric8-maven-plugin</artifactId>
392 <version>3.5.33</version>
394 <skip>${docker.skip}</skip>
395 <skipBuild>${docker.skip.build}</skipBuild>
396 <skipPush>${docker.skip.push}</skipPush>
397 <dockerHost>${docker.newHost}</dockerHost> <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY
398 environment variable -->
399 <certPath>${docker.host.cert.path}</certPath><!-- Add -Ddocker.host.cert.pat="path
400 to your local certs directory" to maven build command -->
401 <pushRegistry>${dockerPushRepo}</pushRegistry> <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username,
403 <pullRegistry>${dockerPullRepo}</pullRegistry> <!-- If docker repo is not public. Update .m2/settings.xml Add server id
404 settings.dockerRepository, username, and password -->
407 <alias>service</alias>
408 <name>${artifactId}:${project.version}</name>
410 <dockerFileDir>${project.build.directory}</dockerFileDir>
426 <groupId>org.apache.maven.plugins</groupId>
427 <artifactId>maven-surefire-plugin</artifactId>
428 <version>2.20</version>
430 <systemPropertyVariables>
431 <so.log.level>DEBUG</so.log.level>
432 </systemPropertyVariables>
433 <rerunFailingTestsCount>2</rerunFailingTestsCount>
437 <groupId>org.apache.maven.plugins</groupId>
438 <artifactId>maven-failsafe-plugin</artifactId>
439 <version>2.20</version>
442 <systemPropertyVariables>
443 <so.log.level>DEBUG</so.log.level>
444 </systemPropertyVariables>
445 <rerunFailingTestsCount>2</rerunFailingTestsCount>
449 <groupId>org.apache.maven.plugins</groupId>
450 <artifactId>maven-dependency-plugin</artifactId>
453 <id>extract-docker-file</id>
460 <groupId>org.onap.so</groupId>
461 <artifactId>deployment-configs</artifactId>
462 <version>${project.version}</version>
463 <outputDirectory>${project.build.directory}</outputDirectory>
464 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
465 <excludes>Kubernetes</excludes>
473 <groupId>org.apache.maven.plugins</groupId>
474 <artifactId>maven-jar-plugin</artifactId>
475 <version>3.0.2</version>
480 <goal>test-jar</goal>
488 <phase>package</phase>
493 <classifier>${originalClassifier}</classifier>
495 <include>**</include>
504 <!-- *********************************************************************************************************** -->
505 <!-- Dependencies -->
508 <groupId>com.fasterxml.jackson.core</groupId>
509 <artifactId>jackson-core</artifactId>
510 <version>2.8.7</version>
513 <groupId>com.fasterxml.jackson.module</groupId>
514 <artifactId>jackson-module-jaxb-annotations</artifactId>
515 <version>2.4.0</version>
518 <groupId>com.fasterxml.jackson.core</groupId>
519 <artifactId>jackson-databind</artifactId>
520 <version>2.8.7</version>
523 <groupId>com.fasterxml.jackson.core</groupId>
524 <artifactId>jackson-annotations</artifactId>
525 <version>2.8.7</version>
528 <groupId>com.fasterxml.jackson.jaxrs</groupId>
529 <artifactId>jackson-jaxrs-base</artifactId>
530 <version>2.9.2</version>
533 <groupId>com.fasterxml.jackson.jaxrs</groupId>
534 <artifactId>jackson-jaxrs-json-provider</artifactId>
535 <version>2.9.2</version>
538 <groupId>javax.ws.rs</groupId>
539 <artifactId>javax.ws.rs-api</artifactId>
540 <version>${jax.ws.rs}</version>
543 <groupId>javax.annotation</groupId>
544 <artifactId>javax.annotation-api</artifactId>
545 <version>1.3.1</version>
548 <groupId>javax.inject</groupId>
549 <artifactId>javax.inject</artifactId>
553 <groupId>org.hamcrest</groupId>
554 <artifactId>hamcrest-core</artifactId>
555 <version>1.3</version>
558 <groupId>org.hamcrest</groupId>
559 <artifactId>hamcrest-all</artifactId>
560 <version>1.3</version>
563 <groupId>org.mockito</groupId>
564 <artifactId>mockito-all</artifactId>
565 <version>1.10.19</version>
569 <groupId>org.powermock</groupId>
570 <artifactId>powermock-api-mockito</artifactId>
571 <version>1.6.2</version>
575 <groupId>org.powermock</groupId>
576 <artifactId>powermock-module-junit4</artifactId>
577 <version>1.6.2</version>
581 <groupId>junit</groupId>
582 <artifactId>junit</artifactId>
583 <version>4.12</version>
587 <groupId>xmlunit</groupId>
588 <artifactId>xmlunit</artifactId>
589 <version>1.6</version>
593 <groupId>com.github.tomakehurst</groupId>
594 <artifactId>wiremock-standalone</artifactId>
595 <version>2.13.0</version>
599 <groupId>org.mortbay.jetty</groupId>
600 <artifactId>jetty</artifactId>
603 <groupId>com.google.guava</groupId>
604 <artifactId>guava</artifactId>
607 <groupId>com.fasterxml.jackson.core</groupId>
608 <artifactId>jackson-core</artifactId>
611 <groupId>com.fasterxml.jackson.core</groupId>
612 <artifactId>jackson-annotations</artifactId>
615 <groupId>com.fasterxml.jackson.core</groupId>
616 <artifactId>jackson-databind</artifactId>
619 <groupId>org.apache.httpcomponents</groupId>
620 <artifactId>httpclient</artifactId>
623 <groupId>org.skyscreamer</groupId>
624 <artifactId>jsonassert</artifactId>
627 <groupId>xmlunit</groupId>
628 <artifactId>xmlunit</artifactId>
631 <groupId>com.jayway.jsonpath</groupId>
632 <artifactId>json-path</artifactId>
635 <groupId>net.sf.jopt-simple</groupId>
636 <artifactId>jopt-simple</artifactId>
641 <groupId>com.openpojo</groupId>
642 <artifactId>openpojo</artifactId>
643 <version>0.8.10</version>
646 <groupId>com.shazam</groupId>
647 <artifactId>shazamcrest</artifactId>
648 <version>0.11</version>
652 <groupId>com.google.guava</groupId>
653 <artifactId>guava</artifactId>
656 <groupId>org.apache.commons</groupId>
657 <artifactId>commons-lang3</artifactId>
662 <groupId>org.assertj</groupId>
663 <artifactId>assertj-core</artifactId>
664 <version>3.9.0</version>
668 <groupId>com.googlecode.junit-toolbox</groupId>
669 <artifactId>junit-toolbox</artifactId>
670 <version>2.4</version>
673 <dependencyManagement>
675 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
676 <!-- force use of version 4.5 everywhere in transient deps, aligned on
677 WildFly 10 version -->
679 <groupId>org.apache.httpcomponents</groupId>
680 <artifactId>httpclient</artifactId>
681 <version>4.5.5</version>
682 <scope>compile</scope>
685 <groupId>org.apache.httpcomponents</groupId>
686 <artifactId>httpcore</artifactId>
687 <version>4.4.4</version>
688 <scope>compile</scope>
691 <groupId>commons-codec</groupId>
692 <artifactId>commons-codec</artifactId>
693 <version>1.10</version>
694 <scope>compile</scope>
697 <groupId>commons-io</groupId>
698 <artifactId>commons-io</artifactId>
699 <version>2.5</version>
700 <scope>compile</scope>
703 <groupId>log4j</groupId>
704 <artifactId>log4j</artifactId>
705 <version>1.2.17</version>
706 <scope>compile</scope>
709 <groupId>org.slf4j</groupId>
710 <artifactId>slf4j-api</artifactId>
711 <version>1.7.15</version>
712 <scope>compile</scope>
715 <groupId>com.sun.xml.fastinfoset</groupId>
716 <artifactId>FastInfoset</artifactId>
717 <version>1.2.13</version>
718 <scope>compile</scope>
721 <groupId>org.springframework.boot</groupId>
722 <artifactId>spring-boot-dependencies</artifactId>
723 <version>${springboot.version}</version>
725 <scope>import</scope>
728 <groupId>org.yaml</groupId>
729 <artifactId>snakeyaml</artifactId>
730 <version>1.15</version>
733 <groupId>org.springframework.boot</groupId>
734 <artifactId>spring-boot-starter-test</artifactId>
735 <version>${springboot.version}</version>
738 <groupId>com.vaadin.external.google</groupId>
739 <artifactId>android-json</artifactId>
744 <groupId>net.javacrumbs.shedlock</groupId>
745 <artifactId>shedlock-spring</artifactId>
746 <version>0.18.2</version>
749 <groupId>net.javacrumbs.shedlock</groupId>
750 <artifactId>shedlock-provider-jdbc-template</artifactId>
751 <version>0.18.2</version>
754 <groupId>net.javacrumbs.shedlock</groupId>
755 <artifactId>shedlock-provider-jdbc-template</artifactId>
756 <version>0.18.2</version>
759 <groupId>org.flywaydb</groupId>
760 <artifactId>flyway-core</artifactId>
761 <version>4.2.0</version>
764 </dependencyManagement>
767 <id>docker-image-build</id>
769 <docker.skip>false</docker.skip>
770 <docker.skip.build>false</docker.skip.build>
771 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
775 <id>docker-image-build-push</id>
777 <docker.skip>false</docker.skip>
778 <docker.skip.build>false</docker.skip.build>
779 <docker.skip.push>false</docker.skip.push>
780 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
787 <name>m2e.version</name>
791 <originalClassifier/>