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.2.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>
26 <module>portal-BE</module>
30 <!-- Jenkins should invoke mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
31 <build.number>0</build.number>
32 <epsdk.version>2.6.0</epsdk.version>
33 <springframework.version>4.3.24.RELEASE</springframework.version>
34 <springframework.security.version>4.2.13.RELEASE</springframework.security.version>
35 <hibernate.version>4.3.11.Final</hibernate.version>
36 <fasterxml.version>2.8.11.4</fasterxml.version>
37 <!-- NOT provided by OParent, unfortunately -->
38 <jacocoVersion>0.7.6.201602180812</jacocoVersion>
39 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40 <encoding>UTF-8</encoding>
41 <!-- <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions> -->
42 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
43 <enforcer.skip>false</enforcer.skip>
46 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
47 files among developers. Use values (not properties) so oparent can be resolved. -->
50 <id>onap-releases</id>
51 <name>ONAP - Release Repository</name>
52 <url>https://nexus.onap.org/content/repositories/releases</url>
56 <name>ONAP - Staging Repository</name>
57 <url>https://nexus.onap.org/content/repositories/staging</url>
60 <id>onap-snapshots</id>
61 <name>ONAP - Snapshot Repository</name>
62 <url>https://nexus.onap.org/content/repositories/snapshots</url>
66 <url>https://nexus.onap.org/content/groups/public</url>
70 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
71 files among all developers. -->
74 <id>onap-plugin-release</id>
75 <url>https://nexus.onap.org/content/repositories/releases/</url>
78 <id>onap-plugin-staging</id>
79 <url>https://nexus.onap.org/content/repositories/staging/</url>
82 <id>onap-plugin-snapshots</id>
83 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
88 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
90 <id>doclint-java8-disable</id>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-javadoc-plugin</artifactId>
99 <version>3.0.0-M1</version>
101 <additionalparam>-Xdoclint:none</additionalparam>
112 <!-- Silence Eclipse m2e warnings -->
114 <groupId>org.eclipse.m2e</groupId>
115 <artifactId>lifecycle-mapping</artifactId>
116 <version>1.0.0</version>
118 <lifecycleMappingMetadata>
121 <pluginExecutionFilter>
122 <groupId>org.apache.maven.plugins</groupId>
123 <artifactId>maven-checkstyle-plugin</artifactId>
124 <versionRange>2.17,)</versionRange>
128 </pluginExecutionFilter>
134 </lifecycleMappingMetadata>
138 <artifactId>maven-compiler-plugin</artifactId>
139 <version>3.1</version>
145 <!-- maven-site-plugin config is provided by OParent -->
147 <groupId>org.apache.maven.plugins</groupId>
148 <artifactId>maven-site-plugin</artifactId>
149 <version>3.6</version>
152 <groupId>org.apache.maven.wagon</groupId>
153 <artifactId>wagon-webdav-jackrabbit</artifactId>
154 <version>2.10</version>
163 <groupId>org.jacoco</groupId>
164 <artifactId>jacoco-maven-plugin</artifactId>
165 <!-- Override OParent version -->
166 <version>${jacocoVersion}</version>
168 <!-- disable jacoco executions from oparent -->
170 <id>pre-unit-test</id>
174 <id>post-unit-test</id>
178 <id>pre-integration-test</id>
182 <id>post-integration-test</id>
185 <!-- Order matters -->
187 <id>portal-prepare-agent</id>
189 <goal>prepare-agent</goal>
192 <destFile>${sonar.jacoco.reportPath}</destFile>
195 <!-- offline instrumentation for PowerMock -->
197 <id>portal-offline-instrument</id>
199 <goal>instrument</goal>
203 <id>portal-restore-instrumented-classes</id>
206 <goal>restore-instrumented-classes</goal>
210 <id>portal-post-unit-test</id>
216 <dataFile>${sonar.jacoco.reportPath}</dataFile>
217 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-surefire-plugin</artifactId>
227 <systemPropertyVariables>
228 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
229 </systemPropertyVariables>
232 <!-- No deployment step for this project -->
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-deploy-plugin</artifactId>
236 <!-- version managed by oparent <version>2.8</version> -->
242 <groupId>org.codehaus.mojo</groupId>
243 <artifactId>sonar-maven-plugin</artifactId>
244 <version>3.0.2</version>
248 <artifactId>maven-checkstyle-plugin</artifactId>
249 <version>2.17</version>
252 <groupId>org.onap.oparent</groupId>
253 <artifactId>checkstyle</artifactId>
254 <version>2.0.0</version>
259 <id>onap-license</id>
263 <phase>process-sources</phase>
265 <configLocation>onap-checkstyle/check-license.xml</configLocation>
266 <includeResources>false</includeResources>
267 <includeTestSourceDirectory>true</includeTestSourceDirectory>
268 <includeTestResources>false</includeTestResources>
269 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
272 <consoleOutput>true</consoleOutput>
273 <failsOnViolation>false</failsOnViolation>
277 <id>onap-java-style</id>
283 <!-- Use Google Java Style Guide:
284 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
285 with minor changes -->
286 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
287 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
288 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
289 <includeResources>true</includeResources>
290 <includeTestSourceDirectory>true</includeTestSourceDirectory>
291 <includeTestResources>true</includeTestResources>
294 <consoleOutput>true</consoleOutput>
295 <failsOnViolation>false</failsOnViolation>
304 <distributionManagement>
305 <!-- oparent.version defines snapshot and release repositories -->
308 <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
310 </distributionManagement>