c3c595c53ca69e49ee328648f1c3c789c32372c0
[policy/engine.git] / ONAP-SDK-APP / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine
4   ================================================================================
5   Copyright (C) 2017-2018, 2020 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.6.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.6.0</epsdk.version>
32         <springframework.version>4.3.24.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-surefire-plugin</artifactId>
67                 <configuration>
68                     <skipTests>${skiptests}</skipTests>
69                     <includes>
70                         <include>**/Test*.java</include>
71                         <include>**/*Test.java</include>
72                         <include>**/*TestCase.java</include>
73                     </includes>
74                     <additionalClasspathElements>
75                         <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
76                     </additionalClasspathElements>
77                     <systemPropertyVariables>
78                         <container.classpath>classpath:</container.classpath>
79                     </systemPropertyVariables>
80                 </configuration>
81             </plugin>
82             <!-- add version number to manifest -->
83             <plugin>
84                 <groupId>org.apache.maven.plugins</groupId>
85                 <artifactId>maven-war-plugin</artifactId>
86                 <configuration>
87                     <attachClasses>true</attachClasses>
88                     <archive>
89                         <manifest>
90                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
91                         </manifest>
92                         <manifestEntries>
93                             <Build-Number>${project.version}</Build-Number>
94                             <Build-Time>${maven.build.timestamp}</Build-Time>
95                         </manifestEntries>
96                     </archive>
97                     <overlays>
98                         <overlay>
99                             <groupId>org.onap.portal.sdk</groupId>
100                             <artifactId>epsdk-app-overlay</artifactId>
101                             <excludes>
102                                 <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude>
103                             </excludes>
104                         </overlay>
105                         <overlay>
106                             <groupId>org.onap.policy.engine</groupId>
107                             <artifactId>POLICY-SDK-APP</artifactId>
108                         </overlay>
109                     </overlays>
110                 </configuration>
111             </plugin>
112             <plugin>
113                 <groupId>org.apache.maven.plugins</groupId>
114                 <artifactId>maven-assembly-plugin</artifactId>
115                 <configuration>
116                     <skipAssembly>${skipassembly}</skipAssembly>
117                     <descriptors>
118                         <descriptor>${basedir}/distribution.xml</descriptor>
119                     </descriptors>
120                 </configuration>
121                 <executions>
122                     <execution>
123                         <id>make-assembly</id>
124                         <phase>package</phase>
125                         <goals>
126                             <goal>single</goal>
127                         </goals>
128                     </execution>
129                 </executions>
130             </plugin>
131             <plugin>
132                 <groupId>org.apache.maven.plugins</groupId>
133                 <artifactId>maven-deploy-plugin</artifactId>
134                 <!-- parent specifies the<version>2.8</version> -->
135                 <configuration>
136                     <skip>true</skip>
137                 </configuration>
138             </plugin>
139             <plugin>
140                 <groupId>io.fabric8</groupId>
141                 <artifactId>docker-maven-plugin</artifactId>
142                 <version>0.22.0</version>
143                 <configuration>
144                     <verbose>true</verbose>
145                     <images>
146                         <image>
147                             <name>onap/portal-sdk:${project.version}</name>
148                             <build>
149                                 <from>frolvlad/alpine-oraclejdk8:slim</from>
150                                 <assembly>
151                                     <descriptorRef>artifact</descriptorRef>
152                                 </assembly>
153                                 <runCmds>
154                                     <!-- must be all on one line; use CDATA to turn off the Eclipse 
155                                         formatter -->
156                                     <run><![CDATA[wget -q ${tomcat.download.path}/${tomcat.download.name}.tar.gz]]></run>
157                                     <run>tar -xzf
158                                         ${tomcat.download.name}.tar.gz</run>
159                                     <run>rm -f
160                                         ${tomcat.download.name}.tar.gz</run>
161                                     <run>rm -fr
162                                         ${tomcat.download.name}/webapps/[a-z]*</run>
163                                     <run>mkdir -p /opt</run>
164                                     <run>mv ${tomcat.download.name} /opt</run>
165                                     <run><![CDATA[mv /maven/*.war /opt/${tomcat.download.name}/webapps/ONAPPORTALSDK.war]]></run>
166                                 </runCmds>
167                                 <cmd>
168                                     <shell>/opt/${tomcat.download.name}/bin/catalina.sh
169                                         run</shell>
170                                 </cmd>
171                             </build>
172                         </image>
173                     </images>
174                 </configuration>
175             </plugin>
176
177         </plugins>
178     </build>
179     <dependencies>
180         <dependency>
181             <groupId>org.powermock</groupId>
182             <artifactId>powermock-api-mockito2</artifactId>
183             <scope>test</scope>
184         </dependency>
185         <!-- Policy overlay war -->
186         <dependency>
187             <groupId>org.onap.policy.engine</groupId>
188             <artifactId>POLICY-SDK-APP</artifactId>
189             <version>${project.version}</version>
190             <type>war</type>
191             <exclusions>
192                 <exclusion>
193                     <groupId>org.onap.portal.sdk</groupId>
194                     <artifactId>epsdk-core</artifactId>
195                 </exclusion>
196                 <exclusion>
197                     <groupId>org.apache.xmlbeans</groupId>
198                     <artifactId>xmlbeans</artifactId>
199                 </exclusion>
200                 <exclusion>
201                     <groupId>dom4j</groupId>
202                     <artifactId>dom4j</artifactId>
203                 </exclusion>
204             </exclusions>
205         </dependency>
206         <dependency>
207             <groupId>org.onap.policy.engine</groupId>
208             <artifactId>POLICY-SDK-APP</artifactId>
209             <version>${project.version}</version>
210             <type>jar</type>
211             <classifier>classes</classifier>
212             <exclusions>
213                 <exclusion>
214                     <groupId>org.onap.portal.sdk</groupId>
215                     <artifactId>epsdk-core</artifactId>
216                 </exclusion>
217             </exclusions>
218         </dependency>
219         <dependency>
220             <groupId>org.onap.policy.engine</groupId>
221             <artifactId>PolicyEngineUtils</artifactId>
222             <version>${project.version}</version>
223             <exclusions>
224                 <exclusion>
225                     <groupId>com.att.aft</groupId>
226                     <artifactId>dme2</artifactId>
227                 </exclusion>
228             </exclusions>
229         </dependency>
230         <!-- SDK overlay war -->
231         <dependency>
232             <groupId>org.onap.portal.sdk</groupId>
233             <artifactId>epsdk-app-overlay</artifactId>
234             <version>${epsdk.version}</version>
235             <type>war</type>
236         </dependency>
237         <dependency>
238             <groupId>org.onap.portal.sdk</groupId>
239             <artifactId>epsdk-app-common</artifactId>
240             <version>${epsdk.version}</version>
241             <type>jar</type>
242             <exclusions>
243                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
244                 <exclusion>
245                     <groupId>org.springframework</groupId>
246                     <artifactId>spring-core</artifactId>
247                 </exclusion>
248                 <exclusion>
249                     <groupId>org.springframework</groupId>
250                     <artifactId>spring-web</artifactId>
251                 </exclusion>
252                 <exclusion>
253                     <groupId>org.springframework</groupId>
254                     <artifactId>spring-webmvc</artifactId>
255                 </exclusion>
256                 <exclusion>
257                     <groupId>xerces</groupId>
258                     <artifactId>xercesImpl</artifactId>
259                 </exclusion>
260                 <exclusion>
261                     <groupId>xalan</groupId>
262                     <artifactId>xalan</artifactId>
263                 </exclusion>
264                 <exclusion>
265                     <groupId>xml-apis</groupId>
266                     <artifactId>xml-apis-ext</artifactId>
267                 </exclusion>
268                 <exclusion>
269                     <groupId>xom</groupId>
270                     <artifactId>xom</artifactId>
271                 </exclusion>
272             </exclusions>
273         </dependency>
274         <!-- SDK components -->
275         <!--
276         CLM security fix - force use of commons-collections 3.2.2.
277         Remove this if a new version of epsdk-core is upgraded
278         to not use esapi (and then subsequently commons-collections v3.2
279         -->
280         <dependency>
281             <groupId>commons-collections</groupId>
282             <artifactId>commons-collections</artifactId>
283             <version>3.2.2</version>
284         </dependency>
285         <dependency>
286             <groupId>org.onap.portal.sdk</groupId>
287             <artifactId>epsdk-core</artifactId>
288             <version>${epsdk.version}</version>
289             <exclusions>
290                 <exclusion>
291                     <groupId>mysql</groupId>
292                     <artifactId>mysql-connector-java</artifactId>
293                 </exclusion>
294                 <exclusion>
295                     <groupId>commons-collections</groupId>
296                     <artifactId>commons-collections</artifactId>
297                 </exclusion>
298                 <exclusion>
299                     <groupId>com.thoughtworks.xstream</groupId>
300                     <artifactId>xstream</artifactId>
301                 </exclusion>
302                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
303                 <exclusion>
304                     <groupId>org.springframework</groupId>
305                     <artifactId>spring-core</artifactId>
306                 </exclusion>
307                 <exclusion>
308                     <groupId>org.springframework</groupId>
309                     <artifactId>spring-web</artifactId>
310                 </exclusion>
311                 <exclusion>
312                     <groupId>org.springframework</groupId>
313                     <artifactId>spring-webmvc</artifactId>
314                 </exclusion>
315                 <exclusion>
316                     <groupId>xalan</groupId>
317                     <artifactId>xalan</artifactId>
318                 </exclusion>
319             </exclusions>
320         </dependency>
321         <dependency>
322             <groupId>org.onap.portal.sdk</groupId>
323             <artifactId>epsdk-analytics</artifactId>
324             <version>${epsdk.version}</version>
325             <exclusions>
326                 <exclusion>
327                     <groupId>com.oracle</groupId>
328                     <artifactId>ojdbc6</artifactId>
329                 </exclusion>
330                 <exclusion>
331                     <groupId>com.lowagie</groupId>
332                     <artifactId>itext</artifactId>
333                 </exclusion>
334                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
335                 <exclusion>
336                     <groupId>org.springframework</groupId>
337                     <artifactId>spring-core</artifactId>
338                 </exclusion>
339                 <exclusion>
340                     <groupId>org.springframework</groupId>
341                     <artifactId>spring-web</artifactId>
342                 </exclusion>
343                 <exclusion>
344                     <groupId>org.springframework</groupId>
345                     <artifactId>spring-webmvc</artifactId>
346                 </exclusion>
347             </exclusions>
348         </dependency>
349         <dependency>
350             <groupId>org.onap.portal.sdk</groupId>
351             <artifactId>epsdk-workflow</artifactId>
352             <version>${epsdk.version}</version>
353             <exclusions>
354                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
355                 <exclusion>
356                     <groupId>org.springframework</groupId>
357                     <artifactId>spring-core</artifactId>
358                 </exclusion>
359                 <exclusion>
360                     <groupId>org.springframework</groupId>
361                     <artifactId>spring-web</artifactId>
362                 </exclusion>
363                 <exclusion>
364                     <groupId>org.springframework</groupId>
365                     <artifactId>spring-webmvc</artifactId>
366                 </exclusion>
367             </exclusions>
368         </dependency>
369         <!-- Spring -->
370         <!-- Added dependencies to fix issue with duplicate jars of different versions -->
371         <dependency>
372             <groupId>org.springframework</groupId>
373             <artifactId>spring-core</artifactId>
374             <version>${springframework.version}</version>
375             <exclusions>
376                 <exclusion>
377                     <groupId>commons-logging</groupId>
378                     <artifactId>commons-logging</artifactId>
379                 </exclusion>
380             </exclusions>
381         </dependency>
382         <dependency>
383             <groupId>org.springframework</groupId>
384             <artifactId>spring-web</artifactId>
385             <version>${springframework.version}</version>
386         </dependency>
387         <dependency>
388             <groupId>org.springframework</groupId>
389             <artifactId>spring-webmvc</artifactId>
390             <version>${springframework.version}</version>
391         </dependency>
392         <!-- bridge to implement commons-logging using slf4j -->
393         <dependency>
394             <groupId>org.slf4j</groupId>
395             <artifactId>jcl-over-slf4j</artifactId>
396             <version>1.7.12</version>
397         </dependency>
398         <dependency>
399             <groupId>com.mchange</groupId>
400             <artifactId>c3p0</artifactId>
401             <version>0.9.5.2</version>
402         </dependency>
403         <!-- Maria DB -->
404         <dependency>
405             <groupId>org.mariadb.jdbc</groupId>
406             <artifactId>mariadb-java-client</artifactId>
407         </dependency>
408         <dependency>
409             <groupId>commons-dbcp</groupId>
410             <artifactId>commons-dbcp</artifactId>
411             <version>1.4</version>
412         </dependency>
413         <!-- Quartz -->
414         <dependency>
415             <groupId>org.quartz-scheduler</groupId>
416             <artifactId>quartz</artifactId>
417             <version>2.2.1</version>
418             <exclusions>
419                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
420                 <exclusion>
421                     <groupId>c3p0</groupId>
422                     <artifactId>c3p0</artifactId>
423                 </exclusion>
424             </exclusions>
425         </dependency>
426         <dependency>
427             <groupId>javax.servlet</groupId>
428             <artifactId>javax.servlet-api</artifactId>
429         </dependency>
430     </dependencies>
431 </project>