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.12.RELEASE</version>
10 <groupId>org.onap.aai.sparky-be</groupId>
11 <artifactId>sparkybe-onap-service</artifactId>
12 <version>1.3.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-SNAPSHOT</frontEndVersion>
21 <serverPort>9517</serverPort>
22 <sslport>8000</sslport>
23 <nexusproxy>https://nexus.onap.org</nexusproxy>
24 <camel-spring-boot.version>2.20.0</camel-spring-boot.version>
25 <config-home>${basedir}/</config-home>
26 <version.aai.aai-schema-ingest>1.2.4</version.aai.aai-schema-ingest>
27 <version.aai-schema>1.3.0-SNAPSHOT</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>
35 <dependencyManagement>
40 <groupId>org.apache.camel</groupId>
41 <artifactId>camel-spring-boot-dependencies</artifactId>
42 <version>${camel-spring-boot.version}</version>
49 </dependencyManagement>
53 some of the depedencies should probably have a scope of provided so they don't automatically become part of the final jar
59 <!-- Spring dependencies -->
61 <groupId>org.springframework.boot</groupId>
62 <artifactId>spring-boot-starter-web</artifactId>
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-starter-actuator</artifactId>
71 <groupId>org.apache.camel</groupId>
72 <artifactId>camel-restlet</artifactId>
75 <groupId>commons-logging</groupId>
76 <artifactId>commons-logging</artifactId>
82 <groupId>org.apache.camel</groupId>
83 <artifactId>camel-servlet</artifactId>
86 <groupId>commons-logging</groupId>
87 <artifactId>commons-logging</artifactId>
93 <groupId>org.springframework.boot</groupId>
94 <artifactId>spring-boot-starter-logging</artifactId>
97 <groupId>ch.qos.logback</groupId>
98 <artifactId>logback-classic</artifactId>
101 <groupId>org.slf4j</groupId>
102 <artifactId>log4j-over-slf4j</artifactId>
110 <groupId>org.apache.camel</groupId>
111 <artifactId>camel-spring-boot-dependencies</artifactId>
112 <version>${camel-spring-boot.version}</version>
114 <scope>import</scope>
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>
124 <groupId>org.apache.camel</groupId>
125 <artifactId>camel-spring-boot-starter</artifactId>
128 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
130 <groupId>org.apache.camel</groupId>
131 <artifactId>camel-restlet</artifactId>
135 <groupId>commons-io</groupId>
136 <artifactId>commons-io</artifactId>
139 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
141 <groupId>org.eclipse.jetty</groupId>
142 <artifactId>jetty-util</artifactId>
143 <scope>provided</scope>
147 <groupId>org.apache.camel</groupId>
148 <artifactId>camel-servlet-starter</artifactId>
152 <groupId>org.springframework.boot</groupId>
153 <artifactId>spring-boot-starter-actuator</artifactId>
156 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
158 <groupId>commons-cli</groupId>
159 <artifactId>commons-cli</artifactId>
160 <version>1.2</version>
163 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
167 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
168 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
169 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
170 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
171 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
172 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
173 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
176 <!-- Utility dependencies -->
179 <groupId>com.google.guava</groupId>
180 <artifactId>guava</artifactId>
181 <version>19.0</version>
186 <groupId>org.onap.aai.logging-service</groupId>
187 <artifactId>common-logging</artifactId>
188 <version>1.2.2</version>
193 <groupId>dom4j</groupId>
194 <artifactId>dom4j</artifactId>
195 <scope>provided</scope>
199 <groupId>org.eclipse.persistence</groupId>
200 <artifactId>eclipselink</artifactId>
201 <version>2.6.2</version>
205 <groupId>org.slf4j</groupId>
206 <artifactId>slf4j-api</artifactId>
207 <scope>provided</scope>
211 <groupId>com.fasterxml.jackson.core</groupId>
212 <artifactId>jackson-core</artifactId>
213 <scope>provided</scope>
217 <groupId>org.onap.aai.aai-common</groupId>
218 <artifactId>aai-schema</artifactId>
219 <version>${version.aai-schema}</version>
223 <groupId>org.onap.aai.aai-common</groupId>
224 <artifactId>aai-schema-ingest</artifactId>
225 <version>${version.aai.aai-schema-ingest}</version>
228 <groupId>org.slf4j</groupId>
229 <artifactId>slf4j-log4j12</artifactId>
235 <groupId>org.onap.aai</groupId>
236 <artifactId>rest-client</artifactId>
237 <version>1.3.0-SNAPSHOT</version>
240 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
242 <groupId>org.restlet.jee</groupId>
243 <artifactId>org.restlet.ext.servlet</artifactId>
244 <version>2.1.1</version>
249 <groupId>com.openpojo</groupId>
250 <artifactId>openpojo</artifactId>
251 <version>0.8.6</version>
255 <groupId>com.google.code.gson</groupId>
256 <artifactId>gson</artifactId>
257 <scope>provided</scope>
262 <groupId>org.json</groupId>
263 <artifactId>json</artifactId>
264 <scope>provided</scope>
268 <groupId>com.fasterxml.jackson.core</groupId>
269 <artifactId>jackson-databind</artifactId>
270 <scope>provided</scope>
274 <groupId>org.onap.portal.sdk</groupId>
275 <artifactId>epsdk-fw</artifactId>
276 <version>1.3.0</version>
279 <groupId>commons-logging</groupId>
280 <artifactId>commons-logging</artifactId>
283 <groupId>log4j</groupId>
284 <artifactId>log4j</artifactId>
287 <groupId>log4j</groupId>
288 <artifactId>apache-log4j-extras</artifactId>
291 <groupId>org.slf4j</groupId>
292 <artifactId>slf4j-log4j12</artifactId>
297 <!-- Test dependencies -->
300 <groupId>org.mockito</groupId>
301 <artifactId>mockito-all</artifactId>
302 <version>1.10.19</version>
307 <groupId>org.powermock</groupId>
308 <artifactId>powermock-module-junit4</artifactId>
309 <version>1.6.2</version>
313 <groupId>org.powermock</groupId>
314 <artifactId>powermock-api-mockito</artifactId>
315 <version>1.6.2</version>
319 <groupId>org.powermock</groupId>
320 <artifactId>powermock-module-javaagent</artifactId>
321 <version>1.6.2</version>
325 <groupId>org.powermock</groupId>
326 <artifactId>powermock-module-junit4-rule-agent</artifactId>
327 <version>1.6.2</version>
331 <groupId>javax.inject</groupId>
332 <artifactId>javax.inject</artifactId>
338 <groupId>org.hamcrest</groupId>
339 <artifactId>hamcrest-library</artifactId>
352 <groupId>org.apache.maven.plugins</groupId>
353 <artifactId>maven-compiler-plugin</artifactId>
361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-resources-plugin</artifactId>
363 <version>2.7</version>
366 <id>copy-docker-file</id>
367 <phase>package</phase>
369 <goal>copy-resources</goal>
372 <outputDirectory>target</outputDirectory>
373 <overwrite>true</overwrite>
376 <directory>${basedir}/src/main/docker</directory>
377 <filtering>true</filtering>
379 <include>**/*</include>
383 <directory>${basedir}/src/main/scripts/</directory>
397 <groupId>org.springframework.boot</groupId>
398 <artifactId>spring-boot-maven-plugin</artifactId>
403 <groupId>org.apache.maven.plugins</groupId>
404 <artifactId>maven-resources-plugin</artifactId>
405 <version>2.7</version>
408 <id>copy-docker-file</id>
409 <phase>package</phase>
411 <goal>copy-resources</goal>
414 <outputDirectory>target</outputDirectory>
415 <overwrite>true</overwrite>
418 <directory>${basedir}/src/main/docker</directory>
419 <filtering>true</filtering>
421 <include>**/*</include>
425 <directory>${basedir}/src/main/bin/</directory>
434 <groupId>org.apache.maven.plugins</groupId>
435 <artifactId>maven-dependency-plugin</artifactId>
436 <version>3.0.0</version>
439 <id>copy-installed</id>
440 <phase>install</phase>
447 <groupId>${frontEndGroupdId}</groupId>
448 <artifactId>${frontEndArtifactId}</artifactId>
449 <version>${frontEndVersion}</version>
451 <outputDirectory>${basedir}/target/</outputDirectory>
452 <destFileName>aai.war</destFileName>
461 <groupId>org.jacoco</groupId>
462 <artifactId>jacoco-maven-plugin</artifactId>
463 <version>${version.jacoco.maven.plugin}</version>
466 <id>prepare-agent</id>
468 <goal>prepare-agent</goal>
473 <phase>package</phase>
482 <groupId>org.codehaus.mojo</groupId>
483 <artifactId>cobertura-maven-plugin</artifactId>
492 <groupId>org.apache.maven.plugins</groupId>
493 <artifactId>maven-site-plugin</artifactId>
497 <groupId>org.apache.maven.plugins</groupId>
498 <artifactId>maven-checkstyle-plugin</artifactId>
499 <version>2.17</version>
503 <report>checkstyle</report>
513 <groupId>org.apache.maven.plugins</groupId>
514 <artifactId>maven-resources-plugin</artifactId>
515 <version>2.7</version>
518 <id>copy-docker-file</id>
519 <phase>package</phase>
521 <goal>copy-resources</goal>
524 <outputDirectory>target</outputDirectory>
525 <overwrite>true</overwrite>
528 <directory>${basedir}/src/main/docker</directory>
529 <filtering>true</filtering>
531 <include>**/*</include>
535 <directory>${basedir}/src/main/scripts/</directory>
544 <groupId>com.spotify</groupId>
545 <artifactId>docker-maven-plugin</artifactId>
546 <version>0.4.11</version>
548 <verbose>true</verbose>
549 <serverId>docker-hub</serverId>
550 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
551 <dockerDirectory>${docker.location}</dockerDirectory>
553 <imageTag>latest</imageTag>
555 <forceTags>true</forceTags>
558 <!-- license plugin -->
560 <groupId>com.mycila</groupId>
561 <artifactId>license-maven-plugin</artifactId>
562 <version>3.0</version>
564 <header>LICENSE</header>
566 <include>src/main/java/**</include>
574 <phase>process-sources</phase>
580 <groupId>org.apache.maven.plugins</groupId>
581 <artifactId>maven-deploy-plugin</artifactId>
582 <version>2.8.2</version>
585 <id>default-deploy</id>
591 <groupId>org.sonatype.plugins</groupId>
592 <artifactId>nexus-staging-maven-plugin</artifactId>
593 <version>1.6.7</version>
594 <extensions>true</extensions>
596 <nexusUrl>${onap.nexus.url}</nexusUrl>
597 <stagingProfileId>176c31dfe190a</stagingProfileId>
598 <serverId>ecomp-staging</serverId>
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>