[OS-144] Adding nexus+ver to vid
[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.openecomp.org</nexusproxy>
29                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
30                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
31                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
32         </properties>
33
34         <repositories>
35                 <repository>
36                         <id>ecomp-releases</id>
37                         <name>VID Release Repository</name>
38                         <url>${nexusproxy}/${releaseNexusPath}</url>
39                 </repository>
40                 <repository>
41                         <id>ecomp-snapshots</id>
42                         <name>VID Snapshot Repository</name>
43                         <url>${nexusproxy}/${snapshotNexusPath}</url>
44                 </repository>
45                 <repository>
46                         <id>ecomp-staging</id>
47                         <name>VID Staging Repository</name>
48                         <url>${nexusproxy}/${stagingNexusPath}</url>
49                 </repository>
50                 <repository>
51                         <!-- Snapshots repository has ECOMP snapshot artifacts -->
52                         <id>oss-snapshots</id>
53                         <name>oss Central - Snapshots</name>
54                         <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
55                 </repository>
56         </repositories>
57
58
59         <distributionManagement>
60                 <repository>
61                         <id>ecomp-releases</id>
62                         <name>VID Release Repository</name>
63                         <url>${nexusproxy}/${releaseNexusPath}</url>
64                 </repository>
65                 <snapshotRepository>
66                         <id>ecomp-snapshots</id>
67                         <name>VID Snapshot Repository</name>
68                         <url>${nexusproxy}/${snapshotNexusPath}</url>
69                 </snapshotRepository>
70                 <!-- added for javadoc -->
71                 <site>
72                         <id>ecomp-javadoc</id>
73                         <url>dav:${nexusproxy}/content/repositories/vid-javadoc/${project.version}</url>
74                 </site>
75         </distributionManagement>
76
77         <profiles>
78                 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
79                 <profile>
80                         <id>doclint-java8-disable</id>
81                         <activation>
82                                 <jdk>[1.8,)</jdk>
83                         </activation>
84                         <build>
85                         <plugins>
86                                         <!-- license plugin for open source -->
87                             <!-- <plugin>
88                                 <groupId>org.codehaus.mojo</groupId>
89                                 <artifactId>license-maven-plugin</artifactId>
90                                 <version>1.10</version>
91                                 <configuration>
92                                     <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
93                                     <processStartTag>============LICENSE_START=======================================================</processStartTag>
94                                     <processEndTag>============LICENSE_END=========================================================</processEndTag>
95                                     <sectionDelimiter>================================================================================</sectionDelimiter>
96                                     <extraExtensions>
97                                         <js>java</js>
98                                         <sql>java</sql>
99                                     </extraExtensions>
100                                     <licenseName>apache_v2</licenseName>
101                                     <inceptionYear>2017</inceptionYear>
102                                     <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
103                                     <projectName>VID</projectName>
104                                     <canUpdateCopyright>true</canUpdateCopyright>
105                                     <canUpdateDescription>true</canUpdateDescription>
106                                     <canUpdateLicense>true</canUpdateLicense>
107                                     <emptyLineAfterHeader>true</emptyLineAfterHeader>
108                                     <roots>
109                                                 <root>src/main/java</root>
110                                                 <root>src/test/java</root>
111                                                 <root>src/main/webapp/app/vid/scripts</root>
112                                         </roots>
113                                 </configuration>
114                                 <executions>
115                                     <execution>
116                                         <id>first</id>
117                                         <goals>
118                                             <goal>update-file-header</goal>
119                                         </goals>
120                                         <phase>process-sources</phase>
121                                     </execution>
122                                 </executions>
123                             </plugin>-->
124                                     <plugin>
125                                       <groupId>org.codehaus.mojo</groupId>
126                                       <artifactId>versions-maven-plugin</artifactId>
127                                       <version>1.3.1</version>
128                                     </plugin>
129                                     <plugin>
130                                       <groupId>org.sonatype.plugins</groupId>
131                                       <artifactId>nexus-staging-maven-plugin</artifactId>
132                                       <version>1.6.7</version>
133                                       <extensions>true</extensions>
134                                       <configuration>
135                                         <nexusUrl>${nexusproxy}</nexusUrl>
136                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
137                                         <serverId>ecomp-staging</serverId>
138                                       </configuration>
139                                     </plugin>
140                                     
141                                     <plugin>
142                                       <groupId>org.apache.maven.plugins</groupId>
143                                       <artifactId>maven-javadoc-plugin</artifactId>
144                                       <version>2.10.4</version>
145                                       <configuration>
146                                         <additionalparam>-Xdoclint:none</additionalparam>
147                                       </configuration>
148                                     </plugin>
149                                 </plugins>
150                         </build>
151                 </profile>
152                 
153                 <profile>
154                         <id>jenkins</id>
155                         <activation>
156                                 <property>
157                                         <name>env.BUILD_NUMBER</name>
158                                 </property>
159                         </activation>
160                         
161                         <build>
162                                 <plugins>
163                                         <plugin>
164                                                 <groupId>org.codehaus.mojo</groupId>
165                                                 <artifactId>cobertura-maven-plugin</artifactId>
166                                                 <version>2.7</version>
167                                                 <configuration>
168                                                         <formats>
169                                                                 <format>xml</format>
170                                                         </formats>
171                                                 </configuration>
172                                                 <executions>
173                                                         <execution>
174                                                                 <phase>package</phase>
175                                                                 <goals>
176                                                                         <goal>cobertura</goal>
177                                                                 </goals>
178                                                         </execution>
179                                                 </executions>
180                                         </plugin>
181                                 </plugins>
182                         </build>
183                 </profile>
184                 
185         </profiles>
186
187         <build>
188                 <finalName>vid</finalName>
189                 <plugins>
190                         <plugin>
191                                 <groupId>org.apache.maven.plugins</groupId>
192                                 <artifactId>maven-deploy-plugin</artifactId>
193                                 <version>2.5</version>
194                         </plugin>
195                         <plugin>
196                                 <groupId>org.apache.tomcat.maven</groupId>
197                                 <artifactId>tomcat6-maven-plugin</artifactId>
198                                 <version>2.2</version>
199                         </plugin>
200
201                         <plugin>
202                                 <groupId>org.apache.tomcat.maven</groupId>
203                                 <artifactId>tomcat7-maven-plugin</artifactId>
204                                 <version>2.2</version>
205                         </plugin>
206
207                         <!--  Generate POJOs from MSO json schema -->
208                         <plugin>
209                                 <groupId>org.jsonschema2pojo</groupId>
210                                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
211                                 <version>0.4.23</version>
212                                 <configuration>
213                                         <sourceDirectory>${basedir}/src/main/resources/json/mso</sourceDirectory>
214                                         <targetPackage>org.openecomp.vid.domain.mso</targetPackage>
215                                         <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
216                                 </configuration>
217                                 <executions>
218                                         <execution>
219                                                 <goals>
220                                                         <goal>generate</goal>
221                                                 </goals>
222                                         </execution>
223                                 </executions>
224                         </plugin>
225
226                         <plugin>
227                                 <groupId>org.apache.maven.plugins</groupId>
228                                 <artifactId>maven-compiler-plugin</artifactId>
229                                 <version>3.1</version>
230                                 <configuration>
231                                         <source>1.8</source>
232                                         <target>1.8</target>
233                                 </configuration>
234                         </plugin>
235
236                         <plugin>
237                                 <groupId>org.apache.maven.plugins</groupId>
238                                 <artifactId>maven-surefire-plugin</artifactId>
239                                 <version>2.19.1</version>
240                                 <configuration>
241                                         <skipTests>${skiptests}</skipTests>
242                                         <includes>
243                                                 <include>**/Test*.java</include>
244                                                 <include>**/*Test.java</include>
245                                                 <include>**/*TestCase.java</include>
246                                         </includes>
247                                         <excludes>
248                                                 <exclude>**/selenium/*.java</exclude>
249                                         </excludes>
250                                         <additionalClasspathElements>
251                                                 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
252                                         </additionalClasspathElements>
253                                         <systemPropertyVariables>
254                                                 <container.classpath>classpath:</container.classpath>
255                                         </systemPropertyVariables>
256                                 </configuration>
257                         </plugin>
258
259                         <plugin>
260                                 <artifactId>maven-assembly-plugin</artifactId>
261                                 <configuration>
262                                         <skipAssembly>${skipassembly}</skipAssembly>
263                                         <descriptors>
264                                                 <descriptor>${basedir}/distribution.xml</descriptor>
265                                         </descriptors>
266                                 </configuration>
267                                 <executions>
268                                         <execution>
269                                                 <id>make-assembly</id>
270                                                 <phase>package</phase>
271                                                 <goals>
272                                                         <goal>single</goal>
273                                                 </goals>
274                                         </execution>
275                                 </executions>
276                         </plugin>
277                 </plugins>
278         </build>
279
280         <dependencies>
281                 <!-- SDK components -->
282                 <dependency>
283                         <groupId>org.openecomp.ecompsdkos</groupId>
284                         <artifactId>ecompSDK-core</artifactId>
285                         <version>${epsdk.version}</version>
286                 </dependency>
287                 <dependency>
288                         <groupId>org.openecomp.ecompsdkos</groupId>
289                         <artifactId>ecompSDK-analytics</artifactId>
290                         <version>${epsdk.version}</version>
291                 </dependency>
292                 <dependency>
293                         <groupId>org.openecomp.ecompsdkos</groupId>
294                         <artifactId>ecompSDK-workflow</artifactId>
295                         <version>${epsdk.version}</version>
296                 </dependency>
297                 <dependency>
298                         <groupId>com.att.eelf</groupId>
299                         <artifactId>eelf-core</artifactId>
300                         <version>0.0.1</version>
301                 </dependency>
302                 <!-- Mapper -->
303                 <dependency>
304                         <groupId>com.fasterxml.jackson.core</groupId>
305                         <artifactId>jackson-annotations</artifactId>
306                         <version>2.6.3</version>
307                 </dependency>
308                 <dependency>
309                         <groupId>com.fasterxml.jackson.core</groupId>
310                         <artifactId>jackson-core</artifactId>
311                         <version>2.6.3</version>
312                 </dependency>
313                 <dependency>
314                         <groupId>com.fasterxml.jackson.core</groupId>
315                         <artifactId>jackson-databind</artifactId>
316                         <version>2.6.3</version>
317                 </dependency>
318                 <dependency>
319                         <groupId>com.mchange</groupId>
320                         <artifactId>c3p0</artifactId>
321                         <version>0.9.5.2</version>
322                 </dependency>
323                 <dependency>
324                         <groupId>io.searchbox</groupId>
325                         <artifactId>jest</artifactId>
326                         <version>2.0.0</version>
327                         <exclusions>
328                                 <exclusion>
329                                         <groupId>commons-logging</groupId>
330                                         <artifactId>commons-logging</artifactId>
331                                 </exclusion>
332                         </exclusions>
333                 </dependency>
334                 <dependency>
335                         <groupId>javax.servlet</groupId>
336                         <artifactId>javax.servlet-api</artifactId>
337                         <version>3.1.0</version>
338                 </dependency>
339                 <dependency>
340                         <groupId>junit</groupId>
341                         <artifactId>junit</artifactId>
342                         <version>4.12</version>
343                 </dependency>
344                 <!-- Elastic Search -->
345                 <dependency>
346                         <groupId>org.elasticsearch</groupId>
347                         <artifactId>elasticsearch</artifactId>
348                         <version>2.2.0</version>
349                 </dependency>
350                 <dependency>
351                         <groupId>org.json</groupId>
352                         <artifactId>json</artifactId>
353                         <version>20160212</version>
354                 </dependency>
355                 <dependency>
356                         <groupId>org.quartz-scheduler</groupId>
357                         <artifactId>quartz</artifactId>
358                         <version>2.2.1</version>
359                         <exclusions>
360                                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
361                                 <exclusion>
362                                         <groupId>c3p0</groupId>
363                                         <artifactId>c3p0</artifactId>
364                                 </exclusion>
365                         </exclusions>
366                 </dependency>
367                 <!-- bridge to implement commons-logging using slf4j -->
368                 <dependency>
369                         <groupId>org.slf4j</groupId>
370                         <artifactId>jcl-over-slf4j</artifactId>
371                         <version>1.7.12</version>
372                 </dependency>
373                 <dependency>
374                         <groupId>org.springframework</groupId>
375                         <artifactId>spring-context-support</artifactId>
376                         <version>${springframework.version}</version>
377                 </dependency>
378                 <dependency>
379                         <groupId>org.springframework</groupId>
380                         <artifactId>spring-core</artifactId>
381                         <version>${springframework.version}</version>
382                         <exclusions>
383                                 <exclusion>
384                                         <groupId>commons-logging</groupId>
385                                         <artifactId>commons-logging</artifactId>
386                                 </exclusion>
387                         </exclusions>
388                 </dependency>
389                 <dependency>
390                         <groupId>org.springframework</groupId>
391                         <artifactId>spring-test</artifactId>
392                         <version>${springframework.version}</version>
393                 </dependency>
394                 <dependency>
395                         <groupId>org.springframework</groupId>
396                         <artifactId>spring-tx</artifactId>
397                         <version>${springframework.version}</version>
398                 </dependency>
399                 <dependency>
400                         <groupId>org.springframework</groupId>
401                         <artifactId>spring-web</artifactId>
402                         <version>${springframework.version}</version>
403                 </dependency>
404                 <dependency>
405                         <groupId>org.springframework</groupId>
406                         <artifactId>spring-webmvc</artifactId>
407                         <version>${springframework.version}</version>
408                 </dependency> 
409                 <dependency>
410                         <groupId>org.glassfish.jersey.core</groupId>
411                         <artifactId>jersey-client</artifactId>
412                         <version>2.23.1</version>
413                 </dependency>
414                 <dependency>
415                         <groupId>org.glassfish.jersey.connectors</groupId>
416                         <artifactId>jersey-jetty-connector</artifactId>
417                         <version>2.23.1</version>
418                 </dependency>
419                 <dependency>
420                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
421                         <artifactId>jackson-jaxrs-json-provider</artifactId>
422                         <version>2.6.3</version>
423                 </dependency>
424                 <dependency>
425                         <groupId>commons-beanutils</groupId>
426                         <artifactId>commons-beanutils</artifactId>
427                         <version>1.8.3</version>
428                 </dependency>
429                 <dependency>
430                         <groupId>com.googlecode.json-simple</groupId>
431                         <artifactId>json-simple</artifactId>
432                         <version>1.1.1</version>
433                 </dependency>
434                 <dependency>
435                         <groupId>org.seleniumhq.selenium</groupId>
436                         <artifactId>selenium-java</artifactId>
437                         <version>2.53.1</version>
438                         <scope>test</scope>
439                 </dependency>
440                 <dependency>
441                         <groupId>org.seleniumhq.selenium</groupId>
442                         <artifactId>selenium-api</artifactId>
443                         <version>2.53.1</version>
444                         <scope>test</scope>
445                 </dependency>
446                 <dependency>
447                         <groupId>org.testng</groupId>
448                         <artifactId>testng</artifactId>
449                         <version>6.8</version>
450                         <scope>test</scope>
451                 </dependency>
452                 <dependency>
453                         <groupId>org.seleniumhq.selenium</groupId>
454                         <artifactId>selenium-firefox-driver</artifactId>
455                         <version>2.53.1</version>
456                 </dependency>
457                 <dependency>
458                     <groupId>xml-apis</groupId>
459                     <artifactId>xml-apis</artifactId>
460                     <version>1.4.01</version>
461                 </dependency>
462                 <dependency>
463                         <groupId>org.openecomp.vid</groupId>
464                         <artifactId>asdcclient</artifactId>
465                         <version>1.0.2-SNAPSHOT</version>
466                 </dependency>
467                 <dependency>
468                     <groupId>org.mariadb.jdbc</groupId>
469                     <artifactId>mariadb-java-client</artifactId>
470                     <version>1.4.6</version>
471                 </dependency>
472         </dependencies>
473 </project>