blob: 766e9475ecc62b16ba4a368c974307c9fe94a5ea [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 -->
Guo Ruijing073cc182017-07-31 08:47:35 +000020<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>
23 <parent>
24 <groupId>org.onap.policy.engine</groupId>
25 <artifactId>PolicyEngineSuite</artifactId>
Pamela Dragoshdca52202018-04-13 15:55:51 -040026 <version>1.2.1-SNAPSHOT</version>
Guo Ruijing073cc182017-07-31 08:47:35 +000027 </parent>
28 <artifactId>ONAP-SDK-APP</artifactId>
29 <packaging>war</packaging>
Guo Ruijing073cc182017-07-31 08:47:35 +000030 <properties>
31 <encoding>UTF-8</encoding>
rb714790d00372018-02-21 13:24:04 -050032 <epsdk.version>2.1.0</epsdk.version>
Guo Ruijing073cc182017-07-31 08:47:35 +000033 <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. -->
rb714742815082017-12-04 16:45:55 -050038 <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>
Guo Ruijing073cc182017-07-31 08:47:35 +000042 </properties>
43 <profiles>
44 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
45 <profile>
46 <id>doclint-java8-disable</id>
47 <activation>
48 <jdk>[1.8,)</jdk>
49 </activation>
50 <build>
51 <plugins>
52 <plugin>
53 <groupId>org.apache.maven.plugins</groupId>
54 <artifactId>maven-javadoc-plugin</artifactId>
55 <version>2.10.4</version>
56 <configuration>
57 <additionalparam>-Xdoclint:none</additionalparam>
58 </configuration>
59 </plugin>
60 </plugins>
61 </build>
62 </profile>
63 </profiles>
64 <build>
65 <plugins>
66 <plugin>
67 <groupId>org.apache.maven.plugins</groupId>
68 <artifactId>maven-compiler-plugin</artifactId>
69 <version>3.2</version>
70 <configuration>
71 <source>1.8</source>
72 <target>1.8</target>
73 </configuration>
74 </plugin>
75 <plugin>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-surefire-plugin</artifactId>
Guo Ruijing073cc182017-07-31 08:47:35 +000078 <configuration>
79 <skipTests>${skiptests}</skipTests>
80 <includes>
81 <include>**/Test*.java</include>
82 <include>**/*Test.java</include>
83 <include>**/*TestCase.java</include>
84 </includes>
85 <additionalClasspathElements>
86 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
87 </additionalClasspathElements>
88 <systemPropertyVariables>
89 <container.classpath>classpath:</container.classpath>
90 </systemPropertyVariables>
91 </configuration>
92 </plugin>
93 <!-- add version number to manifest -->
94 <plugin>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-war-plugin</artifactId>
97 <version>2.1</version>
98 <configuration>
rb714742815082017-12-04 16:45:55 -050099 <attachClasses>true</attachClasses>
Guo Ruijing073cc182017-07-31 08:47:35 +0000100 <archive>
101 <manifest>
102 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
103 </manifest>
104 <manifestEntries>
105 <Build-Number>${project.version}</Build-Number>
106 <Build-Time>${maven.build.timestamp}</Build-Time>
107 </manifestEntries>
108 </archive>
109 <overlays>
110 <overlay>
rb714733f0e2b2017-10-19 15:15:48 -0400111 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000112 <artifactId>epsdk-app-overlay</artifactId>
rb714733f0e2b2017-10-19 15:15:48 -0400113 <excludes>
rb714742815082017-12-04 16:45:55 -0500114 <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude>
115 </excludes>
Guo Ruijing073cc182017-07-31 08:47:35 +0000116 </overlay>
117 <overlay>
118 <groupId>org.onap.policy.engine</groupId>
119 <artifactId>POLICY-SDK-APP</artifactId>
120 </overlay>
121 </overlays>
122 </configuration>
123 </plugin>
124 <plugin>
rb714742815082017-12-04 16:45:55 -0500125 <groupId>org.apache.maven.plugins</groupId>
126 <artifactId>maven-assembly-plugin</artifactId>
127 <version>3.0.0</version>
128 <configuration>
129 <skipAssembly>${skipassembly}</skipAssembly>
130 <descriptors>
131 <descriptor>${basedir}/distribution.xml</descriptor>
132 </descriptors>
133 </configuration>
134 <executions>
135 <execution>
136 <id>make-assembly</id>
137 <phase>package</phase>
138 <goals>
139 <goal>single</goal>
140 </goals>
141 </execution>
142 </executions>
143 </plugin>
144 <plugin>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-deploy-plugin</artifactId>
147 <!-- parent specifies the<version>2.8</version> -->
148 <configuration>
149 <skip>true</skip>
150 </configuration>
151 </plugin>
152 <plugin>
153 <groupId>io.fabric8</groupId>
154 <artifactId>docker-maven-plugin</artifactId>
155 <version>0.22.0</version>
156 <configuration>
157 <verbose>true</verbose>
158 <images>
159 <image>
160 <name>onap/portal-sdk:${project.version}</name>
161 <build>
162 <from>frolvlad/alpine-oraclejdk8:slim</from>
163 <assembly>
164 <descriptorRef>artifact</descriptorRef>
165 </assembly>
166 <runCmds>
167 <!-- must be all on one line; use CDATA to turn off the Eclipse
168 formatter -->
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>
176 </runCmds>
177 <cmd>
178 <shell>/opt/${tomcat.download.name}/bin/catalina.sh run</shell>
179 </cmd>
180 </build>
181 </image>
182 </images>
183 </configuration>
184 </plugin>
185
Guo Ruijing073cc182017-07-31 08:47:35 +0000186 </plugins>
187 </build>
188 <dependencies>
rb714742815082017-12-04 16:45:55 -0500189 <!-- Policy overlay war -->
Guo Ruijing073cc182017-07-31 08:47:35 +0000190 <dependency>
191 <groupId>org.onap.policy.engine</groupId>
192 <artifactId>POLICY-SDK-APP</artifactId>
193 <version>${project.version}</version>
194 <type>war</type>
195 <exclusions>
196 <exclusion>
rb714733f0e2b2017-10-19 15:15:48 -0400197 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000198 <artifactId>epsdk-core</artifactId>
199 </exclusion>
200 </exclusions>
201 </dependency>
202 <dependency>
203 <groupId>org.onap.policy.engine</groupId>
204 <artifactId>POLICY-SDK-APP</artifactId>
205 <version>${project.version}</version>
206 <type>jar</type>
207 <classifier>classes</classifier>
208 <exclusions>
209 <exclusion>
rb714733f0e2b2017-10-19 15:15:48 -0400210 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000211 <artifactId>epsdk-core</artifactId>
212 </exclusion>
213 </exclusions>
214 </dependency>
215 <dependency>
216 <groupId>org.onap.policy.engine</groupId>
217 <artifactId>PolicyEngineUtils</artifactId>
218 <version>${project.version}</version>
219 <exclusions>
220 <exclusion>
221 <groupId>com.att.aft</groupId>
222 <artifactId>dme2</artifactId>
223 </exclusion>
224 </exclusions>
225 </dependency>
226 <!-- SDK overlay war -->
227 <dependency>
rb714733f0e2b2017-10-19 15:15:48 -0400228 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000229 <artifactId>epsdk-app-overlay</artifactId>
230 <version>${epsdk.version}</version>
231 <type>war</type>
232 </dependency>
233 <dependency>
rb714733f0e2b2017-10-19 15:15:48 -0400234 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000235 <artifactId>epsdk-app-common</artifactId>
236 <version>${epsdk.version}</version>
237 <type>jar</type>
238 </dependency>
239 <!-- SDK components -->
Pamela Dragoshd6465d52018-03-05 10:25:41 -0500240 <!--
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
244 -->
245 <dependency>
246 <groupId>commons-collections</groupId>
247 <artifactId>commons-collections</artifactId>
248 <version>3.2.2</version>
249 </dependency>
Guo Ruijing073cc182017-07-31 08:47:35 +0000250 <dependency>
rb714733f0e2b2017-10-19 15:15:48 -0400251 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000252 <artifactId>epsdk-core</artifactId>
253 <version>${epsdk.version}</version>
rb714733f0e2b2017-10-19 15:15:48 -0400254 <exclusions>
255 <exclusion>
256 <groupId>mysql</groupId>
rb714742815082017-12-04 16:45:55 -0500257 <artifactId>mysql-connector-java</artifactId>
rb714733f0e2b2017-10-19 15:15:48 -0400258 </exclusion>
Pamela Dragoshd6465d52018-03-05 10:25:41 -0500259 <exclusion>
260 <groupId>commons-collections</groupId>
261 <artifactId>commons-collections</artifactId>
262 </exclusion>
Pamela Dragosha86b80a2018-03-28 16:30:42 -0700263 <exclusion>
264 <groupId>com.thoughtworks.xstream</groupId>
265 <artifactId>xstream</artifactId>
266 </exclusion>
rb714733f0e2b2017-10-19 15:15:48 -0400267 </exclusions>
Guo Ruijing073cc182017-07-31 08:47:35 +0000268 </dependency>
269 <dependency>
rb714733f0e2b2017-10-19 15:15:48 -0400270 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000271 <artifactId>epsdk-analytics</artifactId>
272 <version>${epsdk.version}</version>
273 <exclusions>
274 <exclusion>
275 <groupId>com.oracle</groupId>
276 <artifactId>ojdbc6</artifactId>
277 </exclusion>
278 </exclusions>
279 </dependency>
280 <dependency>
rb714733f0e2b2017-10-19 15:15:48 -0400281 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000282 <artifactId>epsdk-workflow</artifactId>
283 <version>${epsdk.version}</version>
284 </dependency>
rb714742815082017-12-04 16:45:55 -0500285 <!-- bridge to implement commons-logging using slf4j -->
Guo Ruijing073cc182017-07-31 08:47:35 +0000286 <dependency>
287 <groupId>org.slf4j</groupId>
288 <artifactId>jcl-over-slf4j</artifactId>
289 <version>1.7.12</version>
290 </dependency>
291 <dependency>
292 <groupId>com.mchange</groupId>
293 <artifactId>c3p0</artifactId>
294 <version>0.9.5.2</version>
295 </dependency>
296 <!-- Maria DB -->
297 <dependency>
298 <groupId>org.mariadb.jdbc</groupId>
299 <artifactId>mariadb-java-client</artifactId>
300 <version>1.2.3</version>
301 </dependency>
302 <dependency>
303 <groupId>commons-dbcp</groupId>
304 <artifactId>commons-dbcp</artifactId>
305 <version>1.4</version>
306 </dependency>
307 <!-- Quartz -->
308 <dependency>
309 <groupId>org.quartz-scheduler</groupId>
310 <artifactId>quartz</artifactId>
311 <version>2.2.1</version>
312 <exclusions>
313 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
314 <exclusion>
315 <groupId>c3p0</groupId>
316 <artifactId>c3p0</artifactId>
317 </exclusion>
318 </exclusions>
319 </dependency>
320 <dependency>
321 <groupId>javax.servlet</groupId>
322 <artifactId>javax.servlet-api</artifactId>
323 <version>3.1.0</version>
324 </dependency>
Guo Ruijing073cc182017-07-31 08:47:35 +0000325 </dependencies>
326</project>