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