blob: 28cbf87d31919a363ec6877ce8e0a5f82185da53 [file] [log] [blame]
Guo Ruijing073cc182017-07-31 08:47:35 +00001<!--
2 ============LICENSE_START=======================================================
3 ONAP Policy Engine
4 ================================================================================
Pamela Dragoshbcdb1e12018-02-07 15:41:30 -05005 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Guo Ruijing073cc182017-07-31 08:47:35 +00006 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
19 -->
liamfallon4929b5e2018-10-31 17:28:58 +000020<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040021 <modelVersion>4.0.0</modelVersion>
22 <parent>
23 <groupId>org.onap.policy.engine</groupId>
24 <artifactId>PolicyEngineSuite</artifactId>
liamfallon4929b5e2018-10-31 17:28:58 +000025 <version>1.4.0-SNAPSHOT</version>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040026 </parent>
27 <artifactId>ONAP-SDK-APP</artifactId>
28 <packaging>war</packaging>
29 <properties>
30 <encoding>UTF-8</encoding>
rb71479efe59e2018-09-11 14:32:39 -040031 <epsdk.version>2.4.0</epsdk.version>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040032 <springframework.version>4.2.0.RELEASE</springframework.version>
33 <hibernate.version>4.3.11.Final</hibernate.version>
34 <!-- Skip assembling the zip; assemble via mvn -Dskipassembly=false .. -->
35 <skipassembly>true</skipassembly>
36 <!-- Tests usually require some setup that maven cannot do, so skip. -->
37 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**,src/main/webapp/**/*</sonar.exclusions>
38 <!-- Version number gets stored only here -->
mmisb9be1942018-10-25 15:00:22 +010039 <tomcat.download.path>http://archive.apache.org/dist/tomcat/tomcat-8/v8.5.34/bin</tomcat.download.path>
40 <tomcat.download.name>apache-tomcat-8.5.34</tomcat.download.name>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040041 </properties>
42 <profiles>
43 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
44 <profile>
45 <id>doclint-java8-disable</id>
46 <activation>
47 <jdk>[1.8,)</jdk>
48 </activation>
49 <build>
50 <plugins>
51 <plugin>
52 <groupId>org.apache.maven.plugins</groupId>
53 <artifactId>maven-javadoc-plugin</artifactId>
54 <configuration>
55 <additionalparam>-Xdoclint:none</additionalparam>
56 </configuration>
57 </plugin>
58 </plugins>
59 </build>
60 </profile>
61 </profiles>
62 <build>
63 <plugins>
64 <plugin>
65 <groupId>org.apache.maven.plugins</groupId>
66 <artifactId>maven-compiler-plugin</artifactId>
67 <configuration>
68 <source>1.8</source>
69 <target>1.8</target>
70 </configuration>
71 </plugin>
72 <plugin>
73 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-surefire-plugin</artifactId>
75 <configuration>
76 <skipTests>${skiptests}</skipTests>
77 <includes>
78 <include>**/Test*.java</include>
79 <include>**/*Test.java</include>
80 <include>**/*TestCase.java</include>
81 </includes>
82 <additionalClasspathElements>
83 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
84 </additionalClasspathElements>
85 <systemPropertyVariables>
86 <container.classpath>classpath:</container.classpath>
87 </systemPropertyVariables>
88 </configuration>
89 </plugin>
90 <!-- add version number to manifest -->
91 <plugin>
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-war-plugin</artifactId>
94 <configuration>
95 <attachClasses>true</attachClasses>
96 <archive>
97 <manifest>
98 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
99 </manifest>
100 <manifestEntries>
101 <Build-Number>${project.version}</Build-Number>
102 <Build-Time>${maven.build.timestamp}</Build-Time>
103 </manifestEntries>
104 </archive>
105 <overlays>
106 <overlay>
107 <groupId>org.onap.portal.sdk</groupId>
108 <artifactId>epsdk-app-overlay</artifactId>
109 <excludes>
110 <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude>
111 </excludes>
112 </overlay>
113 <overlay>
114 <groupId>org.onap.policy.engine</groupId>
115 <artifactId>POLICY-SDK-APP</artifactId>
116 </overlay>
117 </overlays>
118 </configuration>
119 </plugin>
120 <plugin>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-assembly-plugin</artifactId>
123 <configuration>
124 <skipAssembly>${skipassembly}</skipAssembly>
125 <descriptors>
126 <descriptor>${basedir}/distribution.xml</descriptor>
127 </descriptors>
128 </configuration>
129 <executions>
130 <execution>
131 <id>make-assembly</id>
132 <phase>package</phase>
133 <goals>
134 <goal>single</goal>
135 </goals>
136 </execution>
137 </executions>
138 </plugin>
139 <plugin>
140 <groupId>org.apache.maven.plugins</groupId>
141 <artifactId>maven-deploy-plugin</artifactId>
142 <!-- parent specifies the<version>2.8</version> -->
143 <configuration>
144 <skip>true</skip>
145 </configuration>
146 </plugin>
147 <plugin>
148 <groupId>io.fabric8</groupId>
149 <artifactId>docker-maven-plugin</artifactId>
150 <version>0.22.0</version>
151 <configuration>
152 <verbose>true</verbose>
153 <images>
154 <image>
155 <name>onap/portal-sdk:${project.version}</name>
156 <build>
157 <from>frolvlad/alpine-oraclejdk8:slim</from>
158 <assembly>
159 <descriptorRef>artifact</descriptorRef>
160 </assembly>
161 <runCmds>
162 <!-- must be all on one line; use CDATA to turn off the Eclipse
163 formatter -->
164 <run><![CDATA[wget -q ${tomcat.download.path}/${tomcat.download.name}.tar.gz]]></run>
165 <run>tar -xzf
166 ${tomcat.download.name}.tar.gz</run>
167 <run>rm -f
168 ${tomcat.download.name}.tar.gz</run>
169 <run>rm -fr
170 ${tomcat.download.name}/webapps/[a-z]*</run>
171 <run>mkdir -p /opt</run>
172 <run>mv ${tomcat.download.name} /opt</run>
173 <run><![CDATA[mv /maven/*.war /opt/${tomcat.download.name}/webapps/ONAPPORTALSDK.war]]></run>
174 </runCmds>
175 <cmd>
176 <shell>/opt/${tomcat.download.name}/bin/catalina.sh
177 run</shell>
178 </cmd>
179 </build>
180 </image>
181 </images>
182 </configuration>
183 </plugin>
rb714742815082017-12-04 16:45:55 -0500184
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400185 </plugins>
186 </build>
187 <dependencies>
188 <!-- Policy overlay war -->
189 <dependency>
190 <groupId>org.onap.policy.engine</groupId>
191 <artifactId>POLICY-SDK-APP</artifactId>
192 <version>${project.version}</version>
193 <type>war</type>
194 <exclusions>
195 <exclusion>
196 <groupId>org.onap.portal.sdk</groupId>
197 <artifactId>epsdk-core</artifactId>
198 </exclusion>
199 </exclusions>
200 </dependency>
201 <dependency>
202 <groupId>org.onap.policy.engine</groupId>
203 <artifactId>POLICY-SDK-APP</artifactId>
204 <version>${project.version}</version>
205 <type>jar</type>
206 <classifier>classes</classifier>
207 <exclusions>
208 <exclusion>
209 <groupId>org.onap.portal.sdk</groupId>
210 <artifactId>epsdk-core</artifactId>
211 </exclusion>
212 </exclusions>
213 </dependency>
214 <dependency>
215 <groupId>org.onap.policy.engine</groupId>
216 <artifactId>PolicyEngineUtils</artifactId>
217 <version>${project.version}</version>
218 <exclusions>
219 <exclusion>
220 <groupId>com.att.aft</groupId>
221 <artifactId>dme2</artifactId>
222 </exclusion>
223 </exclusions>
224 </dependency>
225 <!-- SDK overlay war -->
226 <dependency>
227 <groupId>org.onap.portal.sdk</groupId>
228 <artifactId>epsdk-app-overlay</artifactId>
229 <version>${epsdk.version}</version>
230 <type>war</type>
231 </dependency>
232 <dependency>
233 <groupId>org.onap.portal.sdk</groupId>
234 <artifactId>epsdk-app-common</artifactId>
235 <version>${epsdk.version}</version>
236 <type>jar</type>
Michael Mokry00bd1cd2018-10-04 15:50:05 -0500237 <exclusions>
238 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
239 <exclusion>
240 <groupId>org.springframework</groupId>
241 <artifactId>spring-core</artifactId>
242 </exclusion>
243 <exclusion>
244 <groupId>org.springframework</groupId>
245 <artifactId>spring-web</artifactId>
246 </exclusion>
247 <exclusion>
248 <groupId>org.springframework</groupId>
249 <artifactId>spring-webmvc</artifactId>
250 </exclusion>
251 </exclusions>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400252 </dependency>
253 <!-- SDK components -->
254 <!--
255 CLM security fix - force use of commons-collections 3.2.2.
256 Remove this if a new version of epsdk-core is upgraded
257 to not use esapi (and then subsequently commons-collections v3.2
258 -->
259 <dependency>
260 <groupId>commons-collections</groupId>
261 <artifactId>commons-collections</artifactId>
262 <version>3.2.2</version>
263 </dependency>
264 <dependency>
265 <groupId>org.onap.portal.sdk</groupId>
266 <artifactId>epsdk-core</artifactId>
267 <version>${epsdk.version}</version>
268 <exclusions>
269 <exclusion>
270 <groupId>mysql</groupId>
271 <artifactId>mysql-connector-java</artifactId>
272 </exclusion>
273 <exclusion>
274 <groupId>commons-collections</groupId>
275 <artifactId>commons-collections</artifactId>
276 </exclusion>
277 <exclusion>
278 <groupId>com.thoughtworks.xstream</groupId>
279 <artifactId>xstream</artifactId>
280 </exclusion>
Michael Mokry00bd1cd2018-10-04 15:50:05 -0500281 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
282 <exclusion>
283 <groupId>org.springframework</groupId>
284 <artifactId>spring-core</artifactId>
285 </exclusion>
286 <exclusion>
287 <groupId>org.springframework</groupId>
288 <artifactId>spring-web</artifactId>
289 </exclusion>
290 <exclusion>
291 <groupId>org.springframework</groupId>
292 <artifactId>spring-webmvc</artifactId>
293 </exclusion>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400294 </exclusions>
295 </dependency>
296 <dependency>
297 <groupId>org.onap.portal.sdk</groupId>
298 <artifactId>epsdk-analytics</artifactId>
299 <version>${epsdk.version}</version>
300 <exclusions>
301 <exclusion>
302 <groupId>com.oracle</groupId>
303 <artifactId>ojdbc6</artifactId>
304 </exclusion>
Pamela Dragosh39ddb182018-11-14 08:23:36 -0500305 <exclusion>
306 <groupId>com.lowagie</groupId>
307 <artifactId>itext</artifactId>
308 </exclusion>
Michael Mokry00bd1cd2018-10-04 15:50:05 -0500309 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
310 <exclusion>
311 <groupId>org.springframework</groupId>
312 <artifactId>spring-core</artifactId>
313 </exclusion>
314 <exclusion>
315 <groupId>org.springframework</groupId>
316 <artifactId>spring-web</artifactId>
317 </exclusion>
318 <exclusion>
319 <groupId>org.springframework</groupId>
320 <artifactId>spring-webmvc</artifactId>
321 </exclusion>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400322 </exclusions>
323 </dependency>
324 <dependency>
325 <groupId>org.onap.portal.sdk</groupId>
326 <artifactId>epsdk-workflow</artifactId>
327 <version>${epsdk.version}</version>
Michael Mokry00bd1cd2018-10-04 15:50:05 -0500328 <exclusions>
329 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
330 <exclusion>
331 <groupId>org.springframework</groupId>
332 <artifactId>spring-core</artifactId>
333 </exclusion>
334 <exclusion>
335 <groupId>org.springframework</groupId>
336 <artifactId>spring-web</artifactId>
337 </exclusion>
338 <exclusion>
339 <groupId>org.springframework</groupId>
340 <artifactId>spring-webmvc</artifactId>
341 </exclusion>
342 </exclusions>
343 </dependency>
344 <!-- Spring -->
345 <!-- Added dependencies to fix issue with duplicate jars of different versions -->
346 <dependency>
347 <groupId>org.springframework</groupId>
348 <artifactId>spring-core</artifactId>
349 <version>${springframework.version}</version>
350 <exclusions>
351 <exclusion>
352 <groupId>commons-logging</groupId>
353 <artifactId>commons-logging</artifactId>
354 </exclusion>
355 </exclusions>
356 </dependency>
357 <dependency>
358 <groupId>org.springframework</groupId>
359 <artifactId>spring-web</artifactId>
360 <version>${springframework.version}</version>
361 </dependency>
362 <dependency>
363 <groupId>org.springframework</groupId>
364 <artifactId>spring-webmvc</artifactId>
365 <version>${springframework.version}</version>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400366 </dependency>
367 <!-- bridge to implement commons-logging using slf4j -->
368 <dependency>
369 <groupId>org.slf4j</groupId>
370 <artifactId>jcl-over-slf4j</artifactId>
371 <version>1.7.12</version>
372 </dependency>
373 <dependency>
374 <groupId>com.mchange</groupId>
375 <artifactId>c3p0</artifactId>
376 <version>0.9.5.2</version>
377 </dependency>
378 <!-- Maria DB -->
379 <dependency>
380 <groupId>org.mariadb.jdbc</groupId>
381 <artifactId>mariadb-java-client</artifactId>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400382 </dependency>
383 <dependency>
384 <groupId>commons-dbcp</groupId>
385 <artifactId>commons-dbcp</artifactId>
386 <version>1.4</version>
387 </dependency>
388 <!-- Quartz -->
389 <dependency>
390 <groupId>org.quartz-scheduler</groupId>
391 <artifactId>quartz</artifactId>
392 <version>2.2.1</version>
393 <exclusions>
394 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
395 <exclusion>
396 <groupId>c3p0</groupId>
397 <artifactId>c3p0</artifactId>
398 </exclusion>
399 </exclusions>
400 </dependency>
401 <dependency>
402 <groupId>javax.servlet</groupId>
403 <artifactId>javax.servlet-api</artifactId>
404 </dependency>
405 </dependencies>
Guo Ruijing073cc182017-07-31 08:47:35 +0000406</project>