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>packages</module>
36 <module>so-simulator</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.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
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.7.5.201505241946</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>default-prepare-agent</id>
347 <goal>prepare-agent</goal>
351 <id>default-report</id>
359 <groupId>org.codehaus.mojo</groupId>
360 <artifactId>license-maven-plugin</artifactId>
361 <version>1.15</version>
363 <inceptionYear>2017</inceptionYear>
364 <projectName>ONAP - SO</projectName>
365 <licenseName>apache_v2</licenseName>
366 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
367 <emptyLineAfterHeader>true</emptyLineAfterHeader>
368 <trimHeaderLine>true</trimHeaderLine>
369 <processStartTag>============LICENSE_START=======================================================</processStartTag>
370 <sectionDelimiter>================================================================================</sectionDelimiter>
371 <processEndTag>============LICENSE_END=========================================================</processEndTag>
373 <include>**/*.java</include>
374 <include>**/*.groovy</include>
377 <exclude>**/com/att/**</exclude>
382 <id>verify-headers</id>
384 <goal>check-file-header</goal>
387 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
388 <failOnMissingHeader>true</failOnMissingHeader>
394 <groupId>org.codehaus.gmaven</groupId>
395 <artifactId>groovy-maven-plugin</artifactId>
396 <version>2.0</version>
398 <!-- set absolute base path from super pom -->
400 <id>find-basepath</id>
401 <phase>validate</phase>
409 log.info('## define projects super pom absolute path through basepath_marker')
410 String p = "basepath_marker";
413 def _max_child_poms = 0
414 while( _max_child_poms++ < 5 ) {
423 String basePath = f.getCanonicalPath();
424 basePath = basePath.substring( 0, basePath.lastIndexOf( File.separator ) );
425 project.properties['base-path'] = basePath.replace( '\\' , '/');
426 log.info(' - used base path = ' + project.properties['base-path'] );
428 log.error( 'Could not find basepath_marker marker file!' );
438 <groupId>net.revelc.code.formatter</groupId>
439 <artifactId>formatter-maven-plugin</artifactId>
440 <version>2.9.0</version>
447 <phase>process-sources</phase>
449 <skip>${format.skipExecute}</skip>
450 <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile>
458 <phase>process-sources</phase>
460 <skip>${format.skipExecute}</skip>
461 <sourceDirectory>${project.basedir}</sourceDirectory>
462 <configXmlFile>${base-path}/project-configs/code-tools/pom-format.properties</configXmlFile>
464 <include>pom.xml</include>
469 <id>validate-java</id>
471 <goal>validate</goal>
474 <skip>${format.skipValidate}</skip>
475 <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile>
479 <id>validate-poms</id>
481 <goal>validate</goal>
484 <skip>${format.skipValidate}</skip>
485 <configFile>${base-path}/project-configs/code-tools/pom-format.properties</configFile>
487 <include>pom.xml</include>
494 <groupId>com.fasterxml.jackson.core</groupId>
495 <artifactId>jackson-annotations</artifactId>
496 <version>2.9.8</version>
501 <groupId>org.apache.maven.plugins</groupId>
502 <artifactId>maven-enforcer-plugin</artifactId>
503 <version>3.0.0-M3</version>
506 <id>enforce-property</id>
512 <id>enforce-no-snapshots</id>
518 <id>enforce-banned-dependencies</id>
526 <exclude>org.powermock</exclude>
528 <searchTransitive>false</searchTransitive>
529 </bannedDependencies>
540 <groupId>io.fabric8</groupId>
541 <artifactId>fabric8-maven-plugin</artifactId>
542 <version>${io.fabric8.version}</version>
544 <skip>${docker.skip}</skip>
545 <skipBuild>${docker.skip.build}</skipBuild>
546 <skipPush>${docker.skip.push}</skipPush>
547 <dockerHost>${docker.newHost}</dockerHost>
548 <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY environment variable -->
549 <certPath>${docker.host.cert.path}</certPath>
550 <!-- Add -Ddocker.host.cert.pat="path to your local certs directory" to maven build command -->
551 <pushRegistry>${dockerPushRepo}</pushRegistry>
552 <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username, and password -->
553 <pullRegistry>${dockerPullRepo}</pullRegistry>
554 <!-- If docker repo is not public. Update .m2/settings.xml Add server id settings.dockerRepository, username,
558 <alias>service</alias>
559 <name>${artifactId}:${project.version}</name>
561 <dockerFileDir>${project.build.directory}</dockerFileDir>
577 <groupId>org.apache.maven.plugins</groupId>
578 <artifactId>maven-surefire-plugin</artifactId>
579 <version>2.20</version>
581 <systemPropertyVariables>
582 <so.log.level>DEBUG</so.log.level>
583 </systemPropertyVariables>
584 <rerunFailingTestsCount>2</rerunFailingTestsCount>
585 <parallel>classes</parallel>
586 <useUnlimitedThreads>false</useUnlimitedThreads>
587 <threadCount>1</threadCount>
591 <groupId>org.apache.maven.plugins</groupId>
592 <artifactId>maven-failsafe-plugin</artifactId>
593 <version>2.20</version>
596 <systemPropertyVariables>
597 <so.log.level>DEBUG</so.log.level>
598 </systemPropertyVariables>
599 <rerunFailingTestsCount>2</rerunFailingTestsCount>
603 <groupId>org.apache.maven.plugins</groupId>
604 <artifactId>maven-dependency-plugin</artifactId>
607 <id>extract-docker-file</id>
614 <groupId>org.onap.so</groupId>
615 <artifactId>deployment-configs</artifactId>
616 <version>${project.version}</version>
617 <outputDirectory>${project.build.directory}</outputDirectory>
618 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
619 <excludes>Kubernetes</excludes>
627 <groupId>org.apache.maven.plugins</groupId>
628 <artifactId>maven-jar-plugin</artifactId>
629 <version>3.0.2</version>
633 <phase>package</phase>
639 <classifier>${originalClassifier}</classifier>
641 <include>**</include>
648 <groupId>org.springframework.boot</groupId>
649 <artifactId>spring-boot-maven-plugin</artifactId>
650 <version>${springboot.version}</version>
655 <goal>build-info</goal>
663 <!-- *********************************************************************************************************** -->
664 <!-- Dependencies -->
667 <groupId>org.onap.logging-analytics</groupId>
668 <artifactId>logging-slf4j</artifactId>
669 <version>1.6.3-SNAPSHOT</version>
672 <groupId>org.onap.logging-analytics</groupId>
673 <artifactId>logging-filter-base</artifactId>
674 <version>1.6.2-SNAPSHOT</version>
677 <groupId>org.onap.logging-analytics</groupId>
678 <artifactId>logging-filter-spring</artifactId>
679 <version>1.6.3-SNAPSHOT</version>
682 <groupId>com.fasterxml.jackson.core</groupId>
683 <artifactId>jackson-core</artifactId>
686 <groupId>com.fasterxml.jackson.module</groupId>
687 <artifactId>jackson-module-jaxb-annotations</artifactId>
690 <groupId>com.fasterxml.jackson.core</groupId>
691 <artifactId>jackson-databind</artifactId>
694 <groupId>com.fasterxml.jackson.core</groupId>
695 <artifactId>jackson-annotations</artifactId>
698 <groupId>com.fasterxml.jackson.jaxrs</groupId>
699 <artifactId>jackson-jaxrs-base</artifactId>
702 <groupId>com.fasterxml.jackson.jaxrs</groupId>
703 <artifactId>jackson-jaxrs-json-provider</artifactId>
706 <groupId>javax.ws.rs</groupId>
707 <artifactId>javax.ws.rs-api</artifactId>
708 <version>${jax.ws.rs}</version>
711 <groupId>javax.annotation</groupId>
712 <artifactId>javax.annotation-api</artifactId>
713 <version>1.3.1</version>
716 <groupId>javax.inject</groupId>
717 <artifactId>javax.inject</artifactId>
721 <groupId>org.mockito</groupId>
722 <artifactId>mockito-core</artifactId>
725 <groupId>org.hamcrest</groupId>
726 <artifactId>hamcrest-core</artifactId>
729 <groupId>org.hamcrest</groupId>
730 <artifactId>hamcrest-library</artifactId>
733 <groupId>junit</groupId>
734 <artifactId>junit</artifactId>
738 <groupId>xmlunit</groupId>
739 <artifactId>xmlunit</artifactId>
740 <version>1.6</version>
744 <groupId>com.github.tomakehurst</groupId>
745 <artifactId>wiremock-standalone</artifactId>
746 <version>2.13.0</version>
750 <groupId>org.mortbay.jetty</groupId>
751 <artifactId>jetty</artifactId>
754 <groupId>com.google.guava</groupId>
755 <artifactId>guava</artifactId>
758 <groupId>com.fasterxml.jackson.core</groupId>
759 <artifactId>jackson-core</artifactId>
762 <groupId>com.fasterxml.jackson.core</groupId>
763 <artifactId>jackson-annotations</artifactId>
766 <groupId>com.fasterxml.jackson.core</groupId>
767 <artifactId>jackson-databind</artifactId>
770 <groupId>org.apache.httpcomponents</groupId>
771 <artifactId>httpclient</artifactId>
774 <groupId>org.skyscreamer</groupId>
775 <artifactId>jsonassert</artifactId>
778 <groupId>xmlunit</groupId>
779 <artifactId>xmlunit</artifactId>
782 <groupId>com.jayway.jsonpath</groupId>
783 <artifactId>json-path</artifactId>
786 <groupId>net.sf.jopt-simple</groupId>
787 <artifactId>jopt-simple</artifactId>
792 <groupId>com.openpojo</groupId>
793 <artifactId>openpojo</artifactId>
794 <version>0.8.10</version>
797 <groupId>com.shazam</groupId>
798 <artifactId>shazamcrest</artifactId>
799 <version>0.11</version>
803 <groupId>com.google.guava</groupId>
804 <artifactId>guava</artifactId>
807 <groupId>org.apache.commons</groupId>
808 <artifactId>commons-lang3</artifactId>
813 <groupId>org.assertj</groupId>
814 <artifactId>assertj-core</artifactId>
815 <version>3.11.1</version>
819 <groupId>com.googlecode.junit-toolbox</groupId>
820 <artifactId>junit-toolbox</artifactId>
821 <version>2.4</version>
824 <dependencyManagement>
826 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
827 <!-- force use of version 4.5 everywhere in transient deps, aligned on WildFly 10 version -->
829 <groupId>org.apache.httpcomponents</groupId>
830 <artifactId>httpcore</artifactId>
831 <version>4.4.4</version>
832 <scope>compile</scope>
835 <groupId>commons-codec</groupId>
836 <artifactId>commons-codec</artifactId>
837 <version>1.12</version>
838 <scope>compile</scope>
841 <groupId>commons-io</groupId>
842 <artifactId>commons-io</artifactId>
843 <version>2.5</version>
844 <scope>compile</scope>
847 <groupId>com.sun.xml.fastinfoset</groupId>
848 <artifactId>FastInfoset</artifactId>
849 <version>1.2.13</version>
850 <scope>compile</scope>
853 <groupId>org.springframework.boot</groupId>
854 <artifactId>spring-boot-dependencies</artifactId>
855 <version>${springboot.version}</version>
857 <scope>import</scope>
860 <groupId>org.yaml</groupId>
861 <artifactId>snakeyaml</artifactId>
862 <version>1.23</version>
865 <groupId>javax.interceptor</groupId>
866 <artifactId>javax.interceptor-api</artifactId>
867 <version>1.2.2</version>
870 <groupId>org.springframework.boot</groupId>
871 <artifactId>spring-boot-starter-test</artifactId>
872 <version>${springboot.version}</version>
875 <groupId>com.vaadin.external.google</groupId>
876 <artifactId>android-json</artifactId>
881 <groupId>net.javacrumbs.shedlock</groupId>
882 <artifactId>shedlock-spring</artifactId>
883 <version>4.0.0</version>
886 <groupId>net.javacrumbs.shedlock</groupId>
887 <artifactId>shedlock-provider-jdbc-template</artifactId>
888 <version>4.0.0</version>
891 <groupId>org.flywaydb</groupId>
892 <artifactId>flyway-core</artifactId>
893 <version>5.2.4</version>
896 <groupId>org.json</groupId>
897 <artifactId>json</artifactId>
898 <version>20140107</version>
901 </dependencyManagement>
904 <id>docker-image-build</id>
906 <docker.skip>false</docker.skip>
907 <docker.skip.build>false</docker.skip.build>
908 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
912 <id>docker-image-build-push</id>
914 <docker.skip>false</docker.skip>
915 <docker.skip.build>false</docker.skip.build>
916 <docker.skip.push>false</docker.skip.push>
917 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
923 <format.skipValidate>true</format.skipValidate>
924 <format.skipExecute>false</format.skipExecute>
931 <name>m2e.version</name>
935 <originalClassifier />