blob: 7c484016b9e307b8cc2066e723db3b4072983cc1 [file] [log] [blame]
talasila0ff0e9f2017-02-15 17:36:47 -05001<?xml version="1.0" encoding="UTF-8"?>
Kishore Reddy, Gujja (kg811t)a59bc3e2018-09-25 13:59:56 -04002<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">
talasila0ff0e9f2017-02-15 17:36:47 -05004 <modelVersion>4.0.0</modelVersion>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -04005
Gary Wu3c795552017-10-02 11:20:39 -07006 <parent>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -04007 <groupId>org.onap.oparent</groupId>
8 <artifactId>oparent</artifactId>
Sudarshan Kumar8e83c252020-02-18 16:16:26 +05309 <version>2.0.0</version>
Kishore Reddy, Gujja (kg811t)a59bc3e2018-09-25 13:59:56 -040010 <relativePath />
Gary Wu3c795552017-10-02 11:20:39 -070011 </parent>
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -040012
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040013 <groupId>org.onap.portal</groupId>
14 <artifactId>onap-portal-parent</artifactId>
Sudarshan Kumar25b97732020-04-14 15:12:40 +053015 <version>3.3.0</version>
Sudarshan Kumar8e83c252020-02-18 16:16:26 +053016
talasila0ff0e9f2017-02-15 17:36:47 -050017 <packaging>pom</packaging>
Christopher Lott (cl778h)23634db2017-09-25 16:07:54 -040018 <name>portal</name>
st782sb54df0d2017-05-04 07:48:42 -040019
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040020 <modules>
21 <!-- This parent POM names only ONAP projects -->
st782sb54df0d2017-05-04 07:48:42 -040022 <module>ecomp-portal-BE-common</module>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040023 <module>ecomp-portal-BE-os</module>
Sudarshan Kumar8e83c252020-02-18 16:16:26 +053024 <module>portal-FE-os</module>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040025 <module>ecomp-portal-widget-ms</module>
talasila0ff0e9f2017-02-15 17:36:47 -050026 </modules>
Andrew Grimberge7a418d2017-03-29 10:26:41 -070027
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040028 <properties>
st782s21a87612018-01-30 17:29:36 -050029 <!-- Jenkins should invoke mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040030 <build.number>0</build.number>
jz385pb5a15c32020-04-23 16:35:12 +053031 <epsdk.version>3.3.0-SNAPSHOT</epsdk.version>
stattaa3a04c52019-08-23 16:49:45 -040032 <springframework.version>4.3.24.RELEASE</springframework.version>
33 <springframework.security.version>4.2.13.RELEASE</springframework.security.version>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040034 <hibernate.version>4.3.11.Final</hibernate.version>
Dominik Mizyn224909a2019-10-24 15:03:21 +020035 <fasterxml.version>2.8.11.4</fasterxml.version>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -040036 <!-- NOT provided by OParent, unfortunately -->
37 <jacocoVersion>0.7.6.201602180812</jacocoVersion>
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -040038 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040039 <encoding>UTF-8</encoding>
Manoop Talasilaf648b5e2019-07-31 16:50:20 -040040 <!-- <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions> -->
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -040041 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
st782s2e89d1f2018-05-03 16:15:58 -040042 <enforcer.skip>false</enforcer.skip>
jegadeeshbabu3c8e00942020-03-17 23:05:19 +053043 <sonar.scm.exclusions.disabled>true</sonar.scm.exclusions.disabled>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040044 </properties>
45
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -040046 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -040047 files among developers. Use values (not properties) so oparent can be resolved. -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040048 <repositories>
49 <repository>
50 <id>onap-releases</id>
51 <name>ONAP - Release Repository</name>
52 <url>https://nexus.onap.org/content/repositories/releases</url>
53 </repository>
54 <repository>
55 <id>onap-staging</id>
56 <name>ONAP - Staging Repository</name>
57 <url>https://nexus.onap.org/content/repositories/staging</url>
58 </repository>
59 <repository>
60 <id>onap-snapshots</id>
61 <name>ONAP - Snapshot Repository</name>
62 <url>https://nexus.onap.org/content/repositories/snapshots</url>
63 </repository>
64 <repository>
65 <id>onap-public</id>
66 <url>https://nexus.onap.org/content/groups/public</url>
67 </repository>
68 </repositories>
69
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -040070 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
71 files among all developers. -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040072 <pluginRepositories>
73 <pluginRepository>
74 <id>onap-plugin-release</id>
75 <url>https://nexus.onap.org/content/repositories/releases/</url>
76 </pluginRepository>
77 <pluginRepository>
78 <id>onap-plugin-staging</id>
79 <url>https://nexus.onap.org/content/repositories/staging/</url>
80 </pluginRepository>
81 <pluginRepository>
82 <id>onap-plugin-snapshots</id>
83 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
84 </pluginRepository>
85 </pluginRepositories>
86
87 <profiles>
88 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
89 <profile>
90 <id>doclint-java8-disable</id>
91 <activation>
92 <jdk>[1.8,)</jdk>
93 </activation>
94 <build>
95 <plugins>
96 <plugin>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-javadoc-plugin</artifactId>
99 <version>3.0.0-M1</version>
100 <configuration>
101 <additionalparam>-Xdoclint:none</additionalparam>
102 </configuration>
103 </plugin>
104 </plugins>
105 </build>
106 </profile>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400107 </profiles>
108
Christopher Lott (cl778h)d332e892017-07-12 16:26:42 -0400109 <build>
Christopher Lott (cl778h)23634db2017-09-25 16:07:54 -0400110 <pluginManagement>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400111 <plugins>
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -0400112 <!-- Silence Eclipse m2e warnings -->
113 <plugin>
114 <groupId>org.eclipse.m2e</groupId>
115 <artifactId>lifecycle-mapping</artifactId>
116 <version>1.0.0</version>
117 <configuration>
118 <lifecycleMappingMetadata>
119 <pluginExecutions>
120 <pluginExecution>
121 <pluginExecutionFilter>
122 <groupId>org.apache.maven.plugins</groupId>
123 <artifactId>maven-checkstyle-plugin</artifactId>
124 <versionRange>2.17,)</versionRange>
125 <goals>
126 <goal>check</goal>
127 </goals>
128 </pluginExecutionFilter>
129 <action>
Kishore Reddy, Gujja (kg811t)a59bc3e2018-09-25 13:59:56 -0400130 <ignore />
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -0400131 </action>
132 </pluginExecution>
133 </pluginExecutions>
134 </lifecycleMappingMetadata>
135 </configuration>
136 </plugin>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400137 <plugin>
138 <artifactId>maven-compiler-plugin</artifactId>
139 <version>3.1</version>
140 <configuration>
141 <source>1.8</source>
142 <target>1.8</target>
143 </configuration>
144 </plugin>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400145 <!-- maven-site-plugin config is provided by OParent -->
146 <plugin>
147 <groupId>org.apache.maven.plugins</groupId>
148 <artifactId>maven-site-plugin</artifactId>
149 <version>3.6</version>
150 <dependencies>
151 <dependency>
152 <groupId>org.apache.maven.wagon</groupId>
153 <artifactId>wagon-webdav-jackrabbit</artifactId>
154 <version>2.10</version>
155 </dependency>
156 </dependencies>
157 </plugin>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400158 </plugins>
Christopher Lott (cl778h)23634db2017-09-25 16:07:54 -0400159 </pluginManagement>
Christopher Lott (cl778h)d332e892017-07-12 16:26:42 -0400160 <plugins>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400161 <!-- Jacoco -->
162 <plugin>
163 <groupId>org.jacoco</groupId>
164 <artifactId>jacoco-maven-plugin</artifactId>
165 <!-- Override OParent version -->
166 <version>${jacocoVersion}</version>
167 <executions>
168 <!-- disable jacoco executions from oparent -->
169 <execution>
170 <id>pre-unit-test</id>
171 <phase>none</phase>
172 </execution>
173 <execution>
174 <id>post-unit-test</id>
175 <phase>none</phase>
176 </execution>
177 <execution>
178 <id>pre-integration-test</id>
179 <phase>none</phase>
180 </execution>
181 <execution>
182 <id>post-integration-test</id>
183 <phase>none</phase>
184 </execution>
185 <!-- Order matters -->
186 <execution>
187 <id>portal-prepare-agent</id>
188 <goals>
189 <goal>prepare-agent</goal>
190 </goals>
191 <configuration>
192 <destFile>${sonar.jacoco.reportPath}</destFile>
193 </configuration>
194 </execution>
195 <!-- offline instrumentation for PowerMock -->
196 <execution>
197 <id>portal-offline-instrument</id>
198 <goals>
199 <goal>instrument</goal>
200 </goals>
201 </execution>
202 <execution>
203 <id>portal-restore-instrumented-classes</id>
204 <phase>test</phase>
205 <goals>
206 <goal>restore-instrumented-classes</goal>
207 </goals>
208 </execution>
209 <execution>
210 <id>portal-post-unit-test</id>
211 <phase>test</phase>
212 <goals>
213 <goal>report</goal>
214 </goals>
215 <configuration>
216 <dataFile>${sonar.jacoco.reportPath}</dataFile>
217 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
218 </configuration>
219 </execution>
220 </executions>
221 </plugin>
222
223 <plugin>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-surefire-plugin</artifactId>
226 <configuration>
227 <systemPropertyVariables>
228 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
229 </systemPropertyVariables>
230 </configuration>
231 </plugin>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400232 <!-- No deployment step for this project -->
233 <plugin>
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-deploy-plugin</artifactId>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400236 <!-- version managed by oparent <version>2.8</version> -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400237 <configuration>
238 <skip>true</skip>
239 </configuration>
240 </plugin>
kg811t3aa28e92018-02-08 13:25:08 -0500241 <plugin>
242 <groupId>org.codehaus.mojo</groupId>
243 <artifactId>sonar-maven-plugin</artifactId>
244 <version>3.0.2</version>
245 </plugin>
Sudarshan Kumar8e83c252020-02-18 16:16:26 +0530246
247 <plugin>
248 <artifactId>maven-checkstyle-plugin</artifactId>
249 <version>2.17</version>
250 <dependencies>
251 <dependency>
252 <groupId>org.onap.oparent</groupId>
253 <artifactId>checkstyle</artifactId>
254 <version>2.0.0</version>
255 </dependency>
256 </dependencies>
257 <executions>
258 <execution>
259 <id>onap-license</id>
260 <goals>
261 <goal>check</goal>
262 </goals>
263 <phase>process-sources</phase>
264 <configuration>
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>
270 <excludes>
271 </excludes>
272 <consoleOutput>true</consoleOutput>
273 <failsOnViolation>false</failsOnViolation>
274 </configuration>
275 </execution>
276 <execution>
277 <id>onap-java-style</id>
278 <goals>
279 <goal>check</goal>
280 </goals>
281 <phase>none</phase>
282 <configuration>
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>
292 <excludes>
293 </excludes>
294 <consoleOutput>true</consoleOutput>
295 <failsOnViolation>false</failsOnViolation>
296 </configuration>
297 </execution>
298 </executions>
299 </plugin>
jz385pb5a15c32020-04-23 16:35:12 +0530300 <plugin>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-enforcer-plugin</artifactId>
303 <version>3.0.0-M2</version>
304 <executions>
305 <execution>
306 <id>enforce-no-snapshots</id>
307 <goals>
308 <goal>enforce</goal>
309 </goals>
310 <configuration>
311 <rules>
312 <requireReleaseVersion>
313 <message>No Snapshots Allowed!</message>
314 </requireReleaseVersion>
315 </rules>
316 <fail>false</fail>
317 </configuration>
318 </execution>
319 </executions>
320 </plugin>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400321 </plugins>
322 </build>
323
324 <distributionManagement>
Christopher Lott (cl778h)0bb15c12017-09-29 14:51:47 -0400325 <!-- oparent.version defines snapshot and release repositories -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400326 <site>
327 <id>ecomp-site</id>
Christopher Lott (cl778h)0bb15c12017-09-29 14:51:47 -0400328 <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400329 </site>
330 </distributionManagement>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400331</project>