Configure sonar code coverage; use EPSDK 1.3.0
[portal.git] / ecomp-portal-BE-common / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4         <groupId>org.onap.portal</groupId>
5         <artifactId>ecompportal-be-common</artifactId>
6         <packaging>war</packaging>
7         <!-- Version number is managed manually; no Jenkins build.number -->
8         <version>1.3.0-SNAPSHOT</version>
9
10         <properties>
11                 <springframework.version>4.2.0.RELEASE</springframework.version>
12                 <hibernate.version>4.3.11.Final</hibernate.version>
13                 <eelf.version>1.0.0</eelf.version>
14                 <fasterxml.version>2.7.4</fasterxml.version>
15                 <epsdk.version>1.3.0</epsdk.version>
16                 <encoding>UTF-8</encoding>
17                 <!-- Tests usually require some setup that maven cannot do, so skip. -->
18                 <skipTests>true</skipTests>
19                 <nexusproxy>https://nexus.onap.org</nexusproxy>
20                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
21                 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
22                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
23         </properties>
24
25         <repositories>
26                 <repository>
27                         <id>onap-releases</id>
28                         <name>ONAP - Release Repository</name>
29                         <url>${nexusproxy}/${releaseNexusPath}</url>
30                 </repository>
31                 <repository>
32                         <id>onap-staging</id>
33                         <name>ONAP - Staging Repository</name>
34                         <url>${nexusproxy}/${stagingNexusPath}</url>
35                 </repository>
36                 <repository>
37                         <id>onap-snapshots</id>
38                         <name>ONAP - Snapshot Repository</name>
39                         <url>${nexusproxy}/${snapshotNexusPath}</url>
40                 </repository>
41         </repositories>
42
43         <profiles>
44                 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
45                 <profile>
46                         <id>doclint-java8-disable</id>
47                         <activation>
48                                 <jdk>[1.8,)</jdk>
49                         </activation>
50                         <build>
51                                 <plugins>
52                                         <plugin>
53                                                 <groupId>org.apache.maven.plugins</groupId>
54                                                 <artifactId>maven-javadoc-plugin</artifactId>
55                                                 <configuration>
56                                                         <additionalparam>-Xdoclint:none</additionalparam>
57                                                 </configuration>
58                                         </plugin>
59                                 </plugins>
60                         </build>
61                 </profile>
62
63         </profiles>
64
65         <build>
66                 <!-- The war file name carries no version number -->
67                 <finalName>${project.artifactId}</finalName>
68
69                 <plugins>
70
71                         <plugin>
72                                 <artifactId>maven-compiler-plugin</artifactId>
73                                 <version>3.1</version>
74                                 <configuration>
75                                         <source>1.8</source>
76                                         <target>1.8</target>
77                                 </configuration>
78                         </plugin>
79
80                         <!-- Generate javadoc jar; see profile for Java 8 -->
81                         <plugin>
82                                 <groupId>org.apache.maven.plugins</groupId>
83                                 <artifactId>maven-javadoc-plugin</artifactId>
84                                 <version>2.10.3</version>
85                                 <executions>
86                                         <execution>
87                                                 <id>attach-javadocs</id>
88                                                 <goals>
89                                                         <goal>jar</goal>
90                                                 </goals>
91                                         </execution>
92                                 </executions>
93                         </plugin>
94
95                         <!-- Generate source jar -->
96                         <plugin>
97                                 <groupId>org.apache.maven.plugins</groupId>
98                                 <artifactId>maven-source-plugin</artifactId>
99                                 <version>3.0.0</version>
100                                 <executions>
101                                         <execution>
102                                                 <id>attach-sources</id>
103                                                 <goals>
104                                                         <goal>jar</goal>
105                                                 </goals>
106                                         </execution>
107                                 </executions>
108                         </plugin>
109
110                         <plugin>
111                                 <groupId>org.apache.maven.plugins</groupId>
112                                 <artifactId>maven-war-plugin</artifactId>
113                                 <version>3.0.0</version>
114                                 <configuration>
115                                         <!-- Build a jar with all the Java classes -->
116                                         <attachClasses>true</attachClasses>
117                                         <!-- Do not put any jars in the war -->
118                                         <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
119                                 </configuration>
120                         </plugin>
121                         
122                         <!-- No deployment step for this project -->
123                         <plugin>
124                                 <groupId>org.apache.maven.plugins</groupId>
125                                 <artifactId>maven-deploy-plugin</artifactId>
126                                 <version>2.8</version>
127                                 <configuration>
128                                         <skip>true</skip>
129                                 </configuration>
130                         </plugin>
131
132                 </plugins>
133
134                 <testResources>
135                         <testResource>
136                                 <directory>src/test/java</directory>
137                                 <includes>
138                                         <include>**/*Test*.*</include>
139                                 </includes>
140                         </testResource>
141                 </testResources>
142
143                 <resources>
144                         <resource>
145                                 <directory>src/main/resources</directory>
146                                 <includes>
147                                         <include>**/*</include>
148                                 </includes>
149                         </resource>
150                         <!-- picks up the applicationcodes.properties file presented in \src\ 
151                                 path -->
152                         <resource>
153                                 <directory>src/main/java</directory>
154                                 <includes>
155                                         <include>**/*.xml</include>
156                                         <include>**/*.properties</include>
157                                 </includes>
158                         </resource>
159                 </resources>
160
161         </build>
162
163         <dependencies>
164                 <dependency>
165                         <groupId>com.att.eelf</groupId>
166                         <artifactId>eelf-core</artifactId>
167                         <version>${eelf.version}</version>
168                 </dependency>
169                 <dependency>
170                         <groupId>com.google.code.gson</groupId>
171                         <artifactId>gson</artifactId>
172                         <version>2.5</version>
173                 </dependency>
174
175                 <!-- Spring -->
176                 <dependency>
177                         <groupId>org.springframework</groupId>
178                         <artifactId>spring-core</artifactId>
179                         <version>${springframework.version}</version>
180                 </dependency>
181                 <dependency>
182                         <groupId>org.springframework</groupId>
183                         <artifactId>spring-web</artifactId>
184                         <version>${springframework.version}</version>
185                 </dependency>
186                 <dependency>
187                         <groupId>org.springframework</groupId>
188                         <artifactId>spring-webmvc</artifactId>
189                         <version>${springframework.version}</version>
190                 </dependency>
191                 <dependency>
192                         <groupId>org.springframework</groupId>
193                         <artifactId>spring-tx</artifactId>
194                         <version>${springframework.version}</version>
195                 </dependency>
196                 <dependency>
197                         <groupId>org.springframework</groupId>
198                         <artifactId>spring-context-support</artifactId>
199                         <version>${springframework.version}</version>
200                 </dependency>
201                 <dependency>
202                         <groupId>org.springframework</groupId>
203                         <artifactId>spring-orm</artifactId>
204                         <version>${springframework.version}</version>
205                 </dependency>
206                 <dependency>
207                         <groupId>org.springframework</groupId>
208                         <artifactId>spring-test</artifactId>
209                         <version>${springframework.version}</version>
210                 </dependency>
211                 <dependency>
212                         <groupId>org.springframework.boot</groupId>
213                         <artifactId>spring-boot-starter</artifactId>
214                         <version>1.3.0.RELEASE</version>
215                         <exclusions>
216                                 <exclusion>
217                                         <groupId>org.slf4j</groupId>
218                                         <artifactId>log4j-over-slf4j</artifactId>
219                                 </exclusion>
220                                 <exclusion>
221                                         <groupId>ch.qos.logback</groupId>
222                                         <artifactId>logback-classic</artifactId>
223                                 </exclusion>
224                         </exclusions>
225                 </dependency>
226
227                 <!-- Hibernate -->
228                 <dependency>
229                         <groupId>org.hibernate</groupId>
230                         <artifactId>hibernate-core</artifactId>
231                         <version>${hibernate.version}</version>
232                 </dependency>
233                 <dependency>
234                         <groupId>org.hibernate</groupId>
235                         <artifactId>hibernate-validator</artifactId>
236                         <version>5.1.3.Final</version>
237                 </dependency>
238
239                 <!-- hibernate-core depends on dom4j, which has optional dependencies. 
240                         On jenkins, contrary to doc, mvn 3.0.5 packages the optional dependencies 
241                         in the war. Workaround: exclude them explicitly. -->
242                 <dependency>
243                         <groupId>dom4j</groupId>
244                         <artifactId>dom4j</artifactId>
245                         <version>1.6.1</version>
246                         <exclusions>
247                                 <exclusion>
248                                         <groupId>jaxme</groupId>
249                                         <artifactId>jaxme-api</artifactId>
250                                 </exclusion>
251                                 <exclusion>
252                                         <groupId>jaxen</groupId>
253                                         <artifactId>jaxen</artifactId>
254                                 </exclusion>
255                                 <exclusion>
256                                         <groupId>msv</groupId>
257                                         <artifactId>xsdlib</artifactId>
258                                 </exclusion>
259                                 <exclusion>
260                                         <groupId>msv</groupId>
261                                         <artifactId>relaxngDatatype</artifactId>
262                                 </exclusion>
263                                 <exclusion>
264                                         <groupId>pull-parser</groupId>
265                                         <artifactId>pull-parser</artifactId>
266                                 </exclusion>
267                                 <exclusion>
268                                         <groupId>xpp3</groupId>
269                                         <artifactId>xpp3</artifactId>
270                                 </exclusion>
271                                 <exclusion>
272                                         <groupId>stax</groupId>
273                                         <artifactId>stax-api</artifactId>
274                                 </exclusion>
275                         </exclusions>
276                 </dependency>
277
278                 <!-- Servlet+JSP+JSTL -->
279                 <dependency>
280                         <groupId>javax.servlet</groupId>
281                         <artifactId>javax.servlet-api</artifactId>
282                         <version>3.1.0</version>
283                 </dependency>
284                 <dependency>
285                         <groupId>javax.servlet.jsp</groupId>
286                         <artifactId>javax.servlet.jsp-api</artifactId>
287                         <version>2.3.1</version>
288                 </dependency>
289                 <dependency>
290                         <groupId>javax.servlet</groupId>
291                         <artifactId>jstl</artifactId>
292                         <version>1.2</version>
293                 </dependency>
294
295                 <!-- Oracle JDBC driver -->
296 <!--            <dependency>
297                         <groupId>com.oracle</groupId>
298                         <artifactId>ojdbc6</artifactId>
299                         <version>11.2.0.4</version>
300                 </dependency> -->
301                 <!-- Apache Tiles -->
302                 <dependency>
303                         <groupId>org.apache.tiles</groupId>
304                         <artifactId>tiles-core</artifactId>
305                         <version>3.0.5</version>
306                 </dependency>
307                 <dependency>
308                         <groupId>org.apache.tiles</groupId>
309                         <artifactId>tiles-jsp</artifactId>
310                         <version>3.0.5</version>
311                 </dependency>
312                 <dependency>
313                         <groupId>org.apache.cxf</groupId>
314                         <artifactId>cxf-rt-rs-client</artifactId>
315                         <version>3.0.0-milestone1</version>
316                 </dependency>
317
318                 <!-- Mapper -->
319                 <dependency>
320                         <groupId>com.fasterxml.jackson.core</groupId>
321                         <artifactId>jackson-annotations</artifactId>
322                         <version>${fasterxml.version}</version>
323                 </dependency>
324                 <dependency>
325                         <groupId>com.fasterxml.jackson.core</groupId>
326                         <artifactId>jackson-core</artifactId>
327                         <version>${fasterxml.version}</version>
328                 </dependency>
329                 <dependency>
330                         <groupId>com.fasterxml.jackson.core</groupId>
331                         <artifactId>jackson-databind</artifactId>
332                         <version>${fasterxml.version}</version>
333                 </dependency>
334
335                 <dependency>
336                         <groupId>postgresql</groupId>
337                         <artifactId>postgresql</artifactId>
338                         <version>9.1-901-1.jdbc4</version>
339                 </dependency>
340
341                 <!-- Elastic Search -->
342                 <dependency>
343                         <groupId>org.elasticsearch</groupId>
344                         <artifactId>elasticsearch</artifactId>
345                         <version>2.2.0</version>
346                 </dependency>
347                 <dependency>
348                         <groupId>io.searchbox</groupId>
349                         <artifactId>jest</artifactId>
350                         <version>2.0.0</version>
351                 </dependency>
352
353                 <dependency>
354                         <groupId>org.apache.jcs</groupId>
355                         <artifactId>jcs</artifactId>
356                         <version>1.3</version>
357                         <exclusions>
358                                 <exclusion>
359                                         <groupId>*</groupId>
360                                         <artifactId>*</artifactId>
361                                 </exclusion>
362                         </exclusions>
363                         <!-- -->
364                 </dependency>
365
366                 <dependency>
367                         <groupId>org.apache.tomcat</groupId>
368                         <artifactId>tomcat-websocket</artifactId>
369                         <version>8.0.28</version>
370                         <scope>provided</scope>
371                 </dependency>
372
373                 <dependency>
374                         <groupId>concurrent</groupId>
375                         <artifactId>concurrent</artifactId>
376                         <version>1.3.2</version>
377                         <exclusions>
378                                 <exclusion>
379                                         <groupId>*</groupId>
380                                         <artifactId>*</artifactId>
381                                 </exclusion>
382                         </exclusions>
383                 </dependency>
384
385
386                 <dependency>
387                         <groupId>commons-lang</groupId>
388                         <artifactId>commons-lang</artifactId>
389                         <version>2.6</version>
390                 </dependency>
391                 <!-- for generating excel/csv/excelx -->
392                 <dependency>
393                         <groupId>org.apache.poi</groupId>
394                         <artifactId>poi</artifactId>
395                         <version>3.5-FINAL</version>
396                         <exclusions>
397                                 <exclusion>
398                                         <groupId>commons-logging</groupId>
399                                         <artifactId>commons-logging</artifactId>
400                                 </exclusion>
401                                 <exclusion>
402                                         <groupId>log4j</groupId>
403                                         <artifactId>log4j</artifactId>
404                                 </exclusion>
405                         </exclusions>
406                 </dependency>
407                 <dependency>
408                         <groupId>org.apache.poi</groupId>
409                         <artifactId>poi-ooxml</artifactId>
410                         <version>3.5-FINAL</version>
411                         <exclusions>
412                                 <exclusion>
413                                         <groupId>commons-logging</groupId>
414                                         <artifactId>commons-logging</artifactId>
415                                 </exclusion>
416                                 <exclusion>
417                                         <groupId>log4j</groupId>
418                                         <artifactId>log4j</artifactId>
419                                 </exclusion>
420                         </exclusions>
421                 </dependency>
422                 <dependency>
423                         <groupId>org.apache.poi</groupId>
424                         <artifactId>poi-scratchpad</artifactId>
425                         <version>3.5-FINAL</version>
426                         <exclusions>
427                                 <exclusion>
428                                         <groupId>commons-logging</groupId>
429                                         <artifactId>commons-logging</artifactId>
430                                 </exclusion>
431                                 <exclusion>
432                                         <groupId>log4j</groupId>
433                                         <artifactId>log4j</artifactId>
434                                 </exclusion>
435                         </exclusions>
436                 </dependency>
437                 <dependency>
438                         <groupId>org.apache.poi</groupId>
439                         <artifactId>poi-contrib</artifactId>
440                         <version>3.5-FINAL</version>
441                         <exclusions>
442                                 <exclusion>
443                                         <groupId>commons-logging</groupId>
444                                         <artifactId>commons-logging</artifactId>
445                                 </exclusion>
446                                 <exclusion>
447                                         <groupId>log4j</groupId>
448                                         <artifactId>log4j</artifactId>
449                                 </exclusion>
450                         </exclusions>
451                 </dependency>
452
453                 <!-- for generating PDF -->
454                 <dependency>
455                         <groupId>com.lowagie</groupId>
456                         <artifactId>itext</artifactId>
457                         <version>2.0.8</version>
458                 </dependency>
459                 <!-- Quartz -->
460                 <dependency>
461                         <groupId>org.quartz-scheduler</groupId>
462                         <artifactId>quartz</artifactId>
463                         <version>2.2.1</version>
464                         <exclusions>
465                                 <!-- SDK brings a new version of c3p0 -->
466                                 <exclusion>
467                                         <groupId>c3p0</groupId>
468                                         <artifactId>c3p0</artifactId>
469                                 </exclusion>
470                         </exclusions>
471                 </dependency>
472
473                 <dependency>
474                         <groupId>org.bouncycastle</groupId>
475                         <artifactId>bcprov-jdk16</artifactId>
476                         <version>1.45</version>
477                 </dependency>
478
479                 <dependency>
480                         <groupId>commons-codec</groupId>
481                         <artifactId>commons-codec</artifactId>
482                         <version>1.9</version>
483                 </dependency>
484
485                 <dependency>
486                         <groupId>com.att.nsa</groupId>
487                         <artifactId>cambriaClient</artifactId>
488                         <version>0.0.1</version>
489                         <exclusions>
490                                 <exclusion>
491                                         <groupId>commons-logging</groupId>
492                                         <artifactId>commons-logging</artifactId>
493                                 </exclusion>
494                                 <exclusion>
495                                         <groupId>log4j</groupId>
496                                         <artifactId>log4j</artifactId>
497                                 </exclusion>
498                                 <exclusion>
499                                         <groupId>log4j</groupId>
500                                         <artifactId>apache-log4j-extras</artifactId>
501                                 </exclusion>
502                                 <exclusion>
503                                         <groupId>org.slf4j</groupId>
504                                         <artifactId>slf4j-log4j12</artifactId>
505                                 </exclusion>
506                         </exclusions>
507                 </dependency>
508
509                 <dependency>
510                         <groupId>org.onap.portal.sdk</groupId>
511                         <artifactId>epsdk-fw</artifactId>
512                         <version>${epsdk.version}</version>
513                         <exclusions>
514                                 <exclusion>
515                                         <groupId>commons-logging</groupId>
516                                         <artifactId>commons-logging</artifactId>
517                                 </exclusion>
518                                 <exclusion>
519                                         <groupId>log4j</groupId>
520                                         <artifactId>log4j</artifactId>
521                                 </exclusion>
522                                 <exclusion>
523                                         <groupId>log4j</groupId>
524                                         <artifactId>apache-log4j-extras</artifactId>
525                                 </exclusion>
526                                 <exclusion>
527                                         <groupId>org.slf4j</groupId>
528                                         <artifactId>slf4j-log4j12</artifactId>
529                                 </exclusion>
530                         </exclusions>
531                 </dependency>
532                 <dependency>
533                         <groupId>org.onap.portal.sdk</groupId>
534                         <artifactId>epsdk-core</artifactId>
535                         <version>${epsdk.version}</version>
536                         <exclusions>
537                                 <exclusion>
538                                         <groupId>mysql</groupId>
539                                         <artifactId>mysql-connector-java</artifactId>
540                                 </exclusion>
541                         </exclusions>
542                 </dependency>
543                 <dependency>
544                         <groupId>org.onap.portal.sdk</groupId>
545                         <artifactId>epsdk-app-common</artifactId>
546                         <version>${epsdk.version}</version>
547                 </dependency>
548                 <dependency>
549                         <groupId>org.onap.portal.sdk</groupId>
550                         <artifactId>epsdk-workflow</artifactId>
551                         <version>${epsdk.version}</version>
552                 </dependency>
553
554                 <!-- Raptor required Libraries -->
555                 <!-- for static charts -->
556                 <dependency>
557                         <groupId>org.onap.portal.sdk</groupId>
558                         <artifactId>epsdk-analytics</artifactId>
559                         <version>${epsdk.version}</version>
560                 </dependency>
561
562                 <!-- Referenced by some poms and needed for testing; do NOT use "test" 
563                         scope here. -->
564                 <dependency>
565                         <groupId>org.apache.httpcomponents</groupId>
566                         <artifactId>httpclient</artifactId>
567                         <version>4.5.2</version>
568                 </dependency>
569
570                 <!-- for testing -->
571                 <dependency>
572                         <groupId>junit</groupId>
573                         <artifactId>junit</artifactId>
574                         <version>4.11</version>
575                         <scope>test</scope>
576                 </dependency>
577
578                 <dependency>
579                         <groupId>commons-beanutils</groupId>
580                         <artifactId>commons-beanutils</artifactId>
581                         <version>1.9.2</version>
582                 </dependency>
583
584                 <dependency>
585                         <groupId>com.ecwid.consul</groupId>
586                         <artifactId>consul-api</artifactId>
587                         <version>1.2.1</version>
588                 </dependency>
589
590                 <dependency>
591                         <groupId>com.orbitz.consul</groupId>
592                         <artifactId>consul-client</artifactId>
593                         <version>0.13.8</version>
594                 </dependency>
595
596                 <dependency>
597                         <groupId>commons-fileupload</groupId>
598                         <artifactId>commons-fileupload</artifactId>
599                         <version>1.3</version>
600                 </dependency>
601
602                 <dependency>
603                         <groupId>io.springfox</groupId>
604                         <artifactId>springfox-swagger2</artifactId>
605                         <version>2.5.0</version>
606                 </dependency>
607
608                 <dependency>
609                         <groupId>io.springfox</groupId>
610                         <artifactId>springfox-swagger-ui</artifactId>
611                         <version>2.5.0</version>
612                 </dependency>
613
614         </dependencies>
615
616         <!-- No deployment descriptor. -->
617
618 </project>