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>2.0.5-SNAPSHOT</version>
11 <groupId>org.onap.aai.sparky-be</groupId>
12 <artifactId>sparkybe-onap-application</artifactId>
13 <version>2.0.5-SNAPSHOT</version>
14 <packaging>jar</packaging>
17 <java.version>11</java.version>
18 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
19 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
20 <frontEndVersion>2.0.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.13.2</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-starter</artifactId>
140 <groupId>commons-io</groupId>
141 <artifactId>commons-io</artifactId>
144 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
146 <groupId>org.eclipse.jetty</groupId>
147 <artifactId>jetty-util</artifactId>
148 <scope>provided</scope>
152 <groupId>org.apache.camel</groupId>
153 <artifactId>camel-servlet-starter</artifactId>
157 <groupId>org.onap.aai.sparky-be</groupId>
158 <artifactId>sparkybe-onap-service</artifactId>
159 <version>${project.version}</version>
163 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
165 <groupId>commons-cli</groupId>
166 <artifactId>commons-cli</artifactId>
167 <version>1.2</version>
170 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
174 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
175 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
176 <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
177 <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
178 <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
179 </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
180 <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
183 <!-- Utility dependencies -->
186 <groupId>com.google.guava</groupId>
187 <artifactId>guava</artifactId>
188 <version>26.0-jre</version>
192 <groupId>org.onap.aai.logging-service</groupId>
193 <artifactId>common-logging</artifactId>
194 <version>1.5.0</version>
198 <groupId>org.dom4j</groupId>
199 <artifactId>dom4j</artifactId>
200 <scope>provided</scope>
201 <version>2.1.1</version>
205 <groupId>org.eclipse.persistence</groupId>
206 <artifactId>eclipselink</artifactId>
207 <version>2.7.7</version>
211 <groupId>org.slf4j</groupId>
212 <artifactId>slf4j-api</artifactId>
213 <scope>provided</scope>
217 <groupId>com.fasterxml.jackson.core</groupId>
218 <artifactId>jackson-core</artifactId>
219 <scope>provided</scope>
223 <groupId>org.onap.aai.schema-service</groupId>
224 <artifactId>aai-schema</artifactId>
225 <version>${version.aai-schema}</version>
229 <groupId>org.onap.aai</groupId>
230 <artifactId>rest-client</artifactId>
231 <version>1.3.0</version>
234 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
236 <groupId>org.restlet.jee</groupId>
237 <artifactId>org.restlet.ext.servlet</artifactId>
238 <version>2.1.1</version>
243 <groupId>com.openpojo</groupId>
244 <artifactId>openpojo</artifactId>
245 <version>0.8.6</version>
249 <groupId>com.google.code.gson</groupId>
250 <artifactId>gson</artifactId>
251 <scope>provided</scope>
256 <groupId>org.json</groupId>
257 <artifactId>json</artifactId>
258 <scope>provided</scope>
262 <groupId>com.fasterxml.jackson.core</groupId>
263 <artifactId>jackson-databind</artifactId>
264 <scope>provided</scope>
268 <groupId>org.onap.portal.sdk</groupId>
269 <artifactId>epsdk-fw</artifactId>
272 <groupId>commons-logging</groupId>
273 <artifactId>commons-logging</artifactId>
276 <groupId>log4j</groupId>
277 <artifactId>log4j</artifactId>
280 <groupId>log4j</groupId>
281 <artifactId>apache-log4j-extras</artifactId>
284 <groupId>org.slf4j</groupId>
285 <artifactId>slf4j-log4j12</artifactId>
290 <!-- Test dependencies -->
293 <groupId>org.mockito</groupId>
294 <artifactId>mockito-all</artifactId>
295 <version>1.10.19</version>
300 <groupId>org.powermock</groupId>
301 <artifactId>powermock-module-junit4</artifactId>
302 <version>1.6.2</version>
306 <groupId>org.powermock</groupId>
307 <artifactId>powermock-api-mockito</artifactId>
308 <version>1.6.2</version>
312 <groupId>org.powermock</groupId>
313 <artifactId>powermock-module-javaagent</artifactId>
314 <version>1.6.2</version>
318 <groupId>org.powermock</groupId>
319 <artifactId>powermock-module-junit4-rule-agent</artifactId>
320 <version>1.6.2</version>
325 <groupId>org.hamcrest</groupId>
326 <artifactId>hamcrest-library</artifactId>
338 <groupId>org.codehaus.mojo</groupId>
339 <artifactId>build-helper-maven-plugin</artifactId>
340 <version>3.0.0</version>
343 <phase>pre-clean</phase>
344 <id>parse-version</id>
346 <goal>parse-version</goal>
352 <groupId>org.codehaus.groovy.maven</groupId>
353 <artifactId>gmaven-plugin</artifactId>
354 <version>1.0</version>
357 <phase>pre-clean</phase>
363 def userAaiBaseImage = session.userProperties['aai.base.image']
364 def userAaiCommonVersion = session.userProperties['aai.base.image.version']
365 if (userAaiCommonVersion != null) {
366 project.properties['aai.base.image.version'] = userAaiCommonVersion
368 if (userAaiBaseImage != null) {
369 project.properties['aai.base.image'] = userAaiBaseImage
371 log.info 'Base image flavour: ' + project.properties['aai.base.image']
372 log.info 'Base image version: ' + project.properties['aai.base.image.version']
379 <groupId>io.fabric8</groupId>
380 <artifactId>docker-maven-plugin</artifactId>
381 <version>${docker.fabric.version}</version>
383 <verbose>true</verbose>
384 <apiVersion>1.23</apiVersion>
387 <name>${docker.push.registry}/${aai.docker.namespace}/${docker.image.name}:%l
393 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
394 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
396 <cleanup>try</cleanup>
397 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
402 <directory>${aai.build.directory}</directory>
403 <outputDirectory>/${project.artifactId}</outputDirectory>
414 <id>clean-images</id>
415 <phase>pre-clean</phase>
420 <removeAll>true</removeAll>
424 <id>generate-images</id>
425 <phase>package</phase>
432 <phase>deploy</phase>
445 <finalName>${project.artifactId}</finalName>
448 <directory>${project.basedir}/src/main/resources</directory>
451 <directory>${project.basedir}/config/portal/BOOT-INF/classes</directory>
452 <filtering>true</filtering>
454 <include>*.properties</include>
461 <groupId>org.apache.maven.plugins</groupId>
462 <artifactId>maven-compiler-plugin</artifactId>
463 <version>3.8.0</version>
465 <release>11</release>
473 <groupId>org.springframework.boot</groupId>
474 <artifactId>spring-boot-maven-plugin</artifactId>
475 <version>${spring.boot.version}</version>
479 ${CONFIG_HOME}/portal/BOOT-INF/classes/
485 <phase>package</phase>
487 <goal>repackage</goal>
494 <artifactId>maven-assembly-plugin</artifactId>
497 <descriptor>src/main/assembly/descriptor.xml</descriptor>
502 <id>make-assembly</id>
503 <phase>package</phase>
512 <groupId>org.apache.maven.plugins</groupId>
513 <artifactId>maven-dependency-plugin</artifactId>
514 <version>3.0.0</version>
517 <id>copy-war-to-target</id>
518 <phase>prepare-package</phase>
525 <groupId>${frontEndGroupdId}</groupId>
526 <artifactId>${frontEndArtifactId}</artifactId>
527 <version>${frontEndVersion}</version>
529 <outputDirectory>${aai.build.directory}/static/services/aai/webapp/
537 <phase>prepare-package</phase>
544 <groupId>org.onap.aai.schema-service</groupId>
545 <artifactId>aai-schema</artifactId>
546 <version>${version.aai-schema}</version>
548 <includes>/${shemaUnpackVersion}/oxm/</includes>
549 <outputDirectory>${aai.build.directory}</outputDirectory>
558 <groupId>org.codehaus.mojo</groupId>
559 <artifactId>cobertura-maven-plugin</artifactId>
560 <version>2.7</version>
569 <groupId>org.apache.maven.plugins</groupId>
570 <artifactId>maven-site-plugin</artifactId>
574 <groupId>org.apache.maven.plugins</groupId>
575 <artifactId>maven-checkstyle-plugin</artifactId>
576 <version>2.17</version>
580 <report>checkstyle</report>
589 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId>
590 <version>2.7</version> <executions> <execution> <id>copy-docker-file</id>
591 <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration>
592 <outputDirectory>target</outputDirectory> <overwrite>true</overwrite> <resources>
593 <resource> <directory>${basedir}/src/main/docker</directory> <filtering>true</filtering>
594 <includes> <include>**/*</include> </includes> </resource> <resource> <directory>${basedir}/src/main/scripts/</directory>
595 </resource> </resources> </configuration> </execution> </executions> </plugin> -->
597 <groupId>org.apache.maven.plugins</groupId>
598 <artifactId>maven-deploy-plugin</artifactId>
600 <!-- license plugin -->
601 <!-- <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId>
602 <version>3.0</version> <configuration> <header>LICENSE</header> <includes>
603 <include>src/main/java/**</include> </includes> </configuration> <executions>
604 <execution> <goals> <goal>format</goal> </goals> <phase>process-sources</phase>
605 </execution> </executions> </plugin> -->
609 <distributionManagement>
611 <id>ecomp-releases</id>
612 <name>ECOMP Release Repository</name>
613 <url>${nexusproxy}/content/repositories/releases/</url>
616 <id>ecomp-snapshots</id>
617 <name>ECOMP Snapshot Repository</name>
618 <url>${nexusproxy}/content/repositories/snapshots/</url>
619 </snapshotRepository>
620 </distributionManagement>
625 <name>Maven 2 repository 2</name>
626 <url>http://repo2.maven.org/maven2/</url>
629 <id>ecomp-releases</id>
630 <name>ECOMP Release Repository</name>
631 <url>${nexusproxy}/content/repositories/releases/</url>
634 <id>ecomp-staging</id>
635 <name>ECOMP Staging Repository</name>
636 <url>${nexusproxy}/content/repositories/staging/</url>
639 <id>ecomp-snapshots</id>
640 <name>ECOMP Snapshot Repository</name>
641 <url>${nexusproxy}/content/repositories/snapshots/</url>