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>
38 <project.mso.base.folder>.</project.mso.base.folder>
39 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
41 <sonar.language>java</sonar.language>
42 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
43 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
44 <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
45 <!--sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath -->
46 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
47 <sonar.projectVersion>${project.version}</sonar.projectVersion>
48 <sonar.cpd.exclusions>**/*</sonar.cpd.exclusions>
49 <jacoco.version>0.7.5.201505241946</jacoco.version>
50 <org.apache.maven.user-settings />
51 <openstack.version>1.5.1</openstack.version>
52 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
53 <originalClassifier>original</originalClassifier>
54 <docker.skip>true</docker.skip>
55 <docker.skip.build>true</docker.skip.build>
56 <docker.skip.push>true</docker.skip.push>
57 <docker.buildArg.project_version>${project.version}</docker.buildArg.project_version>
58 <docker.buildArg.artifact_id>${project.artifactId}</docker.buildArg.artifact_id>
59 <docker.buildArg.docker_repository>${dockerPullRepo}</docker.buildArg.docker_repository>
60 <enforcer.skip>true</enforcer.skip>
61 <nexusproxy>https://nexus.onap.org</nexusproxy>
62 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
63 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
64 <publicNexusPath>content/repositories/public/</publicNexusPath>
65 <siteNexusPath>content/sites/site/org/onap/so/${project.version}/</siteNexusPath>
66 <cxf.version>3.2.6</cxf.version>
67 <jax.ws.rs>2.1</jax.ws.rs>
68 <springboot.version>2.1.5.RELEASE</springboot.version>
69 <camunda.springboot.version>3.2.0</camunda.springboot.version>
70 <format.skipValidate>false</format.skipValidate>
71 <format.skipExecute>true</format.skipExecute>
72 <io.fabric8.version>4.1.0</io.fabric8.version>
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>
446 <phase>process-sources</phase>
448 <skip>${format.skipExecute}</skip>
449 <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile>
457 <phase>process-sources</phase>
459 <skip>${format.skipExecute}</skip>
460 <sourceDirectory>${project.basedir}</sourceDirectory>
461 <configXmlFile>${base-path}/project-configs/code-tools/pom-format.properties</configXmlFile>
463 <include>pom.xml</include>
468 <id>validate-java</id>
470 <goal>validate</goal>
473 <skip>${format.skipValidate}</skip>
474 <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile>
478 <id>validate-poms</id>
480 <goal>validate</goal>
483 <skip>${format.skipValidate}</skip>
484 <configFile>${base-path}/project-configs/code-tools/pom-format.properties</configFile>
486 <include>pom.xml</include>
493 <groupId>com.fasterxml.jackson.core</groupId>
494 <artifactId>jackson-annotations</artifactId>
495 <version>2.9.8</version>
503 <groupId>io.fabric8</groupId>
504 <artifactId>fabric8-maven-plugin</artifactId>
505 <version>${io.fabric8.version}</version>
507 <skip>${docker.skip}</skip>
508 <skipBuild>${docker.skip.build}</skipBuild>
509 <skipPush>${docker.skip.push}</skipPush>
510 <dockerHost>${docker.newHost}</dockerHost>
511 <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY environment variable -->
512 <certPath>${docker.host.cert.path}</certPath>
513 <!-- Add -Ddocker.host.cert.pat="path to your local certs directory" 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,
521 <alias>service</alias>
522 <name>${artifactId}:${project.version}</name>
524 <dockerFileDir>${project.build.directory}</dockerFileDir>
540 <groupId>org.apache.maven.plugins</groupId>
541 <artifactId>maven-surefire-plugin</artifactId>
542 <version>2.20</version>
544 <systemPropertyVariables>
545 <so.log.level>DEBUG</so.log.level>
546 </systemPropertyVariables>
547 <rerunFailingTestsCount>2</rerunFailingTestsCount>
548 <parallel>classes</parallel>
549 <useUnlimitedThreads>false</useUnlimitedThreads>
550 <threadCount>1</threadCount>
554 <groupId>org.apache.maven.plugins</groupId>
555 <artifactId>maven-failsafe-plugin</artifactId>
556 <version>2.20</version>
559 <systemPropertyVariables>
560 <so.log.level>DEBUG</so.log.level>
561 </systemPropertyVariables>
562 <rerunFailingTestsCount>2</rerunFailingTestsCount>
566 <groupId>org.apache.maven.plugins</groupId>
567 <artifactId>maven-dependency-plugin</artifactId>
570 <id>extract-docker-file</id>
577 <groupId>org.onap.so</groupId>
578 <artifactId>deployment-configs</artifactId>
579 <version>${project.version}</version>
580 <outputDirectory>${project.build.directory}</outputDirectory>
581 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
582 <excludes>Kubernetes</excludes>
590 <groupId>org.apache.maven.plugins</groupId>
591 <artifactId>maven-jar-plugin</artifactId>
592 <version>3.0.2</version>
597 <goal>test-jar</goal>
605 <phase>package</phase>
610 <classifier>${originalClassifier}</classifier>
612 <include>**</include>
619 <groupId>org.springframework.boot</groupId>
620 <artifactId>spring-boot-maven-plugin</artifactId>
621 <version>${springboot.version}</version>
626 <goal>build-info</goal>
634 <!-- *********************************************************************************************************** -->
635 <!-- Dependencies -->
638 <groupId>org.onap.logging-analytics</groupId>
639 <artifactId>logging-slf4j</artifactId>
640 <version>1.6.2-SNAPSHOT</version>
643 <groupId>org.onap.logging-analytics</groupId>
644 <artifactId>logging-filter-base</artifactId>
645 <version>1.6.2-SNAPSHOT</version>
648 <groupId>org.onap.logging-analytics</groupId>
649 <artifactId>logging-filter-spring</artifactId>
650 <version>1.6.2-SNAPSHOT</version>
653 <groupId>com.fasterxml.jackson.core</groupId>
654 <artifactId>jackson-core</artifactId>
657 <groupId>com.fasterxml.jackson.module</groupId>
658 <artifactId>jackson-module-jaxb-annotations</artifactId>
661 <groupId>com.fasterxml.jackson.core</groupId>
662 <artifactId>jackson-databind</artifactId>
665 <groupId>com.fasterxml.jackson.core</groupId>
666 <artifactId>jackson-annotations</artifactId>
669 <groupId>com.fasterxml.jackson.jaxrs</groupId>
670 <artifactId>jackson-jaxrs-base</artifactId>
673 <groupId>com.fasterxml.jackson.jaxrs</groupId>
674 <artifactId>jackson-jaxrs-json-provider</artifactId>
677 <groupId>javax.ws.rs</groupId>
678 <artifactId>javax.ws.rs-api</artifactId>
679 <version>${jax.ws.rs}</version>
682 <groupId>javax.annotation</groupId>
683 <artifactId>javax.annotation-api</artifactId>
684 <version>1.3.1</version>
687 <groupId>javax.inject</groupId>
688 <artifactId>javax.inject</artifactId>
692 <groupId>org.mockito</groupId>
693 <artifactId>mockito-core</artifactId>
696 <groupId>org.hamcrest</groupId>
697 <artifactId>hamcrest-core</artifactId>
700 <groupId>org.hamcrest</groupId>
701 <artifactId>hamcrest-library</artifactId>
704 <groupId>junit</groupId>
705 <artifactId>junit</artifactId>
709 <groupId>xmlunit</groupId>
710 <artifactId>xmlunit</artifactId>
711 <version>1.6</version>
715 <groupId>com.github.tomakehurst</groupId>
716 <artifactId>wiremock-standalone</artifactId>
717 <version>2.13.0</version>
721 <groupId>org.mortbay.jetty</groupId>
722 <artifactId>jetty</artifactId>
725 <groupId>com.google.guava</groupId>
726 <artifactId>guava</artifactId>
729 <groupId>com.fasterxml.jackson.core</groupId>
730 <artifactId>jackson-core</artifactId>
733 <groupId>com.fasterxml.jackson.core</groupId>
734 <artifactId>jackson-annotations</artifactId>
737 <groupId>com.fasterxml.jackson.core</groupId>
738 <artifactId>jackson-databind</artifactId>
741 <groupId>org.apache.httpcomponents</groupId>
742 <artifactId>httpclient</artifactId>
745 <groupId>org.skyscreamer</groupId>
746 <artifactId>jsonassert</artifactId>
749 <groupId>xmlunit</groupId>
750 <artifactId>xmlunit</artifactId>
753 <groupId>com.jayway.jsonpath</groupId>
754 <artifactId>json-path</artifactId>
757 <groupId>net.sf.jopt-simple</groupId>
758 <artifactId>jopt-simple</artifactId>
763 <groupId>com.openpojo</groupId>
764 <artifactId>openpojo</artifactId>
765 <version>0.8.10</version>
768 <groupId>com.shazam</groupId>
769 <artifactId>shazamcrest</artifactId>
770 <version>0.11</version>
774 <groupId>com.google.guava</groupId>
775 <artifactId>guava</artifactId>
778 <groupId>org.apache.commons</groupId>
779 <artifactId>commons-lang3</artifactId>
784 <groupId>org.assertj</groupId>
785 <artifactId>assertj-core</artifactId>
786 <version>3.11.1</version>
790 <groupId>com.googlecode.junit-toolbox</groupId>
791 <artifactId>junit-toolbox</artifactId>
792 <version>2.4</version>
795 <dependencyManagement>
797 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
798 <!-- force use of version 4.5 everywhere in transient deps, aligned on WildFly 10 version -->
800 <groupId>org.apache.httpcomponents</groupId>
801 <artifactId>httpcore</artifactId>
802 <version>4.4.4</version>
803 <scope>compile</scope>
806 <groupId>commons-codec</groupId>
807 <artifactId>commons-codec</artifactId>
808 <version>1.12</version>
809 <scope>compile</scope>
812 <groupId>commons-io</groupId>
813 <artifactId>commons-io</artifactId>
814 <version>2.5</version>
815 <scope>compile</scope>
818 <groupId>com.sun.xml.fastinfoset</groupId>
819 <artifactId>FastInfoset</artifactId>
820 <version>1.2.13</version>
821 <scope>compile</scope>
824 <groupId>org.springframework.boot</groupId>
825 <artifactId>spring-boot-dependencies</artifactId>
826 <version>${springboot.version}</version>
828 <scope>import</scope>
831 <groupId>org.yaml</groupId>
832 <artifactId>snakeyaml</artifactId>
833 <version>1.23</version>
836 <groupId>javax.interceptor</groupId>
837 <artifactId>javax.interceptor-api</artifactId>
838 <version>1.2.2</version>
841 <groupId>org.springframework.boot</groupId>
842 <artifactId>spring-boot-starter-test</artifactId>
843 <version>${springboot.version}</version>
846 <groupId>com.vaadin.external.google</groupId>
847 <artifactId>android-json</artifactId>
852 <groupId>net.javacrumbs.shedlock</groupId>
853 <artifactId>shedlock-spring</artifactId>
854 <version>0.18.2</version>
857 <groupId>net.javacrumbs.shedlock</groupId>
858 <artifactId>shedlock-provider-jdbc-template</artifactId>
859 <version>0.18.2</version>
862 <groupId>org.flywaydb</groupId>
863 <artifactId>flyway-core</artifactId>
864 <version>5.2.4</version>
867 <groupId>org.json</groupId>
868 <artifactId>json</artifactId>
869 <version>20140107</version>
872 </dependencyManagement>
875 <id>docker-image-build</id>
877 <docker.skip>false</docker.skip>
878 <docker.skip.build>false</docker.skip.build>
879 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
883 <id>docker-image-build-push</id>
885 <docker.skip>false</docker.skip>
886 <docker.skip.build>false</docker.skip.build>
887 <docker.skip.push>false</docker.skip.push>
888 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
894 <format.skipValidate>true</format.skipValidate>
895 <format.skipExecute>false</format.skipExecute>
902 <name>m2e.version</name>
906 <originalClassifier />