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 <version.jacoco.maven.plugin>0.7.9</version.jacoco.maven.plugin>
19 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
20 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
21 <frontEndVersion>1.5.0</frontEndVersion>
22 <serverPort>9517</serverPort>
23 <sslport>8000</sslport>
24 <nexusproxy>https://nexus.onap.org</nexusproxy>
25 <camel-spring-boot.version>2.21.1</camel-spring-boot.version>
26 <config-home>${basedir}/</config-home>
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 <nexusproxy>https://nexus.onap.org</nexusproxy>
30 <spring.boot.version>1.5.21.RELEASE</spring.boot.version>
31 <shemaUnpackVersion>onap</shemaUnpackVersion>
32 <!-- docker related properties -->
33 <docker.image.name>sparky-be</docker.image.name>
34 <docker.fabric.version>0.28.0</docker.fabric.version>
35 <aai.docker.version>1.0.0</aai.docker.version>
36 <aai.build.directory>${project.build.directory}/${project.artifactId}-build/
37 </aai.build.directory>
38 <aai.docker.namespace>onap</aai.docker.namespace>
39 <aai.base.image>alpine</aai.base.image>
40 <aai.base.image.version>1.6.0</aai.base.image.version>
41 <!-- This will be used for the docker images as the default format of maven build has issues -->
42 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
45 <dependencyManagement>
48 <groupId>org.springframework.boot</groupId>
49 <artifactId>spring-boot-starter-parent</artifactId>
50 <version>${spring.boot.version}</version>
56 <groupId>org.apache.camel</groupId>
57 <artifactId>camel-spring-boot-dependencies</artifactId>
58 <version>${camel-spring-boot.version}</version>
64 <groupId>ch.qos.logback</groupId>
65 <artifactId>logback-classic</artifactId>
66 <version>1.2.3</version>
71 </dependencyManagement>
75 <!-- Spring dependencies -->
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-starter-web</artifactId>
81 <groupId>org.springframework.boot</groupId>
82 <artifactId>spring-boot-starter-tomcat</artifactId>
88 <groupId>org.springframework.boot</groupId>
89 <artifactId>spring-boot-starter-jetty</artifactId>
93 <groupId>org.springframework.boot</groupId>
94 <artifactId>spring-boot-starter-actuator</artifactId>
98 <groupId>org.apache.camel</groupId>
99 <artifactId>camel-restlet</artifactId>
102 <groupId>commons-logging</groupId>
103 <artifactId>commons-logging</artifactId>
109 <groupId>org.springframework.boot</groupId>
110 <artifactId>spring-boot-starter-logging</artifactId>
113 <groupId>ch.qos.logback</groupId>
114 <artifactId>logback-classic</artifactId>
117 <groupId>org.slf4j</groupId>
118 <artifactId>log4j-over-slf4j</artifactId>
124 <groupId>org.apache.camel</groupId>
125 <artifactId>camel-servlet</artifactId>
128 <groupId>commons-logging</groupId>
129 <artifactId>commons-logging</artifactId>
136 <groupId>org.apache.camel</groupId>
137 <artifactId>camel-spring-boot-dependencies</artifactId>
138 <version>${camel-spring-boot.version}</version>
140 <scope>import</scope>
143 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
144 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
145 </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
150 <groupId>org.apache.camel</groupId>
151 <artifactId>camel-spring-boot-starter</artifactId>
154 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
156 <groupId>org.apache.camel</groupId>
157 <artifactId>camel-restlet</artifactId>
161 <groupId>commons-io</groupId>
162 <artifactId>commons-io</artifactId>
165 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
167 <groupId>org.eclipse.jetty</groupId>
168 <artifactId>jetty-util</artifactId>
169 <scope>provided</scope>
173 <groupId>org.apache.camel</groupId>
174 <artifactId>camel-servlet-starter</artifactId>
178 <groupId>org.springframework.boot</groupId>
179 <artifactId>spring-boot-starter-actuator</artifactId>
183 <groupId>org.onap.aai.sparky-be</groupId>
184 <artifactId>sparkybe-onap-service</artifactId>
185 <version>1.6.0-SNAPSHOT</version>
189 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
191 <groupId>commons-cli</groupId>
192 <artifactId>commons-cli</artifactId>
193 <version>1.2</version>
196 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
200 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
201 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
202 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
203 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
204 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
205 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
206 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
209 <!-- Utility dependencies -->
212 <groupId>com.google.guava</groupId>
213 <artifactId>guava</artifactId>
214 <version>26.0-jre</version>
218 <groupId>org.onap.aai.logging-service</groupId>
219 <artifactId>common-logging</artifactId>
220 <version>1.5.0</version>
224 <groupId>org.dom4j</groupId>
225 <artifactId>dom4j</artifactId>
226 <scope>provided</scope>
227 <version>2.1.1</version>
231 <groupId>org.eclipse.persistence</groupId>
232 <artifactId>eclipselink</artifactId>
233 <version>2.6.2</version>
237 <groupId>org.slf4j</groupId>
238 <artifactId>slf4j-api</artifactId>
239 <scope>provided</scope>
243 <groupId>com.fasterxml.jackson.core</groupId>
244 <artifactId>jackson-core</artifactId>
245 <scope>provided</scope>
249 <groupId>org.onap.aai.schema-service</groupId>
250 <artifactId>aai-schema</artifactId>
251 <version>${version.aai-schema}</version>
255 <groupId>org.onap.aai</groupId>
256 <artifactId>rest-client</artifactId>
257 <version>1.5.0</version>
260 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
262 <groupId>org.restlet.jee</groupId>
263 <artifactId>org.restlet.ext.servlet</artifactId>
264 <version>2.1.1</version>
269 <groupId>com.openpojo</groupId>
270 <artifactId>openpojo</artifactId>
271 <version>0.8.6</version>
275 <groupId>com.google.code.gson</groupId>
276 <artifactId>gson</artifactId>
277 <scope>provided</scope>
282 <groupId>org.json</groupId>
283 <artifactId>json</artifactId>
284 <scope>provided</scope>
288 <groupId>com.fasterxml.jackson.core</groupId>
289 <artifactId>jackson-databind</artifactId>
290 <scope>provided</scope>
294 <groupId>org.onap.portal.sdk</groupId>
295 <artifactId>epsdk-fw</artifactId>
296 <version>2.5.0</version>
299 <groupId>commons-logging</groupId>
300 <artifactId>commons-logging</artifactId>
303 <groupId>log4j</groupId>
304 <artifactId>log4j</artifactId>
307 <groupId>log4j</groupId>
308 <artifactId>apache-log4j-extras</artifactId>
311 <groupId>org.slf4j</groupId>
312 <artifactId>slf4j-log4j12</artifactId>
317 <!-- Test dependencies -->
320 <groupId>org.mockito</groupId>
321 <artifactId>mockito-all</artifactId>
322 <version>1.10.19</version>
327 <groupId>org.powermock</groupId>
328 <artifactId>powermock-module-junit4</artifactId>
329 <version>1.6.2</version>
333 <groupId>org.powermock</groupId>
334 <artifactId>powermock-api-mockito</artifactId>
335 <version>1.6.2</version>
339 <groupId>org.powermock</groupId>
340 <artifactId>powermock-module-javaagent</artifactId>
341 <version>1.6.2</version>
345 <groupId>org.powermock</groupId>
346 <artifactId>powermock-module-junit4-rule-agent</artifactId>
347 <version>1.6.2</version>
352 <groupId>org.hamcrest</groupId>
353 <artifactId>hamcrest-library</artifactId>
365 <groupId>org.codehaus.mojo</groupId>
366 <artifactId>build-helper-maven-plugin</artifactId>
367 <version>3.0.0</version>
370 <phase>pre-clean</phase>
371 <id>parse-version</id>
373 <goal>parse-version</goal>
379 <groupId>org.codehaus.groovy.maven</groupId>
380 <artifactId>gmaven-plugin</artifactId>
381 <version>1.0</version>
384 <phase>pre-clean</phase>
390 def userAaiBaseImage = session.userProperties['aai.base.image']
391 def userAaiCommonVersion = session.userProperties['aai.base.image.version']
392 if (userAaiCommonVersion != null) {
393 project.properties['aai.base.image.version'] = userAaiCommonVersion
395 if (userAaiBaseImage != null) {
396 project.properties['aai.base.image'] = userAaiBaseImage
398 log.info 'Base image flavour: ' + project.properties['aai.base.image']
399 log.info 'Base image version: ' + project.properties['aai.base.image.version']
406 <groupId>io.fabric8</groupId>
407 <artifactId>docker-maven-plugin</artifactId>
408 <version>${docker.fabric.version}</version>
410 <verbose>true</verbose>
411 <apiVersion>1.23</apiVersion>
414 <name>${docker.push.registry}/${aai.docker.namespace}/${docker.image.name}:%l
420 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
421 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
423 <cleanup>try</cleanup>
424 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
429 <directory>${aai.build.directory}</directory>
430 <outputDirectory>/${project.artifactId}</outputDirectory>
441 <id>clean-images</id>
442 <phase>pre-clean</phase>
447 <removeAll>true</removeAll>
451 <id>generate-images</id>
452 <phase>package</phase>
459 <phase>deploy</phase>
472 <finalName>${project.artifactId}</finalName>
475 <directory>${project.basedir}/src/main/resources</directory>
478 <directory>${project.basedir}/config/portal/BOOT-INF/classes</directory>
479 <filtering>true</filtering>
481 <include>*.properties</include>
488 <groupId>org.apache.maven.plugins</groupId>
489 <artifactId>maven-compiler-plugin</artifactId>
500 <groupId>org.springframework.boot</groupId>
501 <artifactId>spring-boot-maven-plugin</artifactId>
505 ${CONFIG_HOME}/portal/BOOT-INF/classes/
511 <phase>package</phase>
513 <goal>repackage</goal>
520 <artifactId>maven-assembly-plugin</artifactId>
523 <descriptor>src/main/assembly/descriptor.xml</descriptor>
528 <id>make-assembly</id>
529 <phase>package</phase>
538 <groupId>org.apache.maven.plugins</groupId>
539 <artifactId>maven-dependency-plugin</artifactId>
540 <version>3.0.0</version>
543 <id>copy-war-to-target</id>
544 <phase>prepare-package</phase>
551 <groupId>${frontEndGroupdId}</groupId>
552 <artifactId>${frontEndArtifactId}</artifactId>
553 <version>${frontEndVersion}</version>
555 <outputDirectory>${aai.build.directory}/static/services/aai/webapp/
563 <phase>prepare-package</phase>
570 <groupId>org.onap.aai.schema-service</groupId>
571 <artifactId>aai-schema</artifactId>
572 <version>${version.aai-schema}</version>
574 <includes>/${shemaUnpackVersion}/oxm/</includes>
575 <outputDirectory>${aai.build.directory}</outputDirectory>
584 <groupId>org.jacoco</groupId>
585 <artifactId>jacoco-maven-plugin</artifactId>
586 <version>${version.jacoco.maven.plugin}</version>
589 <id>prepare-agent</id>
591 <goal>prepare-agent</goal>
596 <phase>package</phase>
605 <groupId>org.codehaus.mojo</groupId>
606 <artifactId>cobertura-maven-plugin</artifactId>
615 <groupId>org.apache.maven.plugins</groupId>
616 <artifactId>maven-site-plugin</artifactId>
620 <groupId>org.apache.maven.plugins</groupId>
621 <artifactId>maven-checkstyle-plugin</artifactId>
622 <version>2.17</version>
626 <report>checkstyle</report>
635 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId>
636 <version>2.7</version> <executions> <execution> <id>copy-docker-file</id>
637 <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration>
638 <outputDirectory>target</outputDirectory> <overwrite>true</overwrite> <resources>
639 <resource> <directory>${basedir}/src/main/docker</directory> <filtering>true</filtering>
640 <includes> <include>**/*</include> </includes> </resource> <resource> <directory>${basedir}/src/main/scripts/</directory>
641 </resource> </resources> </configuration> </execution> </executions> </plugin> -->
643 <groupId>org.apache.maven.plugins</groupId>
644 <artifactId>maven-deploy-plugin</artifactId>
646 <!-- license plugin -->
647 <!-- <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId>
648 <version>3.0</version> <configuration> <header>LICENSE</header> <includes>
649 <include>src/main/java/**</include> </includes> </configuration> <executions>
650 <execution> <goals> <goal>format</goal> </goals> <phase>process-sources</phase>
651 </execution> </executions> </plugin> -->
655 <distributionManagement>
657 <id>ecomp-releases</id>
658 <name>ECOMP Release Repository</name>
659 <url>${nexusproxy}/content/repositories/releases/</url>
662 <id>ecomp-snapshots</id>
663 <name>ECOMP Snapshot Repository</name>
664 <url>${nexusproxy}/content/repositories/snapshots/</url>
665 </snapshotRepository>
666 </distributionManagement>
671 <name>Maven 2 repository 2</name>
672 <url>http://repo2.maven.org/maven2/</url>
675 <id>ecomp-releases</id>
676 <name>ECOMP Release Repository</name>
677 <url>${nexusproxy}/content/repositories/releases/</url>
680 <id>ecomp-staging</id>
681 <name>ECOMP Staging Repository</name>
682 <url>${nexusproxy}/content/repositories/staging/</url>
685 <id>ecomp-snapshots</id>
686 <name>ECOMP Snapshot Repository</name>
687 <url>${nexusproxy}/content/repositories/snapshots/</url>