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>1.2.1</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>vnfm-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.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 <!-- TODO: update to version 1.4.0 for Dublin -->
53 <openstack.version>1.4.0-SNAPSHOT</openstack.version>
54 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
55 <originalClassifier>original</originalClassifier>
56 <docker.skip>true</docker.skip>
57 <docker.skip.build>true</docker.skip.build>
58 <docker.skip.push>true</docker.skip.push>
59 <docker.buildArg.project_version>${project.version}</docker.buildArg.project_version>
60 <docker.buildArg.artifact_id>${project.artifactId}</docker.buildArg.artifact_id>
61 <docker.buildArg.docker_repository>${dockerPullRepo}</docker.buildArg.docker_repository>
62 <enforcer.skip>true</enforcer.skip>
63 <nexusproxy>https://nexus.onap.org</nexusproxy>
64 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
65 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
66 <publicNexusPath>content/repositories/public/</publicNexusPath>
67 <siteNexusPath>content/sites/site/org/onap/so/${project.version}/</siteNexusPath>
68 <cxf.version>3.2.6</cxf.version>
69 <jax.ws.rs>2.1</jax.ws.rs>
70 <springboot.version>2.0.5.RELEASE</springboot.version>
71 <camunda.springboot.version>3.2.0</camunda.springboot.version>
72 <format.skipValidate>false</format.skipValidate>
73 <format.skipExecute>true</format.skipExecute>
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> <!-- This version supports the "deployAtEnd" parameter -->
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-compiler-plugin</artifactId>
235 <version>3.6.1</version>
238 <compilerArgument>-Xlint</compilerArgument>
239 <verbose>true</verbose>
240 <showDeprecation>true</showDeprecation>
241 <showWarnings>true</showWarnings>
245 <arg>-parameters</arg>
250 <groupId>org.apache.maven.plugins</groupId>
251 <artifactId>maven-ejb-plugin</artifactId>
252 <version>2.2.1</version>
254 <ejbVersion>3.0</ejbVersion>
257 <addClasspath>true</addClasspath>
263 <groupId>org.apache.maven.plugins</groupId>
264 <artifactId>maven-checkstyle-plugin</artifactId>
265 <version>2.17</version>
268 <includes>**/org/openecomp/**/*.java</includes>
269 <configLocation>/google_checks.xml</configLocation>
273 <groupId>org.codehaus.mojo</groupId>
274 <artifactId>findbugs-maven-plugin</artifactId>
275 <version>2.5.2</version>
277 <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
278 <nested>true</nested>
279 <findbugsXmlOutput>true</findbugsXmlOutput>
280 <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
281 <xmlOutput>true</xmlOutput>
285 <groupId>org.codehaus.mojo</groupId>
286 <artifactId>sonar-maven-plugin</artifactId>
287 <version>5.1</version>
290 <artifactId>maven-scm-plugin</artifactId>
291 <version>1.8.1</version>
293 <tag>${project.artifactId}-${project.version}</tag>
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-javadoc-plugin</artifactId>
299 <version>2.9</version>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-site-plugin</artifactId>
304 <version>3.6</version>
307 <groupId>org.apache.maven.wagon</groupId>
308 <artifactId>wagon-webdav-jackrabbit</artifactId>
309 <version>2.10</version>
314 <groupId>org.codehaus.mojo</groupId>
315 <artifactId>cobertura-maven-plugin</artifactId>
316 <version>2.5.2</version>
324 <groupId>org.codehaus.mojo</groupId>
325 <artifactId>versions-maven-plugin</artifactId>
326 <version>1.3.1</version>
330 <groupId>com.fortify.ps.maven.plugin</groupId>
331 <artifactId>sca-maven-plugin</artifactId>
332 <version>4.20</version>
334 <buildId>mso-${project.version}</buildId>
339 <groupId>org.jacoco</groupId>
340 <artifactId>jacoco-maven-plugin</artifactId>
341 <version>${jacoco.version}</version>
344 <id>default-prepare-agent</id>
346 <goal>prepare-agent</goal>
350 <id>default-report</id>
358 <groupId>org.codehaus.mojo</groupId>
359 <artifactId>license-maven-plugin</artifactId>
360 <version>1.15</version>
362 <inceptionYear>2017</inceptionYear>
363 <projectName>ONAP - SO</projectName>
364 <licenseName>apache_v2</licenseName>
365 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
366 <emptyLineAfterHeader>true</emptyLineAfterHeader>
367 <trimHeaderLine>true</trimHeaderLine>
368 <processStartTag>============LICENSE_START=======================================================</processStartTag>
369 <sectionDelimiter>================================================================================</sectionDelimiter>
370 <processEndTag>============LICENSE_END=========================================================</processEndTag>
372 <include>**/*.java</include>
373 <include>**/*.groovy</include>
376 <exclude>**/com/att/**</exclude>
381 <id>verify-headers</id>
383 <goal>check-file-header</goal>
386 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
387 <failOnMissingHeader>true</failOnMissingHeader>
393 <groupId>org.codehaus.gmaven</groupId>
394 <artifactId>groovy-maven-plugin</artifactId>
395 <version>2.0</version>
397 <!-- set absolute base path from super pom -->
399 <id>find-basepath</id>
400 <phase>validate</phase>
408 log.info('## define projects super pom absolute path through basepath_marker')
409 String p = "basepath_marker";
412 def _max_child_poms = 0
413 while( _max_child_poms++ < 5 ) {
422 String basePath = f.getCanonicalPath();
423 basePath = basePath.substring( 0, basePath.lastIndexOf( File.separator ) );
424 project.properties['base-path'] = basePath.replace( '\\' , '/');
425 log.info(' - used base path = ' + project.properties['base-path'] );
427 log.error( 'Could not find basepath_marker marker file!' );
437 <groupId>net.revelc.code.formatter</groupId>
438 <artifactId>formatter-maven-plugin</artifactId>
439 <version>2.9.0</version>
447 <skip>${format.skipExecute}</skip>
448 <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile>
457 <skip>${format.skipExecute}</skip>
458 <sourceDirectory>${project.basedir}</sourceDirectory>
459 <configXmlFile>${base-path}/project-configs/code-tools/pom-format.properties</configXmlFile>
461 <include>${project.basedir}/pom.xml</include>
466 <id>validate-java</id>
468 <goal>validate</goal>
471 <skip>${format.skipValidate}</skip>
472 <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile>
476 <id>validate-poms</id>
478 <goal>validate</goal>
481 <skip>${format.skipValidate}</skip>
482 <configFile>${base-path}/project-configs/code-tools/pom-format.properties</configFile>
484 <include>${project.basedir}/pom.xml</include>
491 <groupId>com.fasterxml.jackson.core</groupId>
492 <artifactId>jackson-annotations</artifactId>
493 <version>2.9.8</version>
501 <groupId>io.fabric8</groupId>
502 <artifactId>fabric8-maven-plugin</artifactId>
503 <version>3.5.33</version>
505 <skip>${docker.skip}</skip>
506 <skipBuild>${docker.skip.build}</skipBuild>
507 <skipPush>${docker.skip.push}</skipPush>
508 <dockerHost>${docker.newHost}</dockerHost> <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY environment variable -->
509 <certPath>${docker.host.cert.path}</certPath><!-- Add -Ddocker.host.cert.pat="path to your local certs directory"
510 to maven build command -->
511 <pushRegistry>${dockerPushRepo}</pushRegistry> <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username, and password -->
512 <pullRegistry>${dockerPullRepo}</pullRegistry> <!-- If docker repo is not public. Update .m2/settings.xml Add server id settings.dockerRepository, username, and password -->
515 <alias>service</alias>
516 <name>${artifactId}:${project.version}</name>
518 <dockerFileDir>${project.build.directory}</dockerFileDir>
534 <groupId>org.apache.maven.plugins</groupId>
535 <artifactId>maven-surefire-plugin</artifactId>
536 <version>2.20</version>
538 <systemPropertyVariables>
539 <so.log.level>DEBUG</so.log.level>
540 </systemPropertyVariables>
541 <rerunFailingTestsCount>2</rerunFailingTestsCount>
542 <parallel>classes</parallel>
543 <useUnlimitedThreads>false</useUnlimitedThreads>
544 <threadCount>1</threadCount>
548 <groupId>org.apache.maven.plugins</groupId>
549 <artifactId>maven-failsafe-plugin</artifactId>
550 <version>2.20</version>
553 <systemPropertyVariables>
554 <so.log.level>DEBUG</so.log.level>
555 </systemPropertyVariables>
556 <rerunFailingTestsCount>2</rerunFailingTestsCount>
560 <groupId>org.apache.maven.plugins</groupId>
561 <artifactId>maven-dependency-plugin</artifactId>
564 <id>extract-docker-file</id>
571 <groupId>org.onap.so</groupId>
572 <artifactId>deployment-configs</artifactId>
573 <version>${project.version}</version>
574 <outputDirectory>${project.build.directory}</outputDirectory>
575 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
576 <excludes>Kubernetes</excludes>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-jar-plugin</artifactId>
586 <version>3.0.2</version>
591 <goal>test-jar</goal>
599 <phase>package</phase>
604 <classifier>${originalClassifier}</classifier>
606 <include>**</include>
613 <groupId>org.springframework.boot</groupId>
614 <artifactId>spring-boot-maven-plugin</artifactId>
615 <version>${springboot.version}</version>
620 <goal>build-info</goal>
628 <!-- *********************************************************************************************************** -->
629 <!-- Dependencies -->
632 <groupId>com.fasterxml.jackson.core</groupId>
633 <artifactId>jackson-core</artifactId>
636 <groupId>com.fasterxml.jackson.module</groupId>
637 <artifactId>jackson-module-jaxb-annotations</artifactId>
640 <groupId>com.fasterxml.jackson.core</groupId>
641 <artifactId>jackson-databind</artifactId>
644 <groupId>com.fasterxml.jackson.core</groupId>
645 <artifactId>jackson-annotations</artifactId>
648 <groupId>com.fasterxml.jackson.jaxrs</groupId>
649 <artifactId>jackson-jaxrs-base</artifactId>
652 <groupId>com.fasterxml.jackson.jaxrs</groupId>
653 <artifactId>jackson-jaxrs-json-provider</artifactId>
656 <groupId>javax.ws.rs</groupId>
657 <artifactId>javax.ws.rs-api</artifactId>
658 <version>${jax.ws.rs}</version>
661 <groupId>javax.annotation</groupId>
662 <artifactId>javax.annotation-api</artifactId>
663 <version>1.3.1</version>
666 <groupId>javax.inject</groupId>
667 <artifactId>javax.inject</artifactId>
671 <groupId>org.mockito</groupId>
672 <artifactId>mockito-core</artifactId>
675 <groupId>org.hamcrest</groupId>
676 <artifactId>hamcrest-core</artifactId>
679 <groupId>org.hamcrest</groupId>
680 <artifactId>hamcrest-library</artifactId>
683 <groupId>junit</groupId>
684 <artifactId>junit</artifactId>
688 <groupId>xmlunit</groupId>
689 <artifactId>xmlunit</artifactId>
690 <version>1.6</version>
694 <groupId>com.github.tomakehurst</groupId>
695 <artifactId>wiremock-standalone</artifactId>
696 <version>2.13.0</version>
700 <groupId>org.mortbay.jetty</groupId>
701 <artifactId>jetty</artifactId>
704 <groupId>com.google.guava</groupId>
705 <artifactId>guava</artifactId>
708 <groupId>com.fasterxml.jackson.core</groupId>
709 <artifactId>jackson-core</artifactId>
712 <groupId>com.fasterxml.jackson.core</groupId>
713 <artifactId>jackson-annotations</artifactId>
716 <groupId>com.fasterxml.jackson.core</groupId>
717 <artifactId>jackson-databind</artifactId>
720 <groupId>org.apache.httpcomponents</groupId>
721 <artifactId>httpclient</artifactId>
724 <groupId>org.skyscreamer</groupId>
725 <artifactId>jsonassert</artifactId>
728 <groupId>xmlunit</groupId>
729 <artifactId>xmlunit</artifactId>
732 <groupId>com.jayway.jsonpath</groupId>
733 <artifactId>json-path</artifactId>
736 <groupId>net.sf.jopt-simple</groupId>
737 <artifactId>jopt-simple</artifactId>
742 <groupId>com.openpojo</groupId>
743 <artifactId>openpojo</artifactId>
744 <version>0.8.10</version>
747 <groupId>com.shazam</groupId>
748 <artifactId>shazamcrest</artifactId>
749 <version>0.11</version>
753 <groupId>com.google.guava</groupId>
754 <artifactId>guava</artifactId>
757 <groupId>org.apache.commons</groupId>
758 <artifactId>commons-lang3</artifactId>
763 <groupId>org.assertj</groupId>
764 <artifactId>assertj-core</artifactId>
765 <version>3.11.1</version>
769 <groupId>com.googlecode.junit-toolbox</groupId>
770 <artifactId>junit-toolbox</artifactId>
771 <version>2.4</version>
774 <dependencyManagement>
776 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
777 <!-- force use of version 4.5 everywhere in transient deps, aligned on WildFly 10 version -->
779 <groupId>org.apache.httpcomponents</groupId>
780 <artifactId>httpcore</artifactId>
781 <version>4.4.4</version>
782 <scope>compile</scope>
785 <groupId>commons-codec</groupId>
786 <artifactId>commons-codec</artifactId>
787 <version>1.10</version>
788 <scope>compile</scope>
791 <groupId>commons-io</groupId>
792 <artifactId>commons-io</artifactId>
793 <version>2.5</version>
794 <scope>compile</scope>
797 <groupId>com.sun.xml.fastinfoset</groupId>
798 <artifactId>FastInfoset</artifactId>
799 <version>1.2.13</version>
800 <scope>compile</scope>
803 <groupId>org.springframework.boot</groupId>
804 <artifactId>spring-boot-dependencies</artifactId>
805 <version>${springboot.version}</version>
807 <scope>import</scope>
810 <groupId>org.yaml</groupId>
811 <artifactId>snakeyaml</artifactId>
812 <version>1.23</version>
815 <groupId>javax.interceptor</groupId>
816 <artifactId>javax.interceptor-api</artifactId>
817 <version>1.2.2</version>
820 <groupId>org.springframework.boot</groupId>
821 <artifactId>spring-boot-starter-test</artifactId>
822 <version>${springboot.version}</version>
825 <groupId>com.vaadin.external.google</groupId>
826 <artifactId>android-json</artifactId>
831 <groupId>net.javacrumbs.shedlock</groupId>
832 <artifactId>shedlock-spring</artifactId>
833 <version>0.18.2</version>
836 <groupId>net.javacrumbs.shedlock</groupId>
837 <artifactId>shedlock-provider-jdbc-template</artifactId>
838 <version>0.18.2</version>
841 <groupId>org.flywaydb</groupId>
842 <artifactId>flyway-core</artifactId>
843 <version>5.1.4</version>
846 <groupId>org.json</groupId>
847 <artifactId>json</artifactId>
848 <version>20140107</version>
851 <groupId>org.yaml</groupId>
852 <artifactId>snakeyaml</artifactId>
853 <version>1.19</version>
856 </dependencyManagement>
859 <id>docker-image-build</id>
861 <docker.skip>false</docker.skip>
862 <docker.skip.build>false</docker.skip.build>
863 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
867 <id>docker-image-build-push</id>
869 <docker.skip>false</docker.skip>
870 <docker.skip.build>false</docker.skip.build>
871 <docker.skip.push>false</docker.skip.push>
872 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
878 <format.skipValidate>true</format.skipValidate>
879 <format.skipExecute>false</format.skipExecute>
886 <name>m2e.version</name>
890 <originalClassifier />