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.6.1-SNAPSHOT</version>
11 <groupId>org.onap.aai.sparky-be</groupId>
12 <artifactId>sparkybe-onap-application</artifactId>
13 <version>1.6.1-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.0</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 <shemaUnpackVersion>onap</shemaUnpackVersion>
30 <!-- docker related properties -->
31 <docker.image.name>sparky-be</docker.image.name>
32 <docker.fabric.version>0.28.0</docker.fabric.version>
33 <aai.docker.version>1.0.0</aai.docker.version>
34 <aai.build.directory>${project.build.directory}/${project.artifactId}-build/
35 </aai.build.directory>
36 <aai.docker.namespace>onap</aai.docker.namespace>
37 <aai.base.image>alpine</aai.base.image>
38 <aai.base.image.version>1.6.0</aai.base.image.version>
39 <!-- This will be used for the docker images as the default format of maven build has issues -->
40 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
43 <dependencyManagement>
47 <groupId>org.apache.camel</groupId>
48 <artifactId>camel-spring-boot-dependencies</artifactId>
49 <version>${camel-spring-boot.version}</version>
55 <groupId>ch.qos.logback</groupId>
56 <artifactId>logback-classic</artifactId>
57 <version>1.2.3</version>
62 </dependencyManagement>
66 <!-- Spring dependencies -->
68 <groupId>org.springframework.boot</groupId>
69 <artifactId>spring-boot-starter-web</artifactId>
72 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-starter-tomcat</artifactId>
79 <groupId>org.springframework.boot</groupId>
80 <artifactId>spring-boot-starter-jetty</artifactId>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-starter-actuator</artifactId>
89 <groupId>org.apache.camel</groupId>
90 <artifactId>camel-restlet</artifactId>
93 <groupId>commons-logging</groupId>
94 <artifactId>commons-logging</artifactId>
100 <groupId>org.springframework.boot</groupId>
101 <artifactId>spring-boot-starter-logging</artifactId>
104 <groupId>ch.qos.logback</groupId>
105 <artifactId>logback-classic</artifactId>
108 <groupId>org.slf4j</groupId>
109 <artifactId>log4j-over-slf4j</artifactId>
115 <groupId>org.apache.camel</groupId>
116 <artifactId>camel-servlet</artifactId>
119 <groupId>commons-logging</groupId>
120 <artifactId>commons-logging</artifactId>
127 <groupId>org.apache.camel</groupId>
128 <artifactId>camel-spring-boot-dependencies</artifactId>
129 <version>${camel-spring-boot.version}</version>
131 <scope>import</scope>
134 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
135 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
136 </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
141 <groupId>org.apache.camel</groupId>
142 <artifactId>camel-spring-boot-starter</artifactId>
145 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
147 <groupId>org.apache.camel</groupId>
148 <artifactId>camel-restlet</artifactId>
152 <groupId>commons-io</groupId>
153 <artifactId>commons-io</artifactId>
156 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
158 <groupId>org.eclipse.jetty</groupId>
159 <artifactId>jetty-util</artifactId>
160 <scope>provided</scope>
164 <groupId>org.apache.camel</groupId>
165 <artifactId>camel-servlet-starter</artifactId>
169 <groupId>org.springframework.boot</groupId>
170 <artifactId>spring-boot-starter-actuator</artifactId>
174 <groupId>org.onap.aai.sparky-be</groupId>
175 <artifactId>sparkybe-onap-service</artifactId>
176 <version>1.6.0-SNAPSHOT</version>
180 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
182 <groupId>commons-cli</groupId>
183 <artifactId>commons-cli</artifactId>
184 <version>1.2</version>
187 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
191 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
192 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
193 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
194 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
195 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
196 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
197 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
200 <!-- Utility dependencies -->
203 <groupId>com.google.guava</groupId>
204 <artifactId>guava</artifactId>
205 <version>26.0-jre</version>
209 <groupId>org.onap.aai.logging-service</groupId>
210 <artifactId>common-logging</artifactId>
211 <version>1.5.0</version>
215 <groupId>org.dom4j</groupId>
216 <artifactId>dom4j</artifactId>
217 <scope>provided</scope>
218 <version>2.1.1</version>
222 <groupId>org.eclipse.persistence</groupId>
223 <artifactId>eclipselink</artifactId>
224 <version>2.6.2</version>
228 <groupId>org.slf4j</groupId>
229 <artifactId>slf4j-api</artifactId>
230 <scope>provided</scope>
234 <groupId>com.fasterxml.jackson.core</groupId>
235 <artifactId>jackson-core</artifactId>
236 <scope>provided</scope>
240 <groupId>org.onap.aai.schema-service</groupId>
241 <artifactId>aai-schema</artifactId>
242 <version>${version.aai-schema}</version>
246 <groupId>org.onap.aai</groupId>
247 <artifactId>rest-client</artifactId>
248 <version>1.5.0</version>
251 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
253 <groupId>org.restlet.jee</groupId>
254 <artifactId>org.restlet.ext.servlet</artifactId>
255 <version>2.1.1</version>
260 <groupId>com.openpojo</groupId>
261 <artifactId>openpojo</artifactId>
262 <version>0.8.6</version>
266 <groupId>com.google.code.gson</groupId>
267 <artifactId>gson</artifactId>
268 <scope>provided</scope>
273 <groupId>org.json</groupId>
274 <artifactId>json</artifactId>
275 <version>20190722</version>
279 <groupId>com.fasterxml.jackson.core</groupId>
280 <artifactId>jackson-databind</artifactId>
281 <version>2.10.2</version>
285 <groupId>org.onap.portal.sdk</groupId>
286 <artifactId>epsdk-fw</artifactId>
289 <groupId>commons-logging</groupId>
290 <artifactId>commons-logging</artifactId>
293 <groupId>log4j</groupId>
294 <artifactId>log4j</artifactId>
297 <groupId>log4j</groupId>
298 <artifactId>apache-log4j-extras</artifactId>
301 <groupId>org.slf4j</groupId>
302 <artifactId>slf4j-log4j12</artifactId>
307 <!-- Test dependencies -->
310 <groupId>org.mockito</groupId>
311 <artifactId>mockito-all</artifactId>
312 <version>1.10.19</version>
317 <groupId>org.powermock</groupId>
318 <artifactId>powermock-module-junit4</artifactId>
319 <version>1.6.2</version>
323 <groupId>org.powermock</groupId>
324 <artifactId>powermock-api-mockito</artifactId>
325 <version>1.6.2</version>
329 <groupId>org.powermock</groupId>
330 <artifactId>powermock-module-javaagent</artifactId>
331 <version>1.6.2</version>
335 <groupId>org.powermock</groupId>
336 <artifactId>powermock-module-junit4-rule-agent</artifactId>
337 <version>1.6.2</version>
342 <groupId>org.hamcrest</groupId>
343 <artifactId>hamcrest-library</artifactId>
354 <groupId>org.codehaus.mojo</groupId>
355 <artifactId>build-helper-maven-plugin</artifactId>
356 <version>3.0.0</version>
359 <phase>pre-clean</phase>
360 <id>parse-version</id>
362 <goal>parse-version</goal>
368 <groupId>org.codehaus.groovy.maven</groupId>
369 <artifactId>gmaven-plugin</artifactId>
370 <version>1.0</version>
373 <phase>pre-clean</phase>
379 def userAaiBaseImage = session.userProperties['aai.base.image']
380 def userAaiCommonVersion = session.userProperties['aai.base.image.version']
381 if (userAaiCommonVersion != null) {
382 project.properties['aai.base.image.version'] = userAaiCommonVersion
384 if (userAaiBaseImage != null) {
385 project.properties['aai.base.image'] = userAaiBaseImage
387 log.info 'Base image flavour: ' + project.properties['aai.base.image']
388 log.info 'Base image version: ' + project.properties['aai.base.image.version']
395 <groupId>io.fabric8</groupId>
396 <artifactId>docker-maven-plugin</artifactId>
397 <version>${docker.fabric.version}</version>
399 <verbose>true</verbose>
400 <apiVersion>1.23</apiVersion>
403 <name>${docker.push.registry}/${aai.docker.namespace}/${docker.image.name}:%l
409 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
410 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
412 <cleanup>try</cleanup>
413 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
418 <directory>${aai.build.directory}</directory>
419 <outputDirectory>/${project.artifactId}</outputDirectory>
430 <id>clean-images</id>
431 <phase>pre-clean</phase>
436 <removeAll>true</removeAll>
440 <id>generate-images</id>
441 <phase>package</phase>
448 <phase>deploy</phase>
461 <finalName>${project.artifactId}</finalName>
464 <directory>${project.basedir}/src/main/resources</directory>
467 <directory>${project.basedir}/config/portal/BOOT-INF/classes</directory>
468 <filtering>true</filtering>
470 <include>*.properties</include>
477 <groupId>org.apache.maven.plugins</groupId>
478 <artifactId>maven-compiler-plugin</artifactId>
489 <groupId>org.springframework.boot</groupId>
490 <artifactId>spring-boot-maven-plugin</artifactId>
494 ${CONFIG_HOME}/portal/BOOT-INF/classes/
500 <phase>package</phase>
502 <goal>repackage</goal>
509 <artifactId>maven-assembly-plugin</artifactId>
512 <descriptor>src/main/assembly/descriptor.xml</descriptor>
517 <id>make-assembly</id>
518 <phase>package</phase>
527 <groupId>org.apache.maven.plugins</groupId>
528 <artifactId>maven-dependency-plugin</artifactId>
529 <version>3.0.0</version>
532 <id>copy-war-to-target</id>
533 <phase>prepare-package</phase>
540 <groupId>${frontEndGroupdId}</groupId>
541 <artifactId>${frontEndArtifactId}</artifactId>
542 <version>${frontEndVersion}</version>
544 <outputDirectory>${aai.build.directory}/static/services/aai/webapp/
552 <phase>prepare-package</phase>
559 <groupId>org.onap.aai.schema-service</groupId>
560 <artifactId>aai-schema</artifactId>
561 <version>${version.aai-schema}</version>
563 <includes>/${shemaUnpackVersion}/oxm/</includes>
564 <outputDirectory>${aai.build.directory}</outputDirectory>
573 <groupId>org.codehaus.mojo</groupId>
574 <artifactId>cobertura-maven-plugin</artifactId>
583 <groupId>org.apache.maven.plugins</groupId>
584 <artifactId>maven-site-plugin</artifactId>
588 <groupId>org.apache.maven.plugins</groupId>
589 <artifactId>maven-checkstyle-plugin</artifactId>
590 <version>2.17</version>
594 <report>checkstyle</report>
603 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId>
604 <version>2.7</version> <executions> <execution> <id>copy-docker-file</id>
605 <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration>
606 <outputDirectory>target</outputDirectory> <overwrite>true</overwrite> <resources>
607 <resource> <directory>${basedir}/src/main/docker</directory> <filtering>true</filtering>
608 <includes> <include>**/*</include> </includes> </resource> <resource> <directory>${basedir}/src/main/scripts/</directory>
609 </resource> </resources> </configuration> </execution> </executions> </plugin> -->
611 <groupId>org.apache.maven.plugins</groupId>
612 <artifactId>maven-deploy-plugin</artifactId>
614 <!-- license plugin -->
615 <!-- <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId>
616 <version>3.0</version> <configuration> <header>LICENSE</header> <includes>
617 <include>src/main/java/**</include> </includes> </configuration> <executions>
618 <execution> <goals> <goal>format</goal> </goals> <phase>process-sources</phase>
619 </execution> </executions> </plugin> -->
623 <distributionManagement>
625 <id>ecomp-releases</id>
626 <name>ECOMP Release Repository</name>
627 <url>${nexusproxy}/content/repositories/releases/</url>
630 <id>ecomp-snapshots</id>
631 <name>ECOMP Snapshot Repository</name>
632 <url>${nexusproxy}/content/repositories/snapshots/</url>
633 </snapshotRepository>
634 </distributionManagement>
639 <name>Maven 2 repository 2</name>
640 <url>http://repo2.maven.org/maven2/</url>
643 <id>ecomp-releases</id>
644 <name>ECOMP Release Repository</name>
645 <url>${nexusproxy}/content/repositories/releases/</url>
648 <id>ecomp-staging</id>
649 <name>ECOMP Staging Repository</name>
650 <url>${nexusproxy}/content/repositories/staging/</url>
653 <id>ecomp-snapshots</id>
654 <name>ECOMP Snapshot Repository</name>
655 <url>${nexusproxy}/content/repositories/snapshots/</url>