2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.oparent</groupId>
7 <artifactId>oparent</artifactId>
8 <version>2.1.0</version>
11 <groupId>org.onap.so</groupId>
12 <artifactId>so</artifactId>
13 <packaging>pom</packaging>
14 <version>1.4.0-SNAPSHOT</version>
16 <description>This Maven project is responsible to build and package all child projects - contributions in the MSO project.
17 This build can be configured to run Functional tests and to start/stop a jboss server + Mysql DB.
18 "mvn clean install -P with-integration-tests -Dintegration-tests-user=root -Dintegration-tests-group=root -Dintegration-tests-db-type=MYSQL"
21 <name>ONAP - SO</name>
22 <url>http://www.onap.org/</url>
25 <module>deployment-configs</module>
26 <module>common</module>
27 <module>mso-catalog-db</module>
28 <module>mso-api-handlers</module>
29 <module>adapters</module>
30 <module>asdc-controller</module>
32 <module>cloudify-client</module>
33 <module>cxf-logging</module>
34 <module>so-monitoring</module>
35 <module>so-simulator</module>
36 <module>packages</module>
39 <project.mso.base.folder>.</project.mso.base.folder>
40 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
42 <sonar.language>java</sonar.language>
43 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
44 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
45 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
46 <!--sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath -->
47 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
48 <sonar.projectVersion>${project.version}</sonar.projectVersion>
49 <sonar.cpd.exclusions>**/*</sonar.cpd.exclusions>
50 <jacoco.version>0.8.5</jacoco.version>
51 <org.apache.maven.user-settings />
52 <openstack.version>1.5.1</openstack.version>
53 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
54 <originalClassifier>original</originalClassifier>
55 <docker.skip>true</docker.skip>
56 <docker.skip.build>true</docker.skip.build>
57 <docker.skip.push>true</docker.skip.push>
58 <docker.buildArg.project_version>${project.version}</docker.buildArg.project_version>
59 <docker.buildArg.artifact_id>${project.artifactId}</docker.buildArg.artifact_id>
60 <docker.buildArg.docker_repository>${dockerPullRepo}</docker.buildArg.docker_repository>
61 <enforcer.skip>false</enforcer.skip>
62 <nexusproxy>https://nexus.onap.org</nexusproxy>
63 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
64 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
65 <publicNexusPath>content/repositories/public/</publicNexusPath>
66 <siteNexusPath>content/sites/site/org/onap/so/${project.version}/</siteNexusPath>
67 <cxf.version>3.2.6</cxf.version>
68 <jax.ws.rs>2.1</jax.ws.rs>
69 <springboot.version>2.1.5.RELEASE</springboot.version>
70 <camunda.springboot.version>3.2.0</camunda.springboot.version>
71 <format.skipValidate>false</format.skipValidate>
72 <format.skipExecute>true</format.skipExecute>
73 <io.fabric8.version>4.1.0</io.fabric8.version>
75 <distributionManagement>
77 <id>ecomp-releases</id>
78 <url>${nexusproxy}/${releaseNexusPath}</url>
81 <id>ecomp-snapshots</id>
82 <url>${nexusproxy}/${snapshotNexusPath}</url>
86 <url>dav:${nexusproxy}${siteNexusPath}</url>
88 </distributionManagement>
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-javadoc-plugin</artifactId>
94 <version>2.10.4</version>
96 <failOnError>false</failOnError>
97 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
99 <groupId>org.umlgraph</groupId>
100 <artifactId>umlgraph</artifactId>
101 <version>5.6</version>
103 <additionalparam>-views</additionalparam>
104 <useStandardDocletOptions>true</useStandardDocletOptions>
109 <!-- configure build -->
110 <!-- *********************************************************************************************************** -->
111 <!-- Plugins and repositories -->
115 <url>http://repo1.maven.org/maven2</url>
119 <url>http://maven.restlet.com</url>
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-public</id>
146 <url>https://nexus.onap.org/content/repositories/public/</url>
148 <enabled>false</enabled>
152 <id>ecomp-releases</id>
153 <url>https://nexus.onap.org/content/repositories/releases/</url>
155 <enabled>false</enabled>
159 <id>ecomp-snapshots</id>
160 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
162 <enabled>false</enabled>
167 <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
170 <id>camunda-public</id>
171 <url>https://app.camunda.com/nexus/content/groups/public</url>
174 <!-- TODO: remove from ONAP environemnt -->
175 <id>onap-releases</id>
176 <url>https://nexus.onap.org/content/repositories/releases/</url>
178 <enabled>false</enabled>
182 <!-- TODO: remove from ONAP environemnt -->
183 <id>onap-snapshots</id>
184 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
186 <enabled>false</enabled>
190 <!-- *********************************************************************************************************** -->
195 <directory>src/main/resources</directory>
196 <filtering>true</filtering>
199 <directory>target/generated-sources/license</directory>
201 <include>third-party-licenses.txt</include>
205 <directory>target/generated-resources/licenses</directory>
207 <include>*.*</include>
209 <targetPath>third-party-licenses</targetPath>
214 <groupId>org.sonatype.plugins</groupId>
215 <artifactId>nexus-staging-maven-plugin</artifactId>
216 <version>1.6.7</version>
217 <extensions>true</extensions>
219 <nexusUrl>${nexusproxy}</nexusUrl>
220 <stagingProfileId>176c31dfe190a</stagingProfileId>
221 <serverId>ecomp-staging</serverId>
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-deploy-plugin</artifactId>
227 <version>2.8</version>
228 <!-- This version supports the "deployAtEnd" parameter -->
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-compiler-plugin</artifactId>
236 <version>3.6.1</version>
239 <compilerArgument>-Xlint</compilerArgument>
240 <verbose>true</verbose>
241 <showDeprecation>true</showDeprecation>
242 <showWarnings>true</showWarnings>
246 <arg>-parameters</arg>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-ejb-plugin</artifactId>
253 <version>2.2.1</version>
255 <ejbVersion>3.0</ejbVersion>
258 <addClasspath>true</addClasspath>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-checkstyle-plugin</artifactId>
266 <version>2.17</version>
269 <includes>**/org/openecomp/**/*.java</includes>
270 <configLocation>/google_checks.xml</configLocation>
274 <groupId>org.codehaus.mojo</groupId>
275 <artifactId>findbugs-maven-plugin</artifactId>
276 <version>2.5.2</version>
278 <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
279 <nested>true</nested>
280 <findbugsXmlOutput>true</findbugsXmlOutput>
281 <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
282 <xmlOutput>true</xmlOutput>
286 <groupId>org.codehaus.mojo</groupId>
287 <artifactId>sonar-maven-plugin</artifactId>
288 <version>5.1</version>
291 <artifactId>maven-scm-plugin</artifactId>
292 <version>1.8.1</version>
294 <tag>${project.artifactId}-${project.version}</tag>
298 <groupId>org.apache.maven.plugins</groupId>
299 <artifactId>maven-javadoc-plugin</artifactId>
300 <version>2.9</version>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-site-plugin</artifactId>
305 <version>3.6</version>
308 <groupId>org.apache.maven.wagon</groupId>
309 <artifactId>wagon-webdav-jackrabbit</artifactId>
310 <version>2.10</version>
315 <groupId>org.codehaus.mojo</groupId>
316 <artifactId>cobertura-maven-plugin</artifactId>
317 <version>2.5.2</version>
325 <groupId>org.codehaus.mojo</groupId>
326 <artifactId>versions-maven-plugin</artifactId>
327 <version>1.3.1</version>
331 <groupId>com.fortify.ps.maven.plugin</groupId>
332 <artifactId>sca-maven-plugin</artifactId>
333 <version>4.20</version>
335 <buildId>mso-${project.version}</buildId>
340 <groupId>org.jacoco</groupId>
341 <artifactId>jacoco-maven-plugin</artifactId>
342 <version>${jacoco.version}</version>
345 <id>prepare-agent</id>
347 <goal>prepare-agent</goal>
356 <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
357 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
363 <groupId>org.codehaus.mojo</groupId>
364 <artifactId>license-maven-plugin</artifactId>
365 <version>1.15</version>
367 <inceptionYear>2017</inceptionYear>
368 <projectName>ONAP - SO</projectName>
369 <licenseName>apache_v2</licenseName>
370 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
371 <emptyLineAfterHeader>true</emptyLineAfterHeader>
372 <trimHeaderLine>true</trimHeaderLine>
373 <processStartTag>============LICENSE_START=======================================================</processStartTag>
374 <sectionDelimiter>================================================================================</sectionDelimiter>
375 <processEndTag>============LICENSE_END=========================================================</processEndTag>
377 <include>**/*.java</include>
378 <include>**/*.groovy</include>
381 <exclude>**/com/att/**</exclude>
386 <id>verify-headers</id>
388 <goal>check-file-header</goal>
391 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
392 <failOnMissingHeader>true</failOnMissingHeader>
398 <groupId>org.codehaus.gmaven</groupId>
399 <artifactId>groovy-maven-plugin</artifactId>
400 <version>2.0</version>
402 <!-- set absolute base path from super pom -->
404 <id>find-basepath</id>
405 <phase>validate</phase>
413 log.info('## define projects super pom absolute path through basepath_marker')
414 String p = "basepath_marker";
417 def _max_child_poms = 0
418 while( _max_child_poms++ < 5 ) {
427 String basePath = f.getCanonicalPath();
428 basePath = basePath.substring( 0, basePath.lastIndexOf( File.separator ) );
429 project.properties['base-path'] = basePath.replace( '\\' , '/');
430 log.info(' - used base path = ' + project.properties['base-path'] );
432 log.error( 'Could not find basepath_marker marker file!' );
442 <groupId>net.revelc.code.formatter</groupId>
443 <artifactId>formatter-maven-plugin</artifactId>
444 <version>2.9.0</version>
451 <phase>process-sources</phase>
453 <skip>${format.skipExecute}</skip>
454 <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile>
462 <phase>process-sources</phase>
464 <skip>${format.skipExecute}</skip>
465 <sourceDirectory>${project.basedir}</sourceDirectory>
466 <configXmlFile>${base-path}/project-configs/code-tools/pom-format.properties</configXmlFile>
468 <include>pom.xml</include>
473 <id>validate-java</id>
475 <goal>validate</goal>
478 <skip>${format.skipValidate}</skip>
479 <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile>
483 <id>validate-poms</id>
485 <goal>validate</goal>
488 <skip>${format.skipValidate}</skip>
489 <configFile>${base-path}/project-configs/code-tools/pom-format.properties</configFile>
491 <include>pom.xml</include>
498 <groupId>com.fasterxml.jackson.core</groupId>
499 <artifactId>jackson-annotations</artifactId>
500 <version>2.9.8</version>
505 <groupId>org.apache.maven.plugins</groupId>
506 <artifactId>maven-enforcer-plugin</artifactId>
507 <version>3.0.0-M3</version>
510 <id>enforce-property</id>
516 <id>enforce-no-snapshots</id>
522 <id>enforce-banned-dependencies</id>
530 <exclude>org.powermock</exclude>
532 <searchTransitive>false</searchTransitive>
533 </bannedDependencies>
544 <groupId>io.fabric8</groupId>
545 <artifactId>fabric8-maven-plugin</artifactId>
546 <version>${io.fabric8.version}</version>
548 <skip>${docker.skip}</skip>
549 <skipBuild>${docker.skip.build}</skipBuild>
550 <skipPush>${docker.skip.push}</skipPush>
551 <dockerHost>${docker.newHost}</dockerHost>
552 <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY environment variable -->
553 <certPath>${docker.host.cert.path}</certPath>
554 <!-- Add -Ddocker.host.cert.pat="path to your local certs directory" to maven build command -->
555 <pushRegistry>${dockerPushRepo}</pushRegistry>
556 <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username, and password -->
557 <pullRegistry>${dockerPullRepo}</pullRegistry>
558 <!-- If docker repo is not public. Update .m2/settings.xml Add server id settings.dockerRepository, username,
562 <alias>service</alias>
563 <name>${artifactId}:${project.version}</name>
565 <dockerFileDir>${project.build.directory}</dockerFileDir>
581 <groupId>org.apache.maven.plugins</groupId>
582 <artifactId>maven-surefire-plugin</artifactId>
583 <version>2.20</version>
585 <systemPropertyVariables>
586 <so.log.level>DEBUG</so.log.level>
587 </systemPropertyVariables>
588 <rerunFailingTestsCount>2</rerunFailingTestsCount>
589 <parallel>classes</parallel>
590 <useUnlimitedThreads>false</useUnlimitedThreads>
591 <threadCount>1</threadCount>
595 <groupId>org.apache.maven.plugins</groupId>
596 <artifactId>maven-failsafe-plugin</artifactId>
597 <version>2.20</version>
600 <systemPropertyVariables>
601 <so.log.level>DEBUG</so.log.level>
602 </systemPropertyVariables>
603 <rerunFailingTestsCount>2</rerunFailingTestsCount>
607 <groupId>org.apache.maven.plugins</groupId>
608 <artifactId>maven-dependency-plugin</artifactId>
611 <id>extract-docker-file</id>
618 <groupId>org.onap.so</groupId>
619 <artifactId>deployment-configs</artifactId>
620 <version>${project.version}</version>
621 <outputDirectory>${project.build.directory}</outputDirectory>
622 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
623 <excludes>Kubernetes</excludes>
631 <groupId>org.apache.maven.plugins</groupId>
632 <artifactId>maven-jar-plugin</artifactId>
633 <version>3.0.2</version>
637 <phase>package</phase>
643 <classifier>${originalClassifier}</classifier>
645 <include>**</include>
652 <groupId>org.springframework.boot</groupId>
653 <artifactId>spring-boot-maven-plugin</artifactId>
654 <version>${springboot.version}</version>
659 <goal>build-info</goal>
667 <!-- *********************************************************************************************************** -->
668 <!-- Dependencies -->
671 <groupId>org.onap.logging-analytics</groupId>
672 <artifactId>logging-slf4j</artifactId>
673 <version>1.6.3-SNAPSHOT</version>
676 <groupId>org.onap.logging-analytics</groupId>
677 <artifactId>logging-filter-base</artifactId>
678 <version>1.6.2-SNAPSHOT</version>
681 <groupId>org.onap.logging-analytics</groupId>
682 <artifactId>logging-filter-spring</artifactId>
683 <version>1.6.3-SNAPSHOT</version>
686 <groupId>com.fasterxml.jackson.core</groupId>
687 <artifactId>jackson-core</artifactId>
690 <groupId>com.fasterxml.jackson.module</groupId>
691 <artifactId>jackson-module-jaxb-annotations</artifactId>
694 <groupId>com.fasterxml.jackson.core</groupId>
695 <artifactId>jackson-databind</artifactId>
698 <groupId>com.fasterxml.jackson.core</groupId>
699 <artifactId>jackson-annotations</artifactId>
702 <groupId>com.fasterxml.jackson.jaxrs</groupId>
703 <artifactId>jackson-jaxrs-base</artifactId>
706 <groupId>com.fasterxml.jackson.jaxrs</groupId>
707 <artifactId>jackson-jaxrs-json-provider</artifactId>
710 <groupId>javax.ws.rs</groupId>
711 <artifactId>javax.ws.rs-api</artifactId>
712 <version>${jax.ws.rs}</version>
715 <groupId>javax.annotation</groupId>
716 <artifactId>javax.annotation-api</artifactId>
717 <version>1.3.1</version>
720 <groupId>javax.inject</groupId>
721 <artifactId>javax.inject</artifactId>
725 <groupId>org.mockito</groupId>
726 <artifactId>mockito-core</artifactId>
729 <groupId>org.hamcrest</groupId>
730 <artifactId>hamcrest-core</artifactId>
733 <groupId>org.hamcrest</groupId>
734 <artifactId>hamcrest-library</artifactId>
737 <groupId>junit</groupId>
738 <artifactId>junit</artifactId>
742 <groupId>xmlunit</groupId>
743 <artifactId>xmlunit</artifactId>
744 <version>1.6</version>
748 <groupId>com.github.tomakehurst</groupId>
749 <artifactId>wiremock-standalone</artifactId>
750 <version>2.13.0</version>
754 <groupId>org.mortbay.jetty</groupId>
755 <artifactId>jetty</artifactId>
758 <groupId>com.google.guava</groupId>
759 <artifactId>guava</artifactId>
762 <groupId>com.fasterxml.jackson.core</groupId>
763 <artifactId>jackson-core</artifactId>
766 <groupId>com.fasterxml.jackson.core</groupId>
767 <artifactId>jackson-annotations</artifactId>
770 <groupId>com.fasterxml.jackson.core</groupId>
771 <artifactId>jackson-databind</artifactId>
774 <groupId>org.apache.httpcomponents</groupId>
775 <artifactId>httpclient</artifactId>
778 <groupId>org.skyscreamer</groupId>
779 <artifactId>jsonassert</artifactId>
782 <groupId>xmlunit</groupId>
783 <artifactId>xmlunit</artifactId>
786 <groupId>com.jayway.jsonpath</groupId>
787 <artifactId>json-path</artifactId>
790 <groupId>net.sf.jopt-simple</groupId>
791 <artifactId>jopt-simple</artifactId>
796 <groupId>com.openpojo</groupId>
797 <artifactId>openpojo</artifactId>
798 <version>0.8.10</version>
801 <groupId>com.shazam</groupId>
802 <artifactId>shazamcrest</artifactId>
803 <version>0.11</version>
807 <groupId>com.google.guava</groupId>
808 <artifactId>guava</artifactId>
811 <groupId>org.apache.commons</groupId>
812 <artifactId>commons-lang3</artifactId>
817 <groupId>org.assertj</groupId>
818 <artifactId>assertj-core</artifactId>
819 <version>3.11.1</version>
823 <groupId>com.googlecode.junit-toolbox</groupId>
824 <artifactId>junit-toolbox</artifactId>
825 <version>2.4</version>
828 <dependencyManagement>
830 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
831 <!-- force use of version 4.5 everywhere in transient deps, aligned on WildFly 10 version -->
833 <groupId>org.apache.httpcomponents</groupId>
834 <artifactId>httpcore</artifactId>
835 <version>4.4.4</version>
836 <scope>compile</scope>
839 <groupId>commons-codec</groupId>
840 <artifactId>commons-codec</artifactId>
841 <version>1.12</version>
842 <scope>compile</scope>
845 <groupId>commons-io</groupId>
846 <artifactId>commons-io</artifactId>
847 <version>2.5</version>
848 <scope>compile</scope>
851 <groupId>com.sun.xml.fastinfoset</groupId>
852 <artifactId>FastInfoset</artifactId>
853 <version>1.2.13</version>
854 <scope>compile</scope>
857 <groupId>org.springframework.boot</groupId>
858 <artifactId>spring-boot-dependencies</artifactId>
859 <version>${springboot.version}</version>
861 <scope>import</scope>
864 <groupId>org.yaml</groupId>
865 <artifactId>snakeyaml</artifactId>
866 <version>1.23</version>
869 <groupId>javax.interceptor</groupId>
870 <artifactId>javax.interceptor-api</artifactId>
871 <version>1.2.2</version>
874 <groupId>org.springframework.boot</groupId>
875 <artifactId>spring-boot-starter-test</artifactId>
876 <version>${springboot.version}</version>
879 <groupId>com.vaadin.external.google</groupId>
880 <artifactId>android-json</artifactId>
885 <groupId>net.javacrumbs.shedlock</groupId>
886 <artifactId>shedlock-spring</artifactId>
887 <version>4.0.0</version>
890 <groupId>net.javacrumbs.shedlock</groupId>
891 <artifactId>shedlock-provider-jdbc-template</artifactId>
892 <version>4.0.0</version>
895 <groupId>org.flywaydb</groupId>
896 <artifactId>flyway-core</artifactId>
897 <version>5.2.4</version>
900 <groupId>org.json</groupId>
901 <artifactId>json</artifactId>
902 <version>20140107</version>
905 </dependencyManagement>
908 <id>docker-image-build</id>
910 <docker.skip>false</docker.skip>
911 <docker.skip.build>false</docker.skip.build>
912 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
916 <id>docker-image-build-push</id>
918 <docker.skip>false</docker.skip>
919 <docker.skip.build>false</docker.skip.build>
920 <docker.skip.push>false</docker.skip.push>
921 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
927 <format.skipValidate>true</format.skipValidate>
928 <format.skipExecute>false</format.skipExecute>
935 <name>m2e.version</name>
939 <originalClassifier />