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 <openstack.version>1.4.0</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>true</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.0.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>
74 <distributionManagement>
76 <id>ecomp-releases</id>
77 <url>${nexusproxy}/${releaseNexusPath}</url>
80 <id>ecomp-snapshots</id>
81 <url>${nexusproxy}/${snapshotNexusPath}</url>
85 <url>dav:${nexusproxy}${siteNexusPath}</url>
87 </distributionManagement>
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-javadoc-plugin</artifactId>
93 <version>2.10.4</version>
95 <failOnError>false</failOnError>
96 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
98 <groupId>org.umlgraph</groupId>
99 <artifactId>umlgraph</artifactId>
100 <version>5.6</version>
102 <additionalparam>-views</additionalparam>
103 <useStandardDocletOptions>true</useStandardDocletOptions>
108 <!-- configure build -->
109 <!-- *********************************************************************************************************** -->
110 <!-- Plugins and repositories -->
114 <url>http://repo1.maven.org/maven2</url>
118 <url>http://maven.restlet.com</url>
121 <id>ecomp-public</id>
122 <url>${nexusproxy}/${publicNexusPath}</url>
124 <enabled>false</enabled>
128 <id>ecomp-release</id>
129 <url>${nexusproxy}/${releaseNexusPath}</url>
131 <enabled>false</enabled>
135 <id>ecomp-snapshots</id>
136 <url>${nexusproxy}/${snapshotNexusPath}</url>
138 <enabled>false</enabled>
141 </pluginRepositories>
144 <id>ecomp-public</id>
145 <url>https://nexus.onap.org/content/repositories/public/</url>
147 <enabled>false</enabled>
151 <id>ecomp-releases</id>
152 <url>https://nexus.onap.org/content/repositories/releases/</url>
154 <enabled>false</enabled>
158 <id>ecomp-snapshots</id>
159 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
161 <enabled>false</enabled>
166 <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
169 <id>camunda-public</id>
170 <url>https://app.camunda.com/nexus/content/groups/public</url>
173 <!-- TODO: remove from ONAP environemnt -->
174 <id>onap-releases</id>
175 <url>https://nexus.onap.org/content/repositories/releases/</url>
177 <enabled>false</enabled>
181 <!-- TODO: remove from ONAP environemnt -->
182 <id>onap-snapshots</id>
183 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
185 <enabled>false</enabled>
189 <!-- *********************************************************************************************************** -->
194 <directory>src/main/resources</directory>
195 <filtering>true</filtering>
198 <directory>target/generated-sources/license</directory>
200 <include>third-party-licenses.txt</include>
204 <directory>target/generated-resources/licenses</directory>
206 <include>*.*</include>
208 <targetPath>third-party-licenses</targetPath>
213 <groupId>org.sonatype.plugins</groupId>
214 <artifactId>nexus-staging-maven-plugin</artifactId>
215 <version>1.6.7</version>
216 <extensions>true</extensions>
218 <nexusUrl>${nexusproxy}</nexusUrl>
219 <stagingProfileId>176c31dfe190a</stagingProfileId>
220 <serverId>ecomp-staging</serverId>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-deploy-plugin</artifactId>
226 <version>2.8</version>
227 <!-- 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>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>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>
509 <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY environment variable -->
510 <certPath>${docker.host.cert.path}</certPath>
511 <!-- Add -Ddocker.host.cert.pat="path to your local certs directory"
512 to maven build command -->
513 <pushRegistry>${dockerPushRepo}</pushRegistry>
514 <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username, and password -->
515 <pullRegistry>${dockerPullRepo}</pullRegistry>
516 <!-- If docker repo is not public. Update .m2/settings.xml Add server id settings.dockerRepository, username, and password -->
519 <alias>service</alias>
520 <name>${artifactId}:${project.version}</name>
522 <dockerFileDir>${project.build.directory}</dockerFileDir>
538 <groupId>org.apache.maven.plugins</groupId>
539 <artifactId>maven-surefire-plugin</artifactId>
540 <version>2.20</version>
542 <systemPropertyVariables>
543 <so.log.level>DEBUG</so.log.level>
544 </systemPropertyVariables>
545 <rerunFailingTestsCount>2</rerunFailingTestsCount>
546 <parallel>classes</parallel>
547 <useUnlimitedThreads>false</useUnlimitedThreads>
548 <threadCount>1</threadCount>
552 <groupId>org.apache.maven.plugins</groupId>
553 <artifactId>maven-failsafe-plugin</artifactId>
554 <version>2.20</version>
557 <systemPropertyVariables>
558 <so.log.level>DEBUG</so.log.level>
559 </systemPropertyVariables>
560 <rerunFailingTestsCount>2</rerunFailingTestsCount>
564 <groupId>org.apache.maven.plugins</groupId>
565 <artifactId>maven-dependency-plugin</artifactId>
568 <id>extract-docker-file</id>
575 <groupId>org.onap.so</groupId>
576 <artifactId>deployment-configs</artifactId>
577 <version>${project.version}</version>
578 <outputDirectory>${project.build.directory}</outputDirectory>
579 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
580 <excludes>Kubernetes</excludes>
588 <groupId>org.apache.maven.plugins</groupId>
589 <artifactId>maven-jar-plugin</artifactId>
590 <version>3.0.2</version>
595 <goal>test-jar</goal>
603 <phase>package</phase>
608 <classifier>${originalClassifier}</classifier>
610 <include>**</include>
617 <groupId>org.springframework.boot</groupId>
618 <artifactId>spring-boot-maven-plugin</artifactId>
619 <version>${springboot.version}</version>
624 <goal>build-info</goal>
632 <!-- *********************************************************************************************************** -->
633 <!-- Dependencies -->
636 <groupId>com.fasterxml.jackson.core</groupId>
637 <artifactId>jackson-core</artifactId>
640 <groupId>com.fasterxml.jackson.module</groupId>
641 <artifactId>jackson-module-jaxb-annotations</artifactId>
644 <groupId>com.fasterxml.jackson.core</groupId>
645 <artifactId>jackson-databind</artifactId>
648 <groupId>com.fasterxml.jackson.core</groupId>
649 <artifactId>jackson-annotations</artifactId>
652 <groupId>com.fasterxml.jackson.jaxrs</groupId>
653 <artifactId>jackson-jaxrs-base</artifactId>
656 <groupId>com.fasterxml.jackson.jaxrs</groupId>
657 <artifactId>jackson-jaxrs-json-provider</artifactId>
660 <groupId>javax.ws.rs</groupId>
661 <artifactId>javax.ws.rs-api</artifactId>
662 <version>${jax.ws.rs}</version>
665 <groupId>javax.annotation</groupId>
666 <artifactId>javax.annotation-api</artifactId>
667 <version>1.3.1</version>
670 <groupId>javax.inject</groupId>
671 <artifactId>javax.inject</artifactId>
675 <groupId>org.mockito</groupId>
676 <artifactId>mockito-core</artifactId>
679 <groupId>org.hamcrest</groupId>
680 <artifactId>hamcrest-core</artifactId>
683 <groupId>org.hamcrest</groupId>
684 <artifactId>hamcrest-library</artifactId>
687 <groupId>junit</groupId>
688 <artifactId>junit</artifactId>
692 <groupId>xmlunit</groupId>
693 <artifactId>xmlunit</artifactId>
694 <version>1.6</version>
698 <groupId>com.github.tomakehurst</groupId>
699 <artifactId>wiremock-standalone</artifactId>
700 <version>2.13.0</version>
704 <groupId>org.mortbay.jetty</groupId>
705 <artifactId>jetty</artifactId>
708 <groupId>com.google.guava</groupId>
709 <artifactId>guava</artifactId>
712 <groupId>com.fasterxml.jackson.core</groupId>
713 <artifactId>jackson-core</artifactId>
716 <groupId>com.fasterxml.jackson.core</groupId>
717 <artifactId>jackson-annotations</artifactId>
720 <groupId>com.fasterxml.jackson.core</groupId>
721 <artifactId>jackson-databind</artifactId>
724 <groupId>org.apache.httpcomponents</groupId>
725 <artifactId>httpclient</artifactId>
728 <groupId>org.skyscreamer</groupId>
729 <artifactId>jsonassert</artifactId>
732 <groupId>xmlunit</groupId>
733 <artifactId>xmlunit</artifactId>
736 <groupId>com.jayway.jsonpath</groupId>
737 <artifactId>json-path</artifactId>
740 <groupId>net.sf.jopt-simple</groupId>
741 <artifactId>jopt-simple</artifactId>
746 <groupId>com.openpojo</groupId>
747 <artifactId>openpojo</artifactId>
748 <version>0.8.10</version>
751 <groupId>com.shazam</groupId>
752 <artifactId>shazamcrest</artifactId>
753 <version>0.11</version>
757 <groupId>com.google.guava</groupId>
758 <artifactId>guava</artifactId>
761 <groupId>org.apache.commons</groupId>
762 <artifactId>commons-lang3</artifactId>
767 <groupId>org.assertj</groupId>
768 <artifactId>assertj-core</artifactId>
769 <version>3.11.1</version>
773 <groupId>com.googlecode.junit-toolbox</groupId>
774 <artifactId>junit-toolbox</artifactId>
775 <version>2.4</version>
778 <dependencyManagement>
780 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
781 <!-- force use of version 4.5 everywhere in transient deps, aligned on WildFly 10 version -->
783 <groupId>org.apache.httpcomponents</groupId>
784 <artifactId>httpcore</artifactId>
785 <version>4.4.4</version>
786 <scope>compile</scope>
789 <groupId>commons-codec</groupId>
790 <artifactId>commons-codec</artifactId>
791 <version>1.10</version>
792 <scope>compile</scope>
795 <groupId>commons-io</groupId>
796 <artifactId>commons-io</artifactId>
797 <version>2.5</version>
798 <scope>compile</scope>
801 <groupId>com.sun.xml.fastinfoset</groupId>
802 <artifactId>FastInfoset</artifactId>
803 <version>1.2.13</version>
804 <scope>compile</scope>
807 <groupId>org.springframework.boot</groupId>
808 <artifactId>spring-boot-dependencies</artifactId>
809 <version>${springboot.version}</version>
811 <scope>import</scope>
814 <groupId>org.yaml</groupId>
815 <artifactId>snakeyaml</artifactId>
816 <version>1.23</version>
819 <groupId>javax.interceptor</groupId>
820 <artifactId>javax.interceptor-api</artifactId>
821 <version>1.2.2</version>
824 <groupId>org.springframework.boot</groupId>
825 <artifactId>spring-boot-starter-test</artifactId>
826 <version>${springboot.version}</version>
829 <groupId>com.vaadin.external.google</groupId>
830 <artifactId>android-json</artifactId>
835 <groupId>net.javacrumbs.shedlock</groupId>
836 <artifactId>shedlock-spring</artifactId>
837 <version>0.18.2</version>
840 <groupId>net.javacrumbs.shedlock</groupId>
841 <artifactId>shedlock-provider-jdbc-template</artifactId>
842 <version>0.18.2</version>
845 <groupId>org.flywaydb</groupId>
846 <artifactId>flyway-core</artifactId>
847 <version>5.1.4</version>
850 <groupId>org.json</groupId>
851 <artifactId>json</artifactId>
852 <version>20140107</version>
855 <groupId>org.yaml</groupId>
856 <artifactId>snakeyaml</artifactId>
857 <version>1.19</version>
860 </dependencyManagement>
863 <id>docker-image-build</id>
865 <docker.skip>false</docker.skip>
866 <docker.skip.build>false</docker.skip.build>
867 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
871 <id>docker-image-build-push</id>
873 <docker.skip>false</docker.skip>
874 <docker.skip.build>false</docker.skip.build>
875 <docker.skip.push>false</docker.skip.push>
876 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
882 <format.skipValidate>true</format.skipValidate>
883 <format.skipExecute>false</format.skipExecute>
890 <name>m2e.version</name>
894 <originalClassifier />