[VID-3] Setting docker image tag
[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.1.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         <reporting>
79           <plugins>
80             <plugin>
81               <groupId>org.apache.maven.plugins</groupId>
82               <artifactId>maven-javadoc-plugin</artifactId>
83               <version>2.10.4</version>
84               <configuration>
85                 <failOnError>false</failOnError>
86                 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
87                 <docletArtifact>
88                   <groupId>org.umlgraph</groupId>
89                   <artifactId>umlgraph</artifactId>
90                   <version>5.6</version>
91                 </docletArtifact>
92                 <additionalparam>-views</additionalparam>
93                 <useStandardDocletOptions>true</useStandardDocletOptions>
94               </configuration>
95             </plugin>
96           </plugins>
97         </reporting>
98         
99         <profiles>
100                 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
101                 <profile>
102                         <id>doclint-java8-disable</id>
103                         <activation>
104                                 <jdk>[1.8,)</jdk>
105                         </activation>
106                         <build>
107                         <plugins>
108                                     <plugin>
109                                       <groupId>org.codehaus.mojo</groupId>
110                                       <artifactId>versions-maven-plugin</artifactId>
111                                       <version>1.3.1</version>
112                                     </plugin>
113                                     <plugin>
114                                       <groupId>org.sonatype.plugins</groupId>
115                                       <artifactId>nexus-staging-maven-plugin</artifactId>
116                                       <version>1.6.7</version>
117                                       <extensions>true</extensions>
118                                       <configuration>
119                                         <nexusUrl>${nexusproxy}</nexusUrl>
120                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
121                                         <serverId>ecomp-staging</serverId>
122                                       </configuration>
123                                     </plugin>
124                                     
125                                     <plugin>
126                                       <groupId>org.apache.maven.plugins</groupId>
127                                       <artifactId>maven-site-plugin</artifactId>
128                                       <version>3.6</version>
129                                       <dependencies>
130                                         <dependency>
131                                           <groupId>org.apache.maven.wagon</groupId>
132                                           <artifactId>wagon-webdav-jackrabbit</artifactId>
133                                           <version>2.10</version>
134                                         </dependency>
135                                       </dependencies>
136                                     </plugin>
137                                     
138                         </plugins>
139                         </build>
140                 </profile>
141                 
142                 <profile>
143                         <id>jenkins</id>
144                         <activation>
145                                 <property>
146                                         <name>env.BUILD_NUMBER</name>
147                                 </property>
148                         </activation>
149                         
150                         <build>
151                                 <plugins>
152                                         <plugin>
153                                                 <groupId>org.codehaus.mojo</groupId>
154                                                 <artifactId>cobertura-maven-plugin</artifactId>
155                                                 <version>2.7</version>
156                                                 <configuration>
157                                                         <formats>
158                                                                 <format>xml</format>
159                                                         </formats>
160                                                 </configuration>
161                                                 <executions>
162                                                         <execution>
163                                                                 <phase>package</phase>
164                                                                 <goals>
165                                                                         <goal>cobertura</goal>
166                                                                 </goals>
167                                                         </execution>
168                                                 </executions>
169                                         </plugin>
170                                 </plugins>
171                         </build>
172                 </profile>
173                 
174         </profiles>
175
176         <build>
177                 <finalName>vid</finalName>
178                 <plugins>
179                         <plugin>
180                                 <groupId>org.apache.maven.plugins</groupId>
181                                 <artifactId>maven-deploy-plugin</artifactId>
182                                 <version>2.5</version>
183                         </plugin>
184                         <plugin>
185                                 <groupId>org.apache.tomcat.maven</groupId>
186                                 <artifactId>tomcat6-maven-plugin</artifactId>
187                                 <version>2.2</version>
188                         </plugin>
189
190                         <plugin>
191                                 <groupId>org.apache.tomcat.maven</groupId>
192                                 <artifactId>tomcat7-maven-plugin</artifactId>
193                                 <version>2.2</version>
194                         </plugin>
195
196                         <!--  Generate POJOs from MSO json schema -->
197                         <plugin>
198                                 <groupId>org.jsonschema2pojo</groupId>
199                                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
200                                 <version>0.4.23</version>
201                                 <configuration>
202                                         <sourceDirectory>${basedir}/src/main/resources/json/mso</sourceDirectory>
203                                         <targetPackage>org.openecomp.vid.domain.mso</targetPackage>
204                                         <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
205                                 </configuration>
206                                 <executions>
207                                         <execution>
208                                                 <goals>
209                                                         <goal>generate</goal>
210                                                 </goals>
211                                         </execution>
212                                 </executions>
213                         </plugin>
214
215                         <plugin>
216                                 <groupId>org.apache.maven.plugins</groupId>
217                                 <artifactId>maven-compiler-plugin</artifactId>
218                                 <version>3.1</version>
219                                 <configuration>
220                                         <source>1.8</source>
221                                         <target>1.8</target>
222                                 </configuration>
223                         </plugin>
224
225                         <plugin>
226                                 <groupId>org.apache.maven.plugins</groupId>
227                                 <artifactId>maven-surefire-plugin</artifactId>
228                                 <version>2.19.1</version>
229                                 <configuration>
230                                         <skipTests>${skiptests}</skipTests>
231                                         <includes>
232                                                 <include>**/Test*.java</include>
233                                                 <include>**/*Test.java</include>
234                                                 <include>**/*TestCase.java</include>
235                                         </includes>
236                                         <excludes>
237                                                 <exclude>**/selenium/*.java</exclude>
238                                         </excludes>
239                                         <additionalClasspathElements>
240                                                 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
241                                         </additionalClasspathElements>
242                                         <systemPropertyVariables>
243                                                 <container.classpath>classpath:</container.classpath>
244                                         </systemPropertyVariables>
245                                 </configuration>
246                         </plugin>
247
248                         <plugin>
249                                 <artifactId>maven-assembly-plugin</artifactId>
250                                 <configuration>
251                                         <skipAssembly>${skipassembly}</skipAssembly>
252                                         <descriptors>
253                                                 <descriptor>${basedir}/distribution.xml</descriptor>
254                                         </descriptors>
255                                 </configuration>
256                                 <executions>
257                                         <execution>
258                                                 <id>make-assembly</id>
259                                                 <phase>package</phase>
260                                                 <goals>
261                                                         <goal>single</goal>
262                                                 </goals>
263                                         </execution>
264                                 </executions>
265                         </plugin>
266                 </plugins>
267         </build>
268
269         <dependencies>
270                 <!-- SDK components -->
271                 <dependency>
272                         <groupId>org.openecomp.ecompsdkos</groupId>
273                         <artifactId>ecompSDK-core</artifactId>
274                         <version>${epsdk.version}</version>
275                 </dependency>
276                 <dependency>
277                         <groupId>org.openecomp.ecompsdkos</groupId>
278                         <artifactId>ecompSDK-analytics</artifactId>
279                         <version>${epsdk.version}</version>
280                 </dependency>
281                 <dependency>
282                         <groupId>org.openecomp.ecompsdkos</groupId>
283                         <artifactId>ecompSDK-workflow</artifactId>
284                         <version>${epsdk.version}</version>
285                 </dependency>
286                 <dependency>
287                         <groupId>com.att.eelf</groupId>
288                         <artifactId>eelf-core</artifactId>
289                         <version>0.0.1</version>
290                 </dependency>
291                 <!-- Mapper -->
292                 <dependency>
293                         <groupId>com.fasterxml.jackson.core</groupId>
294                         <artifactId>jackson-annotations</artifactId>
295                         <version>2.6.3</version>
296                 </dependency>
297                 <dependency>
298                         <groupId>com.fasterxml.jackson.core</groupId>
299                         <artifactId>jackson-core</artifactId>
300                         <version>2.6.3</version>
301                 </dependency>
302                 <dependency>
303                         <groupId>com.fasterxml.jackson.core</groupId>
304                         <artifactId>jackson-databind</artifactId>
305                         <version>2.6.3</version>
306                 </dependency>
307                 <dependency>
308                         <groupId>com.mchange</groupId>
309                         <artifactId>c3p0</artifactId>
310                         <version>0.9.5.2</version>
311                 </dependency>
312                 <dependency>
313                         <groupId>io.searchbox</groupId>
314                         <artifactId>jest</artifactId>
315                         <version>2.0.0</version>
316                         <exclusions>
317                                 <exclusion>
318                                         <groupId>commons-logging</groupId>
319                                         <artifactId>commons-logging</artifactId>
320                                 </exclusion>
321                         </exclusions>
322                 </dependency>
323                 <dependency>
324                         <groupId>javax.servlet</groupId>
325                         <artifactId>javax.servlet-api</artifactId>
326                         <version>3.1.0</version>
327                 </dependency>
328                 <dependency>
329                         <groupId>junit</groupId>
330                         <artifactId>junit</artifactId>
331                         <version>4.12</version>
332                 </dependency>
333                 <!-- Elastic Search -->
334                 <dependency>
335                         <groupId>org.elasticsearch</groupId>
336                         <artifactId>elasticsearch</artifactId>
337                         <version>2.2.0</version>
338                 </dependency>
339                 <dependency>
340                         <groupId>org.json</groupId>
341                         <artifactId>json</artifactId>
342                         <version>20160212</version>
343                 </dependency>
344                 <dependency>
345                         <groupId>org.quartz-scheduler</groupId>
346                         <artifactId>quartz</artifactId>
347                         <version>2.2.1</version>
348                         <exclusions>
349                                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
350                                 <exclusion>
351                                         <groupId>c3p0</groupId>
352                                         <artifactId>c3p0</artifactId>
353                                 </exclusion>
354                         </exclusions>
355                 </dependency>
356                 <!-- bridge to implement commons-logging using slf4j -->
357                 <dependency>
358                         <groupId>org.slf4j</groupId>
359                         <artifactId>jcl-over-slf4j</artifactId>
360                         <version>1.7.12</version>
361                 </dependency>
362                 <dependency>
363                         <groupId>org.springframework</groupId>
364                         <artifactId>spring-context-support</artifactId>
365                         <version>${springframework.version}</version>
366                 </dependency>
367                 <dependency>
368                         <groupId>org.springframework</groupId>
369                         <artifactId>spring-core</artifactId>
370                         <version>${springframework.version}</version>
371                         <exclusions>
372                                 <exclusion>
373                                         <groupId>commons-logging</groupId>
374                                         <artifactId>commons-logging</artifactId>
375                                 </exclusion>
376                         </exclusions>
377                 </dependency>
378                 <dependency>
379                         <groupId>org.springframework</groupId>
380                         <artifactId>spring-test</artifactId>
381                         <version>${springframework.version}</version>
382                 </dependency>
383                 <dependency>
384                         <groupId>org.springframework</groupId>
385                         <artifactId>spring-tx</artifactId>
386                         <version>${springframework.version}</version>
387                 </dependency>
388                 <dependency>
389                         <groupId>org.springframework</groupId>
390                         <artifactId>spring-web</artifactId>
391                         <version>${springframework.version}</version>
392                 </dependency>
393                 <dependency>
394                         <groupId>org.springframework</groupId>
395                         <artifactId>spring-webmvc</artifactId>
396                         <version>${springframework.version}</version>
397                 </dependency> 
398                 <dependency>
399                         <groupId>org.glassfish.jersey.core</groupId>
400                         <artifactId>jersey-client</artifactId>
401                         <version>2.23.1</version>
402                 </dependency>
403                 <dependency>
404                         <groupId>org.glassfish.jersey.connectors</groupId>
405                         <artifactId>jersey-jetty-connector</artifactId>
406                         <version>2.23.1</version>
407                 </dependency>
408                 <dependency>
409                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
410                         <artifactId>jackson-jaxrs-json-provider</artifactId>
411                         <version>2.6.3</version>
412                 </dependency>
413                 <dependency>
414                         <groupId>commons-beanutils</groupId>
415                         <artifactId>commons-beanutils</artifactId>
416                         <version>1.8.3</version>
417                 </dependency>
418                 <dependency>
419                         <groupId>com.googlecode.json-simple</groupId>
420                         <artifactId>json-simple</artifactId>
421                         <version>1.1.1</version>
422                 </dependency>
423                 <dependency>
424                         <groupId>org.seleniumhq.selenium</groupId>
425                         <artifactId>selenium-java</artifactId>
426                         <version>2.53.1</version>
427                         <scope>test</scope>
428                 </dependency>
429                 <dependency>
430                         <groupId>org.seleniumhq.selenium</groupId>
431                         <artifactId>selenium-api</artifactId>
432                         <version>2.53.1</version>
433                         <scope>test</scope>
434                 </dependency>
435                 <dependency>
436                         <groupId>org.testng</groupId>
437                         <artifactId>testng</artifactId>
438                         <version>6.8</version>
439                         <scope>test</scope>
440                 </dependency>
441                 <dependency>
442                         <groupId>org.seleniumhq.selenium</groupId>
443                         <artifactId>selenium-firefox-driver</artifactId>
444                         <version>2.53.1</version>
445                 </dependency>
446                 <dependency>
447                     <groupId>xml-apis</groupId>
448                     <artifactId>xml-apis</artifactId>
449                     <version>1.4.01</version>
450                 </dependency>
451                 <dependency>
452                         <groupId>org.openecomp.vid</groupId>
453                         <artifactId>asdcclient</artifactId>
454                         <version>1.0.2-SNAPSHOT</version>
455                 </dependency>
456                 <dependency>
457                     <groupId>org.mariadb.jdbc</groupId>
458                     <artifactId>mariadb-java-client</artifactId>
459                     <version>1.4.6</version>
460                 </dependency>
461         </dependencies>
462 </project>