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.0</version>
10 <groupId>org.onap.so</groupId>
11 <artifactId>so</artifactId>
12 <packaging>pom</packaging>
13 <version>1.3.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>packages</module>
35 <project.mso.base.folder>.</project.mso.base.folder>
36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
38 <sonar.language>java</sonar.language>
39 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
40 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
41 <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
42 <!--sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath -->
43 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
44 <sonar.projectVersion>${project.version}</sonar.projectVersion>
45 <sonar.cpd.exclusions>**/*</sonar.cpd.exclusions>
46 <jacoco.version>0.7.5.201505241946</jacoco.version>
47 <org.apache.maven.user-settings/>
48 <openstack.version>1.2.2</openstack.version>
49 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
50 <springboot.version>1.5.13.RELEASE</springboot.version>
51 <originalClassifier>original</originalClassifier>
52 <docker.skip>true</docker.skip>
53 <docker.skip.build>true</docker.skip.build>
54 <docker.skip.push>true</docker.skip.push>
55 <docker.buildArg.project_version>${project.version}</docker.buildArg.project_version>
56 <docker.buildArg.artifact_id>${project.artifactId}</docker.buildArg.artifact_id>
57 <docker.buildArg.docker_repository>${dockerPullRepo}</docker.buildArg.docker_repository>
58 <enforcer.skip>true</enforcer.skip>
59 <nexusproxy>https://nexus.onap.org</nexusproxy>
60 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
61 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
62 <publicNexusPath>content/repositories/public/</publicNexusPath>
63 <siteNexusPath>content/sites/site/org/onap/so/${project.version}/</siteNexusPath>
64 <cxf.version>3.2.5</cxf.version>
65 <jax.ws.rs>2.1</jax.ws.rs>
67 <distributionManagement>
69 <id>ecomp-releases</id>
70 <url>${nexusproxy}/${releaseNexusPath}</url>
73 <id>ecomp-snapshots</id>
74 <url>${nexusproxy}/${snapshotNexusPath}</url>
78 <url>dav:${nexusproxy}${siteNexusPath}</url>
80 </distributionManagement>
84 <groupId>org.apache.maven.plugins</groupId>
85 <artifactId>maven-javadoc-plugin</artifactId>
86 <version>2.10.4</version>
88 <failOnError>false</failOnError>
89 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
91 <groupId>org.umlgraph</groupId>
92 <artifactId>umlgraph</artifactId>
93 <version>5.6</version>
95 <additionalparam>-views</additionalparam>
96 <useStandardDocletOptions>true</useStandardDocletOptions>
101 <!-- configure build -->
102 <!-- *********************************************************************************************************** -->
103 <!-- Plugins and repositories -->
107 <url>http://repo1.maven.org/maven2</url>
111 <url>http://maven.restlet.com</url>
114 <id>ecomp-public</id>
115 <url>${nexusproxy}/${publicNexusPath}</url>
117 <enabled>false</enabled>
121 <id>ecomp-release</id>
122 <url>${nexusproxy}/${releaseNexusPath}</url>
124 <enabled>false</enabled>
128 <id>ecomp-snapshots</id>
129 <url>${nexusproxy}/${snapshotNexusPath}</url>
131 <enabled>false</enabled>
134 </pluginRepositories>
137 <id>ecomp-public</id>
138 <url>https://nexus.onap.org/content/repositories/public/</url>
140 <enabled>false</enabled>
144 <id>ecomp-releases</id>
145 <url>https://nexus.onap.org/content/repositories/releases/</url>
147 <enabled>false</enabled>
151 <id>ecomp-snapshots</id>
152 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
154 <enabled>false</enabled>
159 <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
162 <id>camunda-public</id>
163 <url>https://app.camunda.com/nexus/content/groups/public</url>
166 <!-- TODO: remove from ONAP environemnt -->
167 <id>onap-releases</id>
168 <url>https://nexus.onap.org/content/repositories/releases/</url>
170 <enabled>false</enabled>
174 <!-- TODO: remove from ONAP environemnt -->
175 <id>onap-snapshots</id>
176 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
178 <enabled>false</enabled>
182 <!-- *********************************************************************************************************** -->
187 <directory>src/main/resources</directory>
188 <filtering>true</filtering>
191 <directory>target/generated-sources/license</directory>
193 <include>third-party-licenses.txt</include>
197 <directory>target/generated-resources/licenses</directory>
199 <include>*.*</include>
201 <targetPath>third-party-licenses</targetPath>
206 <groupId>org.sonatype.plugins</groupId>
207 <artifactId>nexus-staging-maven-plugin</artifactId>
208 <version>1.6.7</version>
209 <extensions>true</extensions>
211 <nexusUrl>${nexusproxy}</nexusUrl>
212 <stagingProfileId>176c31dfe190a</stagingProfileId>
213 <serverId>ecomp-staging</serverId>
217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-deploy-plugin</artifactId>
219 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-compiler-plugin</artifactId>
228 <version>3.6.1</version>
231 <compilerArgument>-Xlint</compilerArgument>
232 <verbose>true</verbose>
233 <showDeprecation>true</showDeprecation>
234 <showWarnings>true</showWarnings>
238 <arg>-parameters</arg>
243 <groupId>org.apache.maven.plugins</groupId>
244 <artifactId>maven-ejb-plugin</artifactId>
245 <version>2.2.1</version>
247 <ejbVersion>3.0</ejbVersion>
250 <addClasspath>true</addClasspath>
256 <groupId>org.apache.maven.plugins</groupId>
257 <artifactId>maven-checkstyle-plugin</artifactId>
258 <version>2.17</version>
261 <includes>**/org/openecomp/**/*.java</includes>
262 <configLocation>/google_checks.xml</configLocation>
266 <groupId>org.codehaus.mojo</groupId>
267 <artifactId>findbugs-maven-plugin</artifactId>
268 <version>2.5.2</version>
270 <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
271 <nested>true</nested>
272 <findbugsXmlOutput>true</findbugsXmlOutput>
273 <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
274 <xmlOutput>true</xmlOutput>
278 <groupId>org.codehaus.mojo</groupId>
279 <artifactId>sonar-maven-plugin</artifactId>
280 <version>5.1</version>
283 <artifactId>maven-scm-plugin</artifactId>
284 <version>1.8.1</version>
286 <tag>${project.artifactId}-${project.version}</tag>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-javadoc-plugin</artifactId>
292 <version>2.9</version>
295 <groupId>org.apache.maven.plugins</groupId>
296 <artifactId>maven-site-plugin</artifactId>
297 <version>3.6</version>
300 <groupId>org.apache.maven.wagon</groupId>
301 <artifactId>wagon-webdav-jackrabbit</artifactId>
302 <version>2.10</version>
307 <groupId>org.codehaus.mojo</groupId>
308 <artifactId>cobertura-maven-plugin</artifactId>
309 <version>2.5.2</version>
317 <groupId>org.codehaus.mojo</groupId>
318 <artifactId>versions-maven-plugin</artifactId>
319 <version>1.3.1</version>
323 <groupId>com.fortify.ps.maven.plugin</groupId>
324 <artifactId>sca-maven-plugin</artifactId>
325 <version>4.20</version>
327 <buildId>mso-${project.version}</buildId>
332 <groupId>org.jacoco</groupId>
333 <artifactId>jacoco-maven-plugin</artifactId>
334 <version>${jacoco.version}</version>
337 <id>default-prepare-agent</id>
339 <goal>prepare-agent</goal>
343 <id>default-report</id>
351 <groupId>org.codehaus.mojo</groupId>
352 <artifactId>license-maven-plugin</artifactId>
353 <version>1.15</version>
355 <inceptionYear>2017</inceptionYear>
356 <projectName>ONAP - SO</projectName>
357 <licenseName>apache_v2</licenseName>
358 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
359 <emptyLineAfterHeader>true</emptyLineAfterHeader>
360 <trimHeaderLine>true</trimHeaderLine>
361 <processStartTag>============LICENSE_START=======================================================</processStartTag>
362 <sectionDelimiter>================================================================================</sectionDelimiter>
363 <processEndTag>============LICENSE_END=========================================================</processEndTag>
365 <include>**/*.java</include>
366 <include>**/*.groovy</include>
369 <exclude>**/com/att/**</exclude>
374 <id>verify-headers</id>
376 <goal>check-file-header</goal>
379 <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
380 <failOnMissingHeader>true</failOnMissingHeader>
389 <groupId>io.fabric8</groupId>
390 <artifactId>fabric8-maven-plugin</artifactId>
391 <version>3.5.33</version>
393 <skip>${docker.skip}</skip>
394 <skipBuild>${docker.skip.build}</skipBuild>
395 <skipPush>${docker.skip.push}</skipPush>
396 <dockerHost>${docker.newHost}</dockerHost> <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY
397 environment variable -->
398 <certPath>${docker.host.cert.path}</certPath><!-- Add -Ddocker.host.cert.pat="path
399 to your local certs directory" to maven build command -->
400 <pushRegistry>${dockerPushRepo}</pushRegistry> <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username,
402 <pullRegistry>${dockerPullRepo}</pullRegistry> <!-- If docker repo is not public. Update .m2/settings.xml Add server id
403 settings.dockerRepository, username, and password -->
406 <alias>service</alias>
407 <name>${artifactId}:${project.version}</name>
409 <dockerFileDir>${project.build.directory}</dockerFileDir>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-surefire-plugin</artifactId>
427 <version>2.20</version>
429 <systemPropertyVariables>
430 <so.log.level>${so.log.level}</so.log.level>
431 </systemPropertyVariables>
432 <rerunFailingTestsCount>2</rerunFailingTestsCount>
436 <groupId>org.apache.maven.plugins</groupId>
437 <artifactId>maven-failsafe-plugin</artifactId>
438 <version>2.20</version>
441 <systemPropertyVariables>
442 <so.log.level>${so.log.level}</so.log.level>
443 </systemPropertyVariables>
444 <rerunFailingTestsCount>2</rerunFailingTestsCount>
448 <groupId>org.apache.maven.plugins</groupId>
449 <artifactId>maven-dependency-plugin</artifactId>
452 <id>extract-docker-file</id>
459 <groupId>org.onap.so</groupId>
460 <artifactId>deployment-configs</artifactId>
461 <version>${project.version}</version>
462 <outputDirectory>${project.build.directory}</outputDirectory>
463 <includes>*,scripts/**,certs/**, logger/*.xml</includes>
464 <excludes>Kubernetes</excludes>
472 <groupId>org.apache.maven.plugins</groupId>
473 <artifactId>maven-jar-plugin</artifactId>
474 <version>3.0.2</version>
479 <goal>test-jar</goal>
487 <phase>package</phase>
492 <classifier>${originalClassifier}</classifier>
494 <include>**</include>
503 <!-- *********************************************************************************************************** -->
504 <!-- Dependencies -->
507 <groupId>com.fasterxml.jackson.core</groupId>
508 <artifactId>jackson-core</artifactId>
509 <version>2.8.7</version>
512 <groupId>com.fasterxml.jackson.module</groupId>
513 <artifactId>jackson-module-jaxb-annotations</artifactId>
514 <version>2.4.0</version>
517 <groupId>com.fasterxml.jackson.core</groupId>
518 <artifactId>jackson-databind</artifactId>
519 <version>2.8.7</version>
522 <groupId>com.fasterxml.jackson.core</groupId>
523 <artifactId>jackson-annotations</artifactId>
524 <version>2.8.7</version>
527 <groupId>com.fasterxml.jackson.jaxrs</groupId>
528 <artifactId>jackson-jaxrs-base</artifactId>
529 <version>2.9.2</version>
532 <groupId>com.fasterxml.jackson.jaxrs</groupId>
533 <artifactId>jackson-jaxrs-json-provider</artifactId>
534 <version>2.9.2</version>
537 <groupId>javax.ws.rs</groupId>
538 <artifactId>javax.ws.rs-api</artifactId>
539 <version>${jax.ws.rs}</version>
542 <groupId>javax.annotation</groupId>
543 <artifactId>javax.annotation-api</artifactId>
544 <version>1.3.1</version>
547 <groupId>javax.inject</groupId>
548 <artifactId>javax.inject</artifactId>
552 <groupId>org.hamcrest</groupId>
553 <artifactId>hamcrest-core</artifactId>
554 <version>1.3</version>
557 <groupId>org.hamcrest</groupId>
558 <artifactId>hamcrest-all</artifactId>
559 <version>1.3</version>
562 <groupId>org.mockito</groupId>
563 <artifactId>mockito-all</artifactId>
564 <version>1.10.19</version>
568 <groupId>org.powermock</groupId>
569 <artifactId>powermock-api-mockito</artifactId>
570 <version>1.6.2</version>
574 <groupId>org.powermock</groupId>
575 <artifactId>powermock-module-junit4</artifactId>
576 <version>1.6.2</version>
580 <groupId>junit</groupId>
581 <artifactId>junit</artifactId>
582 <version>4.12</version>
586 <groupId>xmlunit</groupId>
587 <artifactId>xmlunit</artifactId>
588 <version>1.6</version>
592 <groupId>com.github.tomakehurst</groupId>
593 <artifactId>wiremock-standalone</artifactId>
594 <version>2.13.0</version>
598 <groupId>org.mortbay.jetty</groupId>
599 <artifactId>jetty</artifactId>
602 <groupId>com.google.guava</groupId>
603 <artifactId>guava</artifactId>
606 <groupId>com.fasterxml.jackson.core</groupId>
607 <artifactId>jackson-core</artifactId>
610 <groupId>com.fasterxml.jackson.core</groupId>
611 <artifactId>jackson-annotations</artifactId>
614 <groupId>com.fasterxml.jackson.core</groupId>
615 <artifactId>jackson-databind</artifactId>
618 <groupId>org.apache.httpcomponents</groupId>
619 <artifactId>httpclient</artifactId>
622 <groupId>org.skyscreamer</groupId>
623 <artifactId>jsonassert</artifactId>
626 <groupId>xmlunit</groupId>
627 <artifactId>xmlunit</artifactId>
630 <groupId>com.jayway.jsonpath</groupId>
631 <artifactId>json-path</artifactId>
634 <groupId>net.sf.jopt-simple</groupId>
635 <artifactId>jopt-simple</artifactId>
640 <groupId>com.openpojo</groupId>
641 <artifactId>openpojo</artifactId>
642 <version>0.8.10</version>
645 <groupId>com.shazam</groupId>
646 <artifactId>shazamcrest</artifactId>
647 <version>0.11</version>
651 <groupId>com.google.guava</groupId>
652 <artifactId>guava</artifactId>
655 <groupId>org.apache.commons</groupId>
656 <artifactId>commons-lang3</artifactId>
661 <groupId>org.assertj</groupId>
662 <artifactId>assertj-core</artifactId>
663 <version>3.9.0</version>
667 <groupId>com.googlecode.junit-toolbox</groupId>
668 <artifactId>junit-toolbox</artifactId>
669 <version>2.4</version>
672 <dependencyManagement>
674 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
675 <!-- force use of version 4.5 everywhere in transient deps, aligned on
676 WildFly 10 version -->
678 <groupId>org.apache.httpcomponents</groupId>
679 <artifactId>httpclient</artifactId>
680 <version>4.5.5</version>
681 <scope>compile</scope>
684 <groupId>org.apache.httpcomponents</groupId>
685 <artifactId>httpcore</artifactId>
686 <version>4.4.4</version>
687 <scope>compile</scope>
690 <groupId>commons-codec</groupId>
691 <artifactId>commons-codec</artifactId>
692 <version>1.10</version>
693 <scope>compile</scope>
696 <groupId>commons-io</groupId>
697 <artifactId>commons-io</artifactId>
698 <version>2.5</version>
699 <scope>compile</scope>
702 <groupId>log4j</groupId>
703 <artifactId>log4j</artifactId>
704 <version>1.2.17</version>
705 <scope>compile</scope>
708 <groupId>org.slf4j</groupId>
709 <artifactId>slf4j-api</artifactId>
710 <version>1.7.15</version>
711 <scope>compile</scope>
714 <groupId>com.sun.xml.fastinfoset</groupId>
715 <artifactId>FastInfoset</artifactId>
716 <version>1.2.13</version>
717 <scope>compile</scope>
720 <groupId>org.springframework.boot</groupId>
721 <artifactId>spring-boot-dependencies</artifactId>
722 <version>${springboot.version}</version>
724 <scope>import</scope>
727 <groupId>org.yaml</groupId>
728 <artifactId>snakeyaml</artifactId>
729 <version>1.15</version>
732 <groupId>org.springframework.boot</groupId>
733 <artifactId>spring-boot-starter-test</artifactId>
734 <version>${springboot.version}</version>
737 <groupId>com.vaadin.external.google</groupId>
738 <artifactId>android-json</artifactId>
743 <groupId>net.javacrumbs.shedlock</groupId>
744 <artifactId>shedlock-spring</artifactId>
745 <version>0.18.2</version>
748 <groupId>net.javacrumbs.shedlock</groupId>
749 <artifactId>shedlock-provider-jdbc-template</artifactId>
750 <version>0.18.2</version>
753 <groupId>net.javacrumbs.shedlock</groupId>
754 <artifactId>shedlock-provider-jdbc-template</artifactId>
755 <version>0.18.2</version>
758 <groupId>org.flywaydb</groupId>
759 <artifactId>flyway-core</artifactId>
760 <version>4.2.0</version>
763 </dependencyManagement>
766 <id>docker-image-build</id>
768 <docker.skip>false</docker.skip>
769 <docker.skip.build>false</docker.skip.build>
770 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
774 <id>docker-image-build-push</id>
776 <docker.skip>false</docker.skip>
777 <docker.skip.build>false</docker.skip.build>
778 <docker.skip.push>false</docker.skip.push>
779 <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation>
786 <name>m2e.version</name>
790 <originalClassifier/>