Merge "Fix audit log to contain ending timestamp"
[policy/engine.git] / ONAP-SDK-APP / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine
4   ================================================================================
5   Copyright (C) 2017 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-SNAPSHOT</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                 <jackson.version>2.6.0</jackson.version>
40                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**,src/main/webapp/**/*</sonar.exclusions>
41                 <!-- Version number gets stored only here -->
42                 <tomcat.download.path>http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.37/bin</tomcat.download.path>
43                 <tomcat.download.name>apache-tomcat-8.0.37</tomcat.download.name>
44         </properties>
45         <profiles>
46                 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
47                 <profile>
48                         <id>doclint-java8-disable</id>
49                         <activation>
50                                 <jdk>[1.8,)</jdk>
51                         </activation>
52                         <build>
53                                 <plugins>
54                                         <plugin>
55                                                 <groupId>org.apache.maven.plugins</groupId>
56                                                 <artifactId>maven-javadoc-plugin</artifactId>
57                                                 <version>2.10.4</version>
58                                                 <configuration>
59                                                         <additionalparam>-Xdoclint:none</additionalparam>
60                                                 </configuration>
61                                         </plugin>
62                                 </plugins>
63                         </build>
64                 </profile>
65         </profiles>
66         <build>
67                 <plugins>
68                         <plugin>
69                                 <groupId>org.apache.maven.plugins</groupId>
70                                 <artifactId>maven-compiler-plugin</artifactId>
71                                 <version>3.2</version>
72                                 <configuration>
73                                         <source>1.8</source>
74                                         <target>1.8</target>
75                                 </configuration>
76                         </plugin>
77                         <plugin>
78                                 <groupId>org.apache.maven.plugins</groupId>
79                                 <artifactId>maven-surefire-plugin</artifactId>
80                                 <configuration>
81                                         <skipTests>${skiptests}</skipTests>
82                                         <includes>
83                                                 <include>**/Test*.java</include>
84                                                 <include>**/*Test.java</include>
85                                                 <include>**/*TestCase.java</include>
86                                         </includes>
87                                         <additionalClasspathElements>
88                                                 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
89                                         </additionalClasspathElements>
90                                         <systemPropertyVariables>
91                                                 <container.classpath>classpath:</container.classpath>
92                                         </systemPropertyVariables>
93                                 </configuration>
94                         </plugin>
95                         <!-- add version number to manifest -->
96                         <plugin>
97                                 <groupId>org.apache.maven.plugins</groupId>
98                                 <artifactId>maven-war-plugin</artifactId>
99                                 <version>2.1</version>
100                                 <configuration>
101                                         <attachClasses>true</attachClasses>
102                                         <archive>
103                                                 <manifest>
104                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
105                                                 </manifest>
106                                                 <manifestEntries>
107                                                         <Build-Number>${project.version}</Build-Number>
108                                                         <Build-Time>${maven.build.timestamp}</Build-Time>
109                                                 </manifestEntries>
110                                         </archive>
111                                         <overlays>
112                                                 <overlay>
113                                                         <groupId>org.onap.portal.sdk</groupId>
114                                                         <artifactId>epsdk-app-overlay</artifactId>
115                                                         <excludes>
116                                                                 <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude>
117                                                         </excludes>
118                                                 </overlay>
119                                                 <overlay>
120                                                         <groupId>org.onap.policy.engine</groupId>
121                                                         <artifactId>POLICY-SDK-APP</artifactId>
122                                                 </overlay>
123                                         </overlays>
124                                 </configuration>
125                         </plugin>
126                         <plugin>
127                                 <groupId>org.apache.maven.plugins</groupId>
128                                 <artifactId>maven-assembly-plugin</artifactId>
129                                 <version>3.0.0</version>
130                                 <configuration>
131                                         <skipAssembly>${skipassembly}</skipAssembly>
132                                         <descriptors>
133                                                 <descriptor>${basedir}/distribution.xml</descriptor>
134                                         </descriptors>
135                                 </configuration>
136                                 <executions>
137                                         <execution>
138                                                 <id>make-assembly</id>
139                                                 <phase>package</phase>
140                                                 <goals>
141                                                         <goal>single</goal>
142                                                 </goals>
143                                         </execution>
144                                 </executions>
145                         </plugin>
146                         <plugin>
147                                 <groupId>org.apache.maven.plugins</groupId>
148                                 <artifactId>maven-deploy-plugin</artifactId>
149                                 <!-- parent specifies the<version>2.8</version> -->
150                                 <configuration>
151                                         <skip>true</skip>
152                                 </configuration>
153                         </plugin>
154                         <plugin>
155                                 <groupId>io.fabric8</groupId>
156                                 <artifactId>docker-maven-plugin</artifactId>
157                                 <version>0.22.0</version>
158                                 <configuration>
159                                         <verbose>true</verbose>
160                                         <images>
161                                                 <image>
162                                                         <name>onap/portal-sdk:${project.version}</name>
163                                                         <build>
164                                                                 <from>frolvlad/alpine-oraclejdk8:slim</from>
165                                                                 <assembly>
166                                                                         <descriptorRef>artifact</descriptorRef>
167                                                                 </assembly>
168                                                                 <runCmds>
169                                                                         <!-- must be all on one line; use CDATA to turn off the Eclipse 
170                                                                                 formatter -->
171                                                                         <run><![CDATA[wget -q ${tomcat.download.path}/${tomcat.download.name}.tar.gz]]></run>
172                                                                         <run>tar -xzf ${tomcat.download.name}.tar.gz</run>
173                                                                         <run>rm -f ${tomcat.download.name}.tar.gz</run>
174                                                                         <run>rm -fr ${tomcat.download.name}/webapps/[a-z]*</run>
175                                                                         <run>mkdir -p /opt</run>
176                                                                         <run>mv ${tomcat.download.name} /opt</run>
177                                                                         <run><![CDATA[mv /maven/*.war /opt/${tomcat.download.name}/webapps/ONAPPORTALSDK.war]]></run>
178                                                                 </runCmds>
179                                                                 <cmd>
180                                                                         <shell>/opt/${tomcat.download.name}/bin/catalina.sh run</shell>
181                                                                 </cmd>
182                                                         </build>
183                                                 </image>
184                                         </images>
185                                 </configuration>
186                         </plugin>
187
188                 </plugins>
189         </build>
190         <dependencies>
191                 <!-- Policy overlay war -->
192                 <dependency>
193                         <groupId>org.onap.policy.engine</groupId>
194                         <artifactId>POLICY-SDK-APP</artifactId>
195                         <version>${project.version}</version>
196                         <type>war</type>
197                         <exclusions>
198                                 <exclusion>
199                                         <groupId>org.onap.portal.sdk</groupId>
200                                         <artifactId>epsdk-core</artifactId>
201                                 </exclusion>
202                         </exclusions>
203                 </dependency>
204                 <dependency>
205                         <groupId>org.onap.policy.engine</groupId>
206                         <artifactId>POLICY-SDK-APP</artifactId>
207                         <version>${project.version}</version>
208                         <type>jar</type>
209                         <classifier>classes</classifier>
210                         <exclusions>
211                                 <exclusion>
212                                         <groupId>org.onap.portal.sdk</groupId>
213                                         <artifactId>epsdk-core</artifactId>
214                                 </exclusion>
215                         </exclusions>
216                 </dependency>
217                 <dependency>
218                         <groupId>org.onap.policy.engine</groupId>
219                         <artifactId>PolicyEngineUtils</artifactId>
220                         <version>${project.version}</version>
221                         <exclusions>
222                                 <exclusion>
223                                         <groupId>com.att.aft</groupId>
224                                         <artifactId>dme2</artifactId>
225                                 </exclusion>
226                         </exclusions>
227                 </dependency>
228                 <!-- SDK overlay war -->
229                 <dependency>
230                         <groupId>org.onap.portal.sdk</groupId>
231                         <artifactId>epsdk-app-overlay</artifactId>
232                         <version>${epsdk.version}</version>
233                         <type>war</type>
234                 </dependency>
235                 <dependency>
236                         <groupId>org.onap.portal.sdk</groupId>
237                         <artifactId>epsdk-app-common</artifactId>
238                         <version>${epsdk.version}</version>
239                         <type>jar</type>
240                 </dependency>
241                 <!-- SDK components -->
242                 <dependency>
243                         <groupId>org.onap.portal.sdk</groupId>
244                         <artifactId>epsdk-core</artifactId>
245                         <version>${epsdk.version}</version>
246                         <exclusions>
247                                 <exclusion>
248                                         <groupId>mysql</groupId>
249                                         <artifactId>mysql-connector-java</artifactId>
250                                 </exclusion>
251                         </exclusions>
252                 </dependency>
253                 <dependency>
254                         <groupId>org.onap.portal.sdk</groupId>
255                         <artifactId>epsdk-analytics</artifactId>
256                         <version>${epsdk.version}</version>
257                         <exclusions>
258                                 <exclusion>
259                                         <groupId>com.oracle</groupId>
260                                         <artifactId>ojdbc6</artifactId>
261                                 </exclusion>
262                         </exclusions>
263                 </dependency>
264                 <dependency>
265                         <groupId>org.onap.portal.sdk</groupId>
266                         <artifactId>epsdk-workflow</artifactId>
267                         <version>${epsdk.version}</version>
268                 </dependency>
269                 <dependency>
270                         <groupId>com.att.eelf</groupId>
271                         <artifactId>eelf-core</artifactId>
272                         <version>0.0.1</version>
273                 </dependency>
274                 <!-- bridge to implement commons-logging using slf4j -->
275                 <dependency>
276                         <groupId>org.slf4j</groupId>
277                         <artifactId>jcl-over-slf4j</artifactId>
278                         <version>1.7.12</version>
279                 </dependency>
280                 <dependency>
281                         <groupId>com.mchange</groupId>
282                         <artifactId>c3p0</artifactId>
283                         <version>0.9.5.2</version>
284                 </dependency>
285                 <!-- Maria DB -->
286                 <dependency>
287                         <groupId>org.mariadb.jdbc</groupId>
288                         <artifactId>mariadb-java-client</artifactId>
289                         <version>1.2.3</version>
290                 </dependency>
291                 <dependency>
292                         <groupId>commons-dbcp</groupId>
293                         <artifactId>commons-dbcp</artifactId>
294                         <version>1.4</version>
295                 </dependency>
296                 <!-- Quartz -->
297                 <dependency>
298                         <groupId>org.quartz-scheduler</groupId>
299                         <artifactId>quartz</artifactId>
300                         <version>2.2.1</version>
301                         <exclusions>
302                                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
303                                 <exclusion>
304                                         <groupId>c3p0</groupId>
305                                         <artifactId>c3p0</artifactId>
306                                 </exclusion>
307                         </exclusions>
308                 </dependency>
309                 <dependency>
310                         <groupId>javax.servlet</groupId>
311                         <artifactId>javax.servlet-api</artifactId>
312                         <version>3.1.0</version>
313                 </dependency>
314                 <dependency>
315                         <groupId>junit</groupId>
316                         <artifactId>junit</artifactId>
317                         <version>4.12</version>
318                 </dependency>
319         </dependencies>
320 </project>