[VID-3] Updating pom w/ dav plugin
[vid.git] / vid / pom.xml
1 <?xml version="1.0"?>
2 <project
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4         xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5         <modelVersion>4.0.0</modelVersion>
6
7         <!-- This is the Maven project object model (POM) file for VID web application 
8                 based on the ECOMP SDK distribution. This file stands alone; it does not 
9                 inherit from a parent maven module. -->
10         <groupId>org.openecomp.vid</groupId>
11         <artifactId>vid</artifactId>
12         <version>1.0.0-SNAPSHOT</version>
13         <packaging>war</packaging>
14         <name>VID Webapp</name>
15         <description>VID Webapp based on the Ecomp SDK</description>
16
17         <properties>
18                 <encoding>UTF-8</encoding>
19                 <epsdk.version>1.0.0</epsdk.version>
20                 <springframework.version>4.2.0.RELEASE</springframework.version>
21                 <hibernate.version>4.3.11.Final</hibernate.version>
22                 <!-- Skip assembling the zip by default -->
23                 <skipassembly>true</skipassembly>
24                 <!-- Tests usually require some setup that maven cannot do, so skip. -->
25                 <skiptests>true</skiptests>
26                 <!--  this should be commented for local debugging -->
27                 <!-- <deployenv>local</deployenv> -->
28                 <nexusproxy>https://nexus.onap.org</nexusproxy>
29                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
30                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
31                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
32                 <sitePath>/content/sites/site/org/openecomp/vid/${project.version}</sitePath>
33         </properties>
34
35         <repositories>
36                 <repository>
37                         <id>ecomp-releases</id>
38                         <name>VID Release Repository</name>
39                         <url>${nexusproxy}/${releaseNexusPath}</url>
40                 </repository>
41                 <repository>
42                         <id>ecomp-snapshots</id>
43                         <name>VID Snapshot Repository</name>
44                         <url>${nexusproxy}/${snapshotNexusPath}</url>
45                 </repository>
46                 <repository>
47                         <id>ecomp-staging</id>
48                         <name>VID Staging Repository</name>
49                         <url>${nexusproxy}/${stagingNexusPath}</url>
50                 </repository>
51                 <repository>
52                         <!-- Snapshots repository has ECOMP snapshot artifacts -->
53                         <id>oss-snapshots</id>
54                         <name>oss Central - Snapshots</name>
55                         <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
56                 </repository>
57         </repositories>
58
59
60         <distributionManagement>
61                 <repository>
62                         <id>ecomp-releases</id>
63                         <name>VID Release Repository</name>
64                         <url>${nexusproxy}/${releaseNexusPath}</url>
65                 </repository>
66                 <snapshotRepository>
67                         <id>ecomp-snapshots</id>
68                         <name>VID Snapshot Repository</name>
69                         <url>${nexusproxy}/${snapshotNexusPath}</url>
70                 </snapshotRepository>
71                 <!-- added for javadoc -->
72                 <site>
73                         <id>ecomp-site</id>
74                         <url>dav:${nexusproxy}${sitePath}</url>
75                 </site>
76         </distributionManagement>
77
78         <!-- added for javadoc -->
79
80         <reporting>
81           <plugins>
82             <plugin>
83               <groupId>org.apache.maven.plugins</groupId>
84               <artifactId>maven-javadoc-plugin</artifactId>
85               <version>2.10.4</version>
86               <configuration>
87                 <failOnError>false</failOnError>
88                 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
89                 <docletArtifact>
90                   <groupId>org.umlgraph</groupId>
91                   <artifactId>umlgraph</artifactId>
92                   <version>5.6</version>
93                 </docletArtifact>
94                 <additionalparam>-views</additionalparam>
95                 <useStandardDocletOptions>true</useStandardDocletOptions>
96               </configuration>
97             </plugin>
98           </plugins>
99         </reporting>
100
101         <profiles>
102                 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
103                 <profile>
104                         <id>doclint-java8-disable</id>
105                         <activation>
106                                 <jdk>[1.8,)</jdk>
107                         </activation>
108                         <build>
109                         <plugins>
110                                         <!-- license plugin for open source -->
111                             <!-- <plugin>
112                                 <groupId>org.codehaus.mojo</groupId>
113                                 <artifactId>license-maven-plugin</artifactId>
114                                 <version>1.10</version>
115                                 <configuration>
116                                     <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
117                                     <processStartTag>============LICENSE_START=======================================================</processStartTag>
118                                     <processEndTag>============LICENSE_END=========================================================</processEndTag>
119                                     <sectionDelimiter>================================================================================</sectionDelimiter>
120                                     <extraExtensions>
121                                         <js>java</js>
122                                         <sql>java</sql>
123                                     </extraExtensions>
124                                     <licenseName>apache_v2</licenseName>
125                                     <inceptionYear>2017</inceptionYear>
126                                     <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
127                                     <projectName>VID</projectName>
128                                     <canUpdateCopyright>true</canUpdateCopyright>
129                                     <canUpdateDescription>true</canUpdateDescription>
130                                     <canUpdateLicense>true</canUpdateLicense>
131                                     <emptyLineAfterHeader>true</emptyLineAfterHeader>
132                                     <roots>
133                                                 <root>src/main/java</root>
134                                                 <root>src/test/java</root>
135                                                 <root>src/main/webapp/app/vid/scripts</root>
136                                         </roots>
137                                 </configuration>
138                                 <executions>
139                                     <execution>
140                                         <id>first</id>
141                                         <goals>
142                                             <goal>update-file-header</goal>
143                                         </goals>
144                                         <phase>process-sources</phase>
145                                     </execution>
146                                 </executions>
147                             </plugin>-->
148                                     <plugin>
149                                       <groupId>org.codehaus.mojo</groupId>
150                                       <artifactId>versions-maven-plugin</artifactId>
151                                       <version>1.3.1</version>
152                                     </plugin>
153                                     <plugin>
154                                       <groupId>org.sonatype.plugins</groupId>
155                                       <artifactId>nexus-staging-maven-plugin</artifactId>
156                                       <version>1.6.7</version>
157                                       <extensions>true</extensions>
158                                       <configuration>
159                                         <nexusUrl>${nexusproxy}</nexusUrl>
160                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
161                                         <serverId>ecomp-staging</serverId>
162                                       </configuration>
163                                     </plugin>
164                                     
165                                     <plugin>
166                                       <groupId>org.apache.maven.plugins</groupId>
167                                       <artifactId>maven-javadoc-plugin</artifactId>
168                                       <version>2.10.4</version>
169                                       <configuration>
170                                         <additionalparam>-Xdoclint:none</additionalparam>
171                                       </configuration>
172                                     </plugin>
173                                 </plugins>
174                         </build>
175                 </profile>
176                 
177                 <profile>
178                         <id>jenkins</id>
179                         <activation>
180                                 <property>
181                                         <name>env.BUILD_NUMBER</name>
182                                 </property>
183                         </activation>
184                         
185                         <build>
186                                 <plugins>
187                                         <plugin>
188                                                 <groupId>org.codehaus.mojo</groupId>
189                                                 <artifactId>cobertura-maven-plugin</artifactId>
190                                                 <version>2.7</version>
191                                                 <configuration>
192                                                         <formats>
193                                                                 <format>xml</format>
194                                                         </formats>
195                                                 </configuration>
196                                                 <executions>
197                                                         <execution>
198                                                                 <phase>package</phase>
199                                                                 <goals>
200                                                                         <goal>cobertura</goal>
201                                                                 </goals>
202                                                         </execution>
203                                                 </executions>
204                                         </plugin>
205                                 </plugins>
206                         </build>
207                 </profile>
208                 
209         </profiles>
210
211         <build>
212                 <finalName>vid</finalName>
213                 <plugins>
214                         <plugin>
215                                 <groupId>org.apache.maven.plugins</groupId>
216                                 <artifactId>maven-deploy-plugin</artifactId>
217                                 <version>2.5</version>
218                         </plugin>
219                         <plugin>
220                                 <groupId>org.apache.tomcat.maven</groupId>
221                                 <artifactId>tomcat6-maven-plugin</artifactId>
222                                 <version>2.2</version>
223                         </plugin>
224
225                         <plugin>
226                                 <groupId>org.apache.tomcat.maven</groupId>
227                                 <artifactId>tomcat7-maven-plugin</artifactId>
228                                 <version>2.2</version>
229                         </plugin>
230
231                         <!--  Generate POJOs from MSO json schema -->
232                         <plugin>
233                                 <groupId>org.jsonschema2pojo</groupId>
234                                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
235                                 <version>0.4.23</version>
236                                 <configuration>
237                                         <sourceDirectory>${basedir}/src/main/resources/json/mso</sourceDirectory>
238                                         <targetPackage>org.openecomp.vid.domain.mso</targetPackage>
239                                         <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
240                                 </configuration>
241                                 <executions>
242                                         <execution>
243                                                 <goals>
244                                                         <goal>generate</goal>
245                                                 </goals>
246                                         </execution>
247                                 </executions>
248                         </plugin>
249
250                         <plugin>
251                                 <groupId>org.apache.maven.plugins</groupId>
252                                 <artifactId>maven-compiler-plugin</artifactId>
253                                 <version>3.1</version>
254                                 <configuration>
255                                         <source>1.8</source>
256                                         <target>1.8</target>
257                                 </configuration>
258                         </plugin>
259
260                         <plugin>
261                                 <groupId>org.apache.maven.plugins</groupId>
262                                 <artifactId>maven-surefire-plugin</artifactId>
263                                 <version>2.19.1</version>
264                                 <configuration>
265                                         <skipTests>${skiptests}</skipTests>
266                                         <includes>
267                                                 <include>**/Test*.java</include>
268                                                 <include>**/*Test.java</include>
269                                                 <include>**/*TestCase.java</include>
270                                         </includes>
271                                         <excludes>
272                                                 <exclude>**/selenium/*.java</exclude>
273                                         </excludes>
274                                         <additionalClasspathElements>
275                                                 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
276                                         </additionalClasspathElements>
277                                         <systemPropertyVariables>
278                                                 <container.classpath>classpath:</container.classpath>
279                                         </systemPropertyVariables>
280                                 </configuration>
281                         </plugin>
282
283                         <plugin>
284                                 <artifactId>maven-assembly-plugin</artifactId>
285                                 <configuration>
286                                         <skipAssembly>${skipassembly}</skipAssembly>
287                                         <descriptors>
288                                                 <descriptor>${basedir}/distribution.xml</descriptor>
289                                         </descriptors>
290                                 </configuration>
291                                 <executions>
292                                         <execution>
293                                                 <id>make-assembly</id>
294                                                 <phase>package</phase>
295                                                 <goals>
296                                                         <goal>single</goal>
297                                                 </goals>
298                                         </execution>
299                                 </executions>
300                         </plugin>
301                 <plugin>
302                   <groupId>org.apache.maven.plugins</groupId>
303                   <artifactId>maven-site-plugin</artifactId>
304                   <version>3.6</version>
305                   <dependencies>
306                     <dependency>
307                       <groupId>org.apache.maven.wagon</groupId>
308                       <artifactId>wagon-webdav-jackrabbit</artifactId>
309                       <version>2.10</version>
310                     </dependency>
311                   </dependencies>
312                 </plugin>
313                 </plugins>
314         </build>
315         <dependencies>
316                 <!-- SDK components -->
317                 <dependency>
318                         <groupId>org.openecomp.ecompsdkos</groupId>
319                         <artifactId>ecompSDK-core</artifactId>
320                         <version>${epsdk.version}</version>
321                 </dependency>
322                 <dependency>
323                         <groupId>org.openecomp.ecompsdkos</groupId>
324                         <artifactId>ecompSDK-analytics</artifactId>
325                         <version>${epsdk.version}</version>
326                 </dependency>
327                 <dependency>
328                         <groupId>org.openecomp.ecompsdkos</groupId>
329                         <artifactId>ecompSDK-workflow</artifactId>
330                         <version>${epsdk.version}</version>
331                 </dependency>
332                 <dependency>
333                         <groupId>com.att.eelf</groupId>
334                         <artifactId>eelf-core</artifactId>
335                         <version>0.0.1</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.6.3</version>
347                 </dependency>
348                 <dependency>
349                         <groupId>com.fasterxml.jackson.core</groupId>
350                         <artifactId>jackson-databind</artifactId>
351                         <version>2.6.3</version>
352                 </dependency>
353                 <dependency>
354                         <groupId>com.mchange</groupId>
355                         <artifactId>c3p0</artifactId>
356                         <version>0.9.5.2</version>
357                 </dependency>
358                 <dependency>
359                         <groupId>io.searchbox</groupId>
360                         <artifactId>jest</artifactId>
361                         <version>2.0.0</version>
362                         <exclusions>
363                                 <exclusion>
364                                         <groupId>commons-logging</groupId>
365                                         <artifactId>commons-logging</artifactId>
366                                 </exclusion>
367                         </exclusions>
368                 </dependency>
369                 <dependency>
370                         <groupId>javax.servlet</groupId>
371                         <artifactId>javax.servlet-api</artifactId>
372                         <version>3.1.0</version>
373                 </dependency>
374                 <dependency>
375                         <groupId>junit</groupId>
376                         <artifactId>junit</artifactId>
377                         <version>4.12</version>
378                 </dependency>
379                 <!-- Elastic Search -->
380                 <dependency>
381                         <groupId>org.elasticsearch</groupId>
382                         <artifactId>elasticsearch</artifactId>
383                         <version>2.2.0</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-test</artifactId>
427                         <version>${springframework.version}</version>
428                 </dependency>
429                 <dependency>
430                         <groupId>org.springframework</groupId>
431                         <artifactId>spring-tx</artifactId>
432                         <version>${springframework.version}</version>
433                 </dependency>
434                 <dependency>
435                         <groupId>org.springframework</groupId>
436                         <artifactId>spring-web</artifactId>
437                         <version>${springframework.version}</version>
438                 </dependency>
439                 <dependency>
440                         <groupId>org.springframework</groupId>
441                         <artifactId>spring-webmvc</artifactId>
442                         <version>${springframework.version}</version>
443                 </dependency> 
444                 <dependency>
445                         <groupId>org.glassfish.jersey.core</groupId>
446                         <artifactId>jersey-client</artifactId>
447                         <version>2.23.1</version>
448                 </dependency>
449                 <dependency>
450                         <groupId>org.glassfish.jersey.connectors</groupId>
451                         <artifactId>jersey-jetty-connector</artifactId>
452                         <version>2.23.1</version>
453                 </dependency>
454                 <dependency>
455                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
456                         <artifactId>jackson-jaxrs-json-provider</artifactId>
457                         <version>2.6.3</version>
458                 </dependency>
459                 <dependency>
460                         <groupId>commons-beanutils</groupId>
461                         <artifactId>commons-beanutils</artifactId>
462                         <version>1.8.3</version>
463                 </dependency>
464                 <dependency>
465                         <groupId>com.googlecode.json-simple</groupId>
466                         <artifactId>json-simple</artifactId>
467                         <version>1.1.1</version>
468                 </dependency>
469                 <dependency>
470                         <groupId>org.seleniumhq.selenium</groupId>
471                         <artifactId>selenium-java</artifactId>
472                         <version>2.53.1</version>
473                         <scope>test</scope>
474                 </dependency>
475                 <dependency>
476                         <groupId>org.seleniumhq.selenium</groupId>
477                         <artifactId>selenium-api</artifactId>
478                         <version>2.53.1</version>
479                         <scope>test</scope>
480                 </dependency>
481                 <dependency>
482                         <groupId>org.testng</groupId>
483                         <artifactId>testng</artifactId>
484                         <version>6.8</version>
485                         <scope>test</scope>
486                 </dependency>
487                 <dependency>
488                         <groupId>org.seleniumhq.selenium</groupId>
489                         <artifactId>selenium-firefox-driver</artifactId>
490                         <version>2.53.1</version>
491                 </dependency>
492                 <dependency>
493                     <groupId>xml-apis</groupId>
494                     <artifactId>xml-apis</artifactId>
495                     <version>1.4.01</version>
496                 </dependency>
497                 <dependency>
498                         <groupId>org.openecomp.vid</groupId>
499                         <artifactId>asdcclient</artifactId>
500                         <version>1.0.2-SNAPSHOT</version>
501                 </dependency>
502                 <dependency>
503                     <groupId>org.mariadb.jdbc</groupId>
504                     <artifactId>mariadb-java-client</artifactId>
505                     <version>1.4.6</version>
506                 </dependency>
507         </dependencies>
508 </project>