blob: 87791b934f106a20ae490855d31e37897924106b [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>
talasila0ff0e9f2017-02-15 17:36:47 -050025 </modules>
Andrew Grimberge7a418d2017-03-29 10:26:41 -070026
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040027 <properties>
st782s21a87612018-01-30 17:29:36 -050028 <!-- Jenkins should invoke mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040029 <build.number>0</build.number>
Kotta, Shireesha (sk434m)b75f35b2019-06-13 14:41:15 -040030 <epsdk.version>2.6.0-SNAPSHOT</epsdk.version>
stattaa3a04c52019-08-23 16:49:45 -040031 <springframework.version>4.3.24.RELEASE</springframework.version>
32 <springframework.security.version>4.2.13.RELEASE</springframework.security.version>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040033 <hibernate.version>4.3.11.Final</hibernate.version>
Kishore Reddy, Gujja (kg811t)4ee89672018-03-20 17:15:25 -040034 <fasterxml.version>2.8.10</fasterxml.version>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040035 <eelf.version>1.0.0</eelf.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>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040043 </properties>
44
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -040045 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -040046 files among developers. Use values (not properties) so oparent can be resolved. -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040047 <repositories>
48 <repository>
49 <id>onap-releases</id>
50 <name>ONAP - Release Repository</name>
51 <url>https://nexus.onap.org/content/repositories/releases</url>
52 </repository>
53 <repository>
54 <id>onap-staging</id>
55 <name>ONAP - Staging Repository</name>
56 <url>https://nexus.onap.org/content/repositories/staging</url>
57 </repository>
58 <repository>
59 <id>onap-snapshots</id>
60 <name>ONAP - Snapshot Repository</name>
61 <url>https://nexus.onap.org/content/repositories/snapshots</url>
62 </repository>
63 <repository>
64 <id>onap-public</id>
65 <url>https://nexus.onap.org/content/groups/public</url>
66 </repository>
67 </repositories>
68
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -040069 <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml
70 files among all developers. -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040071 <pluginRepositories>
72 <pluginRepository>
73 <id>onap-plugin-release</id>
74 <url>https://nexus.onap.org/content/repositories/releases/</url>
75 </pluginRepository>
76 <pluginRepository>
77 <id>onap-plugin-staging</id>
78 <url>https://nexus.onap.org/content/repositories/staging/</url>
79 </pluginRepository>
80 <pluginRepository>
81 <id>onap-plugin-snapshots</id>
82 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
83 </pluginRepository>
84 </pluginRepositories>
85
86 <profiles>
87 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
88 <profile>
89 <id>doclint-java8-disable</id>
90 <activation>
91 <jdk>[1.8,)</jdk>
92 </activation>
93 <build>
94 <plugins>
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-javadoc-plugin</artifactId>
98 <version>3.0.0-M1</version>
99 <configuration>
100 <additionalparam>-Xdoclint:none</additionalparam>
101 </configuration>
102 </plugin>
103 </plugins>
104 </build>
105 </profile>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400106 </profiles>
107
Christopher Lott (cl778h)d332e892017-07-12 16:26:42 -0400108 <build>
Christopher Lott (cl778h)23634db2017-09-25 16:07:54 -0400109 <pluginManagement>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400110 <plugins>
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -0400111 <!-- Silence Eclipse m2e warnings -->
112 <plugin>
113 <groupId>org.eclipse.m2e</groupId>
114 <artifactId>lifecycle-mapping</artifactId>
115 <version>1.0.0</version>
116 <configuration>
117 <lifecycleMappingMetadata>
118 <pluginExecutions>
119 <pluginExecution>
120 <pluginExecutionFilter>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-checkstyle-plugin</artifactId>
123 <versionRange>2.17,)</versionRange>
124 <goals>
125 <goal>check</goal>
126 </goals>
127 </pluginExecutionFilter>
128 <action>
Kishore Reddy, Gujja (kg811t)a59bc3e2018-09-25 13:59:56 -0400129 <ignore />
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -0400130 </action>
131 </pluginExecution>
132 </pluginExecutions>
133 </lifecycleMappingMetadata>
134 </configuration>
135 </plugin>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400136 <plugin>
137 <artifactId>maven-compiler-plugin</artifactId>
138 <version>3.1</version>
139 <configuration>
140 <source>1.8</source>
141 <target>1.8</target>
142 </configuration>
143 </plugin>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400144 <!-- maven-site-plugin config is provided by OParent -->
145 <plugin>
146 <groupId>org.apache.maven.plugins</groupId>
147 <artifactId>maven-site-plugin</artifactId>
148 <version>3.6</version>
149 <dependencies>
150 <dependency>
151 <groupId>org.apache.maven.wagon</groupId>
152 <artifactId>wagon-webdav-jackrabbit</artifactId>
153 <version>2.10</version>
154 </dependency>
155 </dependencies>
156 </plugin>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400157 </plugins>
Christopher Lott (cl778h)23634db2017-09-25 16:07:54 -0400158 </pluginManagement>
Christopher Lott (cl778h)d332e892017-07-12 16:26:42 -0400159 <plugins>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400160 <!-- Jacoco -->
161 <plugin>
162 <groupId>org.jacoco</groupId>
163 <artifactId>jacoco-maven-plugin</artifactId>
164 <!-- Override OParent version -->
165 <version>${jacocoVersion}</version>
166 <executions>
167 <!-- disable jacoco executions from oparent -->
168 <execution>
169 <id>pre-unit-test</id>
170 <phase>none</phase>
171 </execution>
172 <execution>
173 <id>post-unit-test</id>
174 <phase>none</phase>
175 </execution>
176 <execution>
177 <id>pre-integration-test</id>
178 <phase>none</phase>
179 </execution>
180 <execution>
181 <id>post-integration-test</id>
182 <phase>none</phase>
183 </execution>
184 <!-- Order matters -->
185 <execution>
186 <id>portal-prepare-agent</id>
187 <goals>
188 <goal>prepare-agent</goal>
189 </goals>
190 <configuration>
191 <destFile>${sonar.jacoco.reportPath}</destFile>
192 </configuration>
193 </execution>
194 <!-- offline instrumentation for PowerMock -->
195 <execution>
196 <id>portal-offline-instrument</id>
197 <goals>
198 <goal>instrument</goal>
199 </goals>
200 </execution>
201 <execution>
202 <id>portal-restore-instrumented-classes</id>
203 <phase>test</phase>
204 <goals>
205 <goal>restore-instrumented-classes</goal>
206 </goals>
207 </execution>
208 <execution>
209 <id>portal-post-unit-test</id>
210 <phase>test</phase>
211 <goals>
212 <goal>report</goal>
213 </goals>
214 <configuration>
215 <dataFile>${sonar.jacoco.reportPath}</dataFile>
216 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
217 </configuration>
218 </execution>
219 </executions>
220 </plugin>
221
222 <plugin>
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-surefire-plugin</artifactId>
225 <configuration>
226 <systemPropertyVariables>
227 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
228 </systemPropertyVariables>
229 </configuration>
230 </plugin>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400231 <!-- No deployment step for this project -->
232 <plugin>
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-deploy-plugin</artifactId>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400235 <!-- version managed by oparent <version>2.8</version> -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400236 <configuration>
237 <skip>true</skip>
238 </configuration>
239 </plugin>
kg811t3aa28e92018-02-08 13:25:08 -0500240 <plugin>
241 <groupId>org.codehaus.mojo</groupId>
242 <artifactId>sonar-maven-plugin</artifactId>
243 <version>3.0.2</version>
244 </plugin>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400245 </plugins>
246 </build>
247
248 <distributionManagement>
Christopher Lott (cl778h)0bb15c12017-09-29 14:51:47 -0400249 <!-- oparent.version defines snapshot and release repositories -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400250 <site>
251 <id>ecomp-site</id>
Christopher Lott (cl778h)0bb15c12017-09-29 14:51:47 -0400252 <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 -0400253 </site>
254 </distributionManagement>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400255</project>