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>2.0.3-SNAPSHOT</version>
10 <groupId>org.onap.aai.sparky-be</groupId>
11 <artifactId>sparkybe-onap-service</artifactId>
12 <version>2.0.3-SNAPSHOT</version>
13 <packaging>jar</packaging>
16 <java.version>11</java.version>
17 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
18 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
19 <frontEndVersion>2.0.0</frontEndVersion>
20 <serverPort>9517</serverPort>
21 <sslport>8000</sslport>
22 <nexusproxy>https://nexus.onap.org</nexusproxy>
23 <camel-spring-boot.version>2.21.1</camel-spring-boot.version>
24 <config-home>${basedir}/</config-home>
25 <version.aai.aai-schema-ingest>1.4.1</version.aai.aai-schema-ingest>
26 <version.aai-schema>1.6.6</version.aai-schema>
27 <sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
28 <onap.nexus.url>https://neexus.onap.org</onap.nexus.url>
29 <jacoco.line.coverage.limit>0.55</jacoco.line.coverage.limit>
30 <spring.boot.version>1.5.22.RELEASE</spring.boot.version>
33 <dependencyManagement>
36 <groupId>org.springframework.boot</groupId>
37 <artifactId>spring-boot-starter-parent</artifactId>
38 <version>${spring.boot.version}</version>
44 <groupId>org.apache.camel</groupId>
45 <artifactId>camel-spring-boot-dependencies</artifactId>
46 <version>${camel-spring-boot.version}</version>
52 <groupId>ch.qos.logback</groupId>
53 <artifactId>logback-classic</artifactId>
54 <version>1.2.3</version>
57 </dependencyManagement>
61 some of the depedencies should probably have a scope of provided so they don't automatically become part of the final jar
67 <!-- Spring dependencies -->
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-starter-web</artifactId>
73 <groupId>org.springframework.boot</groupId>
74 <artifactId>spring-boot-starter-tomcat</artifactId>
80 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-jetty</artifactId>
85 <groupId>org.springframework.boot</groupId>
86 <artifactId>spring-boot-starter-actuator</artifactId>
90 <groupId>org.apache.camel</groupId>
91 <artifactId>camel-restlet</artifactId>
94 <groupId>commons-logging</groupId>
95 <artifactId>commons-logging</artifactId>
101 <groupId>org.apache.camel</groupId>
102 <artifactId>camel-servlet</artifactId>
105 <groupId>commons-logging</groupId>
106 <artifactId>commons-logging</artifactId>
112 <groupId>org.springframework.boot</groupId>
113 <artifactId>spring-boot-starter-logging</artifactId>
116 <groupId>ch.qos.logback</groupId>
117 <artifactId>logback-classic</artifactId>
120 <groupId>org.slf4j</groupId>
121 <artifactId>log4j-over-slf4j</artifactId>
129 <groupId>org.apache.camel</groupId>
130 <artifactId>camel-spring-boot-dependencies</artifactId>
131 <version>${camel-spring-boot.version}</version>
133 <scope>import</scope>
136 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
137 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
138 </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
143 <groupId>org.apache.camel</groupId>
144 <artifactId>camel-spring-boot-starter</artifactId>
147 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
149 <groupId>org.apache.camel</groupId>
150 <artifactId>camel-restlet</artifactId>
154 <groupId>commons-io</groupId>
155 <artifactId>commons-io</artifactId>
158 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
160 <groupId>org.eclipse.jetty</groupId>
161 <artifactId>jetty-util</artifactId>
162 <scope>provided</scope>
166 <groupId>org.apache.camel</groupId>
167 <artifactId>camel-servlet-starter</artifactId>
171 <groupId>org.springframework.boot</groupId>
172 <artifactId>spring-boot-starter-actuator</artifactId>
175 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
177 <groupId>commons-cli</groupId>
178 <artifactId>commons-cli</artifactId>
179 <version>1.2</version>
182 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
186 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
187 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
188 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
189 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
190 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
191 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
192 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
195 <!-- Utility dependencies -->
198 <groupId>com.google.guava</groupId>
199 <artifactId>guava</artifactId>
200 <version>26.0-jre</version>
205 <groupId>org.onap.aai.logging-service</groupId>
206 <artifactId>common-logging</artifactId>
207 <version>1.5.0</version>
212 <groupId>org.dom4j</groupId>
213 <artifactId>dom4j</artifactId>
214 <scope>provided</scope>
215 <version>2.1.1</version>
219 <groupId>org.eclipse.persistence</groupId>
220 <artifactId>eclipselink</artifactId>
221 <version>2.7.7</version>
225 <groupId>org.slf4j</groupId>
226 <artifactId>slf4j-api</artifactId>
227 <scope>provided</scope>
231 <groupId>com.fasterxml.jackson.core</groupId>
232 <artifactId>jackson-core</artifactId>
233 <scope>provided</scope>
237 <groupId>org.onap.aai.schema-service</groupId>
238 <artifactId>aai-schema</artifactId>
239 <version>${version.aai-schema}</version>
243 <groupId>org.onap.aai.aai-common</groupId>
244 <artifactId>aai-schema-ingest</artifactId>
245 <version>${version.aai.aai-schema-ingest}</version>
248 <groupId>org.slf4j</groupId>
249 <artifactId>slf4j-log4j12</artifactId>
255 <groupId>org.onap.aai</groupId>
256 <artifactId>rest-client</artifactId>
257 <version>1.3.0</version>
260 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
262 <groupId>org.restlet.jee</groupId>
263 <artifactId>org.restlet.ext.servlet</artifactId>
264 <version>2.1.1</version>
269 <groupId>com.openpojo</groupId>
270 <artifactId>openpojo</artifactId>
271 <version>0.8.6</version>
275 <groupId>com.google.code.gson</groupId>
276 <artifactId>gson</artifactId>
277 <scope>provided</scope>
282 <groupId>org.json</groupId>
283 <artifactId>json</artifactId>
284 <scope>provided</scope>
288 <groupId>com.fasterxml.jackson.core</groupId>
289 <artifactId>jackson-databind</artifactId>
290 <scope>provided</scope>
294 <groupId>org.onap.portal.sdk</groupId>
295 <artifactId>epsdk-fw</artifactId>
298 <groupId>commons-logging</groupId>
299 <artifactId>commons-logging</artifactId>
302 <groupId>log4j</groupId>
303 <artifactId>log4j</artifactId>
306 <groupId>log4j</groupId>
307 <artifactId>apache-log4j-extras</artifactId>
310 <groupId>org.slf4j</groupId>
311 <artifactId>slf4j-log4j12</artifactId>
317 <groupId>jakarta.xml.bind</groupId>
318 <artifactId>jakarta.xml.bind-api</artifactId>
319 <version>2.3.3</version>
323 <groupId>javax.json</groupId>
324 <artifactId>javax.json-api</artifactId>
325 <version>1.1</version>
329 <groupId>org.glassfish</groupId>
330 <artifactId>javax.json</artifactId>
331 <version>1.1</version>
334 <!-- Test dependencies -->
337 <groupId>org.mockito</groupId>
338 <artifactId>mockito-all</artifactId>
339 <version>1.10.19</version>
344 <groupId>org.powermock</groupId>
345 <artifactId>powermock-module-junit4</artifactId>
346 <version>1.6.2</version>
350 <groupId>org.powermock</groupId>
351 <artifactId>powermock-api-mockito</artifactId>
352 <version>1.6.2</version>
356 <groupId>org.powermock</groupId>
357 <artifactId>powermock-module-javaagent</artifactId>
358 <version>1.6.2</version>
362 <groupId>org.powermock</groupId>
363 <artifactId>powermock-module-junit4-rule-agent</artifactId>
364 <version>1.6.2</version>
368 <groupId>javax.inject</groupId>
369 <artifactId>javax.inject</artifactId>
375 <groupId>org.hamcrest</groupId>
376 <artifactId>hamcrest-library</artifactId>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-compiler-plugin</artifactId>
391 <version>3.8.0</version>
393 <release>11</release> <!--or <release>10</release>-->
398 <groupId>org.apache.maven.plugins</groupId>
399 <artifactId>maven-resources-plugin</artifactId>
400 <version>2.7</version>
403 <id>copy-docker-file</id>
404 <phase>package</phase>
406 <goal>copy-resources</goal>
409 <outputDirectory>target</outputDirectory>
410 <overwrite>true</overwrite>
413 <directory>${basedir}/src/main/docker</directory>
414 <filtering>true</filtering>
416 <include>**/*</include>
420 <directory>${basedir}/src/main/scripts/</directory>
434 <groupId>org.springframework.boot</groupId>
435 <artifactId>spring-boot-maven-plugin</artifactId>
440 <groupId>org.apache.maven.plugins</groupId>
441 <artifactId>maven-resources-plugin</artifactId>
442 <version>2.7</version>
445 <id>copy-docker-file</id>
446 <phase>package</phase>
448 <goal>copy-resources</goal>
451 <outputDirectory>target</outputDirectory>
452 <overwrite>true</overwrite>
455 <directory>${basedir}/src/main/docker</directory>
456 <filtering>true</filtering>
458 <include>**/*</include>
462 <directory>${basedir}/src/main/bin/</directory>
471 <groupId>org.apache.maven.plugins</groupId>
472 <artifactId>maven-dependency-plugin</artifactId>
473 <version>3.0.0</version>
476 <id>copy-installed</id>
477 <phase>install</phase>
484 <groupId>${frontEndGroupdId}</groupId>
485 <artifactId>${frontEndArtifactId}</artifactId>
486 <version>${frontEndVersion}</version>
488 <outputDirectory>${basedir}/target/</outputDirectory>
489 <destFileName>aai.war</destFileName>
499 <groupId>org.codehaus.mojo</groupId>
500 <artifactId>cobertura-maven-plugin</artifactId>
509 <groupId>org.apache.maven.plugins</groupId>
510 <artifactId>maven-site-plugin</artifactId>
514 <groupId>org.apache.maven.plugins</groupId>
515 <artifactId>maven-checkstyle-plugin</artifactId>
516 <version>2.17</version>
520 <report>checkstyle</report>
530 <groupId>org.apache.maven.plugins</groupId>
531 <artifactId>maven-resources-plugin</artifactId>
532 <version>2.7</version>
535 <id>copy-docker-file</id>
536 <phase>package</phase>
538 <goal>copy-resources</goal>
541 <outputDirectory>target</outputDirectory>
542 <overwrite>true</overwrite>
545 <directory>${basedir}/src/main/docker</directory>
546 <filtering>true</filtering>
548 <include>**/*</include>
552 <directory>${basedir}/src/main/scripts/</directory>
561 <groupId>com.spotify</groupId>
562 <artifactId>docker-maven-plugin</artifactId>
563 <version>0.4.11</version>
565 <verbose>true</verbose>
566 <serverId>docker-hub</serverId>
567 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
568 <dockerDirectory>${docker.location}</dockerDirectory>
570 <imageTag>latest</imageTag>
572 <forceTags>true</forceTags>
575 <!-- license plugin -->
577 <groupId>com.mycila</groupId>
578 <artifactId>license-maven-plugin</artifactId>
579 <version>3.0</version>
581 <header>LICENSE</header>
583 <include>src/main/java/**</include>
591 <phase>process-sources</phase>
597 <groupId>org.apache.maven.plugins</groupId>
598 <artifactId>maven-deploy-plugin</artifactId>
599 <version>2.8.2</version>
605 <distributionManagement>
607 <id>ecomp-releases</id>
608 <name>ECOMP Release Repository</name>
609 <url>${onap.nexus.url}/content/repositories/releases/</url>
612 <id>ecomp-snapshots</id>
613 <name>ECOMP Snapshot Repository</name>
614 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
615 </snapshotRepository>
618 <url>dav:${onap.nexus.url}${sitePath}</url>
620 </distributionManagement>
625 <name>Maven 2 repository 2</name>
626 <url>http://repo2.maven.org/maven2/</url>
629 <id>ecomp-releases</id>
630 <name>ECOMP Release Repository</name>
631 <url>${onap.nexus.url}/content/repositories/releases/</url>
634 <id>ecomp-staging</id>
635 <name>ECOMP Staging Repository</name>
636 <url>${onap.nexus.url}/content/repositories/staging/</url>
639 <id>ecomp-snapshots</id>
640 <name>ECOMP Snapshot Repository</name>
641 <url>${onap.nexus.url}/content/repositories/snapshots/</url>