1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.aai</groupId>
7 <artifactId>sparky-be</artifactId>
8 <version>1.7.0-SNAPSHOT</version>
11 <groupId>org.onap.aai.sparky-be</groupId>
12 <artifactId>sparkybe-onap-application</artifactId>
13 <version>1.7.0-SNAPSHOT</version>
14 <packaging>jar</packaging>
17 <java.version>1.8</java.version>
18 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
19 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
20 <frontEndVersion>1.5.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-schema>1.6.6</version.aai-schema>
27 <sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
28 <nexusproxy>https://nexus.onap.org</nexusproxy>
29 <spring.boot.version>1.5.21.RELEASE</spring.boot.version>
30 <shemaUnpackVersion>onap</shemaUnpackVersion>
31 <!-- docker related properties -->
32 <docker.image.name>sparky-be</docker.image.name>
33 <docker.fabric.version>0.28.0</docker.fabric.version>
34 <aai.docker.version>1.0.0</aai.docker.version>
35 <aai.build.directory>${project.build.directory}/${project.artifactId}-build/
36 </aai.build.directory>
37 <aai.docker.namespace>onap</aai.docker.namespace>
38 <aai.base.image>alpine</aai.base.image>
39 <aai.base.image.version>1.6.0</aai.base.image.version>
40 <!-- This will be used for the docker images as the default format of maven build has issues -->
41 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
44 <dependencyManagement>
47 <groupId>org.springframework.boot</groupId>
48 <artifactId>spring-boot-starter-parent</artifactId>
49 <version>${spring.boot.version}</version>
55 <groupId>org.apache.camel</groupId>
56 <artifactId>camel-spring-boot-dependencies</artifactId>
57 <version>${camel-spring-boot.version}</version>
63 <groupId>ch.qos.logback</groupId>
64 <artifactId>logback-classic</artifactId>
65 <version>1.2.3</version>
70 </dependencyManagement>
74 <!-- Spring dependencies -->
76 <groupId>org.springframework.boot</groupId>
77 <artifactId>spring-boot-starter-web</artifactId>
80 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-tomcat</artifactId>
87 <groupId>org.springframework.boot</groupId>
88 <artifactId>spring-boot-starter-jetty</artifactId>
92 <groupId>org.springframework.boot</groupId>
93 <artifactId>spring-boot-starter-actuator</artifactId>
97 <groupId>org.apache.camel</groupId>
98 <artifactId>camel-restlet</artifactId>
101 <groupId>commons-logging</groupId>
102 <artifactId>commons-logging</artifactId>
108 <groupId>org.springframework.boot</groupId>
109 <artifactId>spring-boot-starter-logging</artifactId>
112 <groupId>ch.qos.logback</groupId>
113 <artifactId>logback-classic</artifactId>
116 <groupId>org.slf4j</groupId>
117 <artifactId>log4j-over-slf4j</artifactId>
123 <groupId>org.apache.camel</groupId>
124 <artifactId>camel-servlet</artifactId>
127 <groupId>commons-logging</groupId>
128 <artifactId>commons-logging</artifactId>
135 <groupId>org.apache.camel</groupId>
136 <artifactId>camel-spring-boot-dependencies</artifactId>
137 <version>${camel-spring-boot.version}</version>
139 <scope>import</scope>
142 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
143 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
144 </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
149 <groupId>org.apache.camel</groupId>
150 <artifactId>camel-spring-boot-starter</artifactId>
153 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
155 <groupId>org.apache.camel</groupId>
156 <artifactId>camel-restlet</artifactId>
160 <groupId>commons-io</groupId>
161 <artifactId>commons-io</artifactId>
164 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
166 <groupId>org.eclipse.jetty</groupId>
167 <artifactId>jetty-util</artifactId>
168 <scope>provided</scope>
172 <groupId>org.apache.camel</groupId>
173 <artifactId>camel-servlet-starter</artifactId>
177 <groupId>org.springframework.boot</groupId>
178 <artifactId>spring-boot-starter-actuator</artifactId>
182 <groupId>org.onap.aai.sparky-be</groupId>
183 <artifactId>sparkybe-onap-service</artifactId>
184 <version>1.7.0-SNAPSHOT</version>
188 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
190 <groupId>commons-cli</groupId>
191 <artifactId>commons-cli</artifactId>
192 <version>1.2</version>
195 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
199 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
200 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
201 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
202 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
203 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
204 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
205 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
208 <!-- Utility dependencies -->
211 <groupId>com.google.guava</groupId>
212 <artifactId>guava</artifactId>
213 <version>26.0-jre</version>
217 <groupId>org.onap.aai.logging-service</groupId>
218 <artifactId>common-logging</artifactId>
219 <version>1.5.0</version>
223 <groupId>org.dom4j</groupId>
224 <artifactId>dom4j</artifactId>
225 <scope>provided</scope>
226 <version>2.1.1</version>
230 <groupId>org.eclipse.persistence</groupId>
231 <artifactId>eclipselink</artifactId>
232 <version>2.6.2</version>
236 <groupId>org.slf4j</groupId>
237 <artifactId>slf4j-api</artifactId>
238 <scope>provided</scope>
242 <groupId>com.fasterxml.jackson.core</groupId>
243 <artifactId>jackson-core</artifactId>
244 <scope>provided</scope>
248 <groupId>org.onap.aai.schema-service</groupId>
249 <artifactId>aai-schema</artifactId>
250 <version>${version.aai-schema}</version>
254 <groupId>org.onap.aai</groupId>
255 <artifactId>rest-client</artifactId>
256 <version>1.5.0</version>
259 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
261 <groupId>org.restlet.jee</groupId>
262 <artifactId>org.restlet.ext.servlet</artifactId>
263 <version>2.1.1</version>
268 <groupId>com.openpojo</groupId>
269 <artifactId>openpojo</artifactId>
270 <version>0.8.6</version>
274 <groupId>com.google.code.gson</groupId>
275 <artifactId>gson</artifactId>
276 <scope>provided</scope>
281 <groupId>org.json</groupId>
282 <artifactId>json</artifactId>
283 <scope>provided</scope>
287 <groupId>com.fasterxml.jackson.core</groupId>
288 <artifactId>jackson-databind</artifactId>
289 <scope>provided</scope>
293 <groupId>org.onap.portal.sdk</groupId>
294 <artifactId>epsdk-fw</artifactId>
297 <groupId>commons-logging</groupId>
298 <artifactId>commons-logging</artifactId>
301 <groupId>log4j</groupId>
302 <artifactId>log4j</artifactId>
305 <groupId>log4j</groupId>
306 <artifactId>apache-log4j-extras</artifactId>
309 <groupId>org.slf4j</groupId>
310 <artifactId>slf4j-log4j12</artifactId>
315 <!-- Test dependencies -->
318 <groupId>org.mockito</groupId>
319 <artifactId>mockito-all</artifactId>
320 <version>1.10.19</version>
325 <groupId>org.powermock</groupId>
326 <artifactId>powermock-module-junit4</artifactId>
327 <version>1.6.2</version>
331 <groupId>org.powermock</groupId>
332 <artifactId>powermock-api-mockito</artifactId>
333 <version>1.6.2</version>
337 <groupId>org.powermock</groupId>
338 <artifactId>powermock-module-javaagent</artifactId>
339 <version>1.6.2</version>
343 <groupId>org.powermock</groupId>
344 <artifactId>powermock-module-junit4-rule-agent</artifactId>
345 <version>1.6.2</version>
350 <groupId>org.hamcrest</groupId>
351 <artifactId>hamcrest-library</artifactId>
363 <groupId>org.codehaus.mojo</groupId>
364 <artifactId>build-helper-maven-plugin</artifactId>
365 <version>3.0.0</version>
368 <phase>pre-clean</phase>
369 <id>parse-version</id>
371 <goal>parse-version</goal>
377 <groupId>org.codehaus.groovy.maven</groupId>
378 <artifactId>gmaven-plugin</artifactId>
379 <version>1.0</version>
382 <phase>pre-clean</phase>
388 def userAaiBaseImage = session.userProperties['aai.base.image']
389 def userAaiCommonVersion = session.userProperties['aai.base.image.version']
390 if (userAaiCommonVersion != null) {
391 project.properties['aai.base.image.version'] = userAaiCommonVersion
393 if (userAaiBaseImage != null) {
394 project.properties['aai.base.image'] = userAaiBaseImage
396 log.info 'Base image flavour: ' + project.properties['aai.base.image']
397 log.info 'Base image version: ' + project.properties['aai.base.image.version']
404 <groupId>io.fabric8</groupId>
405 <artifactId>docker-maven-plugin</artifactId>
406 <version>${docker.fabric.version}</version>
408 <verbose>true</verbose>
409 <apiVersion>1.23</apiVersion>
412 <name>${docker.push.registry}/${aai.docker.namespace}/${docker.image.name}:%l
418 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
419 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
421 <cleanup>try</cleanup>
422 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
427 <directory>${aai.build.directory}</directory>
428 <outputDirectory>/${project.artifactId}</outputDirectory>
439 <id>clean-images</id>
440 <phase>pre-clean</phase>
445 <removeAll>true</removeAll>
449 <id>generate-images</id>
450 <phase>package</phase>
457 <phase>deploy</phase>
470 <finalName>${project.artifactId}</finalName>
473 <directory>${project.basedir}/src/main/resources</directory>
476 <directory>${project.basedir}/config/portal/BOOT-INF/classes</directory>
477 <filtering>true</filtering>
479 <include>*.properties</include>
486 <groupId>org.apache.maven.plugins</groupId>
487 <artifactId>maven-compiler-plugin</artifactId>
498 <groupId>org.springframework.boot</groupId>
499 <artifactId>spring-boot-maven-plugin</artifactId>
503 ${CONFIG_HOME}/portal/BOOT-INF/classes/
509 <phase>package</phase>
511 <goal>repackage</goal>
518 <artifactId>maven-assembly-plugin</artifactId>
521 <descriptor>src/main/assembly/descriptor.xml</descriptor>
526 <id>make-assembly</id>
527 <phase>package</phase>
536 <groupId>org.apache.maven.plugins</groupId>
537 <artifactId>maven-dependency-plugin</artifactId>
538 <version>3.0.0</version>
541 <id>copy-war-to-target</id>
542 <phase>prepare-package</phase>
549 <groupId>${frontEndGroupdId}</groupId>
550 <artifactId>${frontEndArtifactId}</artifactId>
551 <version>${frontEndVersion}</version>
553 <outputDirectory>${aai.build.directory}/static/services/aai/webapp/
561 <phase>prepare-package</phase>
568 <groupId>org.onap.aai.schema-service</groupId>
569 <artifactId>aai-schema</artifactId>
570 <version>${version.aai-schema}</version>
572 <includes>/${shemaUnpackVersion}/oxm/</includes>
573 <outputDirectory>${aai.build.directory}</outputDirectory>
582 <groupId>org.codehaus.mojo</groupId>
583 <artifactId>cobertura-maven-plugin</artifactId>
592 <groupId>org.apache.maven.plugins</groupId>
593 <artifactId>maven-site-plugin</artifactId>
597 <groupId>org.apache.maven.plugins</groupId>
598 <artifactId>maven-checkstyle-plugin</artifactId>
599 <version>2.17</version>
603 <report>checkstyle</report>
612 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId>
613 <version>2.7</version> <executions> <execution> <id>copy-docker-file</id>
614 <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration>
615 <outputDirectory>target</outputDirectory> <overwrite>true</overwrite> <resources>
616 <resource> <directory>${basedir}/src/main/docker</directory> <filtering>true</filtering>
617 <includes> <include>**/*</include> </includes> </resource> <resource> <directory>${basedir}/src/main/scripts/</directory>
618 </resource> </resources> </configuration> </execution> </executions> </plugin> -->
620 <groupId>org.apache.maven.plugins</groupId>
621 <artifactId>maven-deploy-plugin</artifactId>
623 <!-- license plugin -->
624 <!-- <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId>
625 <version>3.0</version> <configuration> <header>LICENSE</header> <includes>
626 <include>src/main/java/**</include> </includes> </configuration> <executions>
627 <execution> <goals> <goal>format</goal> </goals> <phase>process-sources</phase>
628 </execution> </executions> </plugin> -->
632 <distributionManagement>
634 <id>ecomp-releases</id>
635 <name>ECOMP Release Repository</name>
636 <url>${nexusproxy}/content/repositories/releases/</url>
639 <id>ecomp-snapshots</id>
640 <name>ECOMP Snapshot Repository</name>
641 <url>${nexusproxy}/content/repositories/snapshots/</url>
642 </snapshotRepository>
643 </distributionManagement>
648 <name>Maven 2 repository 2</name>
649 <url>http://repo2.maven.org/maven2/</url>
652 <id>ecomp-releases</id>
653 <name>ECOMP Release Repository</name>
654 <url>${nexusproxy}/content/repositories/releases/</url>
657 <id>ecomp-staging</id>
658 <name>ECOMP Staging Repository</name>
659 <url>${nexusproxy}/content/repositories/staging/</url>
662 <id>ecomp-snapshots</id>
663 <name>ECOMP Snapshot Repository</name>
664 <url>${nexusproxy}/content/repositories/snapshots/</url>