blob: a6e369b9a162558598ef0d10e8786e83d7e8de5f [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>
Manoop Talasilaf648b5e2019-07-31 16:50:20 -04009 <version>1.2.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>
Kotta, Shireesha (sk434m)b75f35b2019-06-13 14:41:15 -040015 <version>2.6.0-SNAPSHOT</version>
talasila0ff0e9f2017-02-15 17:36:47 -050016 <packaging>pom</packaging>
Christopher Lott (cl778h)23634db2017-09-25 16:07:54 -040017 <name>portal</name>
st782sb54df0d2017-05-04 07:48:42 -040018
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040019 <modules>
20 <!-- This parent POM names only ONAP projects -->
st782sb54df0d2017-05-04 07:48:42 -040021 <module>ecomp-portal-BE-common</module>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040022 <module>ecomp-portal-BE-os</module>
st782sb54df0d2017-05-04 07:48:42 -040023 <module>ecomp-portal-FE-os</module>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040024 <module>ecomp-portal-widget-ms</module>
Dominik Mizynbe468322019-08-20 13:29:19 +020025 <module>portal-BE</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>
Kotta, Shireesha (sk434m)b75f35b2019-06-13 14:41:15 -040031 <epsdk.version>2.6.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>
Kishore Reddy, Gujja (kg811t)4ee89672018-03-20 17:15:25 -040035 <fasterxml.version>2.8.10</fasterxml.version>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040036 <eelf.version>1.0.0</eelf.version>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -040037 <!-- NOT provided by OParent, unfortunately -->
38 <jacocoVersion>0.7.6.201602180812</jacocoVersion>
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -040039 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040040 <encoding>UTF-8</encoding>
Manoop Talasilaf648b5e2019-07-31 16:50:20 -040041 <!-- <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions> -->
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -040042 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
st782s2e89d1f2018-05-03 16:15:58 -040043 <enforcer.skip>false</enforcer.skip>
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>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400246 </plugins>
247 </build>
248
249 <distributionManagement>
Christopher Lott (cl778h)0bb15c12017-09-29 14:51:47 -0400250 <!-- oparent.version defines snapshot and release repositories -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400251 <site>
252 <id>ecomp-site</id>
Christopher Lott (cl778h)0bb15c12017-09-29 14:51:47 -0400253 <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 -0400254 </site>
255 </distributionManagement>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400256</project>