0de4c051eb6258dee1e9a1d739f388d5c711cc09
[aai/sparky-be.git] / sparkybe-onap-application / 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.springframework.boot</groupId>
7                 <artifactId>spring-boot-starter-parent</artifactId>
8                 <version>1.5.12.RELEASE</version>
9         </parent>
10
11         <groupId>org.onap.aai.sparky-be</groupId>
12         <artifactId>sparkybe-onap-application</artifactId>
13         <version>1.2.1</version>
14         <packaging>jar</packaging>
15
16         <properties>
17                 <java.version>1.8</java.version>
18                 <version.jacoco.maven.plugin>0.7.9</version.jacoco.maven.plugin>
19                 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
20                 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
21                 <frontEndVersion>1.2.1</frontEndVersion>
22                 <serverPort>9517</serverPort>
23                 <sslport>8000</sslport>
24                 <nexusproxy>https://nexus.onap.org</nexusproxy>
25                 <camel-spring-boot.version>2.20.0</camel-spring-boot.version>
26                 <config-home>${basedir}/</config-home>
27                 <docker.location>${basedir}/target</docker.location>
28                 <docker.image.name>sparky-be</docker.image.name>
29                 <sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
30                 <nexusproxy>https://nexus.onap.org</nexusproxy>
31         </properties>
32
33         <dependencyManagement>
34                 <dependencies>
35
36                         <!-- Camel BOM -->
37                         <dependency>
38                                 <groupId>org.apache.camel</groupId>
39                                 <artifactId>camel-spring-boot-dependencies</artifactId>
40                                 <version>${camel-spring-boot.version}</version>
41                                 <type>pom</type>
42                                 <scope>import</scope>
43                         </dependency>
44
45                         <dependency>
46                                 <groupId>ch.qos.logback</groupId>
47                                 <artifactId>logback-classic</artifactId>
48                                 <version>1.2.1</version>
49                         </dependency>
50
51                 </dependencies>
52
53         </dependencyManagement>
54
55         <dependencies>
56
57                 <!-- Spring dependencies -->
58                 <dependency>
59                         <groupId>org.springframework.boot</groupId>
60                         <artifactId>spring-boot-starter-web</artifactId>
61                 </dependency>
62
63                 <dependency>
64                         <groupId>org.springframework.boot</groupId>
65                         <artifactId>spring-boot-starter-actuator</artifactId>
66                 </dependency>
67
68                 <dependency>
69                         <groupId>org.apache.camel</groupId>
70                         <artifactId>camel-restlet</artifactId>
71                         <exclusions>
72                                 <exclusion>
73                                         <groupId>commons-logging</groupId>
74                                         <artifactId>commons-logging</artifactId>
75                                 </exclusion>
76                         </exclusions>
77                 </dependency>
78
79                 <dependency>
80                         <groupId>org.springframework.boot</groupId>
81                         <artifactId>spring-boot-starter-logging</artifactId>
82                         <exclusions>
83                                 <exclusion>
84                                         <groupId>ch.qos.logback</groupId>
85                                         <artifactId>logback-classic</artifactId>
86                                 </exclusion>
87                         </exclusions>
88                 </dependency>
89
90                 <dependency>
91                         <groupId>org.apache.camel</groupId>
92                         <artifactId>camel-servlet</artifactId>
93                         <exclusions>
94                                 <exclusion>
95                                         <groupId>commons-logging</groupId>
96                                         <artifactId>commons-logging</artifactId>
97                                 </exclusion>
98                         </exclusions>
99                 </dependency>
100
101                 <!-- Camel BOM -->
102                 <dependency>
103                         <groupId>org.apache.camel</groupId>
104                         <artifactId>camel-spring-boot-dependencies</artifactId>
105                         <version>${camel-spring-boot.version}</version>
106                         <type>pom</type>
107                         <scope>import</scope>
108                 </dependency>
109
110                 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
111                 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
112                         </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
113                         </dependency> -->
114
115                 <!-- Camel -->
116                 <dependency>
117                         <groupId>org.apache.camel</groupId>
118                         <artifactId>camel-spring-boot-starter</artifactId>
119                 </dependency>
120
121                 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
122                 <dependency>
123                         <groupId>org.apache.camel</groupId>
124                         <artifactId>camel-restlet</artifactId>
125                 </dependency>
126
127                 <dependency>
128                         <groupId>commons-io</groupId>
129                         <artifactId>commons-io</artifactId>
130                 </dependency>
131
132                 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
133                 <dependency>
134                         <groupId>org.eclipse.jetty</groupId>
135                         <artifactId>jetty-util</artifactId>
136                         <scope>provided</scope>
137                 </dependency>
138
139                 <dependency>
140                         <groupId>org.apache.camel</groupId>
141                         <artifactId>camel-servlet-starter</artifactId>
142                 </dependency>
143
144                 <dependency>
145                         <groupId>org.springframework.boot</groupId>
146                         <artifactId>spring-boot-starter-actuator</artifactId>
147                 </dependency>
148
149                 <dependency>
150                         <groupId>org.onap.aai.sparky-be</groupId>
151                         <artifactId>sparkybe-onap-service</artifactId>
152                         <version>1.2.1</version>
153                 </dependency>
154
155
156
157
158
159
160                 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
161                 <dependency>
162                         <groupId>commons-cli</groupId>
163                         <artifactId>commons-cli</artifactId>
164                         <version>1.2</version>
165                 </dependency>
166
167                 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
168                         </dependency> -->
169
170
171                 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
172                 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
173                         <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
174                         <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
175                         <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
176                         </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
177                         <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
178                         </dependency> -->
179
180                 <!-- Utility dependencies -->
181
182                 <dependency>
183                         <groupId>com.google.guava</groupId>
184                         <artifactId>guava</artifactId>
185                         <version>19.0</version>
186                 </dependency>
187
188                 <dependency>
189                         <groupId>org.onap.aai.logging-service</groupId>
190                         <artifactId>common-logging</artifactId>
191                         <version>1.2.2</version>
192                 </dependency>
193
194                 <dependency>
195                         <groupId>dom4j</groupId>
196                         <artifactId>dom4j</artifactId>
197                         <scope>provided</scope>
198                 </dependency>
199
200                 <dependency>
201                         <groupId>org.eclipse.persistence</groupId>
202                         <artifactId>eclipselink</artifactId>
203                         <version>2.6.2</version>
204                 </dependency>
205
206                 <dependency>
207                         <groupId>org.slf4j</groupId>
208                         <artifactId>slf4j-api</artifactId>
209                         <scope>provided</scope>
210                 </dependency>
211
212                 <dependency>
213                         <groupId>com.fasterxml.jackson.core</groupId>
214                         <artifactId>jackson-core</artifactId>
215                         <scope>provided</scope>
216                 </dependency>
217
218                 <dependency>
219                         <groupId>org.onap.aai.aai-common</groupId>
220                         <artifactId>aai-schema</artifactId>
221                         <version>1.2.4</version>
222                 </dependency>
223
224                 <dependency>
225                         <groupId>org.onap.aai</groupId>
226                         <artifactId>rest-client</artifactId>
227                         <version>1.2.1</version>
228                 </dependency>
229
230                 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
231                 <dependency>
232                         <groupId>org.restlet.jee</groupId>
233                         <artifactId>org.restlet.ext.servlet</artifactId>
234                         <version>2.1.1</version>
235                 </dependency>
236
237
238                 <dependency>
239                         <groupId>com.openpojo</groupId>
240                         <artifactId>openpojo</artifactId>
241                         <version>0.8.6</version>
242                 </dependency>
243
244                 <dependency>
245                         <groupId>com.google.code.gson</groupId>
246                         <artifactId>gson</artifactId>
247                         <scope>provided</scope>
248                 </dependency>
249
250
251                 <dependency>
252                         <groupId>org.json</groupId>
253                         <artifactId>json</artifactId>
254                         <scope>provided</scope>
255                 </dependency>
256
257                 <dependency>
258                         <groupId>com.fasterxml.jackson.core</groupId>
259                         <artifactId>jackson-databind</artifactId>
260                         <scope>provided</scope>
261                 </dependency>
262
263                 <dependency>
264                         <groupId>org.onap.portal.sdk</groupId>
265                         <artifactId>epsdk-fw</artifactId>
266                         <version>1.3.0 </version>
267                         <exclusions>
268                                 <exclusion>
269                                         <groupId>commons-logging</groupId>
270                                         <artifactId>commons-logging</artifactId>
271                                 </exclusion>
272                                 <exclusion>
273                                         <groupId>log4j</groupId>
274                                         <artifactId>log4j</artifactId>
275                                 </exclusion>
276                                 <exclusion>
277                                         <groupId>log4j</groupId>
278                                         <artifactId>apache-log4j-extras</artifactId>
279                                 </exclusion>
280                                 <exclusion>
281                                         <groupId>org.slf4j</groupId>
282                                         <artifactId>slf4j-log4j12</artifactId>
283                                 </exclusion>
284                         </exclusions>
285                 </dependency>
286
287                 <!-- Test dependencies -->
288
289                 <dependency>
290                         <groupId>org.mockito</groupId>
291                         <artifactId>mockito-all</artifactId>
292                         <version>1.10.19</version>
293                         <scope>test</scope>
294                 </dependency>
295
296                 <dependency>
297                         <groupId>org.powermock</groupId>
298                         <artifactId>powermock-module-junit4</artifactId>
299                         <version>1.6.2</version>
300                         <scope>test</scope>
301                 </dependency>
302                 <dependency>
303                         <groupId>org.powermock</groupId>
304                         <artifactId>powermock-api-mockito</artifactId>
305                         <version>1.6.2</version>
306                         <scope>test</scope>
307                 </dependency>
308                 <dependency>
309                         <groupId>org.powermock</groupId>
310                         <artifactId>powermock-module-javaagent</artifactId>
311                         <version>1.6.2</version>
312                         <scope>test</scope>
313                 </dependency>
314                 <dependency>
315                         <groupId>org.powermock</groupId>
316                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
317                         <version>1.6.2</version>
318                         <scope>test</scope>
319                 </dependency>
320
321                 <dependency>
322                         <groupId>org.hamcrest</groupId>
323                         <artifactId>hamcrest-library</artifactId>
324                         <scope>test</scope>
325                 </dependency>
326
327         </dependencies>
328
329         <build>
330
331                 <pluginManagement>
332                         <plugins>
333
334
335                                 <plugin>
336                                         <groupId>org.apache.maven.plugins</groupId>
337                                         <artifactId>maven-compiler-plugin</artifactId>
338                                         <configuration>
339                                                 <source>1.8</source>
340                                                 <target>1.8</target>
341                                         </configuration>
342                                 </plugin>
343
344                                 <plugin>
345                                         <groupId>org.apache.maven.plugins</groupId>
346                                         <artifactId>maven-resources-plugin</artifactId>
347                                         <version>2.7</version>
348                                         <executions>
349                                                 <execution>
350                                                         <id>copy-docker-file</id>
351                                                         <phase>package</phase>
352                                                         <goals>
353                                                                 <goal>copy-resources</goal>
354                                                         </goals>
355                                                         <configuration>
356                                                                 <outputDirectory>target</outputDirectory>
357                                                                 <overwrite>true</overwrite>
358                                                                 <resources>
359                                                                         <resource>
360                                                                                 <directory>${basedir}/src/main/docker</directory>
361                                                                                 <filtering>true</filtering>
362                                                                                 <includes>
363                                                                                         <include>**/*</include>
364                                                                                 </includes>
365                                                                         </resource>
366                                                                         <resource>
367                                                                                 <directory>${basedir}/src/main/scripts/</directory>
368                                                                         </resource>
369                                                                 </resources>
370                                                         </configuration>
371                                                 </execution>
372                                         </executions>
373                                 </plugin>
374
375                         </plugins>
376
377                 </pluginManagement>
378
379                 <plugins>
380                         <plugin>
381                                 <groupId>org.springframework.boot</groupId>
382                                 <artifactId>spring-boot-maven-plugin</artifactId>
383                                 <configuration>
384                                         <folders>
385                                                 <folder>
386                                                         ${CONFIG_HOME}/portal/
387                                                 </folder>
388                                         </folders>
389                                 </configuration>
390                         </plugin>
391
392                         <plugin>
393                                 <groupId>org.apache.maven.plugins</groupId>
394                                 <artifactId>maven-resources-plugin</artifactId>
395                                 <version>2.7</version>
396                                 <executions>
397                                         <execution>
398                                                 <id>copy-docker-file-to-target</id>
399                                                 <phase>package</phase>
400                                                 <goals>
401                                                         <goal>copy-resources</goal>
402                                                 </goals>
403                                                 <configuration>
404                                                         <outputDirectory>target</outputDirectory>
405                                                         <overwrite>true</overwrite>
406                                                         <resources>
407                                                                 <resource>
408                                                                         <directory>${basedir}/src/main/docker</directory>
409                                                                         <filtering>true</filtering>
410                                                                         <includes>
411                                                                                 <include>**/*</include>
412                                                                         </includes>
413                                                                 </resource>
414                                                         </resources>
415                                                 </configuration>
416                                         </execution>
417                                 </executions>
418                         </plugin>
419
420                         <plugin>
421                                 <groupId>org.apache.maven.plugins</groupId>
422                                 <artifactId>maven-resources-plugin</artifactId>
423                                 <version>2.7</version>
424                                 <executions>
425                                         <execution>
426                                                 <id>copy-scripts-to-target</id>
427                                                 <phase>package</phase>
428                                                 <goals>
429                                                         <goal>copy-resources</goal>
430                                                 </goals>
431                                                 <configuration>
432                                                         <outputDirectory>target/scripts</outputDirectory>
433                                                         <overwrite>true</overwrite>
434                                                         <resources>
435                                                                 <resource>
436                                                                         <directory>${basedir}/src/main/scripts</directory>
437                                                                         <filtering>true</filtering>
438                                                                         <includes>
439                                                                                 <include>**/*</include>
440                                                                         </includes>
441                                                                 </resource>
442                                                         </resources>
443                                                 </configuration>
444                                         </execution>
445                                 </executions>
446                         </plugin>
447
448                         <plugin>
449                                 <groupId>org.apache.maven.plugins</groupId>
450                                 <artifactId>maven-dependency-plugin</artifactId>
451                                 <version>3.0.0</version>
452                                 <executions>
453                                         <execution>
454                                                 <id>copy-war-to-target</id>
455                                                 <phase>install</phase>
456                                                 <goals>
457                                                         <goal>unpack</goal>
458                                                 </goals>
459                                                 <configuration>
460                                                         <artifactItems>
461                                                                 <artifactItem>
462                                                                         <groupId>${frontEndGroupdId}</groupId>
463                                                                         <artifactId>${frontEndArtifactId}</artifactId>
464                                                                         <version>${frontEndVersion}</version>
465                                                                         <type>war</type>
466                                                                         <outputDirectory>${basedir}/target/static/services/aai/webapp/</outputDirectory>
467                                                                 </artifactItem>
468                                                         </artifactItems>
469                                                 </configuration>
470                                         </execution>
471                                 </executions>
472                         </plugin>
473
474                         <plugin>
475                                 <groupId>org.jacoco</groupId>
476                                 <artifactId>jacoco-maven-plugin</artifactId>
477                                 <version>${version.jacoco.maven.plugin}</version>
478                                 <executions>
479                                         <execution>
480                                                 <id>prepare-agent</id>
481                                                 <goals>
482                                                         <goal>prepare-agent</goal>
483                                                 </goals>
484                                         </execution>
485                                         <execution>
486                                                 <id>report</id>
487                                                 <phase>package</phase>
488                                                 <goals>
489                                                         <goal>report</goal>
490                                                 </goals>
491                                         </execution>
492                                 </executions>
493                         </plugin>
494
495                         <plugin>
496                                 <groupId>org.codehaus.mojo</groupId>
497                                 <artifactId>cobertura-maven-plugin</artifactId>
498                                 <executions>
499                                         <execution>
500                                                 <phase />
501                                         </execution>
502                                 </executions>
503                         </plugin>
504
505                         <plugin>
506                                 <groupId>org.apache.maven.plugins</groupId>
507                                 <artifactId>maven-site-plugin</artifactId>
508                                 <configuration>
509                                         <reportPlugins>
510                                                 <plugin>
511                                                         <groupId>org.apache.maven.plugins</groupId>
512                                                         <artifactId>maven-checkstyle-plugin</artifactId>
513                                                         <version>2.17</version>
514                                                         <reportSets>
515                                                                 <reportSet>
516                                                                         <reports>
517                                                                                 <report>checkstyle</report>
518                                                                         </reports>
519                                                                 </reportSet>
520                                                         </reportSets>
521                                                 </plugin>
522                                         </reportPlugins>
523                                 </configuration>
524                         </plugin>
525
526                         <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId>
527                                 <version>2.7</version> <executions> <execution> <id>copy-docker-file</id>
528                                 <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration>
529                                 <outputDirectory>target</outputDirectory> <overwrite>true</overwrite> <resources>
530                                 <resource> <directory>${basedir}/src/main/docker</directory> <filtering>true</filtering>
531                                 <includes> <include>**/*</include> </includes> </resource> <resource> <directory>${basedir}/src/main/scripts/</directory>
532                                 </resource> </resources> </configuration> </execution> </executions> </plugin> -->
533                         <plugin>
534                                 <groupId>com.spotify</groupId>
535                                 <artifactId>docker-maven-plugin</artifactId>
536                                 <version>0.4.11</version>
537                                 <configuration>
538                                         <verbose>true</verbose>
539                                         <serverId>docker-hub</serverId>
540                                         <imageName>${docker.push.registry}/onap/${docker.image.name}</imageName>
541                                         <dockerDirectory>${docker.location}</dockerDirectory>
542                                         <imageTags>
543                                                 <imageTag>latest</imageTag>
544                                         </imageTags>
545                                         <forceTags>true</forceTags>
546                                 </configuration>
547                         </plugin>
548
549                         <plugin>
550                           <groupId>org.apache.maven.plugins</groupId>
551                           <artifactId>maven-deploy-plugin</artifactId>
552                           <version>2.8.2</version>
553                           <executions>
554                             <execution>
555                               <id>default-deploy</id>
556                               <phase>none</phase>
557                             </execution>
558                           </executions>
559                         </plugin>
560                         <plugin>
561                           <groupId>org.sonatype.plugins</groupId>
562                           <artifactId>nexus-staging-maven-plugin</artifactId>
563                           <version>1.6.7</version>
564                           <extensions>true</extensions>
565                           <configuration>
566                             <nexusUrl>${nexusproxy}</nexusUrl>
567                             <stagingProfileId>176c31dfe190a</stagingProfileId>
568                             <serverId>ecomp-staging</serverId>
569                           </configuration>
570                         </plugin>
571                         
572                         <!-- license plugin -->
573                         <!-- <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId>
574                                 <version>3.0</version> <configuration> <header>LICENSE</header> <includes>
575                                 <include>src/main/java/**</include> </includes> </configuration> <executions>
576                                 <execution> <goals> <goal>format</goal> </goals> <phase>process-sources</phase>
577                                 </execution> </executions> </plugin> -->
578                         
579                 </plugins>
580         </build>
581
582     <distributionManagement>
583       <repository>
584          <id>ecomp-releases</id>
585          <name>ECOMP Release Repository</name>
586          <url>${nexusproxy}/content/repositories/releases/</url>
587       </repository>
588       <snapshotRepository>
589          <id>ecomp-snapshots</id>
590          <name>ECOMP Snapshot Repository</name>
591          <url>${nexusproxy}/content/repositories/snapshots/</url>
592       </snapshotRepository>
593    </distributionManagement>
594
595     <repositories>
596         <repository>
597             <id>central</id>
598             <name>Maven 2 repository 2</name>
599             <url>http://repo2.maven.org/maven2/</url>
600         </repository>
601         <repository>
602             <id>ecomp-releases</id>
603             <name>ECOMP Release Repository</name>
604             <url>${nexusproxy}/content/repositories/releases/</url>
605         </repository>
606         <repository>
607             <id>ecomp-staging</id>
608             <name>ECOMP Staging Repository</name>
609             <url>${nexusproxy}/content/repositories/staging/</url>
610         </repository>
611         <repository>
612             <id>ecomp-snapshots</id>
613             <name>ECOMP Snapshot Repository</name>
614             <url>${nexusproxy}/content/repositories/snapshots/</url>
615         </repository>
616     </repositories>
617
618 </project>