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.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>
22 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
23 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
24 version, THIS will be used as your directory structure. If you do NOT want
25 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
27 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
28 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
30 <!-- For SOA Cloud Installation -->
31 <installOwnerUser>aaiadmin</installOwnerUser>
32 <installOwnerGroup>aaiadmin</installOwnerGroup>
33 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
35 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
36 For local testing, you may choose to hardcode this value to something like
38 <serverPort>9517</serverPort>
39 <sslport>8000</sslport>
41 <testRouteOffer>workstation</testRouteOffer>
42 <testEnv>DEV</testEnv>
43 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
44 <nexusproxy>https://nexus.onap.org</nexusproxy>
46 <!-- Sonar Configuration -->
47 <sonar.language>java</sonar.language>
48 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
49 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
50 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
51 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
52 <sonar.projectVersion>${project.version}</sonar.projectVersion>
58 <groupId>org.mockito</groupId>
59 <artifactId>mockito-all</artifactId>
60 <version>1.10.19</version>
64 <groupId>org.powermock</groupId>
65 <artifactId>powermock-module-junit4</artifactId>
66 <version>1.6.2</version>
70 <groupId>org.powermock</groupId>
71 <artifactId>powermock-api-mockito</artifactId>
72 <version>1.6.2</version>
76 <groupId>org.powermock</groupId>
77 <artifactId>powermock-module-javaagent</artifactId>
78 <version>1.6.2</version>
82 <groupId>org.powermock</groupId>
83 <artifactId>powermock-module-junit4-rule-agent</artifactId>
84 <version>1.6.2</version>
90 <groupId>dom4j</groupId>
91 <artifactId>dom4j</artifactId>
92 <version>1.6.1</version>
93 <scope>provided</scope>
96 <groupId>com.att.aft</groupId>
97 <artifactId>dme2</artifactId>
98 <version>3.1.200</version>
99 <scope>provided</scope>
103 <groupId>org.slf4j</groupId>
104 <artifactId>slf4j-api</artifactId>
105 <version>1.7.20</version>
109 <groupId>org.onap.aai</groupId>
110 <artifactId>rest-client</artifactId>
111 <version>1.1.0-SNAPSHOT</version>
116 <groupId>org.hamcrest</groupId>
117 <artifactId>hamcrest-library</artifactId>
118 <version>1.3</version>
122 <!-- <dependency> <groupId>com.att.csp</groupId> <artifactId>gatekeeper</artifactId>
123 <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/gatekeeper-1.0.jar</systemPath>
124 </dependency> <dependency> <groupId>com.att.csp</groupId> <artifactId>PSE_Lite</artifactId>
125 <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/PSE_Lite-1.0.jar</systemPath>
129 <groupId>org.eclipse.persistence</groupId>
130 <artifactId>eclipselink</artifactId>
131 <version>2.6.2</version>
135 <groupId>com.fasterxml.jackson.core</groupId>
136 <artifactId>jackson-core</artifactId>
137 <version>2.7.4</version>
141 <groupId>org.json</groupId>
142 <artifactId>json</artifactId>
143 <version>20131018</version>
147 <groupId>com.fasterxml.jackson.core</groupId>
148 <artifactId>jackson-databind</artifactId>
149 <version>2.7.4</version>
152 <!-- Common logging framework -->
154 <groupId>org.onap.aai.logging-service</groupId>
155 <artifactId>common-logging</artifactId>
156 <version>1.1.0-SNAPSHOT</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>org.onap.aai.sparky-fe</groupId>
402 <artifactId>sparky-fe</artifactId>
403 <version>1.0.0-SNAPSHOT</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>