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"
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22 <modelVersion>4.0.0</modelVersion>
24 <groupId>org.onap.policy.engine</groupId>
25 <artifactId>PolicyEngineSuite</artifactId>
26 <version>1.3.0-SNAPSHOT</version>
28 <artifactId>ONAP-SDK-APP</artifactId>
29 <packaging>war</packaging>
31 <encoding>UTF-8</encoding>
32 <epsdk.version>2.3.1</epsdk.version>
33 <springframework.version>4.2.0.RELEASE</springframework.version>
34 <hibernate.version>4.3.11.Final</hibernate.version>
35 <!-- Skip assembling the zip; assemble via mvn -Dskipassembly=false .. -->
36 <skipassembly>true</skipassembly>
37 <!-- Tests usually require some setup that maven cannot do, so skip. -->
38 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**,src/main/webapp/**/*</sonar.exclusions>
39 <!-- Version number gets stored only here -->
40 <tomcat.download.path>http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.37/bin</tomcat.download.path>
41 <tomcat.download.name>apache-tomcat-8.0.37</tomcat.download.name>
44 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
46 <id>doclint-java8-disable</id>
53 <groupId>org.apache.maven.plugins</groupId>
54 <artifactId>maven-javadoc-plugin</artifactId>
55 <version>2.10.4</version>
57 <additionalparam>-Xdoclint:none</additionalparam>
67 <groupId>org.apache.maven.plugins</groupId>
68 <artifactId>maven-compiler-plugin</artifactId>
69 <version>3.2</version>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-surefire-plugin</artifactId>
79 <skipTests>${skiptests}</skipTests>
81 <include>**/Test*.java</include>
82 <include>**/*Test.java</include>
83 <include>**/*TestCase.java</include>
85 <additionalClasspathElements>
86 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
87 </additionalClasspathElements>
88 <systemPropertyVariables>
89 <container.classpath>classpath:</container.classpath>
90 </systemPropertyVariables>
93 <!-- add version number to manifest -->
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-war-plugin</artifactId>
97 <version>2.1</version>
99 <attachClasses>true</attachClasses>
102 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
105 <Build-Number>${project.version}</Build-Number>
106 <Build-Time>${maven.build.timestamp}</Build-Time>
111 <groupId>org.onap.portal.sdk</groupId>
112 <artifactId>epsdk-app-overlay</artifactId>
114 <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude>
118 <groupId>org.onap.policy.engine</groupId>
119 <artifactId>POLICY-SDK-APP</artifactId>
125 <groupId>org.apache.maven.plugins</groupId>
126 <artifactId>maven-assembly-plugin</artifactId>
127 <version>3.0.0</version>
129 <skipAssembly>${skipassembly}</skipAssembly>
131 <descriptor>${basedir}/distribution.xml</descriptor>
136 <id>make-assembly</id>
137 <phase>package</phase>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-deploy-plugin</artifactId>
147 <!-- parent specifies the<version>2.8</version> -->
153 <groupId>io.fabric8</groupId>
154 <artifactId>docker-maven-plugin</artifactId>
155 <version>0.22.0</version>
157 <verbose>true</verbose>
160 <name>onap/portal-sdk:${project.version}</name>
162 <from>frolvlad/alpine-oraclejdk8:slim</from>
164 <descriptorRef>artifact</descriptorRef>
167 <!-- must be all on one line; use CDATA to turn off the Eclipse
169 <run><![CDATA[wget -q ${tomcat.download.path}/${tomcat.download.name}.tar.gz]]></run>
170 <run>tar -xzf ${tomcat.download.name}.tar.gz</run>
171 <run>rm -f ${tomcat.download.name}.tar.gz</run>
172 <run>rm -fr ${tomcat.download.name}/webapps/[a-z]*</run>
173 <run>mkdir -p /opt</run>
174 <run>mv ${tomcat.download.name} /opt</run>
175 <run><![CDATA[mv /maven/*.war /opt/${tomcat.download.name}/webapps/ONAPPORTALSDK.war]]></run>
178 <shell>/opt/${tomcat.download.name}/bin/catalina.sh run</shell>
189 <!-- Policy overlay war -->
191 <groupId>org.onap.policy.engine</groupId>
192 <artifactId>POLICY-SDK-APP</artifactId>
193 <version>${project.version}</version>
197 <groupId>org.onap.portal.sdk</groupId>
198 <artifactId>epsdk-core</artifactId>
203 <groupId>org.onap.policy.engine</groupId>
204 <artifactId>POLICY-SDK-APP</artifactId>
205 <version>${project.version}</version>
207 <classifier>classes</classifier>
210 <groupId>org.onap.portal.sdk</groupId>
211 <artifactId>epsdk-core</artifactId>
216 <groupId>org.onap.policy.engine</groupId>
217 <artifactId>PolicyEngineUtils</artifactId>
218 <version>${project.version}</version>
221 <groupId>com.att.aft</groupId>
222 <artifactId>dme2</artifactId>
226 <!-- SDK overlay war -->
228 <groupId>org.onap.portal.sdk</groupId>
229 <artifactId>epsdk-app-overlay</artifactId>
230 <version>${epsdk.version}</version>
234 <groupId>org.onap.portal.sdk</groupId>
235 <artifactId>epsdk-app-common</artifactId>
236 <version>${epsdk.version}</version>
239 <!-- SDK components -->
241 CLM security fix - force use of commons-collections 3.2.2.
242 Remove this if a new version of epsdk-core is upgraded
243 to not use esapi (and then subsequently commons-collections v3.2
246 <groupId>commons-collections</groupId>
247 <artifactId>commons-collections</artifactId>
248 <version>3.2.2</version>
251 <groupId>org.onap.portal.sdk</groupId>
252 <artifactId>epsdk-core</artifactId>
253 <version>${epsdk.version}</version>
256 <groupId>mysql</groupId>
257 <artifactId>mysql-connector-java</artifactId>
260 <groupId>commons-collections</groupId>
261 <artifactId>commons-collections</artifactId>
264 <groupId>com.thoughtworks.xstream</groupId>
265 <artifactId>xstream</artifactId>
270 <groupId>org.onap.portal.sdk</groupId>
271 <artifactId>epsdk-analytics</artifactId>
272 <version>${epsdk.version}</version>
275 <groupId>com.oracle</groupId>
276 <artifactId>ojdbc6</artifactId>
281 <groupId>org.onap.portal.sdk</groupId>
282 <artifactId>epsdk-workflow</artifactId>
283 <version>${epsdk.version}</version>
285 <!-- bridge to implement commons-logging using slf4j -->
287 <groupId>org.slf4j</groupId>
288 <artifactId>jcl-over-slf4j</artifactId>
289 <version>1.7.12</version>
292 <groupId>com.mchange</groupId>
293 <artifactId>c3p0</artifactId>
294 <version>0.9.5.2</version>
298 <groupId>org.mariadb.jdbc</groupId>
299 <artifactId>mariadb-java-client</artifactId>
300 <version>1.2.3</version>
303 <groupId>commons-dbcp</groupId>
304 <artifactId>commons-dbcp</artifactId>
305 <version>1.4</version>
309 <groupId>org.quartz-scheduler</groupId>
310 <artifactId>quartz</artifactId>
311 <version>2.2.1</version>
313 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
315 <groupId>c3p0</groupId>
316 <artifactId>c3p0</artifactId>
321 <groupId>javax.servlet</groupId>
322 <artifactId>javax.servlet-api</artifactId>
323 <version>3.1.0</version>