Fixed issue with springframework dependencies
[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"
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.4.0</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>
186
187         </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             <exclusions>
240                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
241                 <exclusion>
242                     <groupId>org.springframework</groupId>
243                     <artifactId>spring-core</artifactId>
244                 </exclusion>
245                 <exclusion>
246                     <groupId>org.springframework</groupId>
247                     <artifactId>spring-web</artifactId>
248                 </exclusion>
249                 <exclusion>
250                     <groupId>org.springframework</groupId>
251                     <artifactId>spring-webmvc</artifactId>
252                 </exclusion>
253             </exclusions>
254         </dependency>
255         <!-- SDK components -->
256         <!--
257         CLM security fix - force use of commons-collections 3.2.2.
258         Remove this if a new version of epsdk-core is upgraded
259         to not use esapi (and then subsequently commons-collections v3.2
260         -->
261         <dependency>
262             <groupId>commons-collections</groupId>
263             <artifactId>commons-collections</artifactId>
264             <version>3.2.2</version>
265         </dependency>
266         <dependency>
267             <groupId>org.onap.portal.sdk</groupId>
268             <artifactId>epsdk-core</artifactId>
269             <version>${epsdk.version}</version>
270             <exclusions>
271                 <exclusion>
272                     <groupId>mysql</groupId>
273                     <artifactId>mysql-connector-java</artifactId>
274                 </exclusion>
275                 <exclusion>
276                     <groupId>commons-collections</groupId>
277                     <artifactId>commons-collections</artifactId>
278                 </exclusion>
279                 <exclusion>
280                     <groupId>com.thoughtworks.xstream</groupId>
281                     <artifactId>xstream</artifactId>
282                 </exclusion>
283                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
284                 <exclusion>
285                     <groupId>org.springframework</groupId>
286                     <artifactId>spring-core</artifactId>
287                 </exclusion>
288                 <exclusion>
289                     <groupId>org.springframework</groupId>
290                     <artifactId>spring-web</artifactId>
291                 </exclusion>
292                 <exclusion>
293                     <groupId>org.springframework</groupId>
294                     <artifactId>spring-webmvc</artifactId>
295                 </exclusion>
296             </exclusions>
297         </dependency>
298         <dependency>
299             <groupId>org.onap.portal.sdk</groupId>
300             <artifactId>epsdk-analytics</artifactId>
301             <version>${epsdk.version}</version>
302             <exclusions>
303                 <exclusion>
304                     <groupId>com.oracle</groupId>
305                     <artifactId>ojdbc6</artifactId>
306                 </exclusion>
307                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
308                 <exclusion>
309                     <groupId>org.springframework</groupId>
310                     <artifactId>spring-core</artifactId>
311                 </exclusion>
312                 <exclusion>
313                     <groupId>org.springframework</groupId>
314                     <artifactId>spring-web</artifactId>
315                 </exclusion>
316                 <exclusion>
317                     <groupId>org.springframework</groupId>
318                     <artifactId>spring-webmvc</artifactId>
319                 </exclusion>
320             </exclusions>
321         </dependency>
322         <dependency>
323             <groupId>org.onap.portal.sdk</groupId>
324             <artifactId>epsdk-workflow</artifactId>
325             <version>${epsdk.version}</version>
326             <exclusions>
327                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
328                 <exclusion>
329                     <groupId>org.springframework</groupId>
330                     <artifactId>spring-core</artifactId>
331                 </exclusion>
332                 <exclusion>
333                     <groupId>org.springframework</groupId>
334                     <artifactId>spring-web</artifactId>
335                 </exclusion>
336                 <exclusion>
337                     <groupId>org.springframework</groupId>
338                     <artifactId>spring-webmvc</artifactId>
339                 </exclusion>
340             </exclusions>
341         </dependency>
342         <!-- Spring -->
343         <!-- Added dependencies to fix issue with duplicate jars of different versions -->
344         <dependency>
345             <groupId>org.springframework</groupId>
346             <artifactId>spring-core</artifactId>
347             <version>${springframework.version}</version>
348             <exclusions>
349                 <exclusion>
350                     <groupId>commons-logging</groupId>
351                     <artifactId>commons-logging</artifactId>
352                 </exclusion>
353             </exclusions>
354         </dependency>
355         <dependency>
356             <groupId>org.springframework</groupId>
357             <artifactId>spring-web</artifactId>
358             <version>${springframework.version}</version>
359         </dependency>
360         <dependency>
361             <groupId>org.springframework</groupId>
362             <artifactId>spring-webmvc</artifactId>
363             <version>${springframework.version}</version>
364         </dependency>
365         <!-- bridge to implement commons-logging using slf4j -->
366         <dependency>
367             <groupId>org.slf4j</groupId>
368             <artifactId>jcl-over-slf4j</artifactId>
369             <version>1.7.12</version>
370         </dependency>
371         <dependency>
372             <groupId>com.mchange</groupId>
373             <artifactId>c3p0</artifactId>
374             <version>0.9.5.2</version>
375         </dependency>
376         <!-- Maria DB -->
377         <dependency>
378             <groupId>org.mariadb.jdbc</groupId>
379             <artifactId>mariadb-java-client</artifactId>
380         </dependency>
381         <dependency>
382             <groupId>commons-dbcp</groupId>
383             <artifactId>commons-dbcp</artifactId>
384             <version>1.4</version>
385         </dependency>
386         <!-- Quartz -->
387         <dependency>
388             <groupId>org.quartz-scheduler</groupId>
389             <artifactId>quartz</artifactId>
390             <version>2.2.1</version>
391             <exclusions>
392                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
393                 <exclusion>
394                     <groupId>c3p0</groupId>
395                     <artifactId>c3p0</artifactId>
396                 </exclusion>
397             </exclusions>
398         </dependency>
399         <dependency>
400             <groupId>javax.servlet</groupId>
401             <artifactId>javax.servlet-api</artifactId>
402         </dependency>
403     </dependencies>
404 </project>