blob: f08b76d765cdf18f20b5d600f6e28eeba3ac117d [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 -->
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040020<project xmlns="http://maven.apache.org/POM/4.0.0"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
24 <parent>
25 <groupId>org.onap.policy.engine</groupId>
26 <artifactId>PolicyEngineSuite</artifactId>
27 <version>1.3.0-SNAPSHOT</version>
28 </parent>
29 <artifactId>ONAP-SDK-APP</artifactId>
30 <packaging>war</packaging>
31 <properties>
32 <encoding>UTF-8</encoding>
33 <epsdk.version>2.3.1</epsdk.version>
34 <springframework.version>4.2.0.RELEASE</springframework.version>
35 <hibernate.version>4.3.11.Final</hibernate.version>
36 <!-- Skip assembling the zip; assemble via mvn -Dskipassembly=false .. -->
37 <skipassembly>true</skipassembly>
38 <!-- Tests usually require some setup that maven cannot do, so skip. -->
39 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**,src/main/webapp/**/*</sonar.exclusions>
40 <!-- Version number gets stored only here -->
41 <tomcat.download.path>http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.37/bin</tomcat.download.path>
42 <tomcat.download.name>apache-tomcat-8.0.37</tomcat.download.name>
43 </properties>
44 <profiles>
45 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
46 <profile>
47 <id>doclint-java8-disable</id>
48 <activation>
49 <jdk>[1.8,)</jdk>
50 </activation>
51 <build>
52 <plugins>
53 <plugin>
54 <groupId>org.apache.maven.plugins</groupId>
55 <artifactId>maven-javadoc-plugin</artifactId>
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 <configuration>
70 <source>1.8</source>
71 <target>1.8</target>
72 </configuration>
73 </plugin>
74 <plugin>
75 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-surefire-plugin</artifactId>
77 <configuration>
78 <skipTests>${skiptests}</skipTests>
79 <includes>
80 <include>**/Test*.java</include>
81 <include>**/*Test.java</include>
82 <include>**/*TestCase.java</include>
83 </includes>
84 <additionalClasspathElements>
85 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
86 </additionalClasspathElements>
87 <systemPropertyVariables>
88 <container.classpath>classpath:</container.classpath>
89 </systemPropertyVariables>
90 </configuration>
91 </plugin>
92 <!-- add version number to manifest -->
93 <plugin>
94 <groupId>org.apache.maven.plugins</groupId>
95 <artifactId>maven-war-plugin</artifactId>
96 <configuration>
97 <attachClasses>true</attachClasses>
98 <archive>
99 <manifest>
100 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
101 </manifest>
102 <manifestEntries>
103 <Build-Number>${project.version}</Build-Number>
104 <Build-Time>${maven.build.timestamp}</Build-Time>
105 </manifestEntries>
106 </archive>
107 <overlays>
108 <overlay>
109 <groupId>org.onap.portal.sdk</groupId>
110 <artifactId>epsdk-app-overlay</artifactId>
111 <excludes>
112 <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude>
113 </excludes>
114 </overlay>
115 <overlay>
116 <groupId>org.onap.policy.engine</groupId>
117 <artifactId>POLICY-SDK-APP</artifactId>
118 </overlay>
119 </overlays>
120 </configuration>
121 </plugin>
122 <plugin>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-assembly-plugin</artifactId>
125 <configuration>
126 <skipAssembly>${skipassembly}</skipAssembly>
127 <descriptors>
128 <descriptor>${basedir}/distribution.xml</descriptor>
129 </descriptors>
130 </configuration>
131 <executions>
132 <execution>
133 <id>make-assembly</id>
134 <phase>package</phase>
135 <goals>
136 <goal>single</goal>
137 </goals>
138 </execution>
139 </executions>
140 </plugin>
141 <plugin>
142 <groupId>org.apache.maven.plugins</groupId>
143 <artifactId>maven-deploy-plugin</artifactId>
144 <!-- parent specifies the<version>2.8</version> -->
145 <configuration>
146 <skip>true</skip>
147 </configuration>
148 </plugin>
149 <plugin>
150 <groupId>io.fabric8</groupId>
151 <artifactId>docker-maven-plugin</artifactId>
152 <version>0.22.0</version>
153 <configuration>
154 <verbose>true</verbose>
155 <images>
156 <image>
157 <name>onap/portal-sdk:${project.version}</name>
158 <build>
159 <from>frolvlad/alpine-oraclejdk8:slim</from>
160 <assembly>
161 <descriptorRef>artifact</descriptorRef>
162 </assembly>
163 <runCmds>
164 <!-- must be all on one line; use CDATA to turn off the Eclipse
165 formatter -->
166 <run><![CDATA[wget -q ${tomcat.download.path}/${tomcat.download.name}.tar.gz]]></run>
167 <run>tar -xzf
168 ${tomcat.download.name}.tar.gz</run>
169 <run>rm -f
170 ${tomcat.download.name}.tar.gz</run>
171 <run>rm -fr
172 ${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
179 run</shell>
180 </cmd>
181 </build>
182 </image>
183 </images>
184 </configuration>
185 </plugin>
rb714742815082017-12-04 16:45:55 -0500186
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400187 </plugins>
188 </build>
189 <dependencies>
190 <!-- Policy overlay war -->
191 <dependency>
192 <groupId>org.onap.policy.engine</groupId>
193 <artifactId>POLICY-SDK-APP</artifactId>
194 <version>${project.version}</version>
195 <type>war</type>
196 <exclusions>
197 <exclusion>
198 <groupId>org.onap.portal.sdk</groupId>
199 <artifactId>epsdk-core</artifactId>
200 </exclusion>
201 </exclusions>
202 </dependency>
203 <dependency>
204 <groupId>org.onap.policy.engine</groupId>
205 <artifactId>POLICY-SDK-APP</artifactId>
206 <version>${project.version}</version>
207 <type>jar</type>
208 <classifier>classes</classifier>
209 <exclusions>
210 <exclusion>
211 <groupId>org.onap.portal.sdk</groupId>
212 <artifactId>epsdk-core</artifactId>
213 </exclusion>
214 </exclusions>
215 </dependency>
216 <dependency>
217 <groupId>org.onap.policy.engine</groupId>
218 <artifactId>PolicyEngineUtils</artifactId>
219 <version>${project.version}</version>
220 <exclusions>
221 <exclusion>
222 <groupId>com.att.aft</groupId>
223 <artifactId>dme2</artifactId>
224 </exclusion>
225 </exclusions>
226 </dependency>
227 <!-- SDK overlay war -->
228 <dependency>
229 <groupId>org.onap.portal.sdk</groupId>
230 <artifactId>epsdk-app-overlay</artifactId>
231 <version>${epsdk.version}</version>
232 <type>war</type>
233 </dependency>
234 <dependency>
235 <groupId>org.onap.portal.sdk</groupId>
236 <artifactId>epsdk-app-common</artifactId>
237 <version>${epsdk.version}</version>
238 <type>jar</type>
239 </dependency>
240 <!-- SDK components -->
241 <!--
242 CLM security fix - force use of commons-collections 3.2.2.
243 Remove this if a new version of epsdk-core is upgraded
244 to not use esapi (and then subsequently commons-collections v3.2
245 -->
246 <dependency>
247 <groupId>commons-collections</groupId>
248 <artifactId>commons-collections</artifactId>
249 <version>3.2.2</version>
250 </dependency>
251 <dependency>
252 <groupId>org.onap.portal.sdk</groupId>
253 <artifactId>epsdk-core</artifactId>
254 <version>${epsdk.version}</version>
255 <exclusions>
256 <exclusion>
257 <groupId>mysql</groupId>
258 <artifactId>mysql-connector-java</artifactId>
259 </exclusion>
260 <exclusion>
261 <groupId>commons-collections</groupId>
262 <artifactId>commons-collections</artifactId>
263 </exclusion>
264 <exclusion>
265 <groupId>com.thoughtworks.xstream</groupId>
266 <artifactId>xstream</artifactId>
267 </exclusion>
268 </exclusions>
269 </dependency>
270 <dependency>
271 <groupId>org.onap.portal.sdk</groupId>
272 <artifactId>epsdk-analytics</artifactId>
273 <version>${epsdk.version}</version>
274 <exclusions>
275 <exclusion>
276 <groupId>com.oracle</groupId>
277 <artifactId>ojdbc6</artifactId>
278 </exclusion>
279 </exclusions>
280 </dependency>
281 <dependency>
282 <groupId>org.onap.portal.sdk</groupId>
283 <artifactId>epsdk-workflow</artifactId>
284 <version>${epsdk.version}</version>
285 </dependency>
286 <!-- bridge to implement commons-logging using slf4j -->
287 <dependency>
288 <groupId>org.slf4j</groupId>
289 <artifactId>jcl-over-slf4j</artifactId>
290 <version>1.7.12</version>
291 </dependency>
292 <dependency>
293 <groupId>com.mchange</groupId>
294 <artifactId>c3p0</artifactId>
295 <version>0.9.5.2</version>
296 </dependency>
297 <!-- Maria DB -->
298 <dependency>
299 <groupId>org.mariadb.jdbc</groupId>
300 <artifactId>mariadb-java-client</artifactId>
301 <version>1.2.3</version>
302 </dependency>
303 <dependency>
304 <groupId>commons-dbcp</groupId>
305 <artifactId>commons-dbcp</artifactId>
306 <version>1.4</version>
307 </dependency>
308 <!-- Quartz -->
309 <dependency>
310 <groupId>org.quartz-scheduler</groupId>
311 <artifactId>quartz</artifactId>
312 <version>2.2.1</version>
313 <exclusions>
314 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
315 <exclusion>
316 <groupId>c3p0</groupId>
317 <artifactId>c3p0</artifactId>
318 </exclusion>
319 </exclusions>
320 </dependency>
321 <dependency>
322 <groupId>javax.servlet</groupId>
323 <artifactId>javax.servlet-api</artifactId>
324 </dependency>
325 </dependencies>
Guo Ruijing073cc182017-07-31 08:47:35 +0000326</project>