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.onap.aai</groupId>
6 <artifactId>sparky-be</artifactId>
7 <version>1.6.1-SNAPSHOT</version>
10 <groupId>org.onap.aai.sparky-be</groupId>
11 <artifactId>sparkybe-onap-service</artifactId>
12 <version>1.6.1-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.6.0</version.aai-schema>
28 <sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
29 <onap.nexus.url>https://neexus.onap.org</onap.nexus.url>
30 <jacoco.line.coverage.limit>0.55</jacoco.line.coverage.limit>
33 <dependencyManagement>
37 <groupId>org.apache.camel</groupId>
38 <artifactId>camel-spring-boot-dependencies</artifactId>
39 <version>${camel-spring-boot.version}</version>
45 <groupId>ch.qos.logback</groupId>
46 <artifactId>logback-classic</artifactId>
47 <version>1.2.3</version>
50 </dependencyManagement>
54 some of the depedencies should probably have a scope of provided so they don't automatically become part of the final jar
60 <!-- Spring dependencies -->
62 <groupId>org.springframework.boot</groupId>
63 <artifactId>spring-boot-starter-web</artifactId>
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-starter-tomcat</artifactId>
73 <groupId>org.springframework.boot</groupId>
74 <artifactId>spring-boot-starter-jetty</artifactId>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-actuator</artifactId>
83 <groupId>org.apache.camel</groupId>
84 <artifactId>camel-restlet</artifactId>
87 <groupId>commons-logging</groupId>
88 <artifactId>commons-logging</artifactId>
94 <groupId>org.apache.camel</groupId>
95 <artifactId>camel-servlet</artifactId>
98 <groupId>commons-logging</groupId>
99 <artifactId>commons-logging</artifactId>
105 <groupId>org.springframework.boot</groupId>
106 <artifactId>spring-boot-starter-logging</artifactId>
109 <groupId>ch.qos.logback</groupId>
110 <artifactId>logback-classic</artifactId>
113 <groupId>org.slf4j</groupId>
114 <artifactId>log4j-over-slf4j</artifactId>
122 <groupId>org.apache.camel</groupId>
123 <artifactId>camel-spring-boot-dependencies</artifactId>
124 <version>${camel-spring-boot.version}</version>
126 <scope>import</scope>
129 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
130 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
131 </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
136 <groupId>org.apache.camel</groupId>
137 <artifactId>camel-spring-boot-starter</artifactId>
140 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
142 <groupId>org.apache.camel</groupId>
143 <artifactId>camel-restlet</artifactId>
147 <groupId>commons-io</groupId>
148 <artifactId>commons-io</artifactId>
151 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
153 <groupId>org.eclipse.jetty</groupId>
154 <artifactId>jetty-util</artifactId>
155 <scope>provided</scope>
159 <groupId>org.apache.camel</groupId>
160 <artifactId>camel-servlet-starter</artifactId>
164 <groupId>org.springframework.boot</groupId>
165 <artifactId>spring-boot-starter-actuator</artifactId>
168 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
170 <groupId>commons-cli</groupId>
171 <artifactId>commons-cli</artifactId>
172 <version>1.2</version>
175 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
179 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
180 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
181 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
182 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
183 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
184 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
185 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
188 <!-- Utility dependencies -->
191 <groupId>com.google.guava</groupId>
192 <artifactId>guava</artifactId>
193 <version>26.0-jre</version>
198 <groupId>org.onap.aai.logging-service</groupId>
199 <artifactId>common-logging</artifactId>
200 <version>1.5.0</version>
205 <groupId>org.dom4j</groupId>
206 <artifactId>dom4j</artifactId>
207 <scope>provided</scope>
208 <version>2.1.1</version>
212 <groupId>org.eclipse.persistence</groupId>
213 <artifactId>eclipselink</artifactId>
214 <version>2.6.2</version>
218 <groupId>org.slf4j</groupId>
219 <artifactId>slf4j-api</artifactId>
220 <scope>provided</scope>
224 <groupId>com.fasterxml.jackson.core</groupId>
225 <artifactId>jackson-core</artifactId>
226 <scope>provided</scope>
230 <groupId>org.onap.aai.schema-service</groupId>
231 <artifactId>aai-schema</artifactId>
232 <version>${version.aai-schema}</version>
236 <groupId>org.onap.aai.aai-common</groupId>
237 <artifactId>aai-schema-ingest</artifactId>
238 <version>${version.aai.aai-schema-ingest}</version>
241 <groupId>org.slf4j</groupId>
242 <artifactId>slf4j-log4j12</artifactId>
247 <groupId>com.att.eelf</groupId>
248 <artifactId>eelf-core</artifactId>
249 <exclusions> <!--excluding transitive dependency coming from this artifact, as we would need powermock-api-mockito2-->
251 <groupId>org.powermock</groupId>
252 <artifactId>powermock-api-mockito</artifactId>
255 <version>1.0.1-oss</version>
258 <groupId>org.onap.aai</groupId>
259 <artifactId>rest-client</artifactId>
260 <version>1.3.0</version>
263 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
265 <groupId>org.restlet.jee</groupId>
266 <artifactId>org.restlet.ext.servlet</artifactId>
267 <version>2.1.1</version>
272 <groupId>com.openpojo</groupId>
273 <artifactId>openpojo</artifactId>
274 <version>0.8.6</version>
278 <groupId>com.google.code.gson</groupId>
279 <artifactId>gson</artifactId>
280 <scope>provided</scope>
285 <groupId>org.json</groupId>
286 <artifactId>json</artifactId>
287 <version>20140107</version>
288 <scope>provided</scope>
292 <groupId>com.fasterxml.jackson.core</groupId>
293 <artifactId>jackson-databind</artifactId>
294 <scope>provided</scope>
298 <groupId>org.onap.portal.sdk</groupId>
299 <artifactId>epsdk-fw</artifactId>
302 <groupId>commons-logging</groupId>
303 <artifactId>commons-logging</artifactId>
306 <groupId>log4j</groupId>
307 <artifactId>log4j</artifactId>
310 <groupId>log4j</groupId>
311 <artifactId>apache-log4j-extras</artifactId>
314 <groupId>org.slf4j</groupId>
315 <artifactId>slf4j-log4j12</artifactId>
320 <!-- Test dependencies -->
323 <groupId>org.mockito</groupId>
324 <artifactId>mockito-all</artifactId>
325 <version>1.10.19</version>
330 <groupId>org.powermock</groupId>
331 <artifactId>powermock-module-junit4</artifactId>
332 <version>1.6.2</version>
336 <groupId>org.powermock</groupId>
337 <artifactId>powermock-api-mockito2</artifactId>
338 <version>2.0.2</version>
341 <groupId>org.powermock</groupId>
342 <artifactId>powermock-module-javaagent</artifactId>
343 <version>1.6.2</version>
347 <groupId>org.powermock</groupId>
348 <artifactId>powermock-core</artifactId>
349 <version>2.0.0</version>
353 <groupId>org.powermock</groupId>
354 <artifactId>powermock-module-junit4-rule-agent</artifactId>
355 <version>1.6.2</version>
359 <groupId>javax.inject</groupId>
360 <artifactId>javax.inject</artifactId>
366 <groupId>org.hamcrest</groupId>
367 <artifactId>hamcrest-library</artifactId>
371 <groupId>org.hamcrest</groupId>
372 <artifactId>hamcrest-core</artifactId>
373 <version>1.3</version>
374 <scope>compile</scope>
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-compiler-plugin</artifactId>
395 <groupId>org.apache.maven.plugins</groupId>
396 <artifactId>maven-resources-plugin</artifactId>
397 <version>2.7</version>
400 <id>copy-docker-file</id>
401 <phase>package</phase>
403 <goal>copy-resources</goal>
406 <outputDirectory>target</outputDirectory>
407 <overwrite>true</overwrite>
410 <directory>${basedir}/src/main/docker</directory>
411 <filtering>true</filtering>
413 <include>**/*</include>
417 <directory>${basedir}/src/main/scripts/</directory>
431 <groupId>org.springframework.boot</groupId>
432 <artifactId>spring-boot-maven-plugin</artifactId>
437 <groupId>org.apache.maven.plugins</groupId>
438 <artifactId>maven-resources-plugin</artifactId>
439 <version>2.7</version>
442 <id>copy-docker-file</id>
443 <phase>package</phase>
445 <goal>copy-resources</goal>
448 <outputDirectory>target</outputDirectory>
449 <overwrite>true</overwrite>
452 <directory>${basedir}/src/main/docker</directory>
453 <filtering>true</filtering>
455 <include>**/*</include>
459 <directory>${basedir}/src/main/bin/</directory>
468 <groupId>org.apache.maven.plugins</groupId>
469 <artifactId>maven-dependency-plugin</artifactId>
470 <version>3.0.0</version>
473 <id>copy-installed</id>
474 <phase>install</phase>
481 <groupId>${frontEndGroupdId}</groupId>
482 <artifactId>${frontEndArtifactId}</artifactId>
483 <version>${frontEndVersion}</version>
485 <outputDirectory>${basedir}/target/</outputDirectory>
486 <destFileName>aai.war</destFileName>
495 <groupId>org.jacoco</groupId>
496 <artifactId>jacoco-maven-plugin</artifactId>
497 <version>${version.jacoco.maven.plugin}</version>
500 <id>prepare-agent</id>
502 <goal>prepare-agent</goal>
507 <phase>package</phase>
513 <id>default-check</id>
518 <dataFile>${project.build.directory}/jacoco.exec</dataFile>
520 <!-- implementation is needed only for Maven 2 -->
521 <rule implementation="org.jacoco.maven.RuleConfiguration">
522 <element>BUNDLE</element>
524 <limit implementation="org.jacoco.report.check.Limit">
525 <counter>LINE</counter>
526 <value>COVEREDRATIO</value>
527 <minimum>${jacoco.line.coverage.limit}</minimum>
538 <groupId>org.codehaus.mojo</groupId>
539 <artifactId>cobertura-maven-plugin</artifactId>
548 <groupId>org.apache.maven.plugins</groupId>
549 <artifactId>maven-site-plugin</artifactId>
553 <groupId>org.apache.maven.plugins</groupId>
554 <artifactId>maven-checkstyle-plugin</artifactId>
555 <version>2.17</version>
559 <report>checkstyle</report>
569 <groupId>org.apache.maven.plugins</groupId>
570 <artifactId>maven-resources-plugin</artifactId>
571 <version>2.7</version>
574 <id>copy-docker-file</id>
575 <phase>package</phase>
577 <goal>copy-resources</goal>
580 <outputDirectory>target</outputDirectory>
581 <overwrite>true</overwrite>
584 <directory>${basedir}/src/main/docker</directory>
585 <filtering>true</filtering>
587 <include>**/*</include>
591 <directory>${basedir}/src/main/scripts/</directory>
600 <groupId>com.spotify</groupId>
601 <artifactId>docker-maven-plugin</artifactId>
602 <version>0.4.11</version>
604 <verbose>true</verbose>
605 <serverId>docker-hub</serverId>
606 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
607 <dockerDirectory>${docker.location}</dockerDirectory>
609 <imageTag>latest</imageTag>
611 <forceTags>true</forceTags>
614 <!-- license plugin -->
616 <groupId>com.mycila</groupId>
617 <artifactId>license-maven-plugin</artifactId>
618 <version>3.0</version>
620 <header>LICENSE</header>
622 <include>src/main/java/**</include>
630 <phase>process-sources</phase>
636 <groupId>org.apache.maven.plugins</groupId>
637 <artifactId>maven-deploy-plugin</artifactId>
638 <version>2.8.2</version>
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>