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