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 <artifactId>ajsc-archetype-parent</artifactId>
7 <groupId>com.att.ajsc</groupId>
8 <version>2.0.0</version>
10 <groupId>org.onap.aai.sparky-be</groupId>
11 <artifactId>sparky-be</artifactId>
12 <version>1.2.0-SNAPSHOT</version>
13 <name>aai-sparky-be</name>
16 <docker.location>${basedir}/target</docker.location>
17 <module.ajsc.namespace.name>inventory-ui-service</module.ajsc.namespace.name>
18 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
19 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
20 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
21 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
22 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
23 <frontEndVersion>1.1.0-SNAPSHOT</frontEndVersion>
25 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
26 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
27 version, THIS will be used as your directory structure. If you do NOT want
28 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
30 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
31 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
33 <!-- For SOA Cloud Installation -->
34 <installOwnerUser>aaiadmin</installOwnerUser>
35 <installOwnerGroup>aaiadmin</installOwnerGroup>
36 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
38 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
39 For local testing, you may choose to hardcode this value to something like
41 <serverPort>9517</serverPort>
42 <sslport>8000</sslport>
44 <testRouteOffer>workstation</testRouteOffer>
45 <testEnv>DEV</testEnv>
46 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
47 <nexusproxy>https://nexus.onap.org</nexusproxy>
49 <!-- Sonar Configuration -->
50 <sonar.language>java</sonar.language>
51 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
52 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
53 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
54 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
55 <sonar.projectVersion>${project.version}</sonar.projectVersion>
60 <groupId>org.mockito</groupId>
61 <artifactId>mockito-all</artifactId>
62 <version>1.10.19</version>
66 <groupId>org.powermock</groupId>
67 <artifactId>powermock-module-junit4</artifactId>
68 <version>1.6.2</version>
72 <groupId>org.powermock</groupId>
73 <artifactId>powermock-api-mockito</artifactId>
74 <version>1.6.2</version>
78 <groupId>org.powermock</groupId>
79 <artifactId>powermock-module-javaagent</artifactId>
80 <version>1.6.2</version>
84 <groupId>org.powermock</groupId>
85 <artifactId>powermock-module-junit4-rule-agent</artifactId>
86 <version>1.6.2</version>
92 <groupId>dom4j</groupId>
93 <artifactId>dom4j</artifactId>
94 <version>1.6.1</version>
95 <scope>provided</scope>
98 <groupId>com.att.aft</groupId>
99 <artifactId>dme2</artifactId>
100 <version>3.1.200</version>
101 <scope>provided</scope>
105 <groupId>org.slf4j</groupId>
106 <artifactId>slf4j-api</artifactId>
107 <version>1.7.20</version>
111 <groupId>org.hamcrest</groupId>
112 <artifactId>hamcrest-library</artifactId>
113 <version>1.3</version>
118 <groupId>org.eclipse.persistence</groupId>
119 <artifactId>eclipselink</artifactId>
120 <version>2.6.2</version>
124 <groupId>com.fasterxml.jackson.core</groupId>
125 <artifactId>jackson-core</artifactId>
126 <version>2.7.4</version>
130 <groupId>org.json</groupId>
131 <artifactId>json</artifactId>
132 <version>20131018</version>
136 <groupId>com.fasterxml.jackson.core</groupId>
137 <artifactId>jackson-databind</artifactId>
138 <version>2.7.4</version>
142 <groupId>org.onap.aai.logging-service</groupId>
143 <artifactId>common-logging</artifactId>
144 <version>1.2.0</version>
148 <groupId>org.onap.aai.aai-common</groupId>
149 <artifactId>aai-schema</artifactId>
150 <version>1.2.0</version>
154 <groupId>org.onap.aai</groupId>
155 <artifactId>rest-client</artifactId>
156 <version>1.2.0</version>
160 <groupId>com.google.code.gson</groupId>
161 <artifactId>gson</artifactId>
162 <version>2.6.2</version>
166 <groupId>ch.qos.logback</groupId>
167 <artifactId>logback-classic</artifactId>
168 <version>1.1.7</version>
172 <groupId>ch.qos.logback</groupId>
173 <artifactId>logback-core</artifactId>
174 <version>1.1.7</version>
178 <groupId>commons-io</groupId>
179 <artifactId>commons-io</artifactId>
180 <version>2.4</version>
184 <groupId>log4j</groupId>
185 <artifactId>log4j</artifactId>
186 <version>1.2.17</version>
190 <groupId>com.openpojo</groupId>
191 <artifactId>openpojo</artifactId>
192 <version>0.8.6</version>
196 <groupId>org.onap.portal.sdk</groupId>
197 <artifactId>epsdk-fw</artifactId>
198 <version>1.3.0 </version>
201 <groupId>commons-logging</groupId>
202 <artifactId>commons-logging</artifactId>
205 <groupId>log4j</groupId>
206 <artifactId>log4j</artifactId>
209 <groupId>log4j</groupId>
210 <artifactId>apache-log4j-extras</artifactId>
213 <groupId>org.slf4j</groupId>
214 <artifactId>slf4j-log4j12</artifactId>
225 <defaultGoal>initialize</defaultGoal>
229 <groupId>org.codehaus.mojo</groupId>
230 <artifactId>exec-maven-plugin</artifactId>
231 <version>1.3.2</version>
234 <phase>initialize</phase>
239 <includeProjectDependencies>false</includeProjectDependencies>
240 <includePluginDependencies>true</includePluginDependencies>
241 <executable>java</executable>
242 <mainClass>com.att.ajsc.runner.Runner</mainClass>
243 <executableDependency>
244 <groupId>com.att.ajsc</groupId>
245 <artifactId>ajsc-runner</artifactId>
246 </executableDependency>
247 <additionalClasspathElements>
248 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
249 </additionalClasspathElements>
251 <environmentVariables>
252 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
253 </environmentVariables>
255 <!-- Main AJSC System Properties below (necessary for proper startup) -->
259 <value>${runAjscHome}</value>
262 <key>CONFIG_HOME</key>
263 <value>${basedir}/appconfig-local/</value>
266 <key>AJSC_CONF_HOME</key>
267 <value>${basedir}/bundleconfig-local</value>
270 <key>logback.configurationFile</key>
271 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
274 <key>AJSC_SHARED_CONFIG</key>
275 <value>${basedir}/ajsc-shared-config</value>
279 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
280 <value>${basedir}/target/commonLibs</value>
283 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
284 <value>${basedir}/ajsc-shared-config/etc</value>
288 <key>AJSC_SERVICE_NAMESPACE</key>
289 <value>${module.ajsc.namespace.name}</value>
292 <key>AJSC_SERVICE_VERSION</key>
293 <value>${module.ajsc.namespace.version}</value>
296 <key>SOACLOUD_SERVICE_VERSION</key>
297 <value>${project.version}</value>
300 <key>server.port</key>
301 <value>${serverPort}</value>
305 <!-- Command Line Arguments to add to the java command. Here, you
306 can specify the port as well as the Context you want your service to run
307 in. Use context=/ to run in an unnamed Context (Root Context). The default
308 configuration of the AJSC is to run under the / Context. Setting the port
309 here can aid during the development phase of your service. However, you can
310 leave this argument out entirely, and the AJSC will default to using an Ephemeral
313 <argument>context=/</argument>
314 <argument>port=${serverPort}</argument>
315 <argument>sslport=${sslport}</argument>
321 <executable>java</executable>
325 <groupId>com.att.ajsc</groupId>
326 <artifactId>ajsc-runner</artifactId>
327 <version>${ajscRuntimeVersion}</version>
339 <!-- purposely disable cobertura from parent pom as it is very broken
340 Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
343 <groupId>org.codehaus.mojo</groupId>
344 <artifactId>cobertura-maven-plugin</artifactId>
345 <version>2.7</version>
352 <!--This plugin's configuration is used to store Eclipse m2e settings
353 only. It has no influence on the Maven build itself. -->
355 <groupId>org.eclipse.m2e</groupId>
356 <artifactId>lifecycle-mapping</artifactId>
357 <version>1.0.0</version>
359 <lifecycleMappingMetadata>
362 <pluginExecutionFilter>
367 properties-maven-plugin
374 write-project-properties
377 </pluginExecutionFilter>
383 </lifecycleMappingMetadata>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-dependency-plugin</artifactId>
390 <version>3.0.0</version>
393 <id>copy-installed</id>
394 <phase>install</phase>
401 <groupId>${frontEndGroupdId}</groupId>
402 <artifactId>${frontEndArtifactId}</artifactId>
403 <version>${frontEndVersion}</version>
405 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
406 <destFileName>aai.war</destFileName>
415 <groupId>org.apache.maven.plugins</groupId>
416 <artifactId>maven-compiler-plugin</artifactId>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-resources-plugin</artifactId>
427 <version>2.7</version>
430 <id>copy-docker-file</id>
431 <phase>package</phase>
433 <goal>copy-resources</goal>
436 <outputDirectory>target</outputDirectory>
437 <overwrite>true</overwrite>
440 <directory>${basedir}/src/main/docker</directory>
441 <filtering>true</filtering>
443 <include>**/*</include>
447 <directory>${basedir}/src/main/scripts/</directory>
461 <groupId>org.apache.maven.plugins</groupId>
462 <artifactId>maven-site-plugin</artifactId>
463 <version>3.3</version>
467 <groupId>org.apache.maven.plugins</groupId>
468 <artifactId>maven-checkstyle-plugin</artifactId>
469 <version>2.17</version>
473 <report>checkstyle</report>
482 <groupId>org.apache.maven.plugins</groupId>
483 <artifactId>maven-resources-plugin</artifactId>
484 <version>2.7</version>
487 <id>copy-docker-file</id>
488 <phase>package</phase>
490 <goal>copy-resources</goal>
493 <outputDirectory>target</outputDirectory>
494 <overwrite>true</overwrite>
497 <directory>${basedir}/src/main/docker</directory>
498 <filtering>true</filtering>
500 <include>**/*</include>
504 <directory>${basedir}/src/main/scripts/</directory>
512 <groupId>com.spotify</groupId>
513 <artifactId>docker-maven-plugin</artifactId>
514 <version>0.4.11</version>
516 <verbose>true</verbose>
517 <serverId>docker-hub</serverId>
518 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
519 <dockerDirectory>${docker.location}</dockerDirectory>
521 <imageTag>latest</imageTag>
523 <forceTags>true</forceTags>
526 <!-- license plugin -->
528 <groupId>com.mycila</groupId>
529 <artifactId>license-maven-plugin</artifactId>
530 <version>3.0</version>
532 <header>LICENSE</header>
534 <include>src/main/java/**</include>
542 <phase>process-sources</phase>
547 <groupId>org.sonatype.plugins</groupId>
548 <artifactId>nexus-staging-maven-plugin</artifactId>
549 <version>1.6.7</version>
550 <extensions>true</extensions>
552 <nexusUrl>${nexusproxy}</nexusUrl>
553 <stagingProfileId>176c31dfe190a</stagingProfileId>
554 <serverId>ecomp-staging</serverId>
558 <groupId>org.apache.maven.plugins</groupId>
559 <artifactId>maven-deploy-plugin</artifactId>
565 <groupId>org.codehaus.mojo</groupId>
566 <artifactId>sonar-maven-plugin</artifactId>
567 <version>3.2</version>
570 <groupId>org.jacoco</groupId>
571 <artifactId>jacoco-maven-plugin</artifactId>
572 <version>0.7.7.201606060606</version>
574 <dumpOnExit>true</dumpOnExit>
578 <id>jacoco-initialize-unit-tests</id>
580 <goal>prepare-agent</goal>
583 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
584 <!-- <append>true</append> -->
592 <distributionManagement>
594 <id>ecomp-releases</id>
595 <name>ECOMP Release Repository</name>
596 <url>${nexusproxy}/content/repositories/releases/</url>
599 <id>ecomp-snapshots</id>
600 <name>ECOMP Snapshot Repository</name>
601 <url>${nexusproxy}/content/repositories/snapshots/</url>
602 </snapshotRepository>
603 </distributionManagement>