blob: 67f810e125a252ac5c2c7be6a1dccf33941f4918 [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>
Jessica Wagantalldb597fe2017-11-18 18:50:29 -080026 <version>1.2.0-SNAPSHOT</version>
Guo Ruijing073cc182017-07-31 08:47:35 +000027 </parent>
28 <artifactId>ONAP-SDK-APP</artifactId>
29 <packaging>war</packaging>
30
31 <properties>
32 <encoding>UTF-8</encoding>
rb714742815082017-12-04 16:45:55 -050033 <epsdk.version>2.1.0-SNAPSHOT</epsdk.version>
Guo Ruijing073cc182017-07-31 08:47:35 +000034 <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. -->
rb714742815082017-12-04 16:45:55 -050039 <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>
Guo Ruijing073cc182017-07-31 08:47:35 +000043 </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 <version>2.10.4</version>
57 <configuration>
58 <additionalparam>-Xdoclint:none</additionalparam>
59 </configuration>
60 </plugin>
61 </plugins>
62 </build>
63 </profile>
64 </profiles>
65 <build>
66 <plugins>
67 <plugin>
68 <groupId>org.apache.maven.plugins</groupId>
69 <artifactId>maven-compiler-plugin</artifactId>
70 <version>3.2</version>
71 <configuration>
72 <source>1.8</source>
73 <target>1.8</target>
74 </configuration>
75 </plugin>
76 <plugin>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-surefire-plugin</artifactId>
Guo Ruijing073cc182017-07-31 08:47:35 +000079 <configuration>
80 <skipTests>${skiptests}</skipTests>
81 <includes>
82 <include>**/Test*.java</include>
83 <include>**/*Test.java</include>
84 <include>**/*TestCase.java</include>
85 </includes>
86 <additionalClasspathElements>
87 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
88 </additionalClasspathElements>
89 <systemPropertyVariables>
90 <container.classpath>classpath:</container.classpath>
91 </systemPropertyVariables>
92 </configuration>
93 </plugin>
94 <!-- add version number to manifest -->
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-war-plugin</artifactId>
98 <version>2.1</version>
99 <configuration>
rb714742815082017-12-04 16:45:55 -0500100 <attachClasses>true</attachClasses>
Guo Ruijing073cc182017-07-31 08:47:35 +0000101 <archive>
102 <manifest>
103 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
104 </manifest>
105 <manifestEntries>
106 <Build-Number>${project.version}</Build-Number>
107 <Build-Time>${maven.build.timestamp}</Build-Time>
108 </manifestEntries>
109 </archive>
110 <overlays>
111 <overlay>
rb714733f0e2b2017-10-19 15:15:48 -0400112 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000113 <artifactId>epsdk-app-overlay</artifactId>
rb714733f0e2b2017-10-19 15:15:48 -0400114 <excludes>
rb714742815082017-12-04 16:45:55 -0500115 <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude>
116 </excludes>
Guo Ruijing073cc182017-07-31 08:47:35 +0000117 </overlay>
118 <overlay>
119 <groupId>org.onap.policy.engine</groupId>
120 <artifactId>POLICY-SDK-APP</artifactId>
121 </overlay>
122 </overlays>
123 </configuration>
124 </plugin>
125 <plugin>
rb714742815082017-12-04 16:45:55 -0500126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-assembly-plugin</artifactId>
128 <version>3.0.0</version>
129 <configuration>
130 <skipAssembly>${skipassembly}</skipAssembly>
131 <descriptors>
132 <descriptor>${basedir}/distribution.xml</descriptor>
133 </descriptors>
134 </configuration>
135 <executions>
136 <execution>
137 <id>make-assembly</id>
138 <phase>package</phase>
139 <goals>
140 <goal>single</goal>
141 </goals>
142 </execution>
143 </executions>
144 </plugin>
145 <plugin>
146 <groupId>org.apache.maven.plugins</groupId>
147 <artifactId>maven-deploy-plugin</artifactId>
148 <!-- parent specifies the<version>2.8</version> -->
149 <configuration>
150 <skip>true</skip>
151 </configuration>
152 </plugin>
153 <plugin>
154 <groupId>io.fabric8</groupId>
155 <artifactId>docker-maven-plugin</artifactId>
156 <version>0.22.0</version>
157 <configuration>
158 <verbose>true</verbose>
159 <images>
160 <image>
161 <name>onap/portal-sdk:${project.version}</name>
162 <build>
163 <from>frolvlad/alpine-oraclejdk8:slim</from>
164 <assembly>
165 <descriptorRef>artifact</descriptorRef>
166 </assembly>
167 <runCmds>
168 <!-- must be all on one line; use CDATA to turn off the Eclipse
169 formatter -->
170 <run><![CDATA[wget -q ${tomcat.download.path}/${tomcat.download.name}.tar.gz]]></run>
171 <run>tar -xzf ${tomcat.download.name}.tar.gz</run>
172 <run>rm -f ${tomcat.download.name}.tar.gz</run>
173 <run>rm -fr ${tomcat.download.name}/webapps/[a-z]*</run>
174 <run>mkdir -p /opt</run>
175 <run>mv ${tomcat.download.name} /opt</run>
176 <run><![CDATA[mv /maven/*.war /opt/${tomcat.download.name}/webapps/ONAPPORTALSDK.war]]></run>
177 </runCmds>
178 <cmd>
179 <shell>/opt/${tomcat.download.name}/bin/catalina.sh run</shell>
180 </cmd>
181 </build>
182 </image>
183 </images>
184 </configuration>
185 </plugin>
186
Guo Ruijing073cc182017-07-31 08:47:35 +0000187 </plugins>
188 </build>
189 <dependencies>
rb714742815082017-12-04 16:45:55 -0500190 <!-- Policy overlay war -->
Guo Ruijing073cc182017-07-31 08:47:35 +0000191 <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>
rb714733f0e2b2017-10-19 15:15:48 -0400198 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000199 <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>
rb714733f0e2b2017-10-19 15:15:48 -0400211 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000212 <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>
rb714733f0e2b2017-10-19 15:15:48 -0400229 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000230 <artifactId>epsdk-app-overlay</artifactId>
231 <version>${epsdk.version}</version>
232 <type>war</type>
233 </dependency>
234 <dependency>
rb714733f0e2b2017-10-19 15:15:48 -0400235 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000236 <artifactId>epsdk-app-common</artifactId>
237 <version>${epsdk.version}</version>
238 <type>jar</type>
239 </dependency>
240 <!-- SDK components -->
241 <dependency>
rb714733f0e2b2017-10-19 15:15:48 -0400242 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000243 <artifactId>epsdk-core</artifactId>
244 <version>${epsdk.version}</version>
rb714733f0e2b2017-10-19 15:15:48 -0400245 <exclusions>
246 <exclusion>
247 <groupId>mysql</groupId>
rb714742815082017-12-04 16:45:55 -0500248 <artifactId>mysql-connector-java</artifactId>
rb714733f0e2b2017-10-19 15:15:48 -0400249 </exclusion>
250 </exclusions>
Guo Ruijing073cc182017-07-31 08:47:35 +0000251 </dependency>
252 <dependency>
rb714733f0e2b2017-10-19 15:15:48 -0400253 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000254 <artifactId>epsdk-analytics</artifactId>
255 <version>${epsdk.version}</version>
256 <exclusions>
257 <exclusion>
258 <groupId>com.oracle</groupId>
259 <artifactId>ojdbc6</artifactId>
260 </exclusion>
261 </exclusions>
262 </dependency>
263 <dependency>
rb714733f0e2b2017-10-19 15:15:48 -0400264 <groupId>org.onap.portal.sdk</groupId>
Guo Ruijing073cc182017-07-31 08:47:35 +0000265 <artifactId>epsdk-workflow</artifactId>
266 <version>${epsdk.version}</version>
267 </dependency>
268 <dependency>
269 <groupId>com.att.eelf</groupId>
270 <artifactId>eelf-core</artifactId>
271 <version>0.0.1</version>
272 </dependency>
rb714742815082017-12-04 16:45:55 -0500273 <!-- bridge to implement commons-logging using slf4j -->
Guo Ruijing073cc182017-07-31 08:47:35 +0000274 <dependency>
275 <groupId>org.slf4j</groupId>
276 <artifactId>jcl-over-slf4j</artifactId>
277 <version>1.7.12</version>
278 </dependency>
279 <dependency>
280 <groupId>com.mchange</groupId>
281 <artifactId>c3p0</artifactId>
282 <version>0.9.5.2</version>
283 </dependency>
284 <!-- Maria DB -->
285 <dependency>
286 <groupId>org.mariadb.jdbc</groupId>
287 <artifactId>mariadb-java-client</artifactId>
288 <version>1.2.3</version>
289 </dependency>
290 <dependency>
291 <groupId>commons-dbcp</groupId>
292 <artifactId>commons-dbcp</artifactId>
293 <version>1.4</version>
294 </dependency>
295 <!-- Quartz -->
296 <dependency>
297 <groupId>org.quartz-scheduler</groupId>
298 <artifactId>quartz</artifactId>
299 <version>2.2.1</version>
300 <exclusions>
301 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
302 <exclusion>
303 <groupId>c3p0</groupId>
304 <artifactId>c3p0</artifactId>
305 </exclusion>
306 </exclusions>
307 </dependency>
308 <dependency>
309 <groupId>javax.servlet</groupId>
310 <artifactId>javax.servlet-api</artifactId>
311 <version>3.1.0</version>
312 </dependency>
313 <dependency>
314 <groupId>junit</groupId>
315 <artifactId>junit</artifactId>
316 <version>4.12</version>
317 </dependency>
318 </dependencies>
319</project>