Set new master version for Dublin
[policy/engine.git] / ONAP-SDK-APP / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine
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
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   -->
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>
22     <parent>
23         <groupId>org.onap.policy.engine</groupId>
24         <artifactId>PolicyEngineSuite</artifactId>
25         <version>1.4.0-SNAPSHOT</version>
26     </parent>
27     <artifactId>ONAP-SDK-APP</artifactId>
28     <packaging>war</packaging>
29     <properties>
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>
41     </properties>
42     <profiles>
43         <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
44         <profile>
45             <id>doclint-java8-disable</id>
46             <activation>
47                 <jdk>[1.8,)</jdk>
48             </activation>
49             <build>
50                 <plugins>
51                     <plugin>
52                         <groupId>org.apache.maven.plugins</groupId>
53                         <artifactId>maven-javadoc-plugin</artifactId>
54                         <configuration>
55                             <additionalparam>-Xdoclint:none</additionalparam>
56                         </configuration>
57                     </plugin>
58                 </plugins>
59             </build>
60         </profile>
61     </profiles>
62     <build>
63         <plugins>
64             <plugin>
65                 <groupId>org.apache.maven.plugins</groupId>
66                 <artifactId>maven-compiler-plugin</artifactId>
67                 <configuration>
68                     <source>1.8</source>
69                     <target>1.8</target>
70                 </configuration>
71             </plugin>
72             <plugin>
73                 <groupId>org.apache.maven.plugins</groupId>
74                 <artifactId>maven-surefire-plugin</artifactId>
75                 <configuration>
76                     <skipTests>${skiptests}</skipTests>
77                     <includes>
78                         <include>**/Test*.java</include>
79                         <include>**/*Test.java</include>
80                         <include>**/*TestCase.java</include>
81                     </includes>
82                     <additionalClasspathElements>
83                         <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
84                     </additionalClasspathElements>
85                     <systemPropertyVariables>
86                         <container.classpath>classpath:</container.classpath>
87                     </systemPropertyVariables>
88                 </configuration>
89             </plugin>
90             <!-- add version number to manifest -->
91             <plugin>
92                 <groupId>org.apache.maven.plugins</groupId>
93                 <artifactId>maven-war-plugin</artifactId>
94                 <configuration>
95                     <attachClasses>true</attachClasses>
96                     <archive>
97                         <manifest>
98                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
99                         </manifest>
100                         <manifestEntries>
101                             <Build-Number>${project.version}</Build-Number>
102                             <Build-Time>${maven.build.timestamp}</Build-Time>
103                         </manifestEntries>
104                     </archive>
105                     <overlays>
106                         <overlay>
107                             <groupId>org.onap.portal.sdk</groupId>
108                             <artifactId>epsdk-app-overlay</artifactId>
109                             <excludes>
110                                 <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude>
111                             </excludes>
112                         </overlay>
113                         <overlay>
114                             <groupId>org.onap.policy.engine</groupId>
115                             <artifactId>POLICY-SDK-APP</artifactId>
116                         </overlay>
117                     </overlays>
118                 </configuration>
119             </plugin>
120             <plugin>
121                 <groupId>org.apache.maven.plugins</groupId>
122                 <artifactId>maven-assembly-plugin</artifactId>
123                 <configuration>
124                     <skipAssembly>${skipassembly}</skipAssembly>
125                     <descriptors>
126                         <descriptor>${basedir}/distribution.xml</descriptor>
127                     </descriptors>
128                 </configuration>
129                 <executions>
130                     <execution>
131                         <id>make-assembly</id>
132                         <phase>package</phase>
133                         <goals>
134                             <goal>single</goal>
135                         </goals>
136                     </execution>
137                 </executions>
138             </plugin>
139             <plugin>
140                 <groupId>org.apache.maven.plugins</groupId>
141                 <artifactId>maven-deploy-plugin</artifactId>
142                 <!-- parent specifies the<version>2.8</version> -->
143                 <configuration>
144                     <skip>true</skip>
145                 </configuration>
146             </plugin>
147             <plugin>
148                 <groupId>io.fabric8</groupId>
149                 <artifactId>docker-maven-plugin</artifactId>
150                 <version>0.22.0</version>
151                 <configuration>
152                     <verbose>true</verbose>
153                     <images>
154                         <image>
155                             <name>onap/portal-sdk:${project.version}</name>
156                             <build>
157                                 <from>frolvlad/alpine-oraclejdk8:slim</from>
158                                 <assembly>
159                                     <descriptorRef>artifact</descriptorRef>
160                                 </assembly>
161                                 <runCmds>
162                                     <!-- must be all on one line; use CDATA to turn off the Eclipse 
163                                         formatter -->
164                                     <run><![CDATA[wget -q ${tomcat.download.path}/${tomcat.download.name}.tar.gz]]></run>
165                                     <run>tar -xzf
166                                         ${tomcat.download.name}.tar.gz</run>
167                                     <run>rm -f
168                                         ${tomcat.download.name}.tar.gz</run>
169                                     <run>rm -fr
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>
174                                 </runCmds>
175                                 <cmd>
176                                     <shell>/opt/${tomcat.download.name}/bin/catalina.sh
177                                         run</shell>
178                                 </cmd>
179                             </build>
180                         </image>
181                     </images>
182                 </configuration>
183             </plugin>
184
185         </plugins>
186     </build>
187     <dependencies>
188         <!-- Policy overlay war -->
189         <dependency>
190             <groupId>org.onap.policy.engine</groupId>
191             <artifactId>POLICY-SDK-APP</artifactId>
192             <version>${project.version}</version>
193             <type>war</type>
194             <exclusions>
195                 <exclusion>
196                     <groupId>org.onap.portal.sdk</groupId>
197                     <artifactId>epsdk-core</artifactId>
198                 </exclusion>
199             </exclusions>
200         </dependency>
201         <dependency>
202             <groupId>org.onap.policy.engine</groupId>
203             <artifactId>POLICY-SDK-APP</artifactId>
204             <version>${project.version}</version>
205             <type>jar</type>
206             <classifier>classes</classifier>
207             <exclusions>
208                 <exclusion>
209                     <groupId>org.onap.portal.sdk</groupId>
210                     <artifactId>epsdk-core</artifactId>
211                 </exclusion>
212             </exclusions>
213         </dependency>
214         <dependency>
215             <groupId>org.onap.policy.engine</groupId>
216             <artifactId>PolicyEngineUtils</artifactId>
217             <version>${project.version}</version>
218             <exclusions>
219                 <exclusion>
220                     <groupId>com.att.aft</groupId>
221                     <artifactId>dme2</artifactId>
222                 </exclusion>
223             </exclusions>
224         </dependency>
225         <!-- SDK overlay war -->
226         <dependency>
227             <groupId>org.onap.portal.sdk</groupId>
228             <artifactId>epsdk-app-overlay</artifactId>
229             <version>${epsdk.version}</version>
230             <type>war</type>
231         </dependency>
232         <dependency>
233             <groupId>org.onap.portal.sdk</groupId>
234             <artifactId>epsdk-app-common</artifactId>
235             <version>${epsdk.version}</version>
236             <type>jar</type>
237             <exclusions>
238                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
239                 <exclusion>
240                     <groupId>org.springframework</groupId>
241                     <artifactId>spring-core</artifactId>
242                 </exclusion>
243                 <exclusion>
244                     <groupId>org.springframework</groupId>
245                     <artifactId>spring-web</artifactId>
246                 </exclusion>
247                 <exclusion>
248                     <groupId>org.springframework</groupId>
249                     <artifactId>spring-webmvc</artifactId>
250                 </exclusion>
251             </exclusions>
252         </dependency>
253         <!-- SDK components -->
254         <!--
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
258         -->
259         <dependency>
260             <groupId>commons-collections</groupId>
261             <artifactId>commons-collections</artifactId>
262             <version>3.2.2</version>
263         </dependency>
264         <dependency>
265             <groupId>org.onap.portal.sdk</groupId>
266             <artifactId>epsdk-core</artifactId>
267             <version>${epsdk.version}</version>
268             <exclusions>
269                 <exclusion>
270                     <groupId>mysql</groupId>
271                     <artifactId>mysql-connector-java</artifactId>
272                 </exclusion>
273                 <exclusion>
274                     <groupId>commons-collections</groupId>
275                     <artifactId>commons-collections</artifactId>
276                 </exclusion>
277                 <exclusion>
278                     <groupId>com.thoughtworks.xstream</groupId>
279                     <artifactId>xstream</artifactId>
280                 </exclusion>
281                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
282                 <exclusion>
283                     <groupId>org.springframework</groupId>
284                     <artifactId>spring-core</artifactId>
285                 </exclusion>
286                 <exclusion>
287                     <groupId>org.springframework</groupId>
288                     <artifactId>spring-web</artifactId>
289                 </exclusion>
290                 <exclusion>
291                     <groupId>org.springframework</groupId>
292                     <artifactId>spring-webmvc</artifactId>
293                 </exclusion>
294             </exclusions>
295         </dependency>
296         <dependency>
297             <groupId>org.onap.portal.sdk</groupId>
298             <artifactId>epsdk-analytics</artifactId>
299             <version>${epsdk.version}</version>
300             <exclusions>
301                 <exclusion>
302                     <groupId>com.oracle</groupId>
303                     <artifactId>ojdbc6</artifactId>
304                 </exclusion>
305                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
306                 <exclusion>
307                     <groupId>org.springframework</groupId>
308                     <artifactId>spring-core</artifactId>
309                 </exclusion>
310                 <exclusion>
311                     <groupId>org.springframework</groupId>
312                     <artifactId>spring-web</artifactId>
313                 </exclusion>
314                 <exclusion>
315                     <groupId>org.springframework</groupId>
316                     <artifactId>spring-webmvc</artifactId>
317                 </exclusion>
318             </exclusions>
319         </dependency>
320         <dependency>
321             <groupId>org.onap.portal.sdk</groupId>
322             <artifactId>epsdk-workflow</artifactId>
323             <version>${epsdk.version}</version>
324             <exclusions>
325                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
326                 <exclusion>
327                     <groupId>org.springframework</groupId>
328                     <artifactId>spring-core</artifactId>
329                 </exclusion>
330                 <exclusion>
331                     <groupId>org.springframework</groupId>
332                     <artifactId>spring-web</artifactId>
333                 </exclusion>
334                 <exclusion>
335                     <groupId>org.springframework</groupId>
336                     <artifactId>spring-webmvc</artifactId>
337                 </exclusion>
338             </exclusions>
339         </dependency>
340         <!-- Spring -->
341         <!-- Added dependencies to fix issue with duplicate jars of different versions -->
342         <dependency>
343             <groupId>org.springframework</groupId>
344             <artifactId>spring-core</artifactId>
345             <version>${springframework.version}</version>
346             <exclusions>
347                 <exclusion>
348                     <groupId>commons-logging</groupId>
349                     <artifactId>commons-logging</artifactId>
350                 </exclusion>
351             </exclusions>
352         </dependency>
353         <dependency>
354             <groupId>org.springframework</groupId>
355             <artifactId>spring-web</artifactId>
356             <version>${springframework.version}</version>
357         </dependency>
358         <dependency>
359             <groupId>org.springframework</groupId>
360             <artifactId>spring-webmvc</artifactId>
361             <version>${springframework.version}</version>
362         </dependency>
363         <!-- bridge to implement commons-logging using slf4j -->
364         <dependency>
365             <groupId>org.slf4j</groupId>
366             <artifactId>jcl-over-slf4j</artifactId>
367             <version>1.7.12</version>
368         </dependency>
369         <dependency>
370             <groupId>com.mchange</groupId>
371             <artifactId>c3p0</artifactId>
372             <version>0.9.5.2</version>
373         </dependency>
374         <!-- Maria DB -->
375         <dependency>
376             <groupId>org.mariadb.jdbc</groupId>
377             <artifactId>mariadb-java-client</artifactId>
378         </dependency>
379         <dependency>
380             <groupId>commons-dbcp</groupId>
381             <artifactId>commons-dbcp</artifactId>
382             <version>1.4</version>
383         </dependency>
384         <!-- Quartz -->
385         <dependency>
386             <groupId>org.quartz-scheduler</groupId>
387             <artifactId>quartz</artifactId>
388             <version>2.2.1</version>
389             <exclusions>
390                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
391                 <exclusion>
392                     <groupId>c3p0</groupId>
393                     <artifactId>c3p0</artifactId>
394                 </exclusion>
395             </exclusions>
396         </dependency>
397         <dependency>
398             <groupId>javax.servlet</groupId>
399             <artifactId>javax.servlet-api</artifactId>
400         </dependency>
401     </dependencies>
402 </project>