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>packages</module>
35 <project.mso.base.folder>.</project.mso.base.folder>
36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
38 <sonar.language>java</sonar.language>
39 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
40 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
41 <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
42 <!--sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath -->
43 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
44 <sonar.projectVersion>${project.version}</sonar.projectVersion>
45 <sonar.cpd.exclusions>**/*</sonar.cpd.exclusions>
46 <jacoco.version>0.7.5.201505241946</jacoco.version>
47 <org.apache.maven.user-settings/>
48 <openstack.version>1.2.2</openstack.version>
49 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
50 <springboot.version>1.5.13.RELEASE</springboot.version>
51 <originalClassifier>original</originalClassifier>
52 <docker.skip>true</docker.skip>
53 <docker.skip.build>true</docker.skip.build>
54 <docker.skip.push>true</docker.skip.push>
55 <docker.buildArg.project_version>${project.version}</docker.buildArg.project_version>
56 <docker.buildArg.artifact_id>${project.artifactId}</docker.buildArg.artifact_id>
57 <docker.buildArg.docker_repository>${dockerPullRepo}</docker.buildArg.docker_repository>
58 <enforcer.skip>true</enforcer.skip>
59 <nexusproxy>https://nexus.onap.org</nexusproxy>
60 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
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-staging</id>
116 <url>${nexusproxy}/${stagingNexusPath}</url>
118 <enabled>false</enabled>
122 <id>ecomp-public</id>
123 <url>${nexusproxy}/${publicNexusPath}</url>
125 <enabled>false</enabled>
129 <id>ecomp-release</id>
130 <url>${nexusproxy}/${releaseNexusPath}</url>
132 <enabled>false</enabled>
136 <id>ecomp-snapshots</id>
137 <url>${nexusproxy}/${snapshotNexusPath}</url>
139 <enabled>false</enabled>
142 </pluginRepositories>
145 <id>ecomp-staging</id>
146 <url>https://nexus.onap.org/content/repositories/staging/</url>
148 <enabled>false</enabled>
152 <id>ecomp-public</id>
153 <url>https://nexus.onap.org/content/repositories/public/</url>
155 <enabled>false</enabled>
159 <id>ecomp-releases</id>
160 <url>https://nexus.onap.org/content/repositories/releases/</url>
162 <enabled>false</enabled>
166 <id>ecomp-snapshots</id>
167 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
169 <enabled>false</enabled>
174 <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
177 <id>camunda-public</id>
178 <url>https://app.camunda.com/nexus/content/groups/public</url>
181 <!-- TODO: remove from ONAP environemnt -->
182 <id>onap-releases</id>
183 <url>https://nexus.onap.org/content/repositories/releases/</url>
185 <enabled>false</enabled>
189 <!-- TODO: remove from ONAP environemnt -->
190 <id>onap-snapshots</id>
191 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
193 <enabled>false</enabled>
197 <!-- *********************************************************************************************************** -->
202 <directory>src/main/resources</directory>
203 <filtering>true</filtering>
206 <directory>target/generated-sources/license</directory>
208 <include>third-party-licenses.txt</include>
212 <directory>target/generated-resources/licenses</directory>
214 <include>*.*</include>
216 <targetPath>third-party-licenses</targetPath>
221 <groupId>org.sonatype.plugins</groupId>
222 <artifactId>nexus-staging-maven-plugin</artifactId>
223 <version>1.6.7</version>
224 <extensions>true</extensions>
226 <nexusUrl>${nexusproxy}</nexusUrl>
227 <stagingProfileId>176c31dfe190a</stagingProfileId>
228 <serverId>ecomp-staging</serverId>
232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-deploy-plugin</artifactId>
234 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
241 <groupId>org.apache.maven.plugins</groupId>
242 <artifactId>maven-compiler-plugin</artifactId>
243 <version>3.6.1</version>
246 <compilerArgument>-Xlint</compilerArgument>
247 <verbose>true</verbose>
248 <showDeprecation>true</showDeprecation>
249 <showWarnings>true</showWarnings>
253 <arg>-parameters</arg>
258 <groupId>org.apache.maven.plugins</groupId>
259 <artifactId>maven-ejb-plugin</artifactId>
260 <version>2.2.1</version>
262 <ejbVersion>3.0</ejbVersion>
265 <addClasspath>true</addClasspath>
271 <groupId>org.apache.maven.plugins</groupId>
272 <artifactId>maven-checkstyle-plugin</artifactId>
273 <version>2.17</version>
276 <includes>**/org/openecomp/**/*.java</includes>
277 <configLocation>/google_checks.xml</configLocation>
281 <groupId>org.codehaus.mojo</groupId>
282 <artifactId>findbugs-maven-plugin</artifactId>
283 <version>2.5.2</version>
285 <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
286 <nested>true</nested>
287 <findbugsXmlOutput>true</findbugsXmlOutput>
288 <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
289 <xmlOutput>true</xmlOutput>
293 <groupId>org.codehaus.mojo</groupId>
294 <artifactId>sonar-maven-plugin</artifactId>
295 <version>5.1</version>
298 <artifactId>maven-scm-plugin</artifactId>
299 <version>1.8.1</version>
301 <tag>${project.artifactId}-${project.version}</tag>
305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-javadoc-plugin</artifactId>
307 <version>2.9</version>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-site-plugin</artifactId>
312 <version>3.6</version>
315 <groupId>org.apache.maven.wagon</groupId>
316 <artifactId>wagon-webdav-jackrabbit</artifactId>
317 <version>2.10</version>
322 <groupId>org.codehaus.mojo</groupId>
323 <artifactId>cobertura-maven-plugin</artifactId>
324 <version>2.5.2</version>
332 <groupId>org.codehaus.mojo</groupId>
333 <artifactId>versions-maven-plugin</artifactId>
334 <version>1.3.1</version>
338 <groupId>com.fortify.ps.maven.plugin</groupId>
339 <artifactId>sca-maven-plugin</artifactId>
340 <version>4.20</version>
342 <buildId>mso-${project.version}</buildId>
347 <groupId>org.jacoco</groupId>
348 <artifactId>jacoco-maven-plugin</artifactId>
349 <version>${jacoco.version}</version>
352 <id>default-prepare-agent</id>
354 <goal>prepare-agent</goal>
358 <id>default-report</id>
366 <groupId>org.codehaus.mojo</groupId>
367 <artifactId>license-maven-plugin</artifactId>
368 <version>1.15</version>
370 <inceptionYear>2017</inceptionYear>
371 <projectName>ONAP - SO</projectName>
372 <licenseName>apache_v2</licenseName>
373 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
374 <emptyLineAfterHeader>true</emptyLineAfterHeader>
375 <trimHeaderLine>true</trimHeaderLine>
376 <processStartTag>============LICENSE_START=======================================================</processStartTag>
377 <sectionDelimiter>================================================================================</sectionDelimiter>
378 <processEndTag>============LICENSE_END=========================================================</processEndTag>
380 <include>**/*.java</include>
381 <include>**/*.groovy</include>
384 <exclude>**/com/att/**</exclude>
389 <id>verify-headers</id>
391 <goal>check-file-header</goal>
394 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
395 <failOnMissingHeader>true</failOnMissingHeader>
404 <groupId>io.fabric8</groupId>
405 <artifactId>fabric8-maven-plugin</artifactId>
406 <version>3.5.33</version>
408 <skip>${docker.skip}</skip>
409 <skipBuild>${docker.skip.build}</skipBuild>
410 <skipPush>${docker.skip.push}</skipPush>
411 <dockerHost>${docker.newHost}</dockerHost> <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY
412 environment variable -->
413 <certPath>${docker.host.cert.path}</certPath><!-- Add -Ddocker.host.cert.pat="path
414 to your local certs directory" to maven build command -->
415 <pushRegistry>${dockerPushRepo}</pushRegistry> <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username,
417 <pullRegistry>${dockerPullRepo}</pullRegistry> <!-- If docker repo is not public. Update .m2/settings.xml Add server id
418 settings.dockerRepository, username, and password -->
421 <alias>service</alias>
422 <name>${artifactId}:${project.version}</name>
424 <dockerFileDir>${project.build.directory}</dockerFileDir>
440 <groupId>org.apache.maven.plugins</groupId>
441 <artifactId>maven-surefire-plugin</artifactId>
442 <version>2.20</version>
444 <systemPropertyVariables>
445 <so.log.level>${so.log.level}</so.log.level>
446 </systemPropertyVariables>
447 <rerunFailingTestsCount>2</rerunFailingTestsCount>
451 <groupId>org.apache.maven.plugins</groupId>
452 <artifactId>maven-failsafe-plugin</artifactId>
453 <version>2.20</version>
456 <systemPropertyVariables>
457 <so.log.level>${so.log.level}</so.log.level>
458 </systemPropertyVariables>
459 <rerunFailingTestsCount>2</rerunFailingTestsCount>
463 <groupId>org.apache.maven.plugins</groupId>
464 <artifactId>maven-dependency-plugin</artifactId>
467 <id>extract-docker-file</id>
474 <groupId>org.onap.so</groupId>
475 <artifactId>deployment-configs</artifactId>
476 <version>${project.version}</version>
477 <outputDirectory>${project.build.directory}</outputDirectory>
478 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
479 <excludes>Kubernetes</excludes>
487 <groupId>org.apache.maven.plugins</groupId>
488 <artifactId>maven-jar-plugin</artifactId>
489 <version>3.0.2</version>
494 <goal>test-jar</goal>
502 <phase>package</phase>
507 <classifier>${originalClassifier}</classifier>
509 <include>**</include>
518 <!-- *********************************************************************************************************** -->
519 <!-- Dependencies -->
522 <groupId>com.fasterxml.jackson.core</groupId>
523 <artifactId>jackson-core</artifactId>
524 <version>2.8.7</version>
527 <groupId>com.fasterxml.jackson.module</groupId>
528 <artifactId>jackson-module-jaxb-annotations</artifactId>
529 <version>2.4.0</version>
532 <groupId>com.fasterxml.jackson.core</groupId>
533 <artifactId>jackson-databind</artifactId>
534 <version>2.8.7</version>
537 <groupId>com.fasterxml.jackson.core</groupId>
538 <artifactId>jackson-annotations</artifactId>
539 <version>2.8.7</version>
542 <groupId>com.fasterxml.jackson.jaxrs</groupId>
543 <artifactId>jackson-jaxrs-base</artifactId>
544 <version>2.9.2</version>
547 <groupId>com.fasterxml.jackson.jaxrs</groupId>
548 <artifactId>jackson-jaxrs-json-provider</artifactId>
549 <version>2.9.2</version>
552 <groupId>javax.ws.rs</groupId>
553 <artifactId>javax.ws.rs-api</artifactId>
554 <version>${jax.ws.rs}</version>
557 <groupId>javax.annotation</groupId>
558 <artifactId>javax.annotation-api</artifactId>
559 <version>1.3.1</version>
562 <groupId>javax.inject</groupId>
563 <artifactId>javax.inject</artifactId>
567 <groupId>org.hamcrest</groupId>
568 <artifactId>hamcrest-core</artifactId>
569 <version>1.3</version>
572 <groupId>org.hamcrest</groupId>
573 <artifactId>hamcrest-all</artifactId>
574 <version>1.3</version>
577 <groupId>org.mockito</groupId>
578 <artifactId>mockito-all</artifactId>
579 <version>1.10.19</version>
583 <groupId>org.powermock</groupId>
584 <artifactId>powermock-api-mockito</artifactId>
585 <version>1.6.2</version>
589 <groupId>org.powermock</groupId>
590 <artifactId>powermock-module-junit4</artifactId>
591 <version>1.6.2</version>
595 <groupId>junit</groupId>
596 <artifactId>junit</artifactId>
597 <version>4.12</version>
601 <groupId>xmlunit</groupId>
602 <artifactId>xmlunit</artifactId>
603 <version>1.6</version>
607 <groupId>com.github.tomakehurst</groupId>
608 <artifactId>wiremock-standalone</artifactId>
609 <version>2.13.0</version>
613 <groupId>org.mortbay.jetty</groupId>
614 <artifactId>jetty</artifactId>
617 <groupId>com.google.guava</groupId>
618 <artifactId>guava</artifactId>
621 <groupId>com.fasterxml.jackson.core</groupId>
622 <artifactId>jackson-core</artifactId>
625 <groupId>com.fasterxml.jackson.core</groupId>
626 <artifactId>jackson-annotations</artifactId>
629 <groupId>com.fasterxml.jackson.core</groupId>
630 <artifactId>jackson-databind</artifactId>
633 <groupId>org.apache.httpcomponents</groupId>
634 <artifactId>httpclient</artifactId>
637 <groupId>org.skyscreamer</groupId>
638 <artifactId>jsonassert</artifactId>
641 <groupId>xmlunit</groupId>
642 <artifactId>xmlunit</artifactId>
645 <groupId>com.jayway.jsonpath</groupId>
646 <artifactId>json-path</artifactId>
649 <groupId>net.sf.jopt-simple</groupId>
650 <artifactId>jopt-simple</artifactId>
655 <groupId>com.openpojo</groupId>
656 <artifactId>openpojo</artifactId>
657 <version>0.8.10</version>
660 <groupId>com.shazam</groupId>
661 <artifactId>shazamcrest</artifactId>
662 <version>0.11</version>
666 <groupId>com.google.guava</groupId>
667 <artifactId>guava</artifactId>
670 <groupId>org.apache.commons</groupId>
671 <artifactId>commons-lang3</artifactId>
676 <groupId>org.assertj</groupId>
677 <artifactId>assertj-core</artifactId>
678 <version>3.9.0</version>
682 <groupId>com.googlecode.junit-toolbox</groupId>
683 <artifactId>junit-toolbox</artifactId>
684 <version>2.4</version>
687 <dependencyManagement>
689 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
690 <!-- force use of version 4.5 everywhere in transient deps, aligned on
691 WildFly 10 version -->
693 <groupId>org.apache.httpcomponents</groupId>
694 <artifactId>httpclient</artifactId>
695 <version>4.5.5</version>
696 <scope>compile</scope>
699 <groupId>org.apache.httpcomponents</groupId>
700 <artifactId>httpcore</artifactId>
701 <version>4.4.4</version>
702 <scope>compile</scope>
705 <groupId>commons-codec</groupId>
706 <artifactId>commons-codec</artifactId>
707 <version>1.10</version>
708 <scope>compile</scope>
711 <groupId>commons-io</groupId>
712 <artifactId>commons-io</artifactId>
713 <version>2.5</version>
714 <scope>compile</scope>
717 <groupId>log4j</groupId>
718 <artifactId>log4j</artifactId>
719 <version>1.2.17</version>
720 <scope>compile</scope>
723 <groupId>org.slf4j</groupId>
724 <artifactId>slf4j-api</artifactId>
725 <version>1.7.15</version>
726 <scope>compile</scope>
729 <groupId>com.sun.xml.fastinfoset</groupId>
730 <artifactId>FastInfoset</artifactId>
731 <version>1.2.13</version>
732 <scope>compile</scope>
735 <groupId>org.springframework.boot</groupId>
736 <artifactId>spring-boot-dependencies</artifactId>
737 <version>${springboot.version}</version>
739 <scope>import</scope>
742 <groupId>org.yaml</groupId>
743 <artifactId>snakeyaml</artifactId>
744 <version>1.15</version>
747 <groupId>org.springframework.boot</groupId>
748 <artifactId>spring-boot-starter-test</artifactId>
749 <version>${springboot.version}</version>
752 <groupId>com.vaadin.external.google</groupId>
753 <artifactId>android-json</artifactId>
758 <groupId>net.javacrumbs.shedlock</groupId>
759 <artifactId>shedlock-spring</artifactId>
760 <version>0.18.2</version>
763 <groupId>net.javacrumbs.shedlock</groupId>
764 <artifactId>shedlock-provider-jdbc-template</artifactId>
765 <version>0.18.2</version>
768 <groupId>net.javacrumbs.shedlock</groupId>
769 <artifactId>shedlock-provider-jdbc-template</artifactId>
770 <version>0.18.2</version>
773 <groupId>org.flywaydb</groupId>
774 <artifactId>flyway-core</artifactId>
775 <version>4.2.0</version>
778 </dependencyManagement>
781 <id>docker-image-build</id>
783 <docker.skip>false</docker.skip>
784 <docker.skip.build>false</docker.skip.build>
785 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
789 <id>docker-image-build-push</id>
791 <docker.skip>false</docker.skip>
792 <docker.skip.build>false</docker.skip.build>
793 <docker.skip.push>false</docker.skip.push>
794 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
801 <name>m2e.version</name>
805 <originalClassifier/>