2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.onap.oparent</groupId>
6 <artifactId>oparent</artifactId>
7 <version>1.2.1</version>
10 <groupId>org.onap.so</groupId>
11 <artifactId>so</artifactId>
12 <packaging>pom</packaging>
13 <version>1.4.0-SNAPSHOT</version>
15 <description>This Maven project is responsible to build and package all child projects - contributions in the MSO project.
16 This build can be configured to run Functional tests and to start/stop a jboss server + Mysql DB.
17 "mvn clean install -P with-integration-tests -Dintegration-tests-user=root -Dintegration-tests-group=root -Dintegration-tests-db-type=MYSQL"
20 <name>ONAP - SO</name>
21 <url>http://www.onap.org/</url>
24 <module>deployment-configs</module>
25 <module>common</module>
26 <module>mso-catalog-db</module>
27 <module>mso-api-handlers</module>
28 <module>adapters</module>
29 <module>asdc-controller</module>
31 <module>cloudify-client</module>
32 <module>cxf-logging</module>
33 <module>so-monitoring</module>
34 <module>packages</module>
37 <project.mso.base.folder>.</project.mso.base.folder>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
40 <sonar.language>java</sonar.language>
41 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
42 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
43 <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
44 <!--sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath -->
45 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
46 <sonar.projectVersion>${project.version}</sonar.projectVersion>
47 <sonar.cpd.exclusions>**/*</sonar.cpd.exclusions>
48 <jacoco.version>0.7.5.201505241946</jacoco.version>
49 <org.apache.maven.user-settings/>
50 <!-- TODO: update to version 1.4.0 for Dublin -->
51 <openstack.version>1.4.0-SNAPSHOT</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.0.5.RELEASE</springboot.version>
69 <camunda.springboot.version>3.2.0</camunda.springboot.version>
71 <distributionManagement>
73 <id>ecomp-releases</id>
74 <url>${nexusproxy}/${releaseNexusPath}</url>
77 <id>ecomp-snapshots</id>
78 <url>${nexusproxy}/${snapshotNexusPath}</url>
82 <url>dav:${nexusproxy}${siteNexusPath}</url>
84 </distributionManagement>
88 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-javadoc-plugin</artifactId>
90 <version>2.10.4</version>
92 <failOnError>false</failOnError>
93 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
95 <groupId>org.umlgraph</groupId>
96 <artifactId>umlgraph</artifactId>
97 <version>5.6</version>
99 <additionalparam>-views</additionalparam>
100 <useStandardDocletOptions>true</useStandardDocletOptions>
105 <!-- configure build -->
106 <!-- *********************************************************************************************************** -->
107 <!-- Plugins and repositories -->
111 <url>http://repo1.maven.org/maven2</url>
115 <url>http://maven.restlet.com</url>
118 <id>ecomp-public</id>
119 <url>${nexusproxy}/${publicNexusPath}</url>
121 <enabled>false</enabled>
125 <id>ecomp-release</id>
126 <url>${nexusproxy}/${releaseNexusPath}</url>
128 <enabled>false</enabled>
132 <id>ecomp-snapshots</id>
133 <url>${nexusproxy}/${snapshotNexusPath}</url>
135 <enabled>false</enabled>
138 </pluginRepositories>
141 <id>ecomp-public</id>
142 <url>https://nexus.onap.org/content/repositories/public/</url>
144 <enabled>false</enabled>
148 <id>ecomp-releases</id>
149 <url>https://nexus.onap.org/content/repositories/releases/</url>
151 <enabled>false</enabled>
155 <id>ecomp-snapshots</id>
156 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
158 <enabled>false</enabled>
163 <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
166 <id>camunda-public</id>
167 <url>https://app.camunda.com/nexus/content/groups/public</url>
170 <!-- TODO: remove from ONAP environemnt -->
171 <id>onap-releases</id>
172 <url>https://nexus.onap.org/content/repositories/releases/</url>
174 <enabled>false</enabled>
178 <!-- TODO: remove from ONAP environemnt -->
179 <id>onap-snapshots</id>
180 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
182 <enabled>false</enabled>
186 <!-- *********************************************************************************************************** -->
191 <directory>src/main/resources</directory>
192 <filtering>true</filtering>
195 <directory>target/generated-sources/license</directory>
197 <include>third-party-licenses.txt</include>
201 <directory>target/generated-resources/licenses</directory>
203 <include>*.*</include>
205 <targetPath>third-party-licenses</targetPath>
210 <groupId>org.sonatype.plugins</groupId>
211 <artifactId>nexus-staging-maven-plugin</artifactId>
212 <version>1.6.7</version>
213 <extensions>true</extensions>
215 <nexusUrl>${nexusproxy}</nexusUrl>
216 <stagingProfileId>176c31dfe190a</stagingProfileId>
217 <serverId>ecomp-staging</serverId>
221 <groupId>org.apache.maven.plugins</groupId>
222 <artifactId>maven-deploy-plugin</artifactId>
223 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
230 <groupId>org.apache.maven.plugins</groupId>
231 <artifactId>maven-compiler-plugin</artifactId>
232 <version>3.6.1</version>
235 <compilerArgument>-Xlint</compilerArgument>
236 <verbose>true</verbose>
237 <showDeprecation>true</showDeprecation>
238 <showWarnings>true</showWarnings>
242 <arg>-parameters</arg>
247 <groupId>org.apache.maven.plugins</groupId>
248 <artifactId>maven-ejb-plugin</artifactId>
249 <version>2.2.1</version>
251 <ejbVersion>3.0</ejbVersion>
254 <addClasspath>true</addClasspath>
260 <groupId>org.apache.maven.plugins</groupId>
261 <artifactId>maven-checkstyle-plugin</artifactId>
262 <version>2.17</version>
265 <includes>**/org/openecomp/**/*.java</includes>
266 <configLocation>/google_checks.xml</configLocation>
270 <groupId>org.codehaus.mojo</groupId>
271 <artifactId>findbugs-maven-plugin</artifactId>
272 <version>2.5.2</version>
274 <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
275 <nested>true</nested>
276 <findbugsXmlOutput>true</findbugsXmlOutput>
277 <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
278 <xmlOutput>true</xmlOutput>
282 <groupId>org.codehaus.mojo</groupId>
283 <artifactId>sonar-maven-plugin</artifactId>
284 <version>5.1</version>
287 <artifactId>maven-scm-plugin</artifactId>
288 <version>1.8.1</version>
290 <tag>${project.artifactId}-${project.version}</tag>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-javadoc-plugin</artifactId>
296 <version>2.9</version>
299 <groupId>org.apache.maven.plugins</groupId>
300 <artifactId>maven-site-plugin</artifactId>
301 <version>3.6</version>
304 <groupId>org.apache.maven.wagon</groupId>
305 <artifactId>wagon-webdav-jackrabbit</artifactId>
306 <version>2.10</version>
311 <groupId>org.codehaus.mojo</groupId>
312 <artifactId>cobertura-maven-plugin</artifactId>
313 <version>2.5.2</version>
321 <groupId>org.codehaus.mojo</groupId>
322 <artifactId>versions-maven-plugin</artifactId>
323 <version>1.3.1</version>
327 <groupId>com.fortify.ps.maven.plugin</groupId>
328 <artifactId>sca-maven-plugin</artifactId>
329 <version>4.20</version>
331 <buildId>mso-${project.version}</buildId>
336 <groupId>org.jacoco</groupId>
337 <artifactId>jacoco-maven-plugin</artifactId>
338 <version>${jacoco.version}</version>
341 <id>default-prepare-agent</id>
343 <goal>prepare-agent</goal>
347 <id>default-report</id>
355 <groupId>org.codehaus.mojo</groupId>
356 <artifactId>license-maven-plugin</artifactId>
357 <version>1.15</version>
359 <inceptionYear>2017</inceptionYear>
360 <projectName>ONAP - SO</projectName>
361 <licenseName>apache_v2</licenseName>
362 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
363 <emptyLineAfterHeader>true</emptyLineAfterHeader>
364 <trimHeaderLine>true</trimHeaderLine>
365 <processStartTag>============LICENSE_START=======================================================</processStartTag>
366 <sectionDelimiter>================================================================================</sectionDelimiter>
367 <processEndTag>============LICENSE_END=========================================================</processEndTag>
369 <include>**/*.java</include>
370 <include>**/*.groovy</include>
373 <exclude>**/com/att/**</exclude>
378 <id>verify-headers</id>
380 <goal>check-file-header</goal>
383 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
384 <failOnMissingHeader>true</failOnMissingHeader>
393 <groupId>io.fabric8</groupId>
394 <artifactId>fabric8-maven-plugin</artifactId>
395 <version>3.5.33</version>
397 <skip>${docker.skip}</skip>
398 <skipBuild>${docker.skip.build}</skipBuild>
399 <skipPush>${docker.skip.push}</skipPush>
400 <dockerHost>${docker.newHost}</dockerHost> <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY
401 environment variable -->
402 <certPath>${docker.host.cert.path}</certPath><!-- Add -Ddocker.host.cert.pat="path
403 to your local certs directory" to maven build command -->
404 <pushRegistry>${dockerPushRepo}</pushRegistry> <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username,
406 <pullRegistry>${dockerPullRepo}</pullRegistry> <!-- If docker repo is not public. Update .m2/settings.xml Add server id
407 settings.dockerRepository, username, and password -->
410 <alias>service</alias>
411 <name>${artifactId}:${project.version}</name>
413 <dockerFileDir>${project.build.directory}</dockerFileDir>
429 <groupId>org.apache.maven.plugins</groupId>
430 <artifactId>maven-surefire-plugin</artifactId>
431 <version>2.20</version>
433 <systemPropertyVariables>
434 <so.log.level>DEBUG</so.log.level>
435 </systemPropertyVariables>
436 <rerunFailingTestsCount>2</rerunFailingTestsCount>
440 <groupId>org.apache.maven.plugins</groupId>
441 <artifactId>maven-failsafe-plugin</artifactId>
442 <version>2.20</version>
445 <systemPropertyVariables>
446 <so.log.level>DEBUG</so.log.level>
447 </systemPropertyVariables>
448 <rerunFailingTestsCount>2</rerunFailingTestsCount>
452 <groupId>org.apache.maven.plugins</groupId>
453 <artifactId>maven-dependency-plugin</artifactId>
456 <id>extract-docker-file</id>
463 <groupId>org.onap.so</groupId>
464 <artifactId>deployment-configs</artifactId>
465 <version>${project.version}</version>
466 <outputDirectory>${project.build.directory}</outputDirectory>
467 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
468 <excludes>Kubernetes</excludes>
476 <groupId>org.apache.maven.plugins</groupId>
477 <artifactId>maven-jar-plugin</artifactId>
478 <version>3.0.2</version>
483 <goal>test-jar</goal>
491 <phase>package</phase>
496 <classifier>${originalClassifier}</classifier>
498 <include>**</include>
505 <groupId>org.springframework.boot</groupId>
506 <artifactId>spring-boot-maven-plugin</artifactId>
507 <version>${springboot.version}</version>
512 <goal>build-info</goal>
520 <!-- *********************************************************************************************************** -->
521 <!-- Dependencies -->
524 <groupId>com.fasterxml.jackson.core</groupId>
525 <artifactId>jackson-core</artifactId>
528 <groupId>com.fasterxml.jackson.module</groupId>
529 <artifactId>jackson-module-jaxb-annotations</artifactId>
532 <groupId>com.fasterxml.jackson.core</groupId>
533 <artifactId>jackson-databind</artifactId>
536 <groupId>com.fasterxml.jackson.core</groupId>
537 <artifactId>jackson-annotations</artifactId>
540 <groupId>com.fasterxml.jackson.jaxrs</groupId>
541 <artifactId>jackson-jaxrs-base</artifactId>
544 <groupId>com.fasterxml.jackson.jaxrs</groupId>
545 <artifactId>jackson-jaxrs-json-provider</artifactId>
548 <groupId>javax.ws.rs</groupId>
549 <artifactId>javax.ws.rs-api</artifactId>
550 <version>${jax.ws.rs}</version>
553 <groupId>javax.annotation</groupId>
554 <artifactId>javax.annotation-api</artifactId>
555 <version>1.3.1</version>
558 <groupId>javax.inject</groupId>
559 <artifactId>javax.inject</artifactId>
563 <groupId>org.mockito</groupId>
564 <artifactId>mockito-core</artifactId>
567 <groupId>org.hamcrest</groupId>
568 <artifactId>hamcrest-core</artifactId>
571 <groupId>org.hamcrest</groupId>
572 <artifactId>hamcrest-library</artifactId>
575 <groupId>junit</groupId>
576 <artifactId>junit</artifactId>
580 <groupId>xmlunit</groupId>
581 <artifactId>xmlunit</artifactId>
582 <version>1.6</version>
586 <groupId>com.github.tomakehurst</groupId>
587 <artifactId>wiremock-standalone</artifactId>
588 <version>2.13.0</version>
592 <groupId>org.mortbay.jetty</groupId>
593 <artifactId>jetty</artifactId>
596 <groupId>com.google.guava</groupId>
597 <artifactId>guava</artifactId>
600 <groupId>com.fasterxml.jackson.core</groupId>
601 <artifactId>jackson-core</artifactId>
604 <groupId>com.fasterxml.jackson.core</groupId>
605 <artifactId>jackson-annotations</artifactId>
608 <groupId>com.fasterxml.jackson.core</groupId>
609 <artifactId>jackson-databind</artifactId>
612 <groupId>org.apache.httpcomponents</groupId>
613 <artifactId>httpclient</artifactId>
616 <groupId>org.skyscreamer</groupId>
617 <artifactId>jsonassert</artifactId>
620 <groupId>xmlunit</groupId>
621 <artifactId>xmlunit</artifactId>
624 <groupId>com.jayway.jsonpath</groupId>
625 <artifactId>json-path</artifactId>
628 <groupId>net.sf.jopt-simple</groupId>
629 <artifactId>jopt-simple</artifactId>
634 <groupId>com.openpojo</groupId>
635 <artifactId>openpojo</artifactId>
636 <version>0.8.10</version>
639 <groupId>com.shazam</groupId>
640 <artifactId>shazamcrest</artifactId>
641 <version>0.11</version>
645 <groupId>com.google.guava</groupId>
646 <artifactId>guava</artifactId>
649 <groupId>org.apache.commons</groupId>
650 <artifactId>commons-lang3</artifactId>
655 <groupId>org.assertj</groupId>
656 <artifactId>assertj-core</artifactId>
657 <version>3.11.1</version>
661 <groupId>com.googlecode.junit-toolbox</groupId>
662 <artifactId>junit-toolbox</artifactId>
663 <version>2.4</version>
666 <dependencyManagement>
668 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
669 <!-- force use of version 4.5 everywhere in transient deps, aligned on
670 WildFly 10 version -->
672 <groupId>org.apache.httpcomponents</groupId>
673 <artifactId>httpcore</artifactId>
674 <version>4.4.4</version>
675 <scope>compile</scope>
678 <groupId>commons-codec</groupId>
679 <artifactId>commons-codec</artifactId>
680 <version>1.10</version>
681 <scope>compile</scope>
684 <groupId>commons-io</groupId>
685 <artifactId>commons-io</artifactId>
686 <version>2.5</version>
687 <scope>compile</scope>
690 <groupId>com.sun.xml.fastinfoset</groupId>
691 <artifactId>FastInfoset</artifactId>
692 <version>1.2.13</version>
693 <scope>compile</scope>
696 <groupId>org.springframework.boot</groupId>
697 <artifactId>spring-boot-dependencies</artifactId>
698 <version>${springboot.version}</version>
700 <scope>import</scope>
703 <groupId>org.yaml</groupId>
704 <artifactId>snakeyaml</artifactId>
705 <version>1.23</version>
708 <groupId>javax.interceptor</groupId>
709 <artifactId>javax.interceptor-api</artifactId>
710 <version>1.2.2</version>
713 <groupId>org.springframework.boot</groupId>
714 <artifactId>spring-boot-starter-test</artifactId>
715 <version>${springboot.version}</version>
718 <groupId>com.vaadin.external.google</groupId>
719 <artifactId>android-json</artifactId>
724 <groupId>net.javacrumbs.shedlock</groupId>
725 <artifactId>shedlock-spring</artifactId>
726 <version>0.18.2</version>
729 <groupId>net.javacrumbs.shedlock</groupId>
730 <artifactId>shedlock-provider-jdbc-template</artifactId>
731 <version>0.18.2</version>
734 <groupId>org.flywaydb</groupId>
735 <artifactId>flyway-core</artifactId>
736 <version>5.1.4</version>
739 <groupId>org.json</groupId>
740 <artifactId>json</artifactId>
741 <version>20140107</version>
744 <groupId>org.yaml</groupId>
745 <artifactId>snakeyaml</artifactId>
746 <version>1.19</version>
749 </dependencyManagement>
752 <id>docker-image-build</id>
754 <docker.skip>false</docker.skip>
755 <docker.skip.build>false</docker.skip.build>
756 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
760 <id>docker-image-build-push</id>
762 <docker.skip>false</docker.skip>
763 <docker.skip.build>false</docker.skip.build>
764 <docker.skip.push>false</docker.skip.push>
765 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
772 <name>m2e.version</name>
776 <originalClassifier/>