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