1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.springframework.boot</groupId>
6 <artifactId>spring-boot-starter-parent</artifactId>
7 <version>1.5.20.RELEASE</version>
10 <groupId>org.onap.aai.sparky-be</groupId>
11 <artifactId>sparkybe-onap-service</artifactId>
12 <version>1.4.0-SNAPSHOT</version>
13 <packaging>jar</packaging>
16 <java.version>1.8</java.version>
17 <version.jacoco.maven.plugin>0.7.9</version.jacoco.maven.plugin>
18 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
19 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
20 <frontEndVersion>1.3.0</frontEndVersion>
21 <serverPort>9517</serverPort>
22 <sslport>8000</sslport>
23 <nexusproxy>https://nexus.onap.org</nexusproxy>
24 <camel-spring-boot.version>2.21.1</camel-spring-boot.version>
25 <config-home>${basedir}/</config-home>
26 <version.aai.aai-schema-ingest>1.4.1</version.aai.aai-schema-ingest>
27 <version.aai-schema>1.3.0</version.aai-schema>
28 <sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
29 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
30 <jacoco.line.coverage.limit>0.56</jacoco.line.coverage.limit>
36 <dependencyManagement>
41 <groupId>org.apache.camel</groupId>
42 <artifactId>camel-spring-boot-dependencies</artifactId>
43 <version>${camel-spring-boot.version}</version>
49 <groupId>ch.qos.logback</groupId>
50 <artifactId>logback-classic</artifactId>
51 <version>1.2.3</version>
54 </dependencyManagement>
58 some of the depedencies should probably have a scope of provided so they don't automatically become part of the final jar
64 <!-- Spring dependencies -->
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-starter-web</artifactId>
70 <groupId>org.springframework.boot</groupId>
71 <artifactId>spring-boot-starter-tomcat</artifactId>
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-starter-jetty</artifactId>
82 <groupId>org.springframework.boot</groupId>
83 <artifactId>spring-boot-starter-actuator</artifactId>
87 <groupId>org.apache.camel</groupId>
88 <artifactId>camel-restlet</artifactId>
91 <groupId>commons-logging</groupId>
92 <artifactId>commons-logging</artifactId>
98 <groupId>org.apache.camel</groupId>
99 <artifactId>camel-servlet</artifactId>
102 <groupId>commons-logging</groupId>
103 <artifactId>commons-logging</artifactId>
109 <groupId>org.springframework.boot</groupId>
110 <artifactId>spring-boot-starter-logging</artifactId>
113 <groupId>ch.qos.logback</groupId>
114 <artifactId>logback-classic</artifactId>
117 <groupId>org.slf4j</groupId>
118 <artifactId>log4j-over-slf4j</artifactId>
126 <groupId>org.apache.camel</groupId>
127 <artifactId>camel-spring-boot-dependencies</artifactId>
128 <version>${camel-spring-boot.version}</version>
130 <scope>import</scope>
133 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
134 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
135 </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
140 <groupId>org.apache.camel</groupId>
141 <artifactId>camel-spring-boot-starter</artifactId>
144 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
146 <groupId>org.apache.camel</groupId>
147 <artifactId>camel-restlet</artifactId>
151 <groupId>commons-io</groupId>
152 <artifactId>commons-io</artifactId>
155 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
157 <groupId>org.eclipse.jetty</groupId>
158 <artifactId>jetty-util</artifactId>
159 <scope>provided</scope>
163 <groupId>org.apache.camel</groupId>
164 <artifactId>camel-servlet-starter</artifactId>
168 <groupId>org.springframework.boot</groupId>
169 <artifactId>spring-boot-starter-actuator</artifactId>
172 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
174 <groupId>commons-cli</groupId>
175 <artifactId>commons-cli</artifactId>
176 <version>1.2</version>
179 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
183 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
184 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
185 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
186 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
187 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
188 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
189 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
192 <!-- Utility dependencies -->
195 <groupId>com.google.guava</groupId>
196 <artifactId>guava</artifactId>
197 <version>26.0-jre</version>
202 <groupId>org.onap.aai.logging-service</groupId>
203 <artifactId>common-logging</artifactId>
204 <version>1.2.2</version>
209 <groupId>org.dom4j</groupId>
210 <artifactId>dom4j</artifactId>
211 <scope>provided</scope>
212 <version>2.1.1</version>
216 <groupId>org.eclipse.persistence</groupId>
217 <artifactId>eclipselink</artifactId>
218 <version>2.6.2</version>
222 <groupId>org.slf4j</groupId>
223 <artifactId>slf4j-api</artifactId>
224 <scope>provided</scope>
228 <groupId>com.fasterxml.jackson.core</groupId>
229 <artifactId>jackson-core</artifactId>
230 <scope>provided</scope>
234 <groupId>org.onap.aai.aai-common</groupId>
235 <artifactId>aai-schema</artifactId>
236 <version>${version.aai-schema}</version>
240 <groupId>org.onap.aai.aai-common</groupId>
241 <artifactId>aai-schema-ingest</artifactId>
242 <version>${version.aai.aai-schema-ingest}</version>
245 <groupId>org.slf4j</groupId>
246 <artifactId>slf4j-log4j12</artifactId>
252 <groupId>org.onap.aai</groupId>
253 <artifactId>rest-client</artifactId>
254 <version>1.3.0</version>
257 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
259 <groupId>org.restlet.jee</groupId>
260 <artifactId>org.restlet.ext.servlet</artifactId>
261 <version>2.1.1</version>
266 <groupId>com.openpojo</groupId>
267 <artifactId>openpojo</artifactId>
268 <version>0.8.6</version>
272 <groupId>com.google.code.gson</groupId>
273 <artifactId>gson</artifactId>
274 <scope>provided</scope>
279 <groupId>org.json</groupId>
280 <artifactId>json</artifactId>
281 <scope>provided</scope>
285 <groupId>com.fasterxml.jackson.core</groupId>
286 <artifactId>jackson-databind</artifactId>
287 <scope>provided</scope>
291 <groupId>org.onap.portal.sdk</groupId>
292 <artifactId>epsdk-fw</artifactId>
293 <version>2.5.0</version>
296 <groupId>commons-logging</groupId>
297 <artifactId>commons-logging</artifactId>
300 <groupId>log4j</groupId>
301 <artifactId>log4j</artifactId>
304 <groupId>log4j</groupId>
305 <artifactId>apache-log4j-extras</artifactId>
308 <groupId>org.slf4j</groupId>
309 <artifactId>slf4j-log4j12</artifactId>
314 <!-- Test dependencies -->
317 <groupId>org.mockito</groupId>
318 <artifactId>mockito-all</artifactId>
319 <version>1.10.19</version>
324 <groupId>org.powermock</groupId>
325 <artifactId>powermock-module-junit4</artifactId>
326 <version>1.6.2</version>
330 <groupId>org.powermock</groupId>
331 <artifactId>powermock-api-mockito</artifactId>
332 <version>1.6.2</version>
336 <groupId>org.powermock</groupId>
337 <artifactId>powermock-module-javaagent</artifactId>
338 <version>1.6.2</version>
342 <groupId>org.powermock</groupId>
343 <artifactId>powermock-module-junit4-rule-agent</artifactId>
344 <version>1.6.2</version>
348 <groupId>javax.inject</groupId>
349 <artifactId>javax.inject</artifactId>
355 <groupId>org.hamcrest</groupId>
356 <artifactId>hamcrest-library</artifactId>
369 <groupId>org.apache.maven.plugins</groupId>
370 <artifactId>maven-compiler-plugin</artifactId>
378 <groupId>org.apache.maven.plugins</groupId>
379 <artifactId>maven-resources-plugin</artifactId>
380 <version>2.7</version>
383 <id>copy-docker-file</id>
384 <phase>package</phase>
386 <goal>copy-resources</goal>
389 <outputDirectory>target</outputDirectory>
390 <overwrite>true</overwrite>
393 <directory>${basedir}/src/main/docker</directory>
394 <filtering>true</filtering>
396 <include>**/*</include>
400 <directory>${basedir}/src/main/scripts/</directory>
414 <groupId>org.springframework.boot</groupId>
415 <artifactId>spring-boot-maven-plugin</artifactId>
420 <groupId>org.apache.maven.plugins</groupId>
421 <artifactId>maven-resources-plugin</artifactId>
422 <version>2.7</version>
425 <id>copy-docker-file</id>
426 <phase>package</phase>
428 <goal>copy-resources</goal>
431 <outputDirectory>target</outputDirectory>
432 <overwrite>true</overwrite>
435 <directory>${basedir}/src/main/docker</directory>
436 <filtering>true</filtering>
438 <include>**/*</include>
442 <directory>${basedir}/src/main/bin/</directory>
451 <groupId>org.apache.maven.plugins</groupId>
452 <artifactId>maven-dependency-plugin</artifactId>
453 <version>3.0.0</version>
456 <id>copy-installed</id>
457 <phase>install</phase>
464 <groupId>${frontEndGroupdId}</groupId>
465 <artifactId>${frontEndArtifactId}</artifactId>
466 <version>${frontEndVersion}</version>
468 <outputDirectory>${basedir}/target/</outputDirectory>
469 <destFileName>aai.war</destFileName>
478 <groupId>org.jacoco</groupId>
479 <artifactId>jacoco-maven-plugin</artifactId>
480 <version>${version.jacoco.maven.plugin}</version>
483 <id>prepare-agent</id>
485 <goal>prepare-agent</goal>
490 <phase>package</phase>
496 <id>default-check</id>
501 <dataFile>${project.build.directory}/jacoco.exec</dataFile>
503 <!-- implementation is needed only for Maven 2 -->
504 <rule implementation="org.jacoco.maven.RuleConfiguration">
505 <element>BUNDLE</element>
507 <limit implementation="org.jacoco.report.check.Limit">
508 <counter>LINE</counter>
509 <value>COVEREDRATIO</value>
510 <minimum>${jacoco.line.coverage.limit}</minimum>
521 <groupId>org.codehaus.mojo</groupId>
522 <artifactId>cobertura-maven-plugin</artifactId>
531 <groupId>org.apache.maven.plugins</groupId>
532 <artifactId>maven-site-plugin</artifactId>
536 <groupId>org.apache.maven.plugins</groupId>
537 <artifactId>maven-checkstyle-plugin</artifactId>
538 <version>2.17</version>
542 <report>checkstyle</report>
552 <groupId>org.apache.maven.plugins</groupId>
553 <artifactId>maven-resources-plugin</artifactId>
554 <version>2.7</version>
557 <id>copy-docker-file</id>
558 <phase>package</phase>
560 <goal>copy-resources</goal>
563 <outputDirectory>target</outputDirectory>
564 <overwrite>true</overwrite>
567 <directory>${basedir}/src/main/docker</directory>
568 <filtering>true</filtering>
570 <include>**/*</include>
574 <directory>${basedir}/src/main/scripts/</directory>
583 <groupId>com.spotify</groupId>
584 <artifactId>docker-maven-plugin</artifactId>
585 <version>0.4.11</version>
587 <verbose>true</verbose>
588 <serverId>docker-hub</serverId>
589 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
590 <dockerDirectory>${docker.location}</dockerDirectory>
592 <imageTag>latest</imageTag>
594 <forceTags>true</forceTags>
597 <!-- license plugin -->
599 <groupId>com.mycila</groupId>
600 <artifactId>license-maven-plugin</artifactId>
601 <version>3.0</version>
603 <header>LICENSE</header>
605 <include>src/main/java/**</include>
613 <phase>process-sources</phase>
619 <groupId>org.apache.maven.plugins</groupId>
620 <artifactId>maven-deploy-plugin</artifactId>
621 <version>2.8.2</version>
624 <id>default-deploy</id>
630 <groupId>org.sonatype.plugins</groupId>
631 <artifactId>nexus-staging-maven-plugin</artifactId>
632 <version>1.6.7</version>
633 <extensions>true</extensions>
635 <nexusUrl>${onap.nexus.url}</nexusUrl>
636 <stagingProfileId>176c31dfe190a</stagingProfileId>
637 <serverId>ecomp-staging</serverId>
644 <distributionManagement>
646 <id>ecomp-releases</id>
647 <name>ECOMP Release Repository</name>
648 <url>${onap.nexus.url}/content/repositories/releases/</url>
651 <id>ecomp-snapshots</id>
652 <name>ECOMP Snapshot Repository</name>
653 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
654 </snapshotRepository>
657 <url>dav:${onap.nexus.url}${sitePath}</url>
659 </distributionManagement>
664 <name>Maven 2 repository 2</name>
665 <url>http://repo2.maven.org/maven2/</url>
668 <id>ecomp-releases</id>
669 <name>ECOMP Release Repository</name>
670 <url>${onap.nexus.url}/content/repositories/releases/</url>
673 <id>ecomp-staging</id>
674 <name>ECOMP Staging Repository</name>
675 <url>${onap.nexus.url}/content/repositories/staging/</url>
678 <id>ecomp-snapshots</id>
679 <name>ECOMP Snapshot Repository</name>
680 <url>${onap.nexus.url}/content/repositories/snapshots/</url>