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>
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>
448 <skip>${format.skipExecute}</skip>
449 <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile>
458 <skip>${format.skipExecute}</skip>
459 <sourceDirectory>${project.basedir}</sourceDirectory>
460 <configXmlFile>${base-path}/project-configs/code-tools/pom-format.properties</configXmlFile>
462 <include>pom.xml</include>
467 <id>validate-java</id>
469 <goal>validate</goal>
472 <skip>${format.skipValidate}</skip>
473 <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile>
477 <id>validate-poms</id>
479 <goal>validate</goal>
482 <skip>${format.skipValidate}</skip>
483 <configFile>${base-path}/project-configs/code-tools/pom-format.properties</configFile>
485 <include>pom.xml</include>
492 <groupId>com.fasterxml.jackson.core</groupId>
493 <artifactId>jackson-annotations</artifactId>
494 <version>2.9.8</version>
502 <groupId>io.fabric8</groupId>
503 <artifactId>fabric8-maven-plugin</artifactId>
504 <version>3.5.33</version>
506 <skip>${docker.skip}</skip>
507 <skipBuild>${docker.skip.build}</skipBuild>
508 <skipPush>${docker.skip.push}</skipPush>
509 <dockerHost>${docker.newHost}</dockerHost>
510 <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY environment variable -->
511 <certPath>${docker.host.cert.path}</certPath>
512 <!-- Add -Ddocker.host.cert.pat="path to your local certs directory"
513 to maven build command -->
514 <pushRegistry>${dockerPushRepo}</pushRegistry>
515 <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username, and password -->
516 <pullRegistry>${dockerPullRepo}</pullRegistry>
517 <!-- If docker repo is not public. Update .m2/settings.xml Add server id settings.dockerRepository, username, and password -->
520 <alias>service</alias>
521 <name>${artifactId}:${project.version}</name>
523 <dockerFileDir>${project.build.directory}</dockerFileDir>
539 <groupId>org.apache.maven.plugins</groupId>
540 <artifactId>maven-surefire-plugin</artifactId>
541 <version>2.20</version>
543 <systemPropertyVariables>
544 <so.log.level>DEBUG</so.log.level>
545 </systemPropertyVariables>
546 <rerunFailingTestsCount>2</rerunFailingTestsCount>
547 <parallel>classes</parallel>
548 <useUnlimitedThreads>false</useUnlimitedThreads>
549 <threadCount>1</threadCount>
553 <groupId>org.apache.maven.plugins</groupId>
554 <artifactId>maven-failsafe-plugin</artifactId>
555 <version>2.20</version>
558 <systemPropertyVariables>
559 <so.log.level>DEBUG</so.log.level>
560 </systemPropertyVariables>
561 <rerunFailingTestsCount>2</rerunFailingTestsCount>
565 <groupId>org.apache.maven.plugins</groupId>
566 <artifactId>maven-dependency-plugin</artifactId>
569 <id>extract-docker-file</id>
576 <groupId>org.onap.so</groupId>
577 <artifactId>deployment-configs</artifactId>
578 <version>${project.version}</version>
579 <outputDirectory>${project.build.directory}</outputDirectory>
580 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
581 <excludes>Kubernetes</excludes>
589 <groupId>org.apache.maven.plugins</groupId>
590 <artifactId>maven-jar-plugin</artifactId>
591 <version>3.0.2</version>
596 <goal>test-jar</goal>
604 <phase>package</phase>
609 <classifier>${originalClassifier}</classifier>
611 <include>**</include>
618 <groupId>org.springframework.boot</groupId>
619 <artifactId>spring-boot-maven-plugin</artifactId>
620 <version>${springboot.version}</version>
625 <goal>build-info</goal>
633 <!-- *********************************************************************************************************** -->
634 <!-- Dependencies -->
637 <groupId>com.fasterxml.jackson.core</groupId>
638 <artifactId>jackson-core</artifactId>
641 <groupId>com.fasterxml.jackson.module</groupId>
642 <artifactId>jackson-module-jaxb-annotations</artifactId>
645 <groupId>com.fasterxml.jackson.core</groupId>
646 <artifactId>jackson-databind</artifactId>
649 <groupId>com.fasterxml.jackson.core</groupId>
650 <artifactId>jackson-annotations</artifactId>
653 <groupId>com.fasterxml.jackson.jaxrs</groupId>
654 <artifactId>jackson-jaxrs-base</artifactId>
657 <groupId>com.fasterxml.jackson.jaxrs</groupId>
658 <artifactId>jackson-jaxrs-json-provider</artifactId>
661 <groupId>javax.ws.rs</groupId>
662 <artifactId>javax.ws.rs-api</artifactId>
663 <version>${jax.ws.rs}</version>
666 <groupId>javax.annotation</groupId>
667 <artifactId>javax.annotation-api</artifactId>
668 <version>1.3.1</version>
671 <groupId>javax.inject</groupId>
672 <artifactId>javax.inject</artifactId>
676 <groupId>org.mockito</groupId>
677 <artifactId>mockito-core</artifactId>
680 <groupId>org.hamcrest</groupId>
681 <artifactId>hamcrest-core</artifactId>
684 <groupId>org.hamcrest</groupId>
685 <artifactId>hamcrest-library</artifactId>
688 <groupId>junit</groupId>
689 <artifactId>junit</artifactId>
693 <groupId>xmlunit</groupId>
694 <artifactId>xmlunit</artifactId>
695 <version>1.6</version>
699 <groupId>com.github.tomakehurst</groupId>
700 <artifactId>wiremock-standalone</artifactId>
701 <version>2.13.0</version>
705 <groupId>org.mortbay.jetty</groupId>
706 <artifactId>jetty</artifactId>
709 <groupId>com.google.guava</groupId>
710 <artifactId>guava</artifactId>
713 <groupId>com.fasterxml.jackson.core</groupId>
714 <artifactId>jackson-core</artifactId>
717 <groupId>com.fasterxml.jackson.core</groupId>
718 <artifactId>jackson-annotations</artifactId>
721 <groupId>com.fasterxml.jackson.core</groupId>
722 <artifactId>jackson-databind</artifactId>
725 <groupId>org.apache.httpcomponents</groupId>
726 <artifactId>httpclient</artifactId>
729 <groupId>org.skyscreamer</groupId>
730 <artifactId>jsonassert</artifactId>
733 <groupId>xmlunit</groupId>
734 <artifactId>xmlunit</artifactId>
737 <groupId>com.jayway.jsonpath</groupId>
738 <artifactId>json-path</artifactId>
741 <groupId>net.sf.jopt-simple</groupId>
742 <artifactId>jopt-simple</artifactId>
747 <groupId>com.openpojo</groupId>
748 <artifactId>openpojo</artifactId>
749 <version>0.8.10</version>
752 <groupId>com.shazam</groupId>
753 <artifactId>shazamcrest</artifactId>
754 <version>0.11</version>
758 <groupId>com.google.guava</groupId>
759 <artifactId>guava</artifactId>
762 <groupId>org.apache.commons</groupId>
763 <artifactId>commons-lang3</artifactId>
768 <groupId>org.assertj</groupId>
769 <artifactId>assertj-core</artifactId>
770 <version>3.11.1</version>
774 <groupId>com.googlecode.junit-toolbox</groupId>
775 <artifactId>junit-toolbox</artifactId>
776 <version>2.4</version>
779 <dependencyManagement>
781 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
782 <!-- force use of version 4.5 everywhere in transient deps, aligned on WildFly 10 version -->
784 <groupId>org.apache.httpcomponents</groupId>
785 <artifactId>httpcore</artifactId>
786 <version>4.4.4</version>
787 <scope>compile</scope>
790 <groupId>commons-codec</groupId>
791 <artifactId>commons-codec</artifactId>
792 <version>1.10</version>
793 <scope>compile</scope>
796 <groupId>commons-io</groupId>
797 <artifactId>commons-io</artifactId>
798 <version>2.5</version>
799 <scope>compile</scope>
802 <groupId>com.sun.xml.fastinfoset</groupId>
803 <artifactId>FastInfoset</artifactId>
804 <version>1.2.13</version>
805 <scope>compile</scope>
808 <groupId>org.springframework.boot</groupId>
809 <artifactId>spring-boot-dependencies</artifactId>
810 <version>${springboot.version}</version>
812 <scope>import</scope>
815 <groupId>org.yaml</groupId>
816 <artifactId>snakeyaml</artifactId>
817 <version>1.23</version>
820 <groupId>javax.interceptor</groupId>
821 <artifactId>javax.interceptor-api</artifactId>
822 <version>1.2.2</version>
825 <groupId>org.springframework.boot</groupId>
826 <artifactId>spring-boot-starter-test</artifactId>
827 <version>${springboot.version}</version>
830 <groupId>com.vaadin.external.google</groupId>
831 <artifactId>android-json</artifactId>
836 <groupId>net.javacrumbs.shedlock</groupId>
837 <artifactId>shedlock-spring</artifactId>
838 <version>0.18.2</version>
841 <groupId>net.javacrumbs.shedlock</groupId>
842 <artifactId>shedlock-provider-jdbc-template</artifactId>
843 <version>0.18.2</version>
846 <groupId>org.flywaydb</groupId>
847 <artifactId>flyway-core</artifactId>
848 <version>5.1.4</version>
851 <groupId>org.json</groupId>
852 <artifactId>json</artifactId>
853 <version>20140107</version>
856 <groupId>org.yaml</groupId>
857 <artifactId>snakeyaml</artifactId>
858 <version>1.19</version>
861 </dependencyManagement>
864 <id>docker-image-build</id>
866 <docker.skip>false</docker.skip>
867 <docker.skip.build>false</docker.skip.build>
868 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
872 <id>docker-image-build-push</id>
874 <docker.skip>false</docker.skip>
875 <docker.skip.build>false</docker.skip.build>
876 <docker.skip.push>false</docker.skip.push>
877 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
883 <format.skipValidate>true</format.skipValidate>
884 <format.skipExecute>false</format.skipExecute>
891 <name>m2e.version</name>
895 <originalClassifier />