blob: cfd733c6753fee2e5cea4fe7729c205bd6fd6d65 [file] [log] [blame]
talasila0ff0e9f2017-02-15 17:36:47 -05001<?xml version="1.0" encoding="UTF-8"?>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -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
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -04006
Gary Wu3c795552017-10-02 11:20:39 -07007 <parent>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -04008 <groupId>org.onap.oparent</groupId>
9 <artifactId>oparent</artifactId>
10 <version>0.1.1</version>
11 <relativePath />
Gary Wu3c795552017-10-02 11:20:39 -070012 </parent>
Christopher Lott (cl778h)de8b8df2017-09-28 16:59:17 -040013
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -040014
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040015 <groupId>org.onap.portal</groupId>
16 <artifactId>onap-portal-parent</artifactId>
Christopher Lott (cl778h)0bb15c12017-09-29 14:51:47 -040017 <version>1.3.0</version>
talasila0ff0e9f2017-02-15 17:36:47 -050018 <packaging>pom</packaging>
Christopher Lott (cl778h)23634db2017-09-25 16:07:54 -040019 <name>portal</name>
st782sb54df0d2017-05-04 07:48:42 -040020
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040021 <modules>
22 <!-- This parent POM names only ONAP projects -->
st782sb54df0d2017-05-04 07:48:42 -040023 <module>ecomp-portal-BE-common</module>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040024 <module>ecomp-portal-BE-os</module>
st782sb54df0d2017-05-04 07:48:42 -040025 <module>ecomp-portal-FE-os</module>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040026 <module>ecomp-portal-widget-ms</module>
talasila0ff0e9f2017-02-15 17:36:47 -050027 </modules>
Andrew Grimberge7a418d2017-03-29 10:26:41 -070028
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040029 <properties>
30 <!-- Jenkins SHOULD invoke mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
31 <build.number>0</build.number>
32 <epsdk.version>1.3.0</epsdk.version>
33 <springframework.version>4.2.0.RELEASE</springframework.version>
34 <hibernate.version>4.3.11.Final</hibernate.version>
35 <fasterxml.version>2.7.4</fasterxml.version>
36 <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>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -040041 <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions>
42 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
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>
129 <ignore />
130 </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>
240 </plugins>
241 </build>
242
243 <distributionManagement>
Christopher Lott (cl778h)0bb15c12017-09-29 14:51:47 -0400244 <!-- oparent.version defines snapshot and release repositories -->
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -0400245 <site>
246 <id>ecomp-site</id>
Christopher Lott (cl778h)0bb15c12017-09-29 14:51:47 -0400247 <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 -0400248 </site>
249 </distributionManagement>
250
251</project>