Fix for overriding skipTests variable.
[vid.git] / epsdk-app-onap / pom.xml
1 <?xml version="1.0"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5
6     <!-- This is the Maven project object model (POM) file for the open-source
7         SDK web app. This is NOT the Portal - but it is developed and supported by
8         the Portal team. -->
9     <groupId>org.onap.vid</groupId>
10     <artifactId>epsdk-app-onap</artifactId>
11     <version>4.0.0-SNAPSHOT</version>
12     <packaging>war</packaging>
13     <name>ECOMP SDK Webapp for OpenSource</name>
14     <description>ECOMP SDK Web Application for public release</description>
15
16     <properties>
17         <encoding>UTF-8</encoding>
18         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
20         <epsdk.version>2.4.0</epsdk.version>
21         <springframework.version>4.2.9.RELEASE</springframework.version>
22         <hibernate.version>4.3.11.Final</hibernate.version>
23         <!-- Skip assembling the zip; assemble via mvn -Dskipassembly=false .. -->
24         <skipassembly>true</skipassembly>
25         <nexusproxy>https://nexus.onap.org</nexusproxy>
26         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
27         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
28         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
29         <sitePath>/content/sites/site/org/onap/vid/${project.version}</sitePath>
30
31         <!-- SONAR -->
32         <sonar.language>java</sonar.language>
33         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
34         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
35         <sonar.projectVersion>${project.version}</sonar.projectVersion>
36     </properties>
37
38     <repositories>
39         <repository>
40             <id>ecomp-releases</id>
41             <name>VID Release Repository</name>
42             <url>${nexusproxy}${releaseNexusPath}</url>
43         </repository>
44         <repository>
45             <id>ecomp-snapshots</id>
46             <name>VID Snapshot Repository</name>
47             <url>${nexusproxy}${snapshotNexusPath}</url>
48         </repository>
49         <repository>
50             <id>ecomp-staging</id>
51             <name>VID Staging Repository</name>
52             <url>${nexusproxy}${stagingNexusPath}</url>
53         </repository>
54         <repository>
55             <!-- Snapshots repository has ECOMP snapshot artifacts -->
56             <id>oss-snapshots</id>
57             <name>oss Central - Snapshots</name>
58             <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
59         </repository>
60     </repositories>
61     <distributionManagement>
62         <repository>
63             <id>ecomp-releases</id>
64             <name>VID Release Repository</name>
65             <url>${nexusproxy}/${releaseNexusPath}</url>
66         </repository>
67         <snapshotRepository>
68             <id>ecomp-snapshots</id>
69             <name>VID Snapshot Repository</name>
70             <url>${nexusproxy}/${snapshotNexusPath}</url>
71         </snapshotRepository>
72         <!-- added for javadoc -->
73         <site>
74             <id>ecomp-site</id>
75             <url>dav:${nexusproxy}${sitePath}</url>
76         </site>
77     </distributionManagement>
78
79     <profiles>
80         <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
81         <profile>
82             <id>doclint-java8-disable</id>
83             <activation>
84                 <jdk>[1.8,)</jdk>
85             </activation>
86             <build>
87                 <plugins>
88                     <plugin>
89                         <groupId>org.apache.maven.plugins</groupId>
90                         <artifactId>maven-javadoc-plugin</artifactId>
91                         <version>2.10.4</version>
92                         <configuration>
93                             <additionalparam>-Xdoclint:none</additionalparam>
94                         </configuration>
95                     </plugin>
96                 </plugins>
97             </build>
98         </profile>
99     </profiles>
100
101     <build>
102         <finalName>vid</finalName>
103         <plugins>
104             <plugin>
105                 <groupId>org.sonatype.plugins</groupId>
106                 <artifactId>nexus-staging-maven-plugin</artifactId>
107                 <version>1.6.7</version>
108                 <extensions>true</extensions>
109                 <configuration>
110                     <nexusUrl>${nexusproxy}</nexusUrl>
111                     <stagingProfileId>176c31dfe190a</stagingProfileId>
112                     <serverId>ecomp-staging</serverId>
113                 </configuration>
114             </plugin>
115
116             <!-- Compile to Java 1.8 class output format -->
117             <plugin>
118                 <groupId>org.apache.maven.plugins</groupId>
119                 <artifactId>maven-compiler-plugin</artifactId>
120                 <version>3.1</version>
121                 <configuration>
122                     <source>1.8</source>
123                     <target>1.8</target>
124                 </configuration>
125             </plugin>
126
127             <plugin>
128                 <groupId>org.apache.maven.plugins</groupId>
129                 <artifactId>maven-surefire-plugin</artifactId>
130                 <version>2.19.1</version>
131                 <configuration>
132                     <includes>
133                         <include>**/Test*.java</include>
134                         <include>**/*Test.java</include>
135                         <include>**/*TestCase.java</include>
136                     </includes>
137                     <additionalClasspathElements>
138                         <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
139                     </additionalClasspathElements>
140                     <systemPropertyVariables>
141                         <container.classpath>classpath:</container.classpath>
142                     </systemPropertyVariables>
143                     <useSystemClassLoader>false</useSystemClassLoader>
144                 </configuration>
145             </plugin>
146
147             <!-- add version number to manifest -->
148             <plugin>
149                 <groupId>org.apache.maven.plugins</groupId>
150                 <artifactId>maven-war-plugin</artifactId>
151                 <version>2.0.2</version>
152                 <configuration>
153                     <archive>
154                         <manifest>
155                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
156                         </manifest>
157                         <manifestEntries>
158                             <Build-Number>${project.version}</Build-Number>
159                             <Build-Time>${maven.build.timestamp}</Build-Time>
160                         </manifestEntries>
161                     </archive>
162                     <overlays>
163                         <overlay>
164                             <groupId>org.onap.vid</groupId>
165                             <artifactId>vid-app-common</artifactId>
166                         </overlay>
167                         <overlay>
168                             <groupId>org.onap.portal.sdk</groupId>
169                             <artifactId>epsdk-app-overlay</artifactId>
170                         </overlay>
171                     </overlays>
172                 </configuration>
173             </plugin>
174
175             <plugin>
176                 <groupId>org.apache.maven.plugins</groupId>
177                 <artifactId>maven-assembly-plugin</artifactId>
178                 <version>3.0.0</version>
179                 <configuration>
180                     <skipAssembly>${skipassembly}</skipAssembly>
181                     <descriptors>
182                         <descriptor>${basedir}/distribution.xml</descriptor>
183                     </descriptors>
184                 </configuration>
185                 <executions>
186                     <execution>
187                         <id>make-assembly</id>
188                         <phase>package</phase>
189                         <goals>
190                             <goal>single</goal>
191                         </goals>
192                     </execution>
193                 </executions>
194             </plugin>
195             <plugin>
196                 <groupId>org.apache.maven.plugins</groupId>
197                 <artifactId>maven-site-plugin</artifactId>
198                 <version>3.6</version>
199                 <dependencies>
200                     <dependency>
201                         <groupId>org.apache.maven.wagon</groupId>
202                         <artifactId>wagon-webdav-jackrabbit</artifactId>
203                         <version>2.10</version>
204                     </dependency>
205                 </dependencies>
206             </plugin>
207             <plugin>
208                 <groupId>org.sonarsource.scanner.maven</groupId>
209                 <artifactId>sonar-maven-plugin</artifactId>
210                 <version>3.3.0.603</version>
211             </plugin>
212             <plugin>
213                 <groupId>org.jacoco</groupId>
214                 <artifactId>jacoco-maven-plugin</artifactId>
215                 <version>0.7.9</version>
216                 <executions>
217                     <execution>
218                         <id>default-prepare-agent</id>
219                         <goals>
220                             <goal>prepare-agent</goal>
221                         </goals>
222                     </execution>
223                     <execution>
224                         <id>default-report</id>
225                         <goals>
226                             <goal>report</goal>
227                         </goals>
228                     </execution>
229                 </executions>
230             </plugin>
231
232         </plugins>
233     </build>
234
235     <reporting>
236         <plugins>
237             <plugin>
238                 <groupId>org.apache.maven.plugins</groupId>
239                 <artifactId>maven-javadoc-plugin</artifactId>
240                 <version>2.10.4</version>
241                 <configuration>
242                     <failOnError>false</failOnError>
243                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
244                     <docletArtifact>
245                         <groupId>org.umlgraph</groupId>
246                         <artifactId>umlgraph</artifactId>
247                         <version>5.6</version>
248                     </docletArtifact>
249                     <additionalparam>-views</additionalparam>
250                     <useStandardDocletOptions>true</useStandardDocletOptions>
251                 </configuration>
252             </plugin>
253         </plugins>
254     </reporting>
255     <dependencies>
256         <!-- SDK overlay war -->
257         <dependency>
258             <groupId>org.onap.portal.sdk</groupId>
259             <artifactId>epsdk-app-overlay</artifactId>
260             <version>${epsdk.version}</version>
261             <type>war</type>
262         </dependency>
263         <dependency>
264             <groupId>org.onap.portal.sdk</groupId>
265             <artifactId>epsdk-app-common</artifactId>
266             <version>${epsdk.version}</version>
267             <type>jar</type>
268             <exclusions>
269                 <exclusion>
270                     <groupId>com.fasterxml.jackson.core</groupId>
271                     <artifactId>jackson-core</artifactId>
272                 </exclusion>
273             </exclusions>
274         </dependency>
275         <dependency>
276             <groupId>org.onap.vid</groupId>
277             <artifactId>vid-app-common</artifactId>
278             <version>${project.version}</version>
279             <type>war</type>
280             <exclusions>
281                 <exclusion>
282                     <groupId>com.fasterxml.jackson.core</groupId>
283                     <artifactId>jackson-core</artifactId>
284                 </exclusion>
285             </exclusions>
286         </dependency>
287         <dependency>
288             <groupId>org.onap.vid</groupId>
289             <artifactId>vid-app-common</artifactId>
290             <version>${project.version}</version>
291             <type>jar</type>
292             <classifier>classes</classifier>
293         </dependency>
294         <!-- SDK components -->
295         <dependency>
296             <groupId>org.onap.portal.sdk</groupId>
297             <artifactId>epsdk-core</artifactId>
298             <version>${epsdk.version}</version>
299             <exclusions>
300                 <exclusion>
301                     <groupId>com.fasterxml.jackson.core</groupId>
302                     <artifactId>jackson-core</artifactId>
303                 </exclusion>
304             </exclusions>
305         </dependency>
306         <dependency>
307             <groupId>org.onap.portal.sdk</groupId>
308             <artifactId>epsdk-analytics</artifactId>
309             <version>${epsdk.version}</version>
310             <exclusions>
311                 <exclusion>
312                     <groupId>com.fasterxml.jackson.core</groupId>
313                     <artifactId>jackson-core</artifactId>
314                 </exclusion>
315                 <exclusion>
316                     <groupId>com.lowagie</groupId>
317                     <artifactId>itext</artifactId>
318                 </exclusion>
319             </exclusions>
320         </dependency>
321         <dependency>
322             <groupId>org.onap.portal.sdk</groupId>
323             <artifactId>epsdk-workflow</artifactId>
324             <version>${epsdk.version}</version>
325             <exclusions>
326                 <exclusion>
327                     <groupId>com.fasterxml.jackson.core</groupId>
328                     <artifactId>jackson-core</artifactId>
329                 </exclusion>
330             </exclusions>
331         </dependency>
332         <dependency>
333             <groupId>com.att.eelf</groupId>
334             <artifactId>eelf-core</artifactId>
335             <version>1.0.0</version>
336         </dependency>
337         <!-- Mapper -->
338         <dependency>
339             <groupId>com.fasterxml.jackson.core</groupId>
340             <artifactId>jackson-annotations</artifactId>
341             <version>2.6.3</version>
342         </dependency>
343         <dependency>
344             <groupId>com.fasterxml.jackson.core</groupId>
345             <artifactId>jackson-core</artifactId>
346             <version>2.8.6</version>
347         </dependency>
348         <dependency>
349             <groupId>com.fasterxml.jackson.core</groupId>
350             <artifactId>jackson-databind</artifactId>
351             <version>2.6.7.1</version>
352             <exclusions>
353                 <exclusion>
354                     <groupId>com.fasterxml.jackson.core</groupId>
355                     <artifactId>jackson-core</artifactId>
356                 </exclusion>
357             </exclusions>
358         </dependency>
359         <dependency>
360             <groupId>com.mchange</groupId>
361             <artifactId>c3p0</artifactId>
362             <version>0.9.5.2</version>
363         </dependency>
364         <dependency>
365             <groupId>io.searchbox</groupId>
366             <artifactId>jest</artifactId>
367             <version>2.0.0</version>
368             <exclusions>
369                 <exclusion>
370                     <groupId>commons-logging</groupId>
371                     <artifactId>commons-logging</artifactId>
372                 </exclusion>
373             </exclusions>
374         </dependency>
375         <dependency>
376             <groupId>javax.servlet</groupId>
377             <artifactId>javax.servlet-api</artifactId>
378             <version>3.1.0</version>
379         </dependency>
380         <dependency>
381             <groupId>junit</groupId>
382             <artifactId>junit</artifactId>
383             <version>4.12</version>
384         </dependency>
385         <dependency>
386             <groupId>org.json</groupId>
387             <artifactId>json</artifactId>
388             <version>20160212</version>
389         </dependency>
390         <dependency>
391             <groupId>org.quartz-scheduler</groupId>
392             <artifactId>quartz</artifactId>
393             <version>2.2.1</version>
394             <exclusions>
395                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
396                 <exclusion>
397                     <groupId>c3p0</groupId>
398                     <artifactId>c3p0</artifactId>
399                 </exclusion>
400             </exclusions>
401         </dependency>
402         <!-- bridge to implement commons-logging using slf4j -->
403         <dependency>
404             <groupId>org.slf4j</groupId>
405             <artifactId>jcl-over-slf4j</artifactId>
406             <version>1.7.12</version>
407         </dependency>
408         <dependency>
409             <groupId>org.springframework</groupId>
410             <artifactId>spring-context-support</artifactId>
411             <version>${springframework.version}</version>
412         </dependency>
413         <dependency>
414             <groupId>org.springframework</groupId>
415             <artifactId>spring-core</artifactId>
416             <version>${springframework.version}</version>
417             <exclusions>
418                 <exclusion>
419                     <groupId>commons-logging</groupId>
420                     <artifactId>commons-logging</artifactId>
421                 </exclusion>
422             </exclusions>
423         </dependency>
424         <dependency>
425             <groupId>org.springframework</groupId>
426             <artifactId>spring-aop</artifactId>
427             <version>${springframework.version}</version>
428         </dependency>
429         <dependency>
430             <groupId>org.springframework</groupId>
431             <artifactId>spring-test</artifactId>
432             <version>${springframework.version}</version>
433         </dependency>
434         <dependency>
435             <groupId>org.springframework</groupId>
436             <artifactId>spring-tx</artifactId>
437             <version>${springframework.version}</version>
438         </dependency>
439         <dependency>
440             <groupId>org.springframework</groupId>
441             <artifactId>spring-web</artifactId>
442             <version>${springframework.version}</version>
443         </dependency>
444         <dependency>
445             <groupId>org.springframework</groupId>
446             <artifactId>spring-webmvc</artifactId>
447             <version>${springframework.version}</version>
448         </dependency>
449     </dependencies>
450 </project>