ONAP code change for log files consolidation
[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"
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>
26                 <version>1.2.0-SNAPSHOT</version>
27         </parent>
28         <artifactId>ONAP-SDK-APP</artifactId>
29         <packaging>war</packaging>
30
31         <properties>
32                 <encoding>UTF-8</encoding>
33                 <epsdk.version>2.1.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                                                 <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>
79                                 <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>
100                                         <attachClasses>true</attachClasses>
101                                         <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>
112                                                         <groupId>org.onap.portal.sdk</groupId>
113                                                         <artifactId>epsdk-app-overlay</artifactId>
114                                                         <excludes>
115                                                                 <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude>
116                                                         </excludes>
117                                                 </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>
126                                 <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
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                 </dependency>
240                 <!-- SDK components -->
241                 <!--
242                 CLM security fix - force use of commons-collections 3.2.2.
243                 Remove this if a new version of epsdk-core is upgraded
244                 to not use esapi (and then subsequently commons-collections v3.2
245                  -->
246                 <dependency>
247                     <groupId>commons-collections</groupId>
248                     <artifactId>commons-collections</artifactId>
249                     <version>3.2.2</version>
250                 </dependency>
251                 <dependency>
252                         <groupId>org.onap.portal.sdk</groupId>
253                         <artifactId>epsdk-core</artifactId>
254                         <version>${epsdk.version}</version>
255                         <exclusions>
256                                 <exclusion>
257                                         <groupId>mysql</groupId>
258                                         <artifactId>mysql-connector-java</artifactId>
259                                 </exclusion>
260                                 <exclusion>
261                                         <groupId>commons-collections</groupId>
262                                         <artifactId>commons-collections</artifactId>
263                                 </exclusion>
264                         </exclusions>
265                 </dependency>
266                 <dependency>
267                         <groupId>org.onap.portal.sdk</groupId>
268                         <artifactId>epsdk-analytics</artifactId>
269                         <version>${epsdk.version}</version>
270                         <exclusions>
271                                 <exclusion>
272                                         <groupId>com.oracle</groupId>
273                                         <artifactId>ojdbc6</artifactId>
274                                 </exclusion>
275                         </exclusions>
276                 </dependency>
277                 <dependency>
278                         <groupId>org.onap.portal.sdk</groupId>
279                         <artifactId>epsdk-workflow</artifactId>
280                         <version>${epsdk.version}</version>
281                 </dependency>
282                 <!-- bridge to implement commons-logging using slf4j -->
283                 <dependency>
284                         <groupId>org.slf4j</groupId>
285                         <artifactId>jcl-over-slf4j</artifactId>
286                         <version>1.7.12</version>
287                 </dependency>
288                 <dependency>
289                         <groupId>com.mchange</groupId>
290                         <artifactId>c3p0</artifactId>
291                         <version>0.9.5.2</version>
292                 </dependency>
293                 <!-- Maria DB -->
294                 <dependency>
295                         <groupId>org.mariadb.jdbc</groupId>
296                         <artifactId>mariadb-java-client</artifactId>
297                         <version>1.2.3</version>
298                 </dependency>
299                 <dependency>
300                         <groupId>commons-dbcp</groupId>
301                         <artifactId>commons-dbcp</artifactId>
302                         <version>1.4</version>
303                 </dependency>
304                 <!-- Quartz -->
305                 <dependency>
306                         <groupId>org.quartz-scheduler</groupId>
307                         <artifactId>quartz</artifactId>
308                         <version>2.2.1</version>
309                         <exclusions>
310                                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
311                                 <exclusion>
312                                         <groupId>c3p0</groupId>
313                                         <artifactId>c3p0</artifactId>
314                                 </exclusion>
315                         </exclusions>
316                 </dependency>
317                 <dependency>
318                         <groupId>javax.servlet</groupId>
319                         <artifactId>javax.servlet-api</artifactId>
320                         <version>3.1.0</version>
321                 </dependency>
322                 <dependency>
323                         <groupId>junit</groupId>
324                         <artifactId>junit</artifactId>
325                         <version>4.12</version>
326                 </dependency>
327         </dependencies>
328 </project>