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.openecomp.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.openecomp.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.openecomp.aai.logging-service</groupId>
155 <artifactId>common-logging</artifactId>
156 <version>1.0.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>org.openecomp.ecompsdkos</groupId>
191 <artifactId>epsdk-fw</artifactId>
192 <version>1.1.0</version>
195 <groupId>commons-logging</groupId>
196 <artifactId>commons-logging</artifactId>
199 <groupId>log4j</groupId>
200 <artifactId>log4j</artifactId>
203 <groupId>log4j</groupId>
204 <artifactId>apache-log4j-extras</artifactId>
207 <groupId>org.slf4j</groupId>
208 <artifactId>slf4j-log4j12</artifactId>
219 <defaultGoal>initialize</defaultGoal>
223 <groupId>org.codehaus.mojo</groupId>
224 <artifactId>exec-maven-plugin</artifactId>
225 <version>1.3.2</version>
228 <phase>initialize</phase>
233 <includeProjectDependencies>false</includeProjectDependencies>
234 <includePluginDependencies>true</includePluginDependencies>
235 <executable>java</executable>
236 <mainClass>com.att.ajsc.runner.Runner</mainClass>
237 <executableDependency>
238 <groupId>com.att.ajsc</groupId>
239 <artifactId>ajsc-runner</artifactId>
240 </executableDependency>
241 <additionalClasspathElements>
242 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
243 </additionalClasspathElements>
245 <environmentVariables>
246 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
247 </environmentVariables>
249 <!-- Main AJSC System Properties below (necessary for proper startup) -->
253 <value>${runAjscHome}</value>
256 <key>CONFIG_HOME</key>
257 <value>${basedir}/appconfig-local/</value>
260 <key>AJSC_CONF_HOME</key>
261 <value>${basedir}/bundleconfig-local</value>
264 <key>logback.configurationFile</key>
265 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
268 <key>AJSC_SHARED_CONFIG</key>
269 <value>${basedir}/ajsc-shared-config</value>
273 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
274 <value>${basedir}/target/commonLibs</value>
277 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
278 <value>${basedir}/ajsc-shared-config/etc</value>
282 <key>AJSC_SERVICE_NAMESPACE</key>
283 <value>${module.ajsc.namespace.name}</value>
286 <key>AJSC_SERVICE_VERSION</key>
287 <value>${module.ajsc.namespace.version}</value>
290 <key>SOACLOUD_SERVICE_VERSION</key>
291 <value>${project.version}</value>
294 <key>server.port</key>
295 <value>${serverPort}</value>
299 <!-- Command Line Arguments to add to the java command. Here, you
300 can specify the port as well as the Context you want your service to run
301 in. Use context=/ to run in an unnamed Context (Root Context). The default
302 configuration of the AJSC is to run under the / Context. Setting the port
303 here can aid during the development phase of your service. However, you can
304 leave this argument out entirely, and the AJSC will default to using an Ephemeral
307 <argument>context=/</argument>
308 <argument>port=${serverPort}</argument>
309 <argument>sslport=${sslport}</argument>
315 <executable>java</executable>
319 <groupId>com.att.ajsc</groupId>
320 <artifactId>ajsc-runner</artifactId>
321 <version>${ajscRuntimeVersion}</version>
333 <!-- purposely disable cobertura from parent pom as it is very broken
334 Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
337 <groupId>org.codehaus.mojo</groupId>
338 <artifactId>cobertura-maven-plugin</artifactId>
339 <version>2.7</version>
346 <!--This plugin's configuration is used to store Eclipse m2e settings
347 only. It has no influence on the Maven build itself. -->
349 <groupId>org.eclipse.m2e</groupId>
350 <artifactId>lifecycle-mapping</artifactId>
351 <version>1.0.0</version>
353 <lifecycleMappingMetadata>
356 <pluginExecutionFilter>
361 properties-maven-plugin
368 write-project-properties
371 </pluginExecutionFilter>
377 </lifecycleMappingMetadata>
382 <groupId>org.apache.maven.plugins</groupId>
383 <artifactId>maven-dependency-plugin</artifactId>
384 <version>3.0.0</version>
387 <id>copy-installed</id>
388 <phase>install</phase>
395 <groupId>org.openecomp.aai</groupId>
396 <artifactId>sparky-fe</artifactId>
397 <version>1.0.0-SNAPSHOT</version>
399 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
400 <destFileName>aai.war</destFileName>
409 <groupId>org.apache.maven.plugins</groupId>
410 <artifactId>maven-compiler-plugin</artifactId>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-resources-plugin</artifactId>
421 <version>2.7</version>
424 <id>copy-docker-file</id>
425 <phase>package</phase>
427 <goal>copy-resources</goal>
430 <outputDirectory>target</outputDirectory>
431 <overwrite>true</overwrite>
434 <directory>${basedir}/src/main/docker</directory>
435 <filtering>true</filtering>
437 <include>**/*</include>
441 <directory>${basedir}/src/main/scripts/</directory>
455 <groupId>org.apache.maven.plugins</groupId>
456 <artifactId>maven-site-plugin</artifactId>
457 <version>3.3</version>
461 <groupId>org.apache.maven.plugins</groupId>
462 <artifactId>maven-checkstyle-plugin</artifactId>
463 <version>2.17</version>
467 <report>checkstyle</report>
476 <groupId>org.apache.maven.plugins</groupId>
477 <artifactId>maven-resources-plugin</artifactId>
478 <version>2.7</version>
481 <id>copy-docker-file</id>
482 <phase>package</phase>
484 <goal>copy-resources</goal>
487 <outputDirectory>target</outputDirectory>
488 <overwrite>true</overwrite>
491 <directory>${basedir}/src/main/docker</directory>
492 <filtering>true</filtering>
494 <include>**/*</include>
498 <directory>${basedir}/src/main/scripts/</directory>
506 <groupId>com.spotify</groupId>
507 <artifactId>docker-maven-plugin</artifactId>
508 <version>0.4.11</version>
510 <verbose>true</verbose>
511 <serverId>docker-hub</serverId>
512 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
513 <dockerDirectory>${docker.location}</dockerDirectory>
515 <imageTag>latest</imageTag>
517 <forceTags>true</forceTags>
520 <!-- license plugin -->
522 <groupId>com.mycila</groupId>
523 <artifactId>license-maven-plugin</artifactId>
524 <version>3.0</version>
526 <header>LICENSE</header>
528 <include>src/main/java/**</include>
536 <phase>process-sources</phase>
541 <groupId>org.sonatype.plugins</groupId>
542 <artifactId>nexus-staging-maven-plugin</artifactId>
543 <version>1.6.7</version>
544 <extensions>true</extensions>
546 <nexusUrl>${nexusproxy}</nexusUrl>
547 <stagingProfileId>176c31dfe190a</stagingProfileId>
548 <serverId>ecomp-staging</serverId>
552 <groupId>org.apache.maven.plugins</groupId>
553 <artifactId>maven-deploy-plugin</artifactId>
559 <groupId>org.codehaus.mojo</groupId>
560 <artifactId>sonar-maven-plugin</artifactId>
561 <version>3.2</version>
564 <groupId>org.jacoco</groupId>
565 <artifactId>jacoco-maven-plugin</artifactId>
566 <version>0.7.7.201606060606</version>
568 <dumpOnExit>true</dumpOnExit>
572 <id>jacoco-initialize-unit-tests</id>
574 <goal>prepare-agent</goal>
577 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
578 <!-- <append>true</append> -->
586 <distributionManagement>
588 <id>ecomp-releases</id>
589 <name>ECOMP Release Repository</name>
590 <url>${nexusproxy}/content/repositories/releases/</url>
593 <id>ecomp-snapshots</id>
594 <name>ECOMP Snapshot Repository</name>
595 <url>${nexusproxy}/content/repositories/snapshots/</url>
596 </snapshotRepository>
597 </distributionManagement>