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.1.1-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 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
22 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
23 version, THIS will be used as your directory structure. If you do NOT want
24 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
26 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
27 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
29 <!-- For SOA Cloud Installation -->
30 <installOwnerUser>aaiadmin</installOwnerUser>
31 <installOwnerGroup>aaiadmin</installOwnerGroup>
32 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
34 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
35 For local testing, you may choose to hardcode this value to something like
37 <serverPort>9517</serverPort>
38 <sslport>8000</sslport>
40 <testRouteOffer>workstation</testRouteOffer>
41 <testEnv>DEV</testEnv>
42 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
43 <nexusproxy>https://nexus.onap.org</nexusproxy>
45 <!-- Sonar Configuration -->
46 <sonar.language>java</sonar.language>
47 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
48 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
49 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
50 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
51 <sonar.projectVersion>${project.version}</sonar.projectVersion>
57 <groupId>org.mockito</groupId>
58 <artifactId>mockito-all</artifactId>
59 <version>1.10.19</version>
63 <groupId>org.powermock</groupId>
64 <artifactId>powermock-module-junit4</artifactId>
65 <version>1.6.2</version>
69 <groupId>org.powermock</groupId>
70 <artifactId>powermock-api-mockito</artifactId>
71 <version>1.6.2</version>
75 <groupId>org.powermock</groupId>
76 <artifactId>powermock-module-javaagent</artifactId>
77 <version>1.6.2</version>
81 <groupId>org.powermock</groupId>
82 <artifactId>powermock-module-junit4-rule-agent</artifactId>
83 <version>1.6.2</version>
89 <groupId>dom4j</groupId>
90 <artifactId>dom4j</artifactId>
91 <version>1.6.1</version>
92 <scope>provided</scope>
95 <groupId>com.att.aft</groupId>
96 <artifactId>dme2</artifactId>
97 <version>3.1.200</version>
98 <scope>provided</scope>
102 <groupId>org.slf4j</groupId>
103 <artifactId>slf4j-api</artifactId>
104 <version>1.7.20</version>
108 <groupId>org.onap.aai</groupId>
109 <artifactId>rest-client</artifactId>
110 <version>${project.version}</version>
115 <groupId>org.hamcrest</groupId>
116 <artifactId>hamcrest-library</artifactId>
117 <version>1.3</version>
121 <!-- <dependency> <groupId>com.att.csp</groupId> <artifactId>gatekeeper</artifactId>
122 <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/gatekeeper-1.0.jar</systemPath>
123 </dependency> <dependency> <groupId>com.att.csp</groupId> <artifactId>PSE_Lite</artifactId>
124 <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/PSE_Lite-1.0.jar</systemPath>
128 <groupId>org.eclipse.persistence</groupId>
129 <artifactId>eclipselink</artifactId>
130 <version>2.6.2</version>
134 <groupId>com.fasterxml.jackson.core</groupId>
135 <artifactId>jackson-core</artifactId>
136 <version>2.7.4</version>
140 <groupId>org.json</groupId>
141 <artifactId>json</artifactId>
142 <version>20131018</version>
146 <groupId>com.fasterxml.jackson.core</groupId>
147 <artifactId>jackson-databind</artifactId>
148 <version>2.7.4</version>
151 <!-- Common logging framework -->
153 <groupId>org.onap.aai.logging-service</groupId>
154 <artifactId>common-logging</artifactId>
155 <version>${project.version}</version>
159 <groupId>com.google.code.gson</groupId>
160 <artifactId>gson</artifactId>
161 <version>2.6.2</version>
165 <groupId>ch.qos.logback</groupId>
166 <artifactId>logback-classic</artifactId>
167 <version>1.1.7</version>
171 <groupId>ch.qos.logback</groupId>
172 <artifactId>logback-core</artifactId>
173 <version>1.1.7</version>
177 <groupId>commons-io</groupId>
178 <artifactId>commons-io</artifactId>
179 <version>2.4</version>
183 <groupId>log4j</groupId>
184 <artifactId>log4j</artifactId>
185 <version>1.2.17</version>
189 <groupId>com.openpojo</groupId>
190 <artifactId>openpojo</artifactId>
191 <version>0.8.6</version>
195 <groupId>org.onap.portal.sdk</groupId>
196 <artifactId>epsdk-fw</artifactId>
197 <version>1.3.0 </version>
200 <groupId>commons-logging</groupId>
201 <artifactId>commons-logging</artifactId>
204 <groupId>log4j</groupId>
205 <artifactId>log4j</artifactId>
208 <groupId>log4j</groupId>
209 <artifactId>apache-log4j-extras</artifactId>
212 <groupId>org.slf4j</groupId>
213 <artifactId>slf4j-log4j12</artifactId>
224 <defaultGoal>initialize</defaultGoal>
228 <groupId>org.codehaus.mojo</groupId>
229 <artifactId>exec-maven-plugin</artifactId>
230 <version>1.3.2</version>
233 <phase>initialize</phase>
238 <includeProjectDependencies>false</includeProjectDependencies>
239 <includePluginDependencies>true</includePluginDependencies>
240 <executable>java</executable>
241 <mainClass>com.att.ajsc.runner.Runner</mainClass>
242 <executableDependency>
243 <groupId>com.att.ajsc</groupId>
244 <artifactId>ajsc-runner</artifactId>
245 </executableDependency>
246 <additionalClasspathElements>
247 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
248 </additionalClasspathElements>
250 <environmentVariables>
251 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
252 </environmentVariables>
254 <!-- Main AJSC System Properties below (necessary for proper startup) -->
258 <value>${runAjscHome}</value>
261 <key>CONFIG_HOME</key>
262 <value>${basedir}/appconfig-local/</value>
265 <key>AJSC_CONF_HOME</key>
266 <value>${basedir}/bundleconfig-local</value>
269 <key>logback.configurationFile</key>
270 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
273 <key>AJSC_SHARED_CONFIG</key>
274 <value>${basedir}/ajsc-shared-config</value>
278 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
279 <value>${basedir}/target/commonLibs</value>
282 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
283 <value>${basedir}/ajsc-shared-config/etc</value>
287 <key>AJSC_SERVICE_NAMESPACE</key>
288 <value>${module.ajsc.namespace.name}</value>
291 <key>AJSC_SERVICE_VERSION</key>
292 <value>${module.ajsc.namespace.version}</value>
295 <key>SOACLOUD_SERVICE_VERSION</key>
296 <value>${project.version}</value>
299 <key>server.port</key>
300 <value>${serverPort}</value>
304 <!-- Command Line Arguments to add to the java command. Here, you
305 can specify the port as well as the Context you want your service to run
306 in. Use context=/ to run in an unnamed Context (Root Context). The default
307 configuration of the AJSC is to run under the / Context. Setting the port
308 here can aid during the development phase of your service. However, you can
309 leave this argument out entirely, and the AJSC will default to using an Ephemeral
312 <argument>context=/</argument>
313 <argument>port=${serverPort}</argument>
314 <argument>sslport=${sslport}</argument>
320 <executable>java</executable>
324 <groupId>com.att.ajsc</groupId>
325 <artifactId>ajsc-runner</artifactId>
326 <version>${ajscRuntimeVersion}</version>
338 <!-- purposely disable cobertura from parent pom as it is very broken
339 Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
342 <groupId>org.codehaus.mojo</groupId>
343 <artifactId>cobertura-maven-plugin</artifactId>
344 <version>2.7</version>
351 <!--This plugin's configuration is used to store Eclipse m2e settings
352 only. It has no influence on the Maven build itself. -->
354 <groupId>org.eclipse.m2e</groupId>
355 <artifactId>lifecycle-mapping</artifactId>
356 <version>1.0.0</version>
358 <lifecycleMappingMetadata>
361 <pluginExecutionFilter>
366 properties-maven-plugin
373 write-project-properties
376 </pluginExecutionFilter>
382 </lifecycleMappingMetadata>
387 <groupId>org.apache.maven.plugins</groupId>
388 <artifactId>maven-dependency-plugin</artifactId>
389 <version>3.0.0</version>
392 <id>copy-installed</id>
393 <phase>install</phase>
400 <groupId>org.onap.aai.sparky-fe</groupId>
401 <artifactId>sparky-fe</artifactId>
402 <version>${project.version}</version>
404 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
405 <destFileName>aai.war</destFileName>
414 <groupId>org.apache.maven.plugins</groupId>
415 <artifactId>maven-compiler-plugin</artifactId>
424 <groupId>org.apache.maven.plugins</groupId>
425 <artifactId>maven-resources-plugin</artifactId>
426 <version>2.7</version>
429 <id>copy-docker-file</id>
430 <phase>package</phase>
432 <goal>copy-resources</goal>
435 <outputDirectory>target</outputDirectory>
436 <overwrite>true</overwrite>
439 <directory>${basedir}/src/main/docker</directory>
440 <filtering>true</filtering>
442 <include>**/*</include>
446 <directory>${basedir}/src/main/scripts/</directory>
460 <groupId>org.apache.maven.plugins</groupId>
461 <artifactId>maven-site-plugin</artifactId>
462 <version>3.3</version>
466 <groupId>org.apache.maven.plugins</groupId>
467 <artifactId>maven-checkstyle-plugin</artifactId>
468 <version>2.17</version>
472 <report>checkstyle</report>
481 <groupId>org.apache.maven.plugins</groupId>
482 <artifactId>maven-resources-plugin</artifactId>
483 <version>2.7</version>
486 <id>copy-docker-file</id>
487 <phase>package</phase>
489 <goal>copy-resources</goal>
492 <outputDirectory>target</outputDirectory>
493 <overwrite>true</overwrite>
496 <directory>${basedir}/src/main/docker</directory>
497 <filtering>true</filtering>
499 <include>**/*</include>
503 <directory>${basedir}/src/main/scripts/</directory>
511 <groupId>com.spotify</groupId>
512 <artifactId>docker-maven-plugin</artifactId>
513 <version>0.4.11</version>
515 <verbose>true</verbose>
516 <serverId>docker-hub</serverId>
517 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
518 <dockerDirectory>${docker.location}</dockerDirectory>
520 <imageTag>latest</imageTag>
522 <forceTags>true</forceTags>
525 <!-- license plugin -->
527 <groupId>com.mycila</groupId>
528 <artifactId>license-maven-plugin</artifactId>
529 <version>3.0</version>
531 <header>LICENSE</header>
533 <include>src/main/java/**</include>
541 <phase>process-sources</phase>
546 <groupId>org.sonatype.plugins</groupId>
547 <artifactId>nexus-staging-maven-plugin</artifactId>
548 <version>1.6.7</version>
549 <extensions>true</extensions>
551 <nexusUrl>${nexusproxy}</nexusUrl>
552 <stagingProfileId>176c31dfe190a</stagingProfileId>
553 <serverId>ecomp-staging</serverId>
557 <groupId>org.apache.maven.plugins</groupId>
558 <artifactId>maven-deploy-plugin</artifactId>
564 <groupId>org.codehaus.mojo</groupId>
565 <artifactId>sonar-maven-plugin</artifactId>
566 <version>3.2</version>
569 <groupId>org.jacoco</groupId>
570 <artifactId>jacoco-maven-plugin</artifactId>
571 <version>0.7.7.201606060606</version>
573 <dumpOnExit>true</dumpOnExit>
577 <id>jacoco-initialize-unit-tests</id>
579 <goal>prepare-agent</goal>
582 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
583 <!-- <append>true</append> -->
591 <distributionManagement>
593 <id>ecomp-releases</id>
594 <name>ECOMP Release Repository</name>
595 <url>${nexusproxy}/content/repositories/releases/</url>
598 <id>ecomp-snapshots</id>
599 <name>ECOMP Snapshot Repository</name>
600 <url>${nexusproxy}/content/repositories/snapshots/</url>
601 </snapshotRepository>
602 </distributionManagement>