Release policy/engine
[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.1</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                 <exclusion>
218                     <groupId>org.springframework</groupId>
219                     <artifactId>spring-expression</artifactId>
220                 </exclusion>
221             </exclusions>
222         </dependency>
223         <dependency>
224             <groupId>org.onap.policy.engine</groupId>
225             <artifactId>PolicyEngineUtils</artifactId>
226             <version>${project.version}</version>
227             <exclusions>
228                 <exclusion>
229                     <groupId>com.att.aft</groupId>
230                     <artifactId>dme2</artifactId>
231                 </exclusion>
232             </exclusions>
233         </dependency>
234         <!-- SDK overlay war -->
235         <dependency>
236             <groupId>org.onap.portal.sdk</groupId>
237             <artifactId>epsdk-app-overlay</artifactId>
238             <version>${epsdk.version}</version>
239             <type>war</type>
240         </dependency>
241         <dependency>
242             <groupId>org.onap.portal.sdk</groupId>
243             <artifactId>epsdk-app-common</artifactId>
244             <version>${epsdk.version}</version>
245             <type>jar</type>
246             <exclusions>
247                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
248                 <exclusion>
249                     <groupId>org.springframework</groupId>
250                     <artifactId>spring-core</artifactId>
251                 </exclusion>
252                 <exclusion>
253                     <groupId>org.springframework</groupId>
254                     <artifactId>spring-web</artifactId>
255                 </exclusion>
256                 <exclusion>
257                     <groupId>org.springframework</groupId>
258                     <artifactId>spring-webmvc</artifactId>
259                 </exclusion>
260                 <exclusion>
261                     <groupId>xerces</groupId>
262                     <artifactId>xercesImpl</artifactId>
263                 </exclusion>
264                 <exclusion>
265                     <groupId>xalan</groupId>
266                     <artifactId>xalan</artifactId>
267                 </exclusion>
268                 <exclusion>
269                     <groupId>xml-apis</groupId>
270                     <artifactId>xml-apis-ext</artifactId>
271                 </exclusion>
272                 <exclusion>
273                     <groupId>xom</groupId>
274                     <artifactId>xom</artifactId>
275                 </exclusion>
276             </exclusions>
277         </dependency>
278         <!-- SDK components -->
279         <!--
280         CLM security fix - force use of commons-collections 3.2.2.
281         Remove this if a new version of epsdk-core is upgraded
282         to not use esapi (and then subsequently commons-collections v3.2
283         -->
284         <dependency>
285             <groupId>commons-collections</groupId>
286             <artifactId>commons-collections</artifactId>
287             <version>3.2.2</version>
288         </dependency>
289         <dependency>
290             <groupId>org.springframework</groupId>
291             <artifactId>spring-aop</artifactId>
292             <version>${springframework.version}</version>
293         </dependency>
294         <dependency>
295             <groupId>org.springframework</groupId>
296             <artifactId>spring-orm</artifactId>
297             <version>${springframework.version}</version>
298         </dependency>
299         <dependency>
300             <groupId>org.onap.portal.sdk</groupId>
301             <artifactId>epsdk-core</artifactId>
302             <version>${epsdk.version}</version>
303             <exclusions>
304                 <exclusion>
305                     <groupId>mysql</groupId>
306                     <artifactId>mysql-connector-java</artifactId>
307                 </exclusion>
308                 <exclusion>
309                     <groupId>commons-collections</groupId>
310                     <artifactId>commons-collections</artifactId>
311                 </exclusion>
312                 <exclusion>
313                     <groupId>com.thoughtworks.xstream</groupId>
314                     <artifactId>xstream</artifactId>
315                 </exclusion>
316                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
317                 <exclusion>
318                     <groupId>org.springframework</groupId>
319                     <artifactId>spring-core</artifactId>
320                 </exclusion>
321                 <exclusion>
322                     <groupId>org.springframework</groupId>
323                     <artifactId>spring-web</artifactId>
324                 </exclusion>
325                 <exclusion>
326                     <groupId>org.springframework</groupId>
327                     <artifactId>spring-webmvc</artifactId>
328                 </exclusion>
329                 <exclusion>
330                     <groupId>org.springframework</groupId>
331                     <artifactId>spring-aop</artifactId>
332                 </exclusion>
333                 <exclusion>
334                     <groupId>org.springframework</groupId>
335                     <artifactId>spring-orm</artifactId>
336                 </exclusion>
337                 <exclusion>
338                     <groupId>xalan</groupId>
339                     <artifactId>xalan</artifactId>
340                 </exclusion>
341                 <exclusion>
342                     <groupId>org.aspectj</groupId>
343                     <artifactId>aspectjrt</artifactId>
344                 </exclusion>
345                 <exclusion>
346                     <groupId>org.aspectj</groupId>
347                     <artifactId>aspectjweaver</artifactId>
348                 </exclusion>
349             </exclusions>
350         </dependency>
351         <dependency>
352             <groupId>org.onap.portal.sdk</groupId>
353             <artifactId>epsdk-analytics</artifactId>
354             <version>${epsdk.version}</version>
355             <exclusions>
356                 <exclusion>
357                     <groupId>com.oracle</groupId>
358                     <artifactId>ojdbc6</artifactId>
359                 </exclusion>
360                 <exclusion>
361                     <groupId>com.lowagie</groupId>
362                     <artifactId>itext</artifactId>
363                 </exclusion>
364                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
365                 <exclusion>
366                     <groupId>org.springframework</groupId>
367                     <artifactId>spring-core</artifactId>
368                 </exclusion>
369                 <exclusion>
370                     <groupId>org.springframework</groupId>
371                     <artifactId>spring-web</artifactId>
372                 </exclusion>
373                 <exclusion>
374                     <groupId>org.springframework</groupId>
375                     <artifactId>spring-webmvc</artifactId>
376                 </exclusion>
377             </exclusions>
378         </dependency>
379         <dependency>
380             <groupId>org.onap.portal.sdk</groupId>
381             <artifactId>epsdk-workflow</artifactId>
382             <version>${epsdk.version}</version>
383             <exclusions>
384                 <!-- Added exclusions to fix issue with duplicate jars of different versions -->
385                 <exclusion>
386                     <groupId>org.springframework</groupId>
387                     <artifactId>spring-core</artifactId>
388                 </exclusion>
389                 <exclusion>
390                     <groupId>org.springframework</groupId>
391                     <artifactId>spring-web</artifactId>
392                 </exclusion>
393                 <exclusion>
394                     <groupId>org.springframework</groupId>
395                     <artifactId>spring-webmvc</artifactId>
396                 </exclusion>
397             </exclusions>
398         </dependency>
399         <!-- Spring -->
400         <!-- Added dependencies to fix issue with duplicate jars of different versions -->
401         <dependency>
402             <groupId>org.aspectj</groupId>
403             <artifactId>aspectjrt</artifactId>
404             <version>1.8.14</version>
405         </dependency>
406         <dependency>
407             <groupId>org.aspectj</groupId>
408             <artifactId>aspectjweaver</artifactId>
409             <version>1.8.14</version>
410         </dependency>
411         <dependency>
412             <groupId>org.springframework</groupId>
413             <artifactId>spring-expression</artifactId>
414             <version>${springframework.version}</version>
415         </dependency>
416         <dependency>
417             <groupId>org.springframework</groupId>
418             <artifactId>spring-core</artifactId>
419             <version>${springframework.version}</version>
420             <exclusions>
421                 <exclusion>
422                     <groupId>commons-logging</groupId>
423                     <artifactId>commons-logging</artifactId>
424                 </exclusion>
425             </exclusions>
426         </dependency>
427         <dependency>
428             <groupId>org.springframework</groupId>
429             <artifactId>spring-web</artifactId>
430             <version>${springframework.version}</version>
431             <exclusions>
432                 <exclusion>
433                     <groupId>org.springframework</groupId>
434                     <artifactId>spring-expression</artifactId>
435                 </exclusion>
436             </exclusions>
437         </dependency>
438         <dependency>
439             <groupId>org.springframework</groupId>
440             <artifactId>spring-webmvc</artifactId>
441             <version>${springframework.version}</version>
442             <exclusions>
443                 <exclusion>
444                     <groupId>org.springframework</groupId>
445                     <artifactId>spring-expression</artifactId>
446                 </exclusion>
447             </exclusions>
448         </dependency>
449         <!-- bridge to implement commons-logging using slf4j -->
450         <dependency>
451             <groupId>org.slf4j</groupId>
452             <artifactId>jcl-over-slf4j</artifactId>
453             <version>1.7.12</version>
454         </dependency>
455         <dependency>
456             <groupId>com.mchange</groupId>
457             <artifactId>c3p0</artifactId>
458             <version>0.9.5.2</version>
459         </dependency>
460         <!-- Maria DB -->
461         <dependency>
462             <groupId>org.mariadb.jdbc</groupId>
463             <artifactId>mariadb-java-client</artifactId>
464         </dependency>
465         <dependency>
466             <groupId>commons-dbcp</groupId>
467             <artifactId>commons-dbcp</artifactId>
468             <version>1.4</version>
469         </dependency>
470         <!-- Quartz -->
471         <dependency>
472             <groupId>org.quartz-scheduler</groupId>
473             <artifactId>quartz</artifactId>
474             <version>2.2.1</version>
475             <exclusions>
476                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
477                 <exclusion>
478                     <groupId>c3p0</groupId>
479                     <artifactId>c3p0</artifactId>
480                 </exclusion>
481             </exclusions>
482         </dependency>
483         <dependency>
484             <groupId>javax.servlet</groupId>
485             <artifactId>javax.servlet-api</artifactId>
486         </dependency>
487     </dependencies>
488 </project>