1 <?xml version="1.0" encoding="UTF-8"?>
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>
7 <groupId>org.onap.oparent</groupId>
8 <artifactId>oparent</artifactId>
9 <version>1.2.0</version>
13 <groupId>org.onap.portal</groupId>
14 <artifactId>onap-portal-parent</artifactId>
15 <version>2.6.0</version>
16 <packaging>pom</packaging>
20 <!-- This parent POM names only ONAP projects -->
21 <module>ecomp-portal-BE-common</module>
22 <module>ecomp-portal-BE-os</module>
23 <module>ecomp-portal-FE-os</module>
24 <module>ecomp-portal-widget-ms</module>
25 <module>portal-BE</module>
29 <!-- Jenkins should invoke mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
30 <build.number>0</build.number>
31 <epsdk.version>2.6.0</epsdk.version>
32 <springframework.version>4.3.24.RELEASE</springframework.version>
33 <springframework.security.version>4.2.13.RELEASE</springframework.security.version>
34 <hibernate.version>4.3.11.Final</hibernate.version>
35 <fasterxml.version>2.8.11.4</fasterxml.version>
36 <!-- NOT provided by OParent, unfortunately -->
37 <jacocoVersion>0.7.6.201602180812</jacocoVersion>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <encoding>UTF-8</encoding>
40 <!-- <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions> -->
41 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
42 <enforcer.skip>false</enforcer.skip>
45 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
46 files among developers. Use values (not properties) so oparent can be resolved. -->
49 <id>onap-releases</id>
50 <name>ONAP - Release Repository</name>
51 <url>https://nexus.onap.org/content/repositories/releases</url>
55 <name>ONAP - Staging Repository</name>
56 <url>https://nexus.onap.org/content/repositories/staging</url>
59 <id>onap-snapshots</id>
60 <name>ONAP - Snapshot Repository</name>
61 <url>https://nexus.onap.org/content/repositories/snapshots</url>
65 <url>https://nexus.onap.org/content/groups/public</url>
69 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
70 files among all developers. -->
73 <id>onap-plugin-release</id>
74 <url>https://nexus.onap.org/content/repositories/releases/</url>
77 <id>onap-plugin-staging</id>
78 <url>https://nexus.onap.org/content/repositories/staging/</url>
81 <id>onap-plugin-snapshots</id>
82 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
87 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
89 <id>doclint-java8-disable</id>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-javadoc-plugin</artifactId>
98 <version>3.0.0-M1</version>
100 <additionalparam>-Xdoclint:none</additionalparam>
111 <!-- Silence Eclipse m2e warnings -->
113 <groupId>org.eclipse.m2e</groupId>
114 <artifactId>lifecycle-mapping</artifactId>
115 <version>1.0.0</version>
117 <lifecycleMappingMetadata>
120 <pluginExecutionFilter>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-checkstyle-plugin</artifactId>
123 <versionRange>2.17,)</versionRange>
127 </pluginExecutionFilter>
133 </lifecycleMappingMetadata>
137 <artifactId>maven-compiler-plugin</artifactId>
138 <version>3.1</version>
144 <!-- maven-site-plugin config is provided by OParent -->
146 <groupId>org.apache.maven.plugins</groupId>
147 <artifactId>maven-site-plugin</artifactId>
148 <version>3.6</version>
151 <groupId>org.apache.maven.wagon</groupId>
152 <artifactId>wagon-webdav-jackrabbit</artifactId>
153 <version>2.10</version>
162 <groupId>org.jacoco</groupId>
163 <artifactId>jacoco-maven-plugin</artifactId>
164 <!-- Override OParent version -->
165 <version>${jacocoVersion}</version>
167 <!-- disable jacoco executions from oparent -->
169 <id>pre-unit-test</id>
173 <id>post-unit-test</id>
177 <id>pre-integration-test</id>
181 <id>post-integration-test</id>
184 <!-- Order matters -->
186 <id>portal-prepare-agent</id>
188 <goal>prepare-agent</goal>
191 <destFile>${sonar.jacoco.reportPath}</destFile>
194 <!-- offline instrumentation for PowerMock -->
196 <id>portal-offline-instrument</id>
198 <goal>instrument</goal>
202 <id>portal-restore-instrumented-classes</id>
205 <goal>restore-instrumented-classes</goal>
209 <id>portal-post-unit-test</id>
215 <dataFile>${sonar.jacoco.reportPath}</dataFile>
216 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-surefire-plugin</artifactId>
226 <systemPropertyVariables>
227 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
228 </systemPropertyVariables>
231 <!-- No deployment step for this project -->
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-deploy-plugin</artifactId>
235 <!-- version managed by oparent <version>2.8</version> -->
241 <groupId>org.codehaus.mojo</groupId>
242 <artifactId>sonar-maven-plugin</artifactId>
243 <version>3.0.2</version>
248 <distributionManagement>
249 <!-- oparent.version defines snapshot and release repositories -->
252 <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
254 </distributionManagement>