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>
6 <groupId>org.onap.aai</groupId>
7 <artifactId>sparky-be</artifactId>
8 <version>1.5.0-SNAPSHOT</version>
11 <groupId>org.onap.aai.sparky-be</groupId>
12 <artifactId>sparkybe-onap-application</artifactId>
13 <version>1.5.0-SNAPSHOT</version>
14 <packaging>jar</packaging>
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.5.0</frontEndVersion>
22 <serverPort>9517</serverPort>
23 <sslport>8000</sslport>
24 <nexusproxy>https://nexus.onap.org</nexusproxy>
25 <camel-spring-boot.version>2.21.1</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.5.0</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 <spring.boot.version>1.5.20.RELEASE</spring.boot.version>
33 <shemaUnpackVersion>onap</shemaUnpackVersion>
36 <dependencyManagement>
39 <groupId>org.springframework.boot</groupId>
40 <artifactId>spring-boot-starter-parent</artifactId>
41 <version>${spring.boot.version}</version>
47 <groupId>org.apache.camel</groupId>
48 <artifactId>camel-spring-boot-dependencies</artifactId>
49 <version>${camel-spring-boot.version}</version>
55 <groupId>ch.qos.logback</groupId>
56 <artifactId>logback-classic</artifactId>
57 <version>1.2.3</version>
62 </dependencyManagement>
66 <!-- Spring dependencies -->
68 <groupId>org.springframework.boot</groupId>
69 <artifactId>spring-boot-starter-web</artifactId>
72 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-starter-tomcat</artifactId>
79 <groupId>org.springframework.boot</groupId>
80 <artifactId>spring-boot-starter-jetty</artifactId>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-starter-actuator</artifactId>
89 <groupId>org.apache.camel</groupId>
90 <artifactId>camel-restlet</artifactId>
93 <groupId>commons-logging</groupId>
94 <artifactId>commons-logging</artifactId>
100 <groupId>org.springframework.boot</groupId>
101 <artifactId>spring-boot-starter-logging</artifactId>
104 <groupId>ch.qos.logback</groupId>
105 <artifactId>logback-classic</artifactId>
108 <groupId>org.slf4j</groupId>
109 <artifactId>log4j-over-slf4j</artifactId>
115 <groupId>org.apache.camel</groupId>
116 <artifactId>camel-servlet</artifactId>
119 <groupId>commons-logging</groupId>
120 <artifactId>commons-logging</artifactId>
127 <groupId>org.apache.camel</groupId>
128 <artifactId>camel-spring-boot-dependencies</artifactId>
129 <version>${camel-spring-boot.version}</version>
131 <scope>import</scope>
134 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
135 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
136 </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
141 <groupId>org.apache.camel</groupId>
142 <artifactId>camel-spring-boot-starter</artifactId>
145 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
147 <groupId>org.apache.camel</groupId>
148 <artifactId>camel-restlet</artifactId>
152 <groupId>commons-io</groupId>
153 <artifactId>commons-io</artifactId>
156 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
158 <groupId>org.eclipse.jetty</groupId>
159 <artifactId>jetty-util</artifactId>
160 <scope>provided</scope>
164 <groupId>org.apache.camel</groupId>
165 <artifactId>camel-servlet-starter</artifactId>
169 <groupId>org.springframework.boot</groupId>
170 <artifactId>spring-boot-starter-actuator</artifactId>
174 <groupId>org.onap.aai.sparky-be</groupId>
175 <artifactId>sparkybe-onap-service</artifactId>
176 <version>1.5.0-SNAPSHOT</version>
184 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
186 <groupId>commons-cli</groupId>
187 <artifactId>commons-cli</artifactId>
188 <version>1.2</version>
191 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
195 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
196 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
197 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
198 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
199 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
200 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
201 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
204 <!-- Utility dependencies -->
207 <groupId>com.google.guava</groupId>
208 <artifactId>guava</artifactId>
209 <version>26.0-jre</version>
213 <groupId>org.onap.aai.logging-service</groupId>
214 <artifactId>common-logging</artifactId>
215 <version>1.5.0</version>
219 <groupId>org.dom4j</groupId>
220 <artifactId>dom4j</artifactId>
221 <scope>provided</scope>
222 <version>2.1.1</version>
226 <groupId>org.eclipse.persistence</groupId>
227 <artifactId>eclipselink</artifactId>
228 <version>2.6.2</version>
232 <groupId>org.slf4j</groupId>
233 <artifactId>slf4j-api</artifactId>
234 <scope>provided</scope>
238 <groupId>com.fasterxml.jackson.core</groupId>
239 <artifactId>jackson-core</artifactId>
240 <scope>provided</scope>
244 <groupId>org.onap.aai.schema-service</groupId>
245 <artifactId>aai-schema</artifactId>
246 <version>${version.aai-schema}</version>
250 <groupId>org.onap.aai</groupId>
251 <artifactId>rest-client</artifactId>
252 <version>1.5.0</version>
255 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
257 <groupId>org.restlet.jee</groupId>
258 <artifactId>org.restlet.ext.servlet</artifactId>
259 <version>2.1.1</version>
264 <groupId>com.openpojo</groupId>
265 <artifactId>openpojo</artifactId>
266 <version>0.8.6</version>
270 <groupId>com.google.code.gson</groupId>
271 <artifactId>gson</artifactId>
272 <scope>provided</scope>
277 <groupId>org.json</groupId>
278 <artifactId>json</artifactId>
279 <scope>provided</scope>
283 <groupId>com.fasterxml.jackson.core</groupId>
284 <artifactId>jackson-databind</artifactId>
285 <scope>provided</scope>
289 <groupId>org.onap.portal.sdk</groupId>
290 <artifactId>epsdk-fw</artifactId>
291 <version>2.5.0</version>
294 <groupId>commons-logging</groupId>
295 <artifactId>commons-logging</artifactId>
298 <groupId>log4j</groupId>
299 <artifactId>log4j</artifactId>
302 <groupId>log4j</groupId>
303 <artifactId>apache-log4j-extras</artifactId>
306 <groupId>org.slf4j</groupId>
307 <artifactId>slf4j-log4j12</artifactId>
312 <!-- Test dependencies -->
315 <groupId>org.mockito</groupId>
316 <artifactId>mockito-all</artifactId>
317 <version>1.10.19</version>
322 <groupId>org.powermock</groupId>
323 <artifactId>powermock-module-junit4</artifactId>
324 <version>1.6.2</version>
328 <groupId>org.powermock</groupId>
329 <artifactId>powermock-api-mockito</artifactId>
330 <version>1.6.2</version>
334 <groupId>org.powermock</groupId>
335 <artifactId>powermock-module-javaagent</artifactId>
336 <version>1.6.2</version>
340 <groupId>org.powermock</groupId>
341 <artifactId>powermock-module-junit4-rule-agent</artifactId>
342 <version>1.6.2</version>
347 <groupId>org.hamcrest</groupId>
348 <artifactId>hamcrest-library</artifactId>
361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-compiler-plugin</artifactId>
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-resources-plugin</artifactId>
372 <version>2.7</version>
375 <id>copy-docker-file</id>
376 <phase>package</phase>
378 <goal>copy-resources</goal>
381 <outputDirectory>target</outputDirectory>
382 <overwrite>true</overwrite>
385 <directory>${basedir}/src/main/docker</directory>
386 <filtering>true</filtering>
388 <include>**/*</include>
392 <directory>${basedir}/src/main/scripts/</directory>
406 <groupId>org.springframework.boot</groupId>
407 <artifactId>spring-boot-maven-plugin</artifactId>
411 ${CONFIG_HOME}/portal/BOOT-INF/classes/
418 <groupId>org.apache.maven.plugins</groupId>
419 <artifactId>maven-resources-plugin</artifactId>
420 <version>2.7</version>
423 <id>copy-docker-file-to-target</id>
424 <phase>package</phase>
426 <goal>copy-resources</goal>
429 <outputDirectory>target</outputDirectory>
430 <overwrite>true</overwrite>
433 <directory>${basedir}/src/main/docker</directory>
434 <filtering>true</filtering>
436 <include>**/*</include>
446 <groupId>org.apache.maven.plugins</groupId>
447 <artifactId>maven-resources-plugin</artifactId>
448 <version>2.7</version>
451 <id>copy-scripts-to-target</id>
452 <phase>package</phase>
454 <goal>copy-resources</goal>
457 <outputDirectory>target/scripts</outputDirectory>
458 <overwrite>true</overwrite>
461 <directory>${basedir}/src/main/scripts</directory>
462 <filtering>true</filtering>
464 <include>**/*</include>
474 <groupId>org.apache.maven.plugins</groupId>
475 <artifactId>maven-resources-plugin</artifactId>
478 <id>copy-config-to-target</id>
479 <phase>package</phase>
481 <goal>copy-resources</goal>
484 <outputDirectory>target/config</outputDirectory>
485 <overwrite>true</overwrite>
488 <directory>${basedir}/config</directory>
489 <filtering>true</filtering>
491 <include>**/*</include>
494 <exclude>**/auth/*</exclude>
505 <groupId>org.apache.maven.plugins</groupId>
506 <artifactId>maven-dependency-plugin</artifactId>
507 <version>3.0.0</version>
510 <id>copy-war-to-target</id>
511 <phase>install</phase>
518 <groupId>${frontEndGroupdId}</groupId>
519 <artifactId>${frontEndArtifactId}</artifactId>
520 <version>${frontEndVersion}</version>
522 <outputDirectory>${basedir}/target/static/services/aai/webapp/</outputDirectory>
531 <groupId>org.jacoco</groupId>
532 <artifactId>jacoco-maven-plugin</artifactId>
533 <version>${version.jacoco.maven.plugin}</version>
536 <id>prepare-agent</id>
538 <goal>prepare-agent</goal>
543 <phase>package</phase>
552 <groupId>org.codehaus.mojo</groupId>
553 <artifactId>cobertura-maven-plugin</artifactId>
562 <groupId>org.apache.maven.plugins</groupId>
563 <artifactId>maven-site-plugin</artifactId>
567 <groupId>org.apache.maven.plugins</groupId>
568 <artifactId>maven-checkstyle-plugin</artifactId>
569 <version>2.17</version>
573 <report>checkstyle</report>
582 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId>
583 <version>2.7</version> <executions> <execution> <id>copy-docker-file</id>
584 <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration>
585 <outputDirectory>target</outputDirectory> <overwrite>true</overwrite> <resources>
586 <resource> <directory>${basedir}/src/main/docker</directory> <filtering>true</filtering>
587 <includes> <include>**/*</include> </includes> </resource> <resource> <directory>${basedir}/src/main/scripts/</directory>
588 </resource> </resources> </configuration> </execution> </executions> </plugin> -->
590 <groupId>com.spotify</groupId>
591 <artifactId>docker-maven-plugin</artifactId>
592 <version>0.4.11</version>
594 <verbose>true</verbose>
595 <serverId>docker-hub</serverId>
596 <imageName>${docker.push.registry}/onap/${docker.image.name}</imageName>
597 <dockerDirectory>${docker.location}</dockerDirectory>
599 <imageTag>latest</imageTag>
601 <forceTags>true</forceTags>
605 <groupId>org.apache.maven.plugins</groupId>
606 <artifactId>maven-deploy-plugin</artifactId>
608 <!-- license plugin -->
609 <!-- <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId>
610 <version>3.0</version> <configuration> <header>LICENSE</header> <includes>
611 <include>src/main/java/**</include> </includes> </configuration> <executions>
612 <execution> <goals> <goal>format</goal> </goals> <phase>process-sources</phase>
613 </execution> </executions> </plugin> -->
616 <groupId>org.apache.maven.plugins</groupId>
617 <artifactId>maven-dependency-plugin</artifactId>
621 <phase>prepare-package</phase>
628 <groupId>org.onap.aai.schema-service</groupId>
629 <artifactId>aai-schema</artifactId>
630 <version>${version.aai-schema}</version>
632 <includes>/${shemaUnpackVersion}/oxm/</includes>
633 <outputDirectory>${project.build.directory}/oxm</outputDirectory>
644 <distributionManagement>
646 <id>ecomp-releases</id>
647 <name>ECOMP Release Repository</name>
648 <url>${nexusproxy}/content/repositories/releases/</url>
651 <id>ecomp-snapshots</id>
652 <name>ECOMP Snapshot Repository</name>
653 <url>${nexusproxy}/content/repositories/snapshots/</url>
654 </snapshotRepository>
655 </distributionManagement>
660 <name>Maven 2 repository 2</name>
661 <url>http://repo2.maven.org/maven2/</url>
664 <id>ecomp-releases</id>
665 <name>ECOMP Release Repository</name>
666 <url>${nexusproxy}/content/repositories/releases/</url>
669 <id>ecomp-staging</id>
670 <name>ECOMP Staging Repository</name>
671 <url>${nexusproxy}/content/repositories/staging/</url>
674 <id>ecomp-snapshots</id>
675 <name>ECOMP Snapshot Repository</name>
676 <url>${nexusproxy}/content/repositories/snapshots/</url>