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.3.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>
28 <!-- Jenkins should invoke mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
29 <build.number>0</build.number>
30 <epsdk.version>2.3.1</epsdk.version>
31 <springframework.version>4.2.3.RELEASE</springframework.version>
32 <hibernate.version>4.3.11.Final</hibernate.version>
33 <fasterxml.version>2.8.10</fasterxml.version>
34 <eelf.version>1.0.0</eelf.version>
35 <!-- NOT provided by OParent, unfortunately -->
36 <jacocoVersion>0.7.6.201602180812</jacocoVersion>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38 <encoding>UTF-8</encoding>
39 <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions>
40 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
41 <enforcer.skip>false</enforcer.skip>
44 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
45 files among developers. Use values (not properties) so oparent can be resolved. -->
48 <id>onap-releases</id>
49 <name>ONAP - Release Repository</name>
50 <url>https://nexus.onap.org/content/repositories/releases</url>
54 <name>ONAP - Staging Repository</name>
55 <url>https://nexus.onap.org/content/repositories/staging</url>
58 <id>onap-snapshots</id>
59 <name>ONAP - Snapshot Repository</name>
60 <url>https://nexus.onap.org/content/repositories/snapshots</url>
64 <url>https://nexus.onap.org/content/groups/public</url>
68 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
69 files among all developers. -->
72 <id>onap-plugin-release</id>
73 <url>https://nexus.onap.org/content/repositories/releases/</url>
76 <id>onap-plugin-staging</id>
77 <url>https://nexus.onap.org/content/repositories/staging/</url>
80 <id>onap-plugin-snapshots</id>
81 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
86 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
88 <id>doclint-java8-disable</id>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-javadoc-plugin</artifactId>
97 <version>3.0.0-M1</version>
99 <additionalparam>-Xdoclint:none</additionalparam>
110 <!-- Silence Eclipse m2e warnings -->
112 <groupId>org.eclipse.m2e</groupId>
113 <artifactId>lifecycle-mapping</artifactId>
114 <version>1.0.0</version>
116 <lifecycleMappingMetadata>
119 <pluginExecutionFilter>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-checkstyle-plugin</artifactId>
122 <versionRange>2.17,)</versionRange>
126 </pluginExecutionFilter>
132 </lifecycleMappingMetadata>
136 <artifactId>maven-compiler-plugin</artifactId>
137 <version>3.1</version>
143 <!-- maven-site-plugin config is provided by OParent -->
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-site-plugin</artifactId>
147 <version>3.6</version>
150 <groupId>org.apache.maven.wagon</groupId>
151 <artifactId>wagon-webdav-jackrabbit</artifactId>
152 <version>2.10</version>
161 <groupId>org.jacoco</groupId>
162 <artifactId>jacoco-maven-plugin</artifactId>
163 <!-- Override OParent version -->
164 <version>${jacocoVersion}</version>
166 <!-- disable jacoco executions from oparent -->
168 <id>pre-unit-test</id>
172 <id>post-unit-test</id>
176 <id>pre-integration-test</id>
180 <id>post-integration-test</id>
183 <!-- Order matters -->
185 <id>portal-prepare-agent</id>
187 <goal>prepare-agent</goal>
190 <destFile>${sonar.jacoco.reportPath}</destFile>
193 <!-- offline instrumentation for PowerMock -->
195 <id>portal-offline-instrument</id>
197 <goal>instrument</goal>
201 <id>portal-restore-instrumented-classes</id>
204 <goal>restore-instrumented-classes</goal>
208 <id>portal-post-unit-test</id>
214 <dataFile>${sonar.jacoco.reportPath}</dataFile>
215 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
222 <groupId>org.apache.maven.plugins</groupId>
223 <artifactId>maven-surefire-plugin</artifactId>
225 <systemPropertyVariables>
226 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
227 </systemPropertyVariables>
230 <!-- No deployment step for this project -->
232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-deploy-plugin</artifactId>
234 <!-- version managed by oparent <version>2.8</version> -->
240 <groupId>org.codehaus.mojo</groupId>
241 <artifactId>sonar-maven-plugin</artifactId>
242 <version>3.0.2</version>
247 <distributionManagement>
248 <!-- oparent.version defines snapshot and release repositories -->
251 <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
253 </distributionManagement>