473d0eebe54ad60229ba5a7b6071dcd740bf2719
[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                 <!-- Apache Tiles -->
291                 <dependency>
292                         <groupId>org.apache.tiles</groupId>
293                         <artifactId>tiles-core</artifactId>
294                         <version>3.0.5</version>
295                 </dependency>
296                 <dependency>
297                         <groupId>org.apache.tiles</groupId>
298                         <artifactId>tiles-jsp</artifactId>
299                         <version>3.0.5</version>
300                 </dependency>
301                 <dependency>
302                         <groupId>org.apache.cxf</groupId>
303                         <artifactId>cxf-rt-rs-client</artifactId>
304                         <version>3.0.0-milestone1</version>
305                 </dependency>
306                 <!-- Mapper -->
307                 <dependency>
308                         <groupId>com.fasterxml.jackson.core</groupId>
309                         <artifactId>jackson-annotations</artifactId>
310                         <version>2.6.3</version>
311                 </dependency>
312                 <dependency>
313                         <groupId>com.fasterxml.jackson.core</groupId>
314                         <artifactId>jackson-core</artifactId>
315                         <version>2.6.3</version>
316                 </dependency>
317                 <dependency>
318                         <groupId>com.fasterxml.jackson.core</groupId>
319                         <artifactId>jackson-databind</artifactId>
320                         <version>2.6.3</version>
321                 </dependency>
322                 <dependency>
323                         <groupId>com.fasterxml</groupId>
324                         <artifactId>classmate</artifactId>
325                         <version>1.3.1</version>
326                 </dependency>
327                 <!-- Use Mariadb connector/j for failover -->
328                 <dependency>
329                         <groupId>org.mariadb.jdbc</groupId>
330                         <artifactId>mariadb-java-client</artifactId>
331                         <version>1.5.8</version>
332                 </dependency>
333                 <!-- Elastic Search -->
334                 <dependency>
335                         <groupId>org.elasticsearch</groupId>
336                         <artifactId>elasticsearch</artifactId>
337                         <version>2.2.0</version>
338                 </dependency>
339                 <dependency>
340                         <groupId>io.searchbox</groupId>
341                         <artifactId>jest</artifactId>
342                         <version>2.0.0</version>
343                 </dependency>
344                 <dependency>
345                         <groupId>org.apache.jcs</groupId>
346                         <artifactId>jcs</artifactId>
347                         <version>1.3</version>
348                         <exclusions>
349                                 <exclusion>
350                                         <groupId>*</groupId>
351                                         <artifactId>*</artifactId>
352                                 </exclusion>
353                         </exclusions>
354                 </dependency>
355                 <dependency>
356                         <groupId>org.apache.tomcat</groupId>
357                         <artifactId>tomcat-websocket</artifactId>
358                         <version>8.0.28</version>
359                         <scope>provided</scope>
360                 </dependency>
361                 <!-- Raptor required Libraries -->
362                 <!-- for static charts -->
363                 <dependency>
364                         <groupId>commons-lang</groupId>
365                         <artifactId>commons-lang</artifactId>
366                         <version>2.6</version>
367                 </dependency>
368                 <!-- for generating excel/csv/excelx -->
369                 <dependency>
370                         <groupId>org.apache.poi</groupId>
371                         <artifactId>poi</artifactId>
372                         <version>3.5-FINAL</version>
373                         <exclusions>
374                                 <exclusion>
375                                         <groupId>commons-logging</groupId>
376                                         <artifactId>commons-logging</artifactId>
377                                 </exclusion>
378                                 <exclusion>
379                                         <groupId>log4j</groupId>
380                                         <artifactId>log4j</artifactId>
381                                 </exclusion>
382                         </exclusions>
383                 </dependency>
384                 <dependency>
385                         <groupId>org.apache.poi</groupId>
386                         <artifactId>poi-ooxml</artifactId>
387                         <version>3.5-FINAL</version>
388                         <exclusions>
389                                 <exclusion>
390                                         <groupId>commons-logging</groupId>
391                                         <artifactId>commons-logging</artifactId>
392                                 </exclusion>
393                                 <exclusion>
394                                         <groupId>log4j</groupId>
395                                         <artifactId>log4j</artifactId>
396                                 </exclusion>
397                         </exclusions>
398                 </dependency>
399                 <dependency>
400                         <groupId>org.apache.poi</groupId>
401                         <artifactId>poi-scratchpad</artifactId>
402                         <version>3.5-FINAL</version>
403                         <exclusions>
404                                 <exclusion>
405                                         <groupId>commons-logging</groupId>
406                                         <artifactId>commons-logging</artifactId>
407                                 </exclusion>
408                                 <exclusion>
409                                         <groupId>log4j</groupId>
410                                         <artifactId>log4j</artifactId>
411                                 </exclusion>
412                         </exclusions>
413                 </dependency>
414                 <dependency>
415                         <groupId>org.apache.poi</groupId>
416                         <artifactId>poi-contrib</artifactId>
417                         <version>3.5-FINAL</version>
418                         <exclusions>
419                                 <exclusion>
420                                         <groupId>commons-logging</groupId>
421                                         <artifactId>commons-logging</artifactId>
422                                 </exclusion>
423                                 <exclusion>
424                                         <groupId>log4j</groupId>
425                                         <artifactId>log4j</artifactId>
426                                 </exclusion>
427                         </exclusions>
428                 </dependency>
429                 <!-- Quartz -->
430                 <dependency>
431                         <groupId>org.quartz-scheduler</groupId>
432                         <artifactId>quartz</artifactId>
433                         <version>2.2.1</version>
434                         <exclusions>
435                                 <!-- SDK brings a new version of c3p0 -->
436                                 <exclusion>
437                                         <groupId>c3p0</groupId>
438                                         <artifactId>c3p0</artifactId>
439                                 </exclusion>
440                         </exclusions>
441                 </dependency>
442                 <dependency>
443                         <groupId>commons-codec</groupId>
444                         <artifactId>commons-codec</artifactId>
445                         <version>1.9</version>
446                 </dependency>
447                 <dependency>
448                         <groupId>com.att.nsa</groupId>
449                         <artifactId>cambriaClient</artifactId>
450                         <version>0.0.1</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                                 <exclusion>
461                                         <groupId>log4j</groupId>
462                                         <artifactId>apache-log4j-extras</artifactId>
463                                 </exclusion>
464                                 <exclusion>
465                                         <groupId>org.slf4j</groupId>
466                                         <artifactId>slf4j-log4j12</artifactId>
467                                 </exclusion>
468                         </exclusions>
469                 </dependency>
470                 <!-- SDK overlay war -->
471                 <dependency>
472                         <groupId>org.onap.portal.sdk</groupId>
473                         <artifactId>epsdk-app-overlay</artifactId>
474                         <version>${epsdk.version}</version>
475                         <type>war</type>
476                 </dependency>
477                 <dependency>
478                         <groupId>org.onap.portal.sdk</groupId>
479                         <artifactId>epsdk-app-common</artifactId>
480                         <version>${epsdk.version}</version>
481                         <type>jar</type>
482                 </dependency>
483                 <!-- EcompPortal common overlay -->
484                 <dependency>
485                         <groupId>org.onap.portal</groupId>
486                         <artifactId>ecompportal-be-common</artifactId>
487                         <version>${project.version}</version>
488                         <type>war</type>
489                 </dependency>
490                 <dependency>
491                         <groupId>org.onap.portal</groupId>
492                         <artifactId>ecompportal-be-common</artifactId>
493                         <version>${project.version}</version>
494                         <type>jar</type>
495                         <classifier>classes</classifier>
496                 </dependency>
497                 <dependency>
498                         <groupId>org.onap.portal.sdk</groupId>
499                         <artifactId>epsdk-fw</artifactId>
500                         <version>${epsdk.version}</version>
501                         <exclusions>
502                                 <exclusion>
503                                         <groupId>commons-logging</groupId>
504                                         <artifactId>commons-logging</artifactId>
505                                 </exclusion>
506                                 <exclusion>
507                                         <groupId>log4j</groupId>
508                                         <artifactId>log4j</artifactId>
509                                 </exclusion>
510                                 <exclusion>
511                                         <groupId>log4j</groupId>
512                                         <artifactId>apache-log4j-extras</artifactId>
513                                 </exclusion>
514                                 <exclusion>
515                                         <groupId>org.slf4j</groupId>
516                                         <artifactId>slf4j-log4j12</artifactId>
517                                 </exclusion>
518                         </exclusions>
519                 </dependency>
520                 <dependency>
521                         <groupId>org.onap.portal.sdk</groupId>
522                         <artifactId>epsdk-core</artifactId>
523                         <version>${epsdk.version}</version>
524                 </dependency>
525                 <dependency>
526                         <groupId>org.onap.portal.sdk</groupId>
527                         <artifactId>epsdk-workflow</artifactId>
528                         <version>${epsdk.version}</version>
529                 </dependency>
530                 <!-- Raptor required Libraries -->
531                 <!-- for static charts -->
532                 <dependency>
533                         <groupId>org.onap.portal.sdk</groupId>
534                         <artifactId>epsdk-analytics</artifactId>
535                         <version>${epsdk.version}</version>
536                 </dependency>
537                 <!-- Referenced by some poms and needed for testing; do NOT use "test" 
538                         scope here. -->
539                 <dependency>
540                         <groupId>org.apache.httpcomponents</groupId>
541                         <artifactId>httpclient</artifactId>
542                         <version>4.5.2</version>
543                 </dependency>
544                 <!-- for testing -->
545                 <dependency>
546                         <groupId>junit</groupId>
547                         <artifactId>junit</artifactId>
548                         <version>4.11</version>
549                         <scope>test</scope>
550                 </dependency>
551                 <dependency>
552                         <groupId>org.powermock</groupId>
553                         <artifactId>powermock-api-mockito</artifactId>
554                         <version>1.6.1</version>
555                 </dependency>
556                 <dependency>
557                         <groupId>org.powermock</groupId>
558                         <artifactId>powermock-core</artifactId>
559                         <version>1.6.1</version>
560                 </dependency>
561                 <dependency>
562                         <groupId>org.powermock</groupId>
563                         <artifactId>powermock-module-junit4</artifactId>
564                         <version>1.6.1</version>
565                 </dependency>
566                 <dependency>
567                         <groupId>org.mockito</groupId>
568                         <artifactId>mockito-core</artifactId>
569                         <version>1.8.5</version>
570                         <scope>test</scope>
571                 </dependency>
572                 <dependency>
573                         <groupId>commons-beanutils</groupId>
574                         <artifactId>commons-beanutils</artifactId>
575                         <version>1.9.2</version>
576                 </dependency>
577                 <!-- OpenID Connect Dependencies -->
578                 <dependency>
579                         <groupId>org.mitre</groupId>
580                         <artifactId>openid-connect-client</artifactId>
581                         <version>1.2.2</version>
582                         <exclusions>
583                                 <exclusion>
584                                         <groupId>org.codehaus.jackson</groupId>
585                                         <artifactId>jackson-mapper-asl</artifactId>
586                                 </exclusion>
587                         </exclusions>
588                 </dependency>
589                 <dependency>
590                         <groupId>org.springframework.security</groupId>
591                         <artifactId>spring-security-taglibs</artifactId>
592                         <version>3.2.8.RELEASE</version>
593                         <exclusions>
594                                 <exclusion>
595                                         <groupId>org.springframework</groupId>
596                                         <artifactId>*</artifactId>
597                                 </exclusion>
598                         </exclusions>
599                 </dependency>
600                 <dependency>
601                         <groupId>org.aspectj</groupId>
602                         <artifactId>aspectjrt</artifactId>
603                         <version>1.8.9</version>
604                 </dependency>
605                 <dependency>
606                         <groupId>org.aspectj</groupId>
607                         <artifactId>aspectjweaver</artifactId>
608                         <version>1.8.9</version>
609                 </dependency>
610                 <!-- Jacoco for offline instrumentation -->
611                 <dependency>
612                         <groupId>org.jacoco</groupId>
613                         <artifactId>org.jacoco.agent</artifactId>
614                         <version>${jacocoVersion}</version>
615                         <classifier>runtime</classifier>
616                 </dependency>
617         </dependencies>
618
619         <reporting>
620                 <plugins>
621                         <plugin>
622                                 <groupId>org.apache.maven.plugins</groupId>
623                                 <artifactId>maven-javadoc-plugin</artifactId>
624                                 <version>3.0.0-M1</version>
625                                 <configuration>
626                                         <failOnError>false</failOnError>
627                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
628                                         <docletArtifact>
629                                                 <groupId>org.umlgraph</groupId>
630                                                 <artifactId>umlgraph</artifactId>
631                                                 <version>5.6</version>
632                                         </docletArtifact>
633                                         <additionalparam>-views</additionalparam>
634                                         <useStandardDocletOptions>true</useStandardDocletOptions>
635                                 </configuration>
636                         </plugin>
637
638                 </plugins>
639         </reporting>
640
641 </project>