Added Junits
[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
5         <parent>
6                 <groupId>org.onap.portal</groupId>
7                 <artifactId>onap-portal-parent</artifactId>
8                 <version>2.2</version>
9         </parent>
10
11         <artifactId>portal-be-os</artifactId>
12         <packaging>war</packaging>
13
14         <properties>
15                 <!-- If skipTests is false use this command to generate the report: mvn 
16                         clean jacoco:prepare-agent install jacoco:report -->
17                 <skipTests>false</skipTests>
18         </properties>
19
20         <build>
21                 <sourceDirectory>src/main/java</sourceDirectory>
22                 <!-- The war file name carries no version number -->
23                 <finalName>${project.artifactId}</finalName>
24
25                 <plugins>
26                         <plugin>
27                                 <groupId>org.apache.maven.plugins</groupId>
28                                 <artifactId>maven-site-plugin</artifactId>
29                                 <version>3.6</version>
30                                 <dependencies>
31                                         <dependency>
32                                                 <groupId>org.apache.maven.wagon</groupId>
33                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
34                                                 <version>2.10</version>
35                                         </dependency>
36                                 </dependencies>
37                         </plugin>
38                         <plugin>
39                                 <groupId>org.apache.maven.plugins</groupId>
40                                 <artifactId>maven-surefire-plugin</artifactId>
41                                 <version>2.19.1</version>
42                                 <configuration>
43                                         <skipTests>${skipTests}</skipTests>
44                                         <includes>
45                                                 <include>**/*Test.java</include>
46                                                 <include>**/*TestCase.java</include>
47                                                 <inlcude>**/*TestSuite.java</inlcude>
48                                         </includes>
49                                         <!-- Intentionally Excluding TestFromSuite -->
50                                         <excludes>
51                                                 <exclude>**/*TestFromSuite.java</exclude>
52                                         </excludes>
53                                         <additionalClasspathElements>
54                                                 <additionalClasspathElement>${basedir}/src/main/webapp</additionalClasspathElement>
55                                                 <additionalClasspathElement>../ecomp-portal-BE-common/src/main/webapp</additionalClasspathElement>
56                                                 <additionalClasspathElement>../ecomp-portal-BE-common</additionalClasspathElement>
57                                         </additionalClasspathElements>
58                                         <systemPropertyVariables>
59                                                 <container.classpath>classpath:</container.classpath>
60                                         </systemPropertyVariables>
61                                 </configuration>
62                         </plugin>
63
64                         <plugin>
65                                 <artifactId>maven-war-plugin</artifactId>
66                                 <version>2.6</version>
67                                 <configuration>
68                                         <warSourceDirectory>src/main/webapp</warSourceDirectory>
69                                         <failOnMissingWebXml>false</failOnMissingWebXml>
70                                         <archive>
71                                                 <manifest>
72                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
73                                                 </manifest>
74                                                 <manifestEntries>
75                                                         <Build-Number>${project.version}.${build.number}</Build-Number>
76                                                         <Build-Time>${maven.build.timestamp}</Build-Time>
77                                                 </manifestEntries>
78                                         </archive>
79                                         <overlays>
80                                                 <!-- specify the order in which these should be applied -->
81                                                 <overlay>
82                                                         <groupId>org.onap.portal</groupId>
83                                                         <artifactId>portal-be-common</artifactId>
84                                                 </overlay>
85                                                 <overlay>
86                                                         <groupId>org.onap.portal.sdk</groupId>
87                                                         <artifactId>epsdk-app-overlay</artifactId>
88                                                 </overlay>
89                                         </overlays>
90                                 </configuration>
91                         </plugin>
92
93                         <!-- No deployment step for this project -->
94                         <plugin>
95                                 <groupId>org.apache.maven.plugins</groupId>
96                                 <artifactId>maven-deploy-plugin</artifactId>
97                                 <version>2.8</version>
98                                 <configuration>
99                                         <skip>true</skip>
100                                 </configuration>
101                         </plugin>
102
103                         <plugin>
104                                 <artifactId>maven-resources-plugin</artifactId>
105                                 <version>3.0.2</version>
106                                 <!-- Your own property files can be placed in ecomp-portal-be/../../overrides 
107                                         directory and they will override the generic source controlled versions at 
108                                         build time allowing you to test locally with your own settings. -->
109                                 <executions>
110                                         <execution>
111                                                 <id>copy-custom-properties1</id>
112                                                 <phase>process-resources</phase>
113                                                 <goals>
114                                                         <goal>copy-resources</goal>
115                                                 </goals>
116                                                 <configuration>
117                                                         <overwrite>true</overwrite>
118                                                         <outputDirectory>${basedir}/war/WEB-INF/conf</outputDirectory>
119                                                         <resources>
120                                                                 <resource>
121                                                                         <directory>${basedir}/../../overrides</directory>
122                                                                         <includes>
123                                                                                 <include>system.properties</include>
124                                                                         </includes>
125                                                                 </resource>
126                                                         </resources>
127                                                 </configuration>
128                                         </execution>
129                                         <execution>
130                                                 <id>copy-custom-properties2</id>
131                                                 <phase>process-resources</phase>
132                                                 <goals>
133                                                         <goal>copy-resources</goal>
134                                                 </goals>
135                                                 <configuration>
136                                                         <overwrite>true</overwrite>
137                                                         <outputDirectory>${basedir}/war/WEB-INF/fusion/conf</outputDirectory>
138                                                         <resources>
139                                                                 <resource>
140                                                                         <directory>${basedir}/../../overrides</directory>
141                                                                         <includes>
142                                                                                 <include>fusion.properties</include>
143                                                                         </includes>
144                                                                 </resource>
145                                                         </resources>
146                                                 </configuration>
147                                         </execution>
148                                         <execution>
149                                                 <id>copy-custom-properties3</id>
150                                                 <phase>process-resources</phase>
151                                                 <goals>
152                                                         <goal>copy-resources</goal>
153                                                 </goals>
154                                                 <configuration>
155                                                         <overwrite>true</overwrite>
156                                                         <outputDirectory>${basedir}/src/main/resources</outputDirectory>
157                                                         <resources>
158                                                                 <resource>
159                                                                         <directory>${basedir}/../../overrides</directory>
160                                                                         <includes>
161                                                                                 <include>portal.properties</include>
162                                                                                 <include>openid-connect.properties</include>
163                                                                                 <include>openid-keystore.jwks</include>
164                                                                         </includes>
165                                                                 </resource>
166                                                         </resources>
167                                                 </configuration>
168                                         </execution>
169                                 </executions>
170                         </plugin>
171                 </plugins>
172
173                 <testResources>
174                         <testResource>
175                                 <directory>src/test/java</directory>
176                                 <includes>
177                                         <include>**/*Test*.*</include>
178                                 </includes>
179                         </testResource>
180                 </testResources>
181
182                 <resources>
183                         <resource>
184                                 <directory>src/main/resources</directory>
185                                 <includes>
186                                         <include>**/*.xml</include>
187                                         <include>**/*.ccf</include>
188                                         <include>**/*.properties</include>
189                                         <include>**/*.jwks</include>
190                                 </includes>
191                         </resource>
192                         <resource>
193                                 <directory>src/test/resources</directory>
194                                 <includes>
195                                         <include>**/*.xml</include>
196                                         <include>**/*.properties</include>
197                                 </includes>
198                         </resource>
199                         <!-- picks up the applicationcodes.properties file presented in \src\ 
200                                 path -->
201                         <resource>
202                                 <directory>src/main/java</directory>
203                                 <includes>
204                                         <include>**/*.xml</include>
205                                         <include>**/*.properties</include>
206                                 </includes>
207                         </resource>
208                 </resources>
209
210         </build>
211
212         <dependencies>
213                 <!-- Spring -->
214                 <dependency>
215                         <groupId>org.springframework</groupId>
216                         <artifactId>spring-core</artifactId>
217                         <version>${springframework.version}</version>
218                 </dependency>
219                 <dependency>
220                         <groupId>org.springframework</groupId>
221                         <artifactId>spring-web</artifactId>
222                         <version>${springframework.version}</version>
223                 </dependency>
224                 <dependency>
225                         <groupId>org.springframework</groupId>
226                         <artifactId>spring-webmvc</artifactId>
227                         <version>${springframework.version}</version>
228                 </dependency>
229                 <dependency>
230                         <groupId>org.springframework</groupId>
231                         <artifactId>spring-tx</artifactId>
232                         <version>${springframework.version}</version>
233                 </dependency>
234                 <dependency>
235                         <groupId>org.springframework</groupId>
236                         <artifactId>spring-context-support</artifactId>
237                         <version>${springframework.version}</version>
238                 </dependency>
239                 <dependency>
240                         <groupId>org.springframework</groupId>
241                         <artifactId>spring-orm</artifactId>
242                         <version>${springframework.version}</version>
243                 </dependency>
244                 <dependency>
245                         <groupId>org.springframework</groupId>
246                         <artifactId>spring-test</artifactId>
247                         <version>${springframework.version}</version>
248                 </dependency>
249                 <dependency>
250                         <groupId>org.springframework.boot</groupId>
251                         <artifactId>spring-boot-starter</artifactId>
252                         <version>1.3.0.RELEASE</version>
253                         <exclusions>
254                                 <exclusion>
255                                         <groupId>org.slf4j</groupId>
256                                         <artifactId>log4j-over-slf4j</artifactId>
257                                 </exclusion>
258                                 <exclusion>
259                                         <groupId>ch.qos.logback</groupId>
260                                         <artifactId>logback-classic</artifactId>
261                                 </exclusion>
262                         </exclusions>
263                 </dependency>
264                 <!-- Hibernate -->
265                 <dependency>
266                         <groupId>org.hibernate</groupId>
267                         <artifactId>hibernate-core</artifactId>
268                         <version>${hibernate.version}</version>
269                 </dependency>
270                 <dependency>
271                         <groupId>org.hibernate</groupId>
272                         <artifactId>hibernate-validator</artifactId>
273                         <version>5.1.3.Final</version>
274                 </dependency>
275                 <!-- Servlet+JSP+JSTL -->
276                 <dependency>
277                         <groupId>javax.servlet</groupId>
278                         <artifactId>javax.servlet-api</artifactId>
279                         <version>3.1.0</version>
280                 </dependency>
281                 <dependency>
282                         <groupId>javax.servlet.jsp</groupId>
283                         <artifactId>javax.servlet.jsp-api</artifactId>
284                         <version>2.3.1</version>
285                 </dependency>
286                 <dependency>
287                         <groupId>javax.servlet</groupId>
288                         <artifactId>jstl</artifactId>
289                         <version>1.2</version>
290                 </dependency>
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                                  <exclusions>
484                                 <exclusion>
485                         <groupId>commons-beanutils</groupId>
486                         <artifactId>commons-beanutils-core</artifactId>
487                  </exclusion>
488               </exclusions>
489                         
490                 </dependency>
491                 <!-- EcompPortal common overlay -->
492                 <dependency>
493                         <groupId>org.onap.portal</groupId>
494                         <artifactId>portal-be-common</artifactId>
495                         <version>${project.version}</version>
496                         <type>war</type>
497                 </dependency>
498                 <dependency>
499                         <groupId>org.onap.portal</groupId>
500                         <artifactId>portal-be-common</artifactId>
501                         <version>${project.version}</version>
502                         <type>jar</type>
503                         <classifier>classes</classifier>
504                 </dependency>
505                 <dependency>
506                         <groupId>org.onap.portal</groupId>
507                         <artifactId>portal-be-common</artifactId>
508                         <version>${project.version}</version>
509                         <type>jar</type>
510                         <classifier>tests</classifier>
511                         <scope>test</scope>
512                 </dependency>
513                 <dependency>
514                         <groupId>org.onap.portal.sdk</groupId>
515                         <artifactId>epsdk-fw</artifactId>
516                         <version>${epsdk.version}</version>
517                         <exclusions>
518                                 <exclusion>
519                                         <groupId>commons-logging</groupId>
520                                         <artifactId>commons-logging</artifactId>
521                                 </exclusion>
522                                 <exclusion>
523                                         <groupId>log4j</groupId>
524                                         <artifactId>log4j</artifactId>
525                                 </exclusion>
526                                 <exclusion>
527                                         <groupId>log4j</groupId>
528                                         <artifactId>apache-log4j-extras</artifactId>
529                                 </exclusion>
530                                 <exclusion>
531                                         <groupId>org.slf4j</groupId>
532                                         <artifactId>slf4j-log4j12</artifactId>
533                                 </exclusion>
534                         </exclusions>
535                 </dependency>
536                 <dependency>
537                         <groupId>org.onap.portal.sdk</groupId>
538                         <artifactId>epsdk-core</artifactId>
539                         <version>${epsdk.version}</version>
540                 </dependency>
541                 <dependency>
542                         <groupId>org.onap.portal.sdk</groupId>
543                         <artifactId>epsdk-workflow</artifactId>
544                         <version>${epsdk.version}</version>
545                 </dependency>
546                 <!-- Raptor required Libraries -->
547                 <!-- for static charts -->
548                 <dependency>
549                         <groupId>org.onap.portal.sdk</groupId>
550                         <artifactId>epsdk-analytics</artifactId>
551                         <version>${epsdk.version}</version>
552                 </dependency>
553                 <dependency>
554                         <groupId>org.json</groupId>
555                         <artifactId>json</artifactId>
556                         <version>20171018</version>
557                 </dependency>
558                 <!-- Referenced by some poms and needed for testing; do NOT use "test" 
559                         scope here. -->
560                 <dependency>
561                         <groupId>org.apache.httpcomponents</groupId>
562                         <artifactId>httpclient</artifactId>
563                         <version>4.5.2</version>
564                 </dependency>
565                 <!-- for testing -->
566                 <dependency>
567                         <groupId>junit</groupId>
568                         <artifactId>junit</artifactId>
569                         <version>4.11</version>
570                         <scope>test</scope>
571                 </dependency>
572                 <dependency>
573                         <groupId>org.powermock</groupId>
574                         <artifactId>powermock-api-mockito</artifactId>
575                         <version>1.6.1</version>
576                 </dependency>
577                 <dependency>
578                         <groupId>org.powermock</groupId>
579                         <artifactId>powermock-core</artifactId>
580                         <version>1.6.1</version>
581                 </dependency>
582                 <dependency>
583                         <groupId>org.powermock</groupId>
584                         <artifactId>powermock-module-junit4</artifactId>
585                         <version>1.6.1</version>
586                 </dependency>
587                 <dependency>
588                         <groupId>org.mockito</groupId>
589                         <artifactId>mockito-core</artifactId>
590                         <version>1.8.5</version>
591                         <scope>test</scope>
592                 </dependency>
593                 <dependency>
594                         <groupId>commons-beanutils</groupId>
595                         <artifactId>commons-beanutils</artifactId>
596                         <version>1.9.2</version>
597                 </dependency>
598                 <!-- OpenID Connect Dependencies -->
599                 <dependency>
600                         <groupId>org.mitre</groupId>
601                         <artifactId>openid-connect-client</artifactId>
602                         <version>1.3.1</version>
603                         <exclusions>
604                                 <exclusion>
605                                         <groupId>org.codehaus.jackson</groupId>
606                                         <artifactId>jackson-mapper-asl</artifactId>
607                                 </exclusion>
608                         </exclusions>
609                 </dependency>
610 <!--            <dependency>
611                         <groupId>org.springframework.security</groupId>
612                         <artifactId>spring-security-taglibs</artifactId>
613                         <version>3.2.8.RELEASE</version>
614                         <exclusions>
615                                 <exclusion>
616                                         <groupId>org.springframework</groupId>
617                                         <artifactId>*</artifactId>
618                                 </exclusion>
619                         </exclusions>
620                 </dependency> -->
621                 <dependency>
622                         <groupId>org.aspectj</groupId>
623                         <artifactId>aspectjrt</artifactId>
624                         <version>1.8.9</version>
625                 </dependency>
626                 <dependency>
627                         <groupId>org.aspectj</groupId>
628                         <artifactId>aspectjweaver</artifactId>
629                         <version>1.8.9</version>
630                 </dependency>
631                 <!-- Jacoco for offline instrumentation -->
632                 <dependency>
633                         <groupId>org.jacoco</groupId>
634                         <artifactId>org.jacoco.agent</artifactId>
635                         <version>${jacocoVersion}</version>
636                         <classifier>runtime</classifier>
637                 </dependency>
638         </dependencies>
639
640         <reporting>
641                 <plugins>
642                         <plugin>
643                                 <groupId>org.apache.maven.plugins</groupId>
644                                 <artifactId>maven-javadoc-plugin</artifactId>
645                                 <version>3.0.0-M1</version>
646                                 <configuration>
647                                         <failOnError>false</failOnError>
648                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
649                                         <docletArtifact>
650                                                 <groupId>org.umlgraph</groupId>
651                                                 <artifactId>umlgraph</artifactId>
652                                                 <version>5.6</version>
653                                         </docletArtifact>
654                                         <additionalparam>-views</additionalparam>
655                                         <useStandardDocletOptions>true</useStandardDocletOptions>
656                                 </configuration>
657                         </plugin>
658
659                 </plugins>
660         </reporting>
661 </project>