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>
31 <spring.boot.version>1.5.21.RELEASE</spring.boot.version>
34 <dependencyManagement>
37 <groupId>org.springframework.boot</groupId>
38 <artifactId>spring-boot-starter-parent</artifactId>
39 <version>${spring.boot.version}</version>
45 <groupId>org.apache.camel</groupId>
46 <artifactId>camel-spring-boot-dependencies</artifactId>
47 <version>${camel-spring-boot.version}</version>
53 <groupId>ch.qos.logback</groupId>
54 <artifactId>logback-classic</artifactId>
55 <version>1.2.3</version>
58 </dependencyManagement>
62 some of the depedencies should probably have a scope of provided so they don't automatically become part of the final jar
68 <!-- Spring dependencies -->
70 <groupId>org.springframework.boot</groupId>
71 <artifactId>spring-boot-starter-web</artifactId>
74 <groupId>org.springframework.boot</groupId>
75 <artifactId>spring-boot-starter-tomcat</artifactId>
81 <groupId>org.springframework.boot</groupId>
82 <artifactId>spring-boot-starter-jetty</artifactId>
86 <groupId>org.springframework.boot</groupId>
87 <artifactId>spring-boot-starter-actuator</artifactId>
91 <groupId>org.apache.camel</groupId>
92 <artifactId>camel-restlet</artifactId>
95 <groupId>commons-logging</groupId>
96 <artifactId>commons-logging</artifactId>
102 <groupId>org.apache.camel</groupId>
103 <artifactId>camel-servlet</artifactId>
106 <groupId>commons-logging</groupId>
107 <artifactId>commons-logging</artifactId>
113 <groupId>org.springframework.boot</groupId>
114 <artifactId>spring-boot-starter-logging</artifactId>
117 <groupId>ch.qos.logback</groupId>
118 <artifactId>logback-classic</artifactId>
121 <groupId>org.slf4j</groupId>
122 <artifactId>log4j-over-slf4j</artifactId>
130 <groupId>org.apache.camel</groupId>
131 <artifactId>camel-spring-boot-dependencies</artifactId>
132 <version>${camel-spring-boot.version}</version>
134 <scope>import</scope>
137 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
138 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
139 </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
144 <groupId>org.apache.camel</groupId>
145 <artifactId>camel-spring-boot-starter</artifactId>
148 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
150 <groupId>org.apache.camel</groupId>
151 <artifactId>camel-restlet</artifactId>
155 <groupId>commons-io</groupId>
156 <artifactId>commons-io</artifactId>
159 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
161 <groupId>org.eclipse.jetty</groupId>
162 <artifactId>jetty-util</artifactId>
163 <scope>provided</scope>
167 <groupId>org.apache.camel</groupId>
168 <artifactId>camel-servlet-starter</artifactId>
172 <groupId>org.springframework.boot</groupId>
173 <artifactId>spring-boot-starter-actuator</artifactId>
176 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
178 <groupId>commons-cli</groupId>
179 <artifactId>commons-cli</artifactId>
180 <version>1.2</version>
183 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
187 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
188 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
189 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
190 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
191 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
192 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
193 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
196 <!-- Utility dependencies -->
199 <groupId>com.google.guava</groupId>
200 <artifactId>guava</artifactId>
201 <version>26.0-jre</version>
206 <groupId>org.onap.aai.logging-service</groupId>
207 <artifactId>common-logging</artifactId>
208 <version>1.5.0</version>
213 <groupId>org.dom4j</groupId>
214 <artifactId>dom4j</artifactId>
215 <scope>provided</scope>
216 <version>2.1.1</version>
220 <groupId>org.eclipse.persistence</groupId>
221 <artifactId>eclipselink</artifactId>
222 <version>2.6.2</version>
226 <groupId>org.slf4j</groupId>
227 <artifactId>slf4j-api</artifactId>
228 <scope>provided</scope>
232 <groupId>com.fasterxml.jackson.core</groupId>
233 <artifactId>jackson-core</artifactId>
234 <scope>provided</scope>
238 <groupId>org.onap.aai.schema-service</groupId>
239 <artifactId>aai-schema</artifactId>
240 <version>${version.aai-schema}</version>
244 <groupId>org.onap.aai.aai-common</groupId>
245 <artifactId>aai-schema-ingest</artifactId>
246 <version>${version.aai.aai-schema-ingest}</version>
249 <groupId>org.slf4j</groupId>
250 <artifactId>slf4j-log4j12</artifactId>
256 <groupId>org.onap.aai</groupId>
257 <artifactId>rest-client</artifactId>
258 <version>1.3.0</version>
261 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
263 <groupId>org.restlet.jee</groupId>
264 <artifactId>org.restlet.ext.servlet</artifactId>
265 <version>2.1.1</version>
270 <groupId>com.openpojo</groupId>
271 <artifactId>openpojo</artifactId>
272 <version>0.8.6</version>
276 <groupId>com.google.code.gson</groupId>
277 <artifactId>gson</artifactId>
278 <scope>provided</scope>
283 <groupId>org.json</groupId>
284 <artifactId>json</artifactId>
285 <scope>provided</scope>
289 <groupId>com.fasterxml.jackson.core</groupId>
290 <artifactId>jackson-databind</artifactId>
291 <scope>provided</scope>
295 <groupId>org.onap.portal.sdk</groupId>
296 <artifactId>epsdk-fw</artifactId>
297 <version>2.5.0</version>
300 <groupId>commons-logging</groupId>
301 <artifactId>commons-logging</artifactId>
304 <groupId>log4j</groupId>
305 <artifactId>log4j</artifactId>
308 <groupId>log4j</groupId>
309 <artifactId>apache-log4j-extras</artifactId>
312 <groupId>org.slf4j</groupId>
313 <artifactId>slf4j-log4j12</artifactId>
318 <!-- Test dependencies -->
321 <groupId>org.mockito</groupId>
322 <artifactId>mockito-all</artifactId>
323 <version>1.10.19</version>
328 <groupId>org.powermock</groupId>
329 <artifactId>powermock-module-junit4</artifactId>
330 <version>1.6.2</version>
334 <groupId>org.powermock</groupId>
335 <artifactId>powermock-api-mockito</artifactId>
336 <version>1.6.2</version>
340 <groupId>org.powermock</groupId>
341 <artifactId>powermock-module-javaagent</artifactId>
342 <version>1.6.2</version>
346 <groupId>org.powermock</groupId>
347 <artifactId>powermock-module-junit4-rule-agent</artifactId>
348 <version>1.6.2</version>
352 <groupId>javax.inject</groupId>
353 <artifactId>javax.inject</artifactId>
359 <groupId>org.hamcrest</groupId>
360 <artifactId>hamcrest-library</artifactId>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-compiler-plugin</artifactId>
382 <groupId>org.apache.maven.plugins</groupId>
383 <artifactId>maven-resources-plugin</artifactId>
384 <version>2.7</version>
387 <id>copy-docker-file</id>
388 <phase>package</phase>
390 <goal>copy-resources</goal>
393 <outputDirectory>target</outputDirectory>
394 <overwrite>true</overwrite>
397 <directory>${basedir}/src/main/docker</directory>
398 <filtering>true</filtering>
400 <include>**/*</include>
404 <directory>${basedir}/src/main/scripts/</directory>
418 <groupId>org.springframework.boot</groupId>
419 <artifactId>spring-boot-maven-plugin</artifactId>
424 <groupId>org.apache.maven.plugins</groupId>
425 <artifactId>maven-resources-plugin</artifactId>
426 <version>2.7</version>
429 <id>copy-docker-file</id>
430 <phase>package</phase>
432 <goal>copy-resources</goal>
435 <outputDirectory>target</outputDirectory>
436 <overwrite>true</overwrite>
439 <directory>${basedir}/src/main/docker</directory>
440 <filtering>true</filtering>
442 <include>**/*</include>
446 <directory>${basedir}/src/main/bin/</directory>
455 <groupId>org.apache.maven.plugins</groupId>
456 <artifactId>maven-dependency-plugin</artifactId>
457 <version>3.0.0</version>
460 <id>copy-installed</id>
461 <phase>install</phase>
468 <groupId>${frontEndGroupdId}</groupId>
469 <artifactId>${frontEndArtifactId}</artifactId>
470 <version>${frontEndVersion}</version>
472 <outputDirectory>${basedir}/target/</outputDirectory>
473 <destFileName>aai.war</destFileName>
482 <groupId>org.jacoco</groupId>
483 <artifactId>jacoco-maven-plugin</artifactId>
484 <version>${version.jacoco.maven.plugin}</version>
487 <id>prepare-agent</id>
489 <goal>prepare-agent</goal>
494 <phase>package</phase>
500 <id>default-check</id>
505 <dataFile>${project.build.directory}/jacoco.exec</dataFile>
507 <!-- implementation is needed only for Maven 2 -->
508 <rule implementation="org.jacoco.maven.RuleConfiguration">
509 <element>BUNDLE</element>
511 <limit implementation="org.jacoco.report.check.Limit">
512 <counter>LINE</counter>
513 <value>COVEREDRATIO</value>
514 <minimum>${jacoco.line.coverage.limit}</minimum>
525 <groupId>org.codehaus.mojo</groupId>
526 <artifactId>cobertura-maven-plugin</artifactId>
535 <groupId>org.apache.maven.plugins</groupId>
536 <artifactId>maven-site-plugin</artifactId>
540 <groupId>org.apache.maven.plugins</groupId>
541 <artifactId>maven-checkstyle-plugin</artifactId>
542 <version>2.17</version>
546 <report>checkstyle</report>
556 <groupId>org.apache.maven.plugins</groupId>
557 <artifactId>maven-resources-plugin</artifactId>
558 <version>2.7</version>
561 <id>copy-docker-file</id>
562 <phase>package</phase>
564 <goal>copy-resources</goal>
567 <outputDirectory>target</outputDirectory>
568 <overwrite>true</overwrite>
571 <directory>${basedir}/src/main/docker</directory>
572 <filtering>true</filtering>
574 <include>**/*</include>
578 <directory>${basedir}/src/main/scripts/</directory>
587 <groupId>com.spotify</groupId>
588 <artifactId>docker-maven-plugin</artifactId>
589 <version>0.4.11</version>
591 <verbose>true</verbose>
592 <serverId>docker-hub</serverId>
593 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
594 <dockerDirectory>${docker.location}</dockerDirectory>
596 <imageTag>latest</imageTag>
598 <forceTags>true</forceTags>
601 <!-- license plugin -->
603 <groupId>com.mycila</groupId>
604 <artifactId>license-maven-plugin</artifactId>
605 <version>3.0</version>
607 <header>LICENSE</header>
609 <include>src/main/java/**</include>
617 <phase>process-sources</phase>
623 <groupId>org.apache.maven.plugins</groupId>
624 <artifactId>maven-deploy-plugin</artifactId>
625 <version>2.8.2</version>
631 <distributionManagement>
633 <id>ecomp-releases</id>
634 <name>ECOMP Release Repository</name>
635 <url>${onap.nexus.url}/content/repositories/releases/</url>
638 <id>ecomp-snapshots</id>
639 <name>ECOMP Snapshot Repository</name>
640 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
641 </snapshotRepository>
644 <url>dav:${onap.nexus.url}${sitePath}</url>
646 </distributionManagement>
651 <name>Maven 2 repository 2</name>
652 <url>http://repo2.maven.org/maven2/</url>
655 <id>ecomp-releases</id>
656 <name>ECOMP Release Repository</name>
657 <url>${onap.nexus.url}/content/repositories/releases/</url>
660 <id>ecomp-staging</id>
661 <name>ECOMP Staging Repository</name>
662 <url>${onap.nexus.url}/content/repositories/staging/</url>
665 <id>ecomp-snapshots</id>
666 <name>ECOMP Snapshot Repository</name>
667 <url>${onap.nexus.url}/content/repositories/snapshots/</url>