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>
15 <docker.location>${basedir}/target</docker.location>
16 <module.ajsc.namespace.name>inventory-ui-service</module.ajsc.namespace.name>
17 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
18 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
19 <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.openecomp.aai</groupId>
109 <artifactId>rest-client</artifactId>
110 <version>1.1.0-SNAPSHOT</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.openecomp.aai.logging-service</groupId>
154 <artifactId>common-logging</artifactId>
155 <version>1.0.0</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>org.openecomp.ecompsdkos</groupId>
190 <artifactId>epsdk-fw</artifactId>
191 <version>1.1.0</version>
194 <groupId>commons-logging</groupId>
195 <artifactId>commons-logging</artifactId>
198 <groupId>log4j</groupId>
199 <artifactId>log4j</artifactId>
202 <groupId>log4j</groupId>
203 <artifactId>apache-log4j-extras</artifactId>
206 <groupId>org.slf4j</groupId>
207 <artifactId>slf4j-log4j12</artifactId>
218 <defaultGoal>initialize</defaultGoal>
222 <groupId>org.codehaus.mojo</groupId>
223 <artifactId>exec-maven-plugin</artifactId>
224 <version>1.3.2</version>
227 <phase>initialize</phase>
232 <includeProjectDependencies>false</includeProjectDependencies>
233 <includePluginDependencies>true</includePluginDependencies>
234 <executable>java</executable>
235 <mainClass>com.att.ajsc.runner.Runner</mainClass>
236 <executableDependency>
237 <groupId>com.att.ajsc</groupId>
238 <artifactId>ajsc-runner</artifactId>
239 </executableDependency>
240 <additionalClasspathElements>
241 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
242 </additionalClasspathElements>
244 <environmentVariables>
245 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
246 </environmentVariables>
248 <!-- Main AJSC System Properties below (necessary for proper startup) -->
252 <value>${runAjscHome}</value>
255 <key>CONFIG_HOME</key>
256 <value>${basedir}/appconfig-local/</value>
259 <key>AJSC_CONF_HOME</key>
260 <value>${basedir}/bundleconfig-local</value>
263 <key>logback.configurationFile</key>
264 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
267 <key>AJSC_SHARED_CONFIG</key>
268 <value>${basedir}/ajsc-shared-config</value>
272 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
273 <value>${basedir}/target/commonLibs</value>
276 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
277 <value>${basedir}/ajsc-shared-config/etc</value>
281 <key>AJSC_SERVICE_NAMESPACE</key>
282 <value>${module.ajsc.namespace.name}</value>
285 <key>AJSC_SERVICE_VERSION</key>
286 <value>${module.ajsc.namespace.version}</value>
289 <key>SOACLOUD_SERVICE_VERSION</key>
290 <value>${project.version}</value>
293 <key>server.port</key>
294 <value>${serverPort}</value>
298 <!-- Command Line Arguments to add to the java command. Here, you
299 can specify the port as well as the Context you want your service to run
300 in. Use context=/ to run in an unnamed Context (Root Context). The default
301 configuration of the AJSC is to run under the / Context. Setting the port
302 here can aid during the development phase of your service. However, you can
303 leave this argument out entirely, and the AJSC will default to using an Ephemeral
306 <argument>context=/</argument>
307 <argument>port=${serverPort}</argument>
308 <argument>sslport=${sslport}</argument>
314 <executable>java</executable>
318 <groupId>com.att.ajsc</groupId>
319 <artifactId>ajsc-runner</artifactId>
320 <version>${ajscRuntimeVersion}</version>
332 <!-- purposely disable cobertura from parent pom as it is very broken
333 Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
336 <groupId>org.codehaus.mojo</groupId>
337 <artifactId>cobertura-maven-plugin</artifactId>
338 <version>2.7</version>
345 <!--This plugin's configuration is used to store Eclipse m2e settings
346 only. It has no influence on the Maven build itself. -->
348 <groupId>org.eclipse.m2e</groupId>
349 <artifactId>lifecycle-mapping</artifactId>
350 <version>1.0.0</version>
352 <lifecycleMappingMetadata>
355 <pluginExecutionFilter>
360 properties-maven-plugin
367 write-project-properties
370 </pluginExecutionFilter>
376 </lifecycleMappingMetadata>
381 <groupId>org.apache.maven.plugins</groupId>
382 <artifactId>maven-dependency-plugin</artifactId>
383 <version>3.0.0</version>
386 <id>copy-installed</id>
387 <phase>install</phase>
394 <groupId>org.openecomp.aai</groupId>
395 <artifactId>sparky-fe</artifactId>
396 <version>1.0.0-SNAPSHOT</version>
398 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
399 <destFileName>aai.war</destFileName>
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-compiler-plugin</artifactId>
418 <groupId>org.apache.maven.plugins</groupId>
419 <artifactId>maven-resources-plugin</artifactId>
420 <version>2.7</version>
423 <id>copy-docker-file</id>
424 <phase>package</phase>
426 <goal>copy-resources</goal>
429 <outputDirectory>target</outputDirectory>
430 <overwrite>true</overwrite>
433 <directory>${basedir}/src/main/docker</directory>
434 <filtering>true</filtering>
436 <include>**/*</include>
440 <directory>${basedir}/src/main/scripts/</directory>
454 <groupId>org.apache.maven.plugins</groupId>
455 <artifactId>maven-site-plugin</artifactId>
456 <version>3.3</version>
460 <groupId>org.apache.maven.plugins</groupId>
461 <artifactId>maven-checkstyle-plugin</artifactId>
462 <version>2.17</version>
466 <report>checkstyle</report>
475 <groupId>org.apache.maven.plugins</groupId>
476 <artifactId>maven-resources-plugin</artifactId>
477 <version>2.7</version>
480 <id>copy-docker-file</id>
481 <phase>package</phase>
483 <goal>copy-resources</goal>
486 <outputDirectory>target</outputDirectory>
487 <overwrite>true</overwrite>
490 <directory>${basedir}/src/main/docker</directory>
491 <filtering>true</filtering>
493 <include>**/*</include>
497 <directory>${basedir}/src/main/scripts/</directory>
505 <groupId>com.spotify</groupId>
506 <artifactId>docker-maven-plugin</artifactId>
507 <version>0.4.11</version>
509 <verbose>true</verbose>
510 <serverId>docker-hub</serverId>
511 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
512 <dockerDirectory>${docker.location}</dockerDirectory>
514 <imageTag>latest</imageTag>
516 <forceTags>true</forceTags>
519 <!-- license plugin -->
521 <groupId>com.mycila</groupId>
522 <artifactId>license-maven-plugin</artifactId>
523 <version>3.0</version>
525 <header>LICENSE</header>
527 <include>src/main/java/**</include>
535 <phase>process-sources</phase>
540 <groupId>org.sonatype.plugins</groupId>
541 <artifactId>nexus-staging-maven-plugin</artifactId>
542 <version>1.6.7</version>
543 <extensions>true</extensions>
545 <nexusUrl>${nexusproxy}</nexusUrl>
546 <stagingProfileId>176c31dfe190a</stagingProfileId>
547 <serverId>ecomp-staging</serverId>
551 <groupId>org.apache.maven.plugins</groupId>
552 <artifactId>maven-deploy-plugin</artifactId>
558 <groupId>org.codehaus.mojo</groupId>
559 <artifactId>sonar-maven-plugin</artifactId>
560 <version>3.2</version>
563 <groupId>org.jacoco</groupId>
564 <artifactId>jacoco-maven-plugin</artifactId>
565 <version>0.7.7.201606060606</version>
567 <dumpOnExit>true</dumpOnExit>
571 <id>jacoco-initialize-unit-tests</id>
573 <goal>prepare-agent</goal>
576 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
577 <!-- <append>true</append> -->
585 <distributionManagement>
587 <id>ecomp-releases</id>
588 <name>ECOMP Release Repository</name>
589 <url>${nexusproxy}/content/repositories/releases/</url>
592 <id>ecomp-snapshots</id>
593 <name>ECOMP Snapshot Repository</name>
594 <url>${nexusproxy}/content/repositories/snapshots/</url>
595 </snapshotRepository>
596 </distributionManagement>