sonar scan pom updates
[portal.git] / ecomp-portal-BE / 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.openecomp.portal</groupId>
5         <artifactId>ecompportal</artifactId>
6         <packaging>war</packaging>
7         <version>1.0.0</version>
8
9         <properties>
10                 <springframework.version>4.2.0.RELEASE</springframework.version>
11                 <hibernate.version>4.3.11.Final</hibernate.version>
12                 <eelf.version>0.0.1</eelf.version>
13                 <projectversion>1.0.0</projectversion>
14                 <encoding>UTF-8</encoding>
15                 <!-- Tests usually require some setup that maven cannot do, so skip. -->
16                 <skiptests>false</skiptests>
17                 <sonar.exclusions>**.js</sonar.exclusions>
18         </properties>
19         
20         <reporting>
21         <plugins>
22             <plugin>
23                 <groupId>org.apache.maven.plugins</groupId>
24                 <artifactId>maven-javadoc-plugin</artifactId>
25                 <version>2.10.4</version>
26                 <configuration>
27                     <failOnError>false</failOnError>
28                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
29                     <docletArtifact>
30                         <groupId>org.umlgraph</groupId>
31                         <artifactId>umlgraph</artifactId>
32                         <version>5.6</version>
33                     </docletArtifact>
34                     <additionalparam>-views</additionalparam>
35                     <useStandardDocletOptions>true</useStandardDocletOptions>
36                 </configuration>
37             </plugin>
38         </plugins>
39     </reporting>
40         <distributionManagement>
41                <site>
42                  <id>nexus</id>
43                  <url>dav:https://ecomp-nexus:8443/repository/portal-javadoc/${projectversion}</url>
44                </site>
45         </distributionManagement>
46         <repositories>
47                 <repository>
48                         <!-- Releases repository has ECOMP release artifacts -->
49                         <id>ecomp-releases</id>
50                         <name>OpenECOMP - Release Repository</name>
51                         <url>https://nexus.openecomp.org/content/repositories/releases/</url>
52                 </repository>
53                 <repository>
54                         <!-- Snapshots repository has ECOMP snapshot artifacts -->
55                         <id>ecomp-snapshots</id>
56                         <name>OpenECOMP - Snapshot Repository</name>
57                         <url>https://nexus.openecomp.org/content/repositories/snapshots/</url>
58                 </repository>
59                 <repository>
60                         <!-- Snapshots repository has ECOMP snapshot artifacts -->
61                         <id>oss-snapshots</id>
62                         <name>oss Central - Snapshots</name>
63                         <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
64                 </repository>
65                 <repository>
66             <id>central</id>
67             <name>Maven 2 repository 2</name>
68             <url>http://repo2.maven.org/maven2/</url>
69         </repository>
70         </repositories>
71
72         <build>
73                 <sourceDirectory>src/main/java</sourceDirectory>
74                 <finalName>ecompportal</finalName>
75
76                 <plugins>
77                         <plugin>
78                                 <groupId>org.apache.maven.plugins</groupId>
79                                 <artifactId>maven-deploy-plugin</artifactId>
80                                 <version>2.8</version>
81                                 <configuration>
82                                         <skip>true</skip>
83                                 </configuration>
84                         </plugin>
85                          <plugin>
86                                 <groupId>org.codehaus.mojo</groupId>
87                                 <artifactId>sonar-maven-plugin</artifactId>
88                                 <version>3.2</version>
89                         </plugin>
90                         <plugin>
91                                <groupId>org.apache.maven.plugins</groupId>
92                                <artifactId>maven-site-plugin</artifactId>
93                                <version>3.6</version>
94                                <dependencies>
95                                  <dependency>
96                                    <groupId>org.apache.maven.wagon</groupId>
97                                    <artifactId>wagon-webdav-jackrabbit</artifactId>
98                                    <version>2.10</version>
99                                  </dependency>
100                                </dependencies>
101             </plugin>
102                         <plugin>
103                                 <artifactId>maven-compiler-plugin</artifactId>
104                                 <version>3.1</version>
105                                 <configuration>
106                                         <source>1.8</source>
107                                         <target>1.8</target>
108                                 </configuration>
109                         </plugin>
110                         
111                         <plugin>
112                                 <artifactId>maven-war-plugin</artifactId>
113                                 <version>2.6</version>
114                                 <configuration>
115                                   <warSourceDirectory>war</warSourceDirectory>
116                                   <failOnMissingWebXml>false</failOnMissingWebXml> 
117                                   <archive>
118                                                 <manifest>
119                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
120                                                 </manifest>
121                                                 <manifestEntries>
122                                                         <Build-Number>${build.number}</Build-Number>
123                                                         <Build-Time>${maven.build.timestamp}</Build-Time>
124                                                 </manifestEntries>
125                                   </archive>
126                                 </configuration>
127                         </plugin>
128                 
129                         
130                         <plugin>
131                  <artifactId>maven-resources-plugin</artifactId>
132                  <version>3.0.1</version>
133                  <!--
134                        Your own property files can be placed in ecomp-portal-be/../../overrides directory and they 
135                        will override the generic source controlled versions at build time allowing
136                        you to test locally with your own settings.
137                   -->
138                  <executions>
139                      <execution>
140                         <id>copy-custom-properties1</id>
141                         <phase>process-resources</phase>
142                         <goals>
143                             <goal>copy-resources</goal>
144                         </goals>
145                         <configuration>
146                             <overwrite>true</overwrite>
147                             <outputDirectory>${basedir}/war/WEB-INF/conf</outputDirectory>
148                             <resources>
149                                 <resource>
150                                     <directory>${basedir}/../../overrides</directory>
151                                     <includes>
152                                         <include>system.properties</include>
153                                     </includes>
154                                 </resource>
155                             </resources>
156                         </configuration>
157                      </execution>
158                      <execution>
159                         <id>copy-custom-properties2</id>
160                         <phase>process-resources</phase>
161                         <goals>
162                             <goal>copy-resources</goal>
163                         </goals>
164                         <configuration>
165                                 <overwrite>true</overwrite>
166                                 <outputDirectory>${basedir}/war/WEB-INF/fusion/conf</outputDirectory>
167                                 <resources>
168                                     <resource>
169                                         <directory>${basedir}/../../overrides</directory>
170                                         <includes>
171                                             <include>fusion.properties</include>
172                                         </includes>
173                                     </resource>
174                                 </resources>
175                         </configuration>
176                      </execution>
177                      <execution>
178                         <id>copy-custom-properties3</id>
179                         <phase>process-resources</phase>
180                         <goals>
181                             <goal>copy-resources</goal>
182                         </goals>
183                             <configuration>
184                                 <overwrite>true</overwrite>
185                                 <outputDirectory>${basedir}/src/main/resources</outputDirectory>
186                                 <resources>
187                                     <resource>
188                                         <directory>${basedir}/../../overrides</directory>
189                                         <includes>
190                                             <include>portal.properties</include>
191                                             <include>openid-connect.properties</include>                                            
192                                             <include>openid-keystore.jwks</include>                                            
193                                         </includes>
194                                     </resource>
195                                 </resources>
196                             </configuration>                      
197                      </execution>
198                 </executions>
199             </plugin>
200                 </plugins>
201
202                 <testResources>
203                 <testResource>
204                                 <directory>src/test/java</directory>
205                                 <includes>
206                                                 <include>**/*Test*.*</include>                                  
207                                 </includes>
208                 </testResource>
209         </testResources>
210         
211                 <resources>
212                         <resource>
213                                 <directory>src/main/resources</directory>
214                                 <includes>
215                                         <include>**/*.xml</include>
216                                         <include>**/*.ccf</include>
217                                         <include>**/*.properties</include>
218                                         <include>**/*.jwks</include>
219                                 </includes>
220                         </resource>
221                         <resource>
222                                 <directory>src/test/resources</directory>
223                                 <includes>
224                                         <include>**/*.xml</include>
225                                         <include>**/*.properties</include>
226                                 </includes>
227                         </resource>
228                         <!-- picks up the applicationcodes.properties file presented in \src\ path -->
229                         <resource>
230                                 <directory>src/main/java</directory>
231                                 <includes>
232                                         <include>**/*.xml</include>
233                                         <include>**/*.properties</include>
234                                 </includes>
235                         </resource>
236                 </resources>
237
238         </build>
239
240         <dependencies>
241                 <dependency>
242                         <groupId>com.att.eelf</groupId> 
243                         <artifactId>eelf-core</artifactId> 
244                         <version>${eelf.version}</version> 
245                 </dependency>
246                 <dependency>
247                         <groupId>com.google.code.gson</groupId>
248                         <artifactId>gson</artifactId>
249                         <version>2.5</version>
250                 </dependency>
251
252                 <!-- Spring -->
253                 <dependency>
254                         <groupId>org.springframework</groupId>
255                         <artifactId>spring-core</artifactId>
256                         <version>${springframework.version}</version>
257                 </dependency>
258                 <dependency>
259                         <groupId>org.springframework</groupId>
260                         <artifactId>spring-web</artifactId>
261                         <version>${springframework.version}</version>
262                 </dependency>
263                 <dependency>
264                         <groupId>org.springframework</groupId>
265                         <artifactId>spring-webmvc</artifactId>
266                         <version>${springframework.version}</version>
267                 </dependency>
268                 <dependency>
269                         <groupId>org.springframework</groupId>
270                         <artifactId>spring-tx</artifactId>
271                         <version>${springframework.version}</version>
272                 </dependency>
273                 <dependency>
274                         <groupId>org.springframework</groupId>
275                         <artifactId>spring-context-support</artifactId>
276                         <version>${springframework.version}</version>
277                 </dependency>
278                 <dependency>
279                         <groupId>org.springframework</groupId>
280                         <artifactId>spring-orm</artifactId>
281                         <version>${springframework.version}</version>
282                 </dependency>
283                 <dependency>
284                         <groupId>org.springframework</groupId>
285                         <artifactId>spring-test</artifactId>
286                         <version>${springframework.version}</version>
287                 </dependency>
288                 <dependency>
289                         <groupId>org.springframework.boot</groupId>
290                         <artifactId>spring-boot-starter</artifactId>
291                         <version>1.3.0.RELEASE</version>
292                         <exclusions>
293                                 <exclusion>
294                                         <groupId>org.slf4j</groupId>
295                                         <artifactId>log4j-over-slf4j</artifactId>
296                                 </exclusion>
297                                 <exclusion>
298                                         <groupId>ch.qos.logback</groupId>
299                                         <artifactId>logback-classic</artifactId>
300                                 </exclusion>
301                         </exclusions>
302                 </dependency>
303
304                 <!-- Hibernate -->
305                 <dependency>
306                         <groupId>org.hibernate</groupId>
307                         <artifactId>hibernate-core</artifactId>
308                         <version>${hibernate.version}</version>
309                 </dependency>
310
311                 <!-- jsr303 validation -->
312                 <!-- <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> 
313                         <version>1.1.0.Final</version> </dependency> -->
314
315                 <dependency>
316                         <groupId>org.hibernate</groupId>
317                         <artifactId>hibernate-validator</artifactId>
318                         <version>5.1.3.Final</version>
319                 </dependency>
320                 <!-- Servlet+JSP+JSTL -->
321                 <dependency>
322                         <groupId>javax.servlet</groupId>
323                         <artifactId>javax.servlet-api</artifactId>
324                         <version>3.1.0</version>
325                 </dependency>
326                 <dependency>
327                         <groupId>javax.servlet.jsp</groupId>
328                         <artifactId>javax.servlet.jsp-api</artifactId>
329                         <version>2.3.1</version>
330                 </dependency>
331                 <dependency>
332                         <groupId>javax.servlet</groupId>
333                         <artifactId>jstl</artifactId>
334                         <version>1.2</version>
335                 </dependency>
336
337                 <!-- Apache Tiles -->
338                 <dependency>
339                         <groupId>org.apache.tiles</groupId>
340                         <artifactId>tiles-core</artifactId>
341                         <version>3.0.5</version>
342                 </dependency>
343                 <dependency>
344                         <groupId>org.apache.tiles</groupId>
345                         <artifactId>tiles-jsp</artifactId>
346                         <version>3.0.5</version>
347                 </dependency>
348                 <dependency>
349                         <groupId>org.apache.cxf</groupId>
350                         <artifactId>cxf-rt-rs-client</artifactId>
351                         <version>3.0.0-milestone1</version>
352                 </dependency>
353
354                 <!-- Mapper -->
355                 <dependency>
356                         <groupId>com.fasterxml.jackson.core</groupId>
357                         <artifactId>jackson-annotations</artifactId>
358                         <version>2.6.3</version>
359                 </dependency>
360                 <dependency>
361                         <groupId>com.fasterxml.jackson.core</groupId>
362                         <artifactId>jackson-core</artifactId>
363                         <version>2.6.3</version>
364                 </dependency>
365                 <dependency>
366                         <groupId>com.fasterxml.jackson.core</groupId>
367                         <artifactId>jackson-databind</artifactId>
368                         <version>2.6.3</version>
369                 </dependency>
370
371                 <dependency>
372                         <groupId>mysql</groupId>
373                         <artifactId>mysql-connector-java</artifactId>
374                         <version>5.1.22</version>
375                 </dependency>
376
377                 <!-- Elastic Search -->
378                 <dependency>
379                 <groupId>org.elasticsearch</groupId>
380                 <artifactId>elasticsearch</artifactId>
381                 <version>2.2.0</version>
382                 </dependency>
383                 <dependency>
384                         <groupId>io.searchbox</groupId>
385                         <artifactId>jest</artifactId>
386                         <version>2.0.0</version>
387                 </dependency>
388
389                 <dependency>
390                         <groupId>org.apache.jcs</groupId>
391                         <artifactId>jcs</artifactId>
392                         <version>1.3</version>
393                         <exclusions>
394                                 <exclusion>
395                                         <groupId>*</groupId>
396                                         <artifactId>*</artifactId>
397                                 </exclusion>
398                         </exclusions>
399                         <!-- -->
400                 </dependency>
401
402                 <dependency>
403                         <groupId>org.apache.tomcat</groupId>
404                         <artifactId>tomcat-websocket</artifactId>
405                         <version>8.0.28</version>
406                         <scope>provided</scope>
407                 </dependency>
408
409                 <!-- Raptor required Libraries -->
410                 <!-- for static charts -->
411                 <dependency>
412                         <groupId>commons-lang</groupId>
413                         <artifactId>commons-lang</artifactId>
414                         <version>2.6</version>
415                 </dependency>
416                 <!-- for generating excel/csv/excelx -->
417                 <dependency>
418                         <groupId>org.apache.poi</groupId>
419                         <artifactId>poi</artifactId>
420                         <version>3.5-FINAL</version>
421                         <exclusions>
422                                 <exclusion>
423                                         <groupId>commons-logging</groupId>
424                                         <artifactId>commons-logging</artifactId>
425                                 </exclusion>
426                                 <exclusion>
427                                         <groupId>log4j</groupId>
428                                         <artifactId>log4j</artifactId>
429                                 </exclusion>
430                         </exclusions>
431                 </dependency>
432                 <dependency>
433                         <groupId>org.apache.poi</groupId>
434                         <artifactId>poi-ooxml</artifactId>
435                         <version>3.5-FINAL</version>
436                         <exclusions>
437                                 <exclusion>
438                                         <groupId>commons-logging</groupId>
439                                         <artifactId>commons-logging</artifactId>
440                                 </exclusion>
441                                 <exclusion>
442                                         <groupId>log4j</groupId>
443                                         <artifactId>log4j</artifactId>
444                                 </exclusion>
445                         </exclusions>
446                 </dependency>
447                 <dependency>
448                         <groupId>org.apache.poi</groupId>
449                         <artifactId>poi-scratchpad</artifactId>
450                         <version>3.5-FINAL</version>
451                         <exclusions>
452                                 <exclusion>
453                                         <groupId>commons-logging</groupId>
454                                         <artifactId>commons-logging</artifactId>
455                                 </exclusion>
456                                 <exclusion>
457                                         <groupId>log4j</groupId>
458                                         <artifactId>log4j</artifactId>
459                                 </exclusion>
460                         </exclusions>
461                 </dependency>
462                 <dependency>
463                         <groupId>org.apache.poi</groupId>
464                         <artifactId>poi-contrib</artifactId>
465                         <version>3.5-FINAL</version>
466                         <exclusions>
467                                 <exclusion>
468                                         <groupId>commons-logging</groupId>
469                                         <artifactId>commons-logging</artifactId>
470                                 </exclusion>
471                                 <exclusion>
472                                         <groupId>log4j</groupId>
473                                         <artifactId>log4j</artifactId>
474                                 </exclusion>
475                         </exclusions>
476                 </dependency>
477
478                 <!-- 
479                 <dependency>
480                         <groupId>com.lowagie</groupId>
481                         <artifactId>itext</artifactId>
482                         <version>2.0.8</version>
483                         <exclusions>
484                                 <exclusion>
485                          <groupId>org.bouncycastle</groupId>
486                                      <artifactId>bcprov-jdk14</artifactId>
487                     </exclusion>
488             </exclusions>
489                 </dependency> -->
490                 <!-- Quartz -->
491                 <dependency>
492                         <groupId>org.quartz-scheduler</groupId>
493                         <artifactId>quartz</artifactId>
494                         <version>2.2.1</version>
495                         <exclusions>
496                                 <!-- SDK brings a new version of c3p0 -->
497                                 <exclusion>
498                                         <groupId>c3p0</groupId>
499                                         <artifactId>c3p0</artifactId>
500                                 </exclusion>
501                         </exclusions>
502                 </dependency>
503
504                 <dependency>
505                         <groupId>commons-codec</groupId>
506                         <artifactId>commons-codec</artifactId>
507                         <version>1.9</version>
508                 </dependency>
509                 
510                 <dependency>
511                 <groupId>com.att.nsa</groupId>
512                 <artifactId>cambriaClient</artifactId>
513                 <version>0.0.1</version>
514                         <exclusions>
515                                 <exclusion>
516                                         <groupId>commons-logging</groupId>
517                                         <artifactId>commons-logging</artifactId>
518                                 </exclusion>
519                                 <exclusion>
520                                         <groupId>log4j</groupId>
521                                         <artifactId>log4j</artifactId>
522                                 </exclusion>
523                                 <exclusion>
524                                         <groupId>log4j</groupId>
525                                         <artifactId>apache-log4j-extras</artifactId>
526                                 </exclusion>
527                                 <exclusion>
528                                         <groupId>org.slf4j</groupId>
529                                         <artifactId>slf4j-log4j12</artifactId>
530                                 </exclusion>
531                         </exclusions>
532        </dependency>
533         
534         <dependency>
535                         <groupId>org.openecomp.ecompsdkos</groupId>
536                         <artifactId>ecompFW</artifactId>
537                         <version>${projectversion}</version>
538                         <exclusions>
539                                 <exclusion>
540                                         <groupId>commons-logging</groupId>
541                                         <artifactId>commons-logging</artifactId>
542                                 </exclusion>
543                                 <exclusion>
544                                         <groupId>log4j</groupId>
545                                         <artifactId>log4j</artifactId>
546                                 </exclusion>
547                                 <exclusion>
548                                         <groupId>log4j</groupId>
549                                         <artifactId>apache-log4j-extras</artifactId>
550                                 </exclusion>
551                                 <exclusion>
552                                         <groupId>org.slf4j</groupId>
553                                         <artifactId>slf4j-log4j12</artifactId>
554                                 </exclusion>
555                         </exclusions>
556                 </dependency>
557         
558                 <dependency>
559                         <groupId>org.openecomp.ecompsdkos</groupId>
560                         <artifactId>ecompSDK-core</artifactId>
561                         <version>${projectversion}</version>
562                 </dependency>
563
564                 <dependency>
565                         <groupId>org.openecomp.ecompsdkos</groupId>
566                         <artifactId>ecompSDK-workflow</artifactId>
567                         <version>${projectversion}</version>
568                 </dependency>
569                 
570                 
571                 <!-- Referenced by some poms and needed for testing;
572                          do NOT use "test" scope here. -->
573                 <dependency>
574                         <groupId>org.apache.httpcomponents</groupId>
575                         <artifactId>httpclient</artifactId>
576                         <version>4.5.2</version>
577                 </dependency>
578
579                 <!-- for testing -->
580                 <dependency>
581                         <groupId>junit</groupId>
582                         <artifactId>junit</artifactId>
583                         <version>4.11</version>
584                         <scope>test</scope>
585                 </dependency>
586                 
587                 <dependency>
588                         <groupId>commons-beanutils</groupId>
589                         <artifactId>commons-beanutils</artifactId>
590                         <version>1.9.2</version>
591                 </dependency>
592                 
593                 <!-- OpenID Connect Dependencies -->
594                 <dependency>
595                         <groupId>org.mitre</groupId>
596                         <artifactId>openid-connect-client</artifactId>
597                         <version>1.2.2</version>
598                         <exclusions>
599                                 <exclusion>
600                                         <groupId>org.codehaus.jackson</groupId>
601                                         <artifactId>jackson-mapper-asl</artifactId>
602                                 </exclusion>
603                         </exclusions>
604                 </dependency>
605                 
606                 <dependency>
607             <groupId>org.springframework.security</groupId>
608             <artifactId>spring-security-taglibs</artifactId>
609             <version>3.2.8.RELEASE</version>
610             <exclusions>
611                 <exclusion>
612                                 <groupId>org.springframework</groupId>
613                         <artifactId>*</artifactId>
614                 </exclusion>
615             </exclusions>
616         </dependency>           
617                 
618
619         </dependencies>
620 </project>