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>2.0.0</version>
13 <groupId>org.onap.portal</groupId>
14 <artifactId>onap-portal-parent</artifactId>
15 <version>3.4.0</version>
17 <packaging>pom</packaging>
21 <!-- This parent POM names only ONAP projects -->
22 <module>ecomp-portal-BE-common</module>
23 <module>ecomp-portal-BE-os</module>
24 <module>portal-FE-os</module>
25 <module>ecomp-portal-widget-ms</module>
29 <!-- Jenkins should invoke mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
30 <build.number>0</build.number>
31 <epsdk.version>3.4.0-SNAPSHOT</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.8.1</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>
43 <sonar.scm.exclusions.disabled>true</sonar.scm.exclusions.disabled>
44 <enforcerToDisableSnapshot>false</enforcerToDisableSnapshot>
47 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
48 files among developers. Use values (not properties) so oparent can be resolved. -->
51 <id>onap-releases</id>
52 <name>ONAP - Release Repository</name>
53 <url>https://nexus.onap.org/content/repositories/releases</url>
57 <name>ONAP - Staging Repository</name>
58 <url>https://nexus.onap.org/content/repositories/staging</url>
61 <id>onap-snapshots</id>
62 <name>ONAP - Snapshot Repository</name>
63 <url>https://nexus.onap.org/content/repositories/snapshots</url>
67 <url>https://nexus.onap.org/content/groups/public</url>
71 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
72 files among all developers. -->
75 <id>onap-plugin-release</id>
76 <url>https://nexus.onap.org/content/repositories/releases/</url>
79 <id>onap-plugin-staging</id>
80 <url>https://nexus.onap.org/content/repositories/staging/</url>
83 <id>onap-plugin-snapshots</id>
84 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
89 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
91 <id>doclint-java8-disable</id>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-javadoc-plugin</artifactId>
100 <version>3.0.0-M1</version>
102 <additionalparam>-Xdoclint:none</additionalparam>
113 <!-- Silence Eclipse m2e warnings -->
115 <groupId>org.eclipse.m2e</groupId>
116 <artifactId>lifecycle-mapping</artifactId>
117 <version>1.0.0</version>
119 <lifecycleMappingMetadata>
122 <pluginExecutionFilter>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-checkstyle-plugin</artifactId>
125 <versionRange>2.17,)</versionRange>
129 </pluginExecutionFilter>
135 </lifecycleMappingMetadata>
139 <artifactId>maven-compiler-plugin</artifactId>
140 <version>3.1</version>
146 <!-- maven-site-plugin config is provided by OParent -->
148 <groupId>org.apache.maven.plugins</groupId>
149 <artifactId>maven-site-plugin</artifactId>
150 <version>3.6</version>
153 <groupId>org.apache.maven.wagon</groupId>
154 <artifactId>wagon-webdav-jackrabbit</artifactId>
155 <version>2.10</version>
164 <groupId>org.jacoco</groupId>
165 <artifactId>jacoco-maven-plugin</artifactId>
166 <!-- Override OParent version -->
167 <version>${jacocoVersion}</version>
169 <!-- disable jacoco executions from oparent -->
171 <id>pre-unit-test</id>
175 <id>post-unit-test</id>
179 <id>pre-integration-test</id>
183 <id>post-integration-test</id>
186 <!-- Order matters -->
188 <id>portal-prepare-agent</id>
190 <goal>prepare-agent</goal>
193 <destFile>${sonar.jacoco.reportPath}</destFile>
196 <!-- offline instrumentation for PowerMock -->
198 <id>portal-offline-instrument</id>
200 <goal>instrument</goal>
204 <id>portal-restore-instrumented-classes</id>
207 <goal>restore-instrumented-classes</goal>
211 <id>portal-post-unit-test</id>
217 <dataFile>${sonar.jacoco.reportPath}</dataFile>
218 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-surefire-plugin</artifactId>
228 <systemPropertyVariables>
229 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
230 </systemPropertyVariables>
233 <!-- No deployment step for this project -->
235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-deploy-plugin</artifactId>
237 <!-- version managed by oparent <version>2.8</version> -->
243 <groupId>org.codehaus.mojo</groupId>
244 <artifactId>sonar-maven-plugin</artifactId>
245 <version>3.0.2</version>
249 <artifactId>maven-checkstyle-plugin</artifactId>
250 <version>2.17</version>
253 <groupId>org.onap.oparent</groupId>
254 <artifactId>checkstyle</artifactId>
255 <version>2.0.0</version>
260 <id>onap-license</id>
264 <phase>process-sources</phase>
266 <configLocation>onap-checkstyle/check-license.xml</configLocation>
267 <includeResources>false</includeResources>
268 <includeTestSourceDirectory>true</includeTestSourceDirectory>
269 <includeTestResources>false</includeTestResources>
270 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
273 <consoleOutput>true</consoleOutput>
274 <failsOnViolation>false</failsOnViolation>
278 <id>onap-java-style</id>
284 <!-- Use Google Java Style Guide:
285 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
286 with minor changes -->
287 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
288 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
289 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
290 <includeResources>true</includeResources>
291 <includeTestSourceDirectory>true</includeTestSourceDirectory>
292 <includeTestResources>true</includeTestResources>
295 <consoleOutput>true</consoleOutput>
296 <failsOnViolation>false</failsOnViolation>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-enforcer-plugin</artifactId>
304 <version>3.0.0-M2</version>
307 <id>enforce-no-snapshots</id>
313 <requireReleaseVersion>
314 <message>No Snapshots Allowed!</message>
315 </requireReleaseVersion>
317 <fail>${enforcerToDisableSnapshot}</fail>
325 <distributionManagement>
326 <!-- oparent.version defines snapshot and release repositories -->
329 <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
331 </distributionManagement>