2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
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
11 http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 <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">
21 <modelVersion>4.0.0</modelVersion>
23 <groupId>org.onap.policy.engine</groupId>
24 <artifactId>PolicyEngineSuite</artifactId>
25 <version>1.5.2-SNAPSHOT</version>
27 <artifactId>ONAP-SDK-APP</artifactId>
28 <packaging>war</packaging>
30 <encoding>UTF-8</encoding>
31 <epsdk.version>2.4.0</epsdk.version>
32 <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 -->
39 <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>
43 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
45 <id>doclint-java8-disable</id>
52 <groupId>org.apache.maven.plugins</groupId>
53 <artifactId>maven-javadoc-plugin</artifactId>
55 <additionalparam>-Xdoclint:none</additionalparam>
65 <groupId>org.apache.maven.plugins</groupId>
66 <artifactId>maven-compiler-plugin</artifactId>
73 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-surefire-plugin</artifactId>
76 <skipTests>${skiptests}</skipTests>
78 <include>**/Test*.java</include>
79 <include>**/*Test.java</include>
80 <include>**/*TestCase.java</include>
82 <additionalClasspathElements>
83 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
84 </additionalClasspathElements>
85 <systemPropertyVariables>
86 <container.classpath>classpath:</container.classpath>
87 </systemPropertyVariables>
90 <!-- add version number to manifest -->
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-war-plugin</artifactId>
95 <attachClasses>true</attachClasses>
98 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
101 <Build-Number>${project.version}</Build-Number>
102 <Build-Time>${maven.build.timestamp}</Build-Time>
107 <groupId>org.onap.portal.sdk</groupId>
108 <artifactId>epsdk-app-overlay</artifactId>
110 <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude>
114 <groupId>org.onap.policy.engine</groupId>
115 <artifactId>POLICY-SDK-APP</artifactId>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-assembly-plugin</artifactId>
124 <skipAssembly>${skipassembly}</skipAssembly>
126 <descriptor>${basedir}/distribution.xml</descriptor>
131 <id>make-assembly</id>
132 <phase>package</phase>
140 <groupId>org.apache.maven.plugins</groupId>
141 <artifactId>maven-deploy-plugin</artifactId>
142 <!-- parent specifies the<version>2.8</version> -->
148 <groupId>io.fabric8</groupId>
149 <artifactId>docker-maven-plugin</artifactId>
150 <version>0.22.0</version>
152 <verbose>true</verbose>
155 <name>onap/portal-sdk:${project.version}</name>
157 <from>frolvlad/alpine-oraclejdk8:slim</from>
159 <descriptorRef>artifact</descriptorRef>
162 <!-- must be all on one line; use CDATA to turn off the Eclipse
164 <run><![CDATA[wget -q ${tomcat.download.path}/${tomcat.download.name}.tar.gz]]></run>
166 ${tomcat.download.name}.tar.gz</run>
168 ${tomcat.download.name}.tar.gz</run>
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>
176 <shell>/opt/${tomcat.download.name}/bin/catalina.sh
188 <!-- Policy overlay war -->
190 <groupId>org.onap.policy.engine</groupId>
191 <artifactId>POLICY-SDK-APP</artifactId>
192 <version>${project.version}</version>
196 <groupId>org.onap.portal.sdk</groupId>
197 <artifactId>epsdk-core</artifactId>
202 <groupId>org.onap.policy.engine</groupId>
203 <artifactId>POLICY-SDK-APP</artifactId>
204 <version>${project.version}</version>
206 <classifier>classes</classifier>
209 <groupId>org.onap.portal.sdk</groupId>
210 <artifactId>epsdk-core</artifactId>
215 <groupId>org.onap.policy.engine</groupId>
216 <artifactId>PolicyEngineUtils</artifactId>
217 <version>${project.version}</version>
220 <groupId>com.att.aft</groupId>
221 <artifactId>dme2</artifactId>
225 <!-- SDK overlay war -->
227 <groupId>org.onap.portal.sdk</groupId>
228 <artifactId>epsdk-app-overlay</artifactId>
229 <version>${epsdk.version}</version>
233 <groupId>org.onap.portal.sdk</groupId>
234 <artifactId>epsdk-app-common</artifactId>
235 <version>${epsdk.version}</version>
238 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
240 <groupId>org.springframework</groupId>
241 <artifactId>spring-core</artifactId>
244 <groupId>org.springframework</groupId>
245 <artifactId>spring-web</artifactId>
248 <groupId>org.springframework</groupId>
249 <artifactId>spring-webmvc</artifactId>
253 <!-- SDK components -->
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
260 <groupId>commons-collections</groupId>
261 <artifactId>commons-collections</artifactId>
262 <version>3.2.2</version>
265 <groupId>org.onap.portal.sdk</groupId>
266 <artifactId>epsdk-core</artifactId>
267 <version>${epsdk.version}</version>
270 <groupId>mysql</groupId>
271 <artifactId>mysql-connector-java</artifactId>
274 <groupId>commons-collections</groupId>
275 <artifactId>commons-collections</artifactId>
278 <groupId>com.thoughtworks.xstream</groupId>
279 <artifactId>xstream</artifactId>
281 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
283 <groupId>org.springframework</groupId>
284 <artifactId>spring-core</artifactId>
287 <groupId>org.springframework</groupId>
288 <artifactId>spring-web</artifactId>
291 <groupId>org.springframework</groupId>
292 <artifactId>spring-webmvc</artifactId>
297 <groupId>org.onap.portal.sdk</groupId>
298 <artifactId>epsdk-analytics</artifactId>
299 <version>${epsdk.version}</version>
302 <groupId>com.oracle</groupId>
303 <artifactId>ojdbc6</artifactId>
306 <groupId>com.lowagie</groupId>
307 <artifactId>itext</artifactId>
309 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
311 <groupId>org.springframework</groupId>
312 <artifactId>spring-core</artifactId>
315 <groupId>org.springframework</groupId>
316 <artifactId>spring-web</artifactId>
319 <groupId>org.springframework</groupId>
320 <artifactId>spring-webmvc</artifactId>
325 <groupId>org.onap.portal.sdk</groupId>
326 <artifactId>epsdk-workflow</artifactId>
327 <version>${epsdk.version}</version>
329 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
331 <groupId>org.springframework</groupId>
332 <artifactId>spring-core</artifactId>
335 <groupId>org.springframework</groupId>
336 <artifactId>spring-web</artifactId>
339 <groupId>org.springframework</groupId>
340 <artifactId>spring-webmvc</artifactId>
345 <!-- Added dependencies to fix issue with duplicate jars of different versions -->
347 <groupId>org.springframework</groupId>
348 <artifactId>spring-core</artifactId>
349 <version>${springframework.version}</version>
352 <groupId>commons-logging</groupId>
353 <artifactId>commons-logging</artifactId>
358 <groupId>org.springframework</groupId>
359 <artifactId>spring-web</artifactId>
360 <version>${springframework.version}</version>
363 <groupId>org.springframework</groupId>
364 <artifactId>spring-webmvc</artifactId>
365 <version>${springframework.version}</version>
367 <!-- bridge to implement commons-logging using slf4j -->
369 <groupId>org.slf4j</groupId>
370 <artifactId>jcl-over-slf4j</artifactId>
371 <version>1.7.12</version>
374 <groupId>com.mchange</groupId>
375 <artifactId>c3p0</artifactId>
376 <version>0.9.5.2</version>
380 <groupId>org.mariadb.jdbc</groupId>
381 <artifactId>mariadb-java-client</artifactId>
384 <groupId>commons-dbcp</groupId>
385 <artifactId>commons-dbcp</artifactId>
386 <version>1.4</version>
390 <groupId>org.quartz-scheduler</groupId>
391 <artifactId>quartz</artifactId>
392 <version>2.2.1</version>
394 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
396 <groupId>c3p0</groupId>
397 <artifactId>c3p0</artifactId>
402 <groupId>javax.servlet</groupId>
403 <artifactId>javax.servlet-api</artifactId>