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.10.RELEASE</version>
10 <groupId>org.onap.aai.sparky-be</groupId>
11 <artifactId>sparkybe-onap-service</artifactId>
12 <version>1.2.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.1.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>
31 <dependencyManagement>
36 <groupId>org.apache.camel</groupId>
37 <artifactId>camel-spring-boot-dependencies</artifactId>
38 <version>${camel-spring-boot.version}</version>
43 </dependencyManagement>
47 some of the depedencies should probably have a scope of provided so they don't automatically become part of the final jar
53 <!-- Spring dependencies -->
55 <groupId>org.springframework.boot</groupId>
56 <artifactId>spring-boot-starter-web</artifactId>
60 <groupId>org.springframework.boot</groupId>
61 <artifactId>spring-boot-starter-actuator</artifactId>
65 <groupId>org.apache.camel</groupId>
66 <artifactId>camel-restlet</artifactId>
67 <version>${camel-spring-boot.version}</version>
70 <groupId>commons-logging</groupId>
71 <artifactId>commons-logging</artifactId>
77 <groupId>org.apache.camel</groupId>
78 <artifactId>camel-servlet</artifactId>
79 <version>${camel-spring-boot.version}</version>
82 <groupId>commons-logging</groupId>
83 <artifactId>commons-logging</artifactId>
90 <groupId>org.apache.camel</groupId>
91 <artifactId>camel-spring-boot-dependencies</artifactId>
92 <version>${camel-spring-boot.version}</version>
97 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
98 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
99 </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
104 <groupId>org.apache.camel</groupId>
105 <artifactId>camel-spring-boot-starter</artifactId>
108 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
110 <groupId>org.apache.camel</groupId>
111 <artifactId>camel-restlet</artifactId>
115 <groupId>commons-io</groupId>
116 <artifactId>commons-io</artifactId>
117 <version>2.4</version>
120 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
122 <groupId>org.eclipse.jetty</groupId>
123 <artifactId>jetty-util</artifactId>
124 <scope>provided</scope>
128 <groupId>org.apache.camel</groupId>
129 <artifactId>camel-servlet-starter</artifactId>
133 <groupId>org.springframework.boot</groupId>
134 <artifactId>spring-boot-starter-actuator</artifactId>
137 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
139 <groupId>commons-cli</groupId>
140 <artifactId>commons-cli</artifactId>
141 <version>1.2</version>
144 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
148 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
149 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
150 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
151 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
152 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
153 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
154 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
157 <!-- Utility dependencies -->
160 <groupId>com.google.guava</groupId>
161 <artifactId>guava</artifactId>
162 <version>19.0</version>
167 <groupId>org.onap.aai.logging-service</groupId>
168 <artifactId>common-logging</artifactId>
169 <version>1.2.0</version>
174 <groupId>dom4j</groupId>
175 <artifactId>dom4j</artifactId>
176 <scope>provided</scope>
180 <groupId>org.eclipse.persistence</groupId>
181 <artifactId>eclipselink</artifactId>
182 <version>2.6.2</version>
186 <groupId>org.slf4j</groupId>
187 <artifactId>slf4j-api</artifactId>
188 <scope>provided</scope>
192 <groupId>com.fasterxml.jackson.core</groupId>
193 <artifactId>jackson-core</artifactId>
194 <scope>provided</scope>
198 <groupId>org.onap.aai.aai-common</groupId>
199 <artifactId>aai-schema</artifactId>
200 <version>1.2.0</version>
204 <groupId>org.onap.aai</groupId>
205 <artifactId>rest-client</artifactId>
206 <version>1.2.0</version>
211 <groupId>commons-io</groupId>
212 <artifactId>commons-io</artifactId>
213 <version>2.4</version>
216 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
218 <groupId>org.restlet.jee</groupId>
219 <artifactId>org.restlet.ext.servlet</artifactId>
220 <version>2.1.1</version>
225 <groupId>com.openpojo</groupId>
226 <artifactId>openpojo</artifactId>
227 <version>0.8.6</version>
231 <groupId>com.google.code.gson</groupId>
232 <artifactId>gson</artifactId>
233 <scope>provided</scope>
238 <groupId>org.json</groupId>
239 <artifactId>json</artifactId>
240 <scope>provided</scope>
244 <groupId>com.fasterxml.jackson.core</groupId>
245 <artifactId>jackson-databind</artifactId>
246 <scope>provided</scope>
250 <groupId>org.onap.portal.sdk</groupId>
251 <artifactId>epsdk-fw</artifactId>
252 <version>1.3.0</version>
255 <groupId>commons-logging</groupId>
256 <artifactId>commons-logging</artifactId>
259 <groupId>log4j</groupId>
260 <artifactId>log4j</artifactId>
263 <groupId>log4j</groupId>
264 <artifactId>apache-log4j-extras</artifactId>
267 <groupId>org.slf4j</groupId>
268 <artifactId>slf4j-log4j12</artifactId>
273 <!-- Test dependencies -->
276 <groupId>org.mockito</groupId>
277 <artifactId>mockito-all</artifactId>
278 <version>1.10.19</version>
283 <groupId>org.powermock</groupId>
284 <artifactId>powermock-module-junit4</artifactId>
285 <version>1.6.2</version>
289 <groupId>org.powermock</groupId>
290 <artifactId>powermock-api-mockito</artifactId>
291 <version>1.6.2</version>
295 <groupId>org.powermock</groupId>
296 <artifactId>powermock-module-javaagent</artifactId>
297 <version>1.6.2</version>
301 <groupId>org.powermock</groupId>
302 <artifactId>powermock-module-junit4-rule-agent</artifactId>
303 <version>1.6.2</version>
308 <groupId>org.hamcrest</groupId>
309 <artifactId>hamcrest-library</artifactId>
322 <groupId>org.apache.maven.plugins</groupId>
323 <artifactId>maven-compiler-plugin</artifactId>
331 <groupId>org.apache.maven.plugins</groupId>
332 <artifactId>maven-resources-plugin</artifactId>
333 <version>2.7</version>
336 <id>copy-docker-file</id>
337 <phase>package</phase>
339 <goal>copy-resources</goal>
342 <outputDirectory>target</outputDirectory>
343 <overwrite>true</overwrite>
346 <directory>${basedir}/src/main/docker</directory>
347 <filtering>true</filtering>
349 <include>**/*</include>
353 <directory>${basedir}/src/main/scripts/</directory>
367 <groupId>org.springframework.boot</groupId>
368 <artifactId>spring-boot-maven-plugin</artifactId>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-resources-plugin</artifactId>
375 <version>2.7</version>
378 <id>copy-docker-file</id>
379 <phase>package</phase>
381 <goal>copy-resources</goal>
384 <outputDirectory>target</outputDirectory>
385 <overwrite>true</overwrite>
388 <directory>${basedir}/src/main/docker</directory>
389 <filtering>true</filtering>
391 <include>**/*</include>
395 <directory>${basedir}/src/main/bin/</directory>
404 <groupId>org.apache.maven.plugins</groupId>
405 <artifactId>maven-dependency-plugin</artifactId>
406 <version>3.0.0</version>
409 <id>copy-installed</id>
410 <phase>install</phase>
417 <groupId>${frontEndGroupdId}</groupId>
418 <artifactId>${frontEndArtifactId}</artifactId>
419 <version>${frontEndVersion}</version>
421 <outputDirectory>${basedir}/target/</outputDirectory>
422 <destFileName>aai.war</destFileName>
431 <groupId>org.jacoco</groupId>
432 <artifactId>jacoco-maven-plugin</artifactId>
433 <version>${version.jacoco.maven.plugin}</version>
436 <id>prepare-agent</id>
438 <goal>prepare-agent</goal>
443 <phase>package</phase>
452 <groupId>org.codehaus.mojo</groupId>
453 <artifactId>cobertura-maven-plugin</artifactId>
462 <groupId>org.apache.maven.plugins</groupId>
463 <artifactId>maven-site-plugin</artifactId>
464 <version>3.3</version>
468 <groupId>org.apache.maven.plugins</groupId>
469 <artifactId>maven-checkstyle-plugin</artifactId>
470 <version>2.17</version>
474 <report>checkstyle</report>
484 <groupId>org.apache.maven.plugins</groupId>
485 <artifactId>maven-resources-plugin</artifactId>
486 <version>2.7</version>
489 <id>copy-docker-file</id>
490 <phase>package</phase>
492 <goal>copy-resources</goal>
495 <outputDirectory>target</outputDirectory>
496 <overwrite>true</overwrite>
499 <directory>${basedir}/src/main/docker</directory>
500 <filtering>true</filtering>
502 <include>**/*</include>
506 <directory>${basedir}/src/main/scripts/</directory>
515 <groupId>com.spotify</groupId>
516 <artifactId>docker-maven-plugin</artifactId>
517 <version>0.4.11</version>
519 <verbose>true</verbose>
520 <serverId>docker-hub</serverId>
521 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
522 <dockerDirectory>${docker.location}</dockerDirectory>
524 <imageTag>latest</imageTag>
526 <forceTags>true</forceTags>
529 <!-- license plugin -->
531 <groupId>com.mycila</groupId>
532 <artifactId>license-maven-plugin</artifactId>
533 <version>3.0</version>
535 <header>LICENSE</header>
537 <include>src/main/java/**</include>
545 <phase>process-sources</phase>