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>
49 <groupId>org.mockito</groupId>
50 <artifactId>mockito-all</artifactId>
51 <version>1.10.19</version>
55 <groupId>org.powermock</groupId>
56 <artifactId>powermock-module-junit4</artifactId>
57 <version>1.6.2</version>
61 <groupId>org.powermock</groupId>
62 <artifactId>powermock-api-mockito</artifactId>
63 <version>1.6.2</version>
67 <groupId>org.powermock</groupId>
68 <artifactId>powermock-module-javaagent</artifactId>
69 <version>1.6.2</version>
73 <groupId>org.powermock</groupId>
74 <artifactId>powermock-module-junit4-rule-agent</artifactId>
75 <version>1.6.2</version>
81 <groupId>dom4j</groupId>
82 <artifactId>dom4j</artifactId>
83 <version>1.6.1</version>
84 <scope>provided</scope>
87 <groupId>com.att.aft</groupId>
88 <artifactId>dme2</artifactId>
89 <version>3.1.200</version>
90 <scope>provided</scope>
94 <groupId>org.slf4j</groupId>
95 <artifactId>slf4j-api</artifactId>
96 <version>1.7.20</version>
100 <groupId>org.openecomp.aai</groupId>
101 <artifactId>rest-client</artifactId>
102 <version>1.1.0-SNAPSHOT</version>
107 <groupId>org.hamcrest</groupId>
108 <artifactId>hamcrest-library</artifactId>
109 <version>1.3</version>
113 <!-- <dependency> <groupId>com.att.csp</groupId> <artifactId>gatekeeper</artifactId>
114 <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/gatekeeper-1.0.jar</systemPath>
115 </dependency> <dependency> <groupId>com.att.csp</groupId> <artifactId>PSE_Lite</artifactId>
116 <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/PSE_Lite-1.0.jar</systemPath>
120 <groupId>org.eclipse.persistence</groupId>
121 <artifactId>eclipselink</artifactId>
122 <version>2.6.2</version>
126 <groupId>com.fasterxml.jackson.core</groupId>
127 <artifactId>jackson-core</artifactId>
128 <version>2.7.4</version>
132 <groupId>org.json</groupId>
133 <artifactId>json</artifactId>
134 <version>20131018</version>
138 <groupId>com.fasterxml.jackson.core</groupId>
139 <artifactId>jackson-databind</artifactId>
140 <version>2.7.4</version>
143 <!-- Common logging framework -->
145 <groupId>org.openecomp.aai.logging-service</groupId>
146 <artifactId>common-logging</artifactId>
147 <version>1.0.0</version>
151 <groupId>com.google.code.gson</groupId>
152 <artifactId>gson</artifactId>
153 <version>2.6.2</version>
157 <groupId>ch.qos.logback</groupId>
158 <artifactId>logback-classic</artifactId>
159 <version>1.1.7</version>
163 <groupId>ch.qos.logback</groupId>
164 <artifactId>logback-core</artifactId>
165 <version>1.1.7</version>
169 <groupId>commons-io</groupId>
170 <artifactId>commons-io</artifactId>
171 <version>2.4</version>
175 <groupId>log4j</groupId>
176 <artifactId>log4j</artifactId>
177 <version>1.2.17</version>
181 <groupId>org.openecomp.ecompsdkos</groupId>
182 <artifactId>epsdk-fw</artifactId>
183 <version>1.1.0</version>
186 <groupId>commons-logging</groupId>
187 <artifactId>commons-logging</artifactId>
190 <groupId>log4j</groupId>
191 <artifactId>log4j</artifactId>
194 <groupId>log4j</groupId>
195 <artifactId>apache-log4j-extras</artifactId>
198 <groupId>org.slf4j</groupId>
199 <artifactId>slf4j-log4j12</artifactId>
210 <defaultGoal>initialize</defaultGoal>
214 <groupId>org.codehaus.mojo</groupId>
215 <artifactId>exec-maven-plugin</artifactId>
216 <version>1.3.2</version>
219 <phase>initialize</phase>
224 <includeProjectDependencies>false</includeProjectDependencies>
225 <includePluginDependencies>true</includePluginDependencies>
226 <executable>java</executable>
227 <mainClass>com.att.ajsc.runner.Runner</mainClass>
228 <executableDependency>
229 <groupId>com.att.ajsc</groupId>
230 <artifactId>ajsc-runner</artifactId>
231 </executableDependency>
232 <additionalClasspathElements>
233 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
234 </additionalClasspathElements>
236 <environmentVariables>
237 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
238 </environmentVariables>
240 <!-- Main AJSC System Properties below (necessary for proper startup) -->
244 <value>${runAjscHome}</value>
247 <key>CONFIG_HOME</key>
248 <value>${basedir}/appconfig-local/</value>
251 <key>AJSC_CONF_HOME</key>
252 <value>${basedir}/bundleconfig-local</value>
255 <key>logback.configurationFile</key>
256 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
259 <key>AJSC_SHARED_CONFIG</key>
260 <value>${basedir}/ajsc-shared-config</value>
264 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
265 <value>${basedir}/target/commonLibs</value>
268 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
269 <value>${basedir}/ajsc-shared-config/etc</value>
273 <key>AJSC_SERVICE_NAMESPACE</key>
274 <value>${module.ajsc.namespace.name}</value>
277 <key>AJSC_SERVICE_VERSION</key>
278 <value>${module.ajsc.namespace.version}</value>
281 <key>SOACLOUD_SERVICE_VERSION</key>
282 <value>${project.version}</value>
285 <key>server.port</key>
286 <value>${serverPort}</value>
290 <!-- Command Line Arguments to add to the java command. Here, you
291 can specify the port as well as the Context you want your service to run
292 in. Use context=/ to run in an unnamed Context (Root Context). The default
293 configuration of the AJSC is to run under the / Context. Setting the port
294 here can aid during the development phase of your service. However, you can
295 leave this argument out entirely, and the AJSC will default to using an Ephemeral
298 <argument>context=/</argument>
299 <argument>port=${serverPort}</argument>
300 <argument>sslport=${sslport}</argument>
306 <executable>java</executable>
310 <groupId>com.att.ajsc</groupId>
311 <artifactId>ajsc-runner</artifactId>
312 <version>${ajscRuntimeVersion}</version>
324 <!-- purposely disable cobertura from parent pom as it is very broken
325 Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
328 <groupId>org.codehaus.mojo</groupId>
329 <artifactId>cobertura-maven-plugin</artifactId>
330 <version>2.7</version>
337 <!--This plugin's configuration is used to store Eclipse m2e settings
338 only. It has no influence on the Maven build itself. -->
340 <groupId>org.eclipse.m2e</groupId>
341 <artifactId>lifecycle-mapping</artifactId>
342 <version>1.0.0</version>
344 <lifecycleMappingMetadata>
347 <pluginExecutionFilter>
352 properties-maven-plugin
359 write-project-properties
362 </pluginExecutionFilter>
368 </lifecycleMappingMetadata>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-dependency-plugin</artifactId>
375 <version>3.0.0</version>
378 <id>copy-installed</id>
379 <phase>install</phase>
386 <groupId>org.openecomp.aai</groupId>
387 <artifactId>sparky-fe</artifactId>
388 <version>1.0.0-SNAPSHOT</version>
390 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
391 <destFileName>aai.war</destFileName>
400 <groupId>org.apache.maven.plugins</groupId>
401 <artifactId>maven-compiler-plugin</artifactId>
410 <groupId>org.apache.maven.plugins</groupId>
411 <artifactId>maven-resources-plugin</artifactId>
412 <version>2.7</version>
415 <id>copy-docker-file</id>
416 <phase>package</phase>
418 <goal>copy-resources</goal>
421 <outputDirectory>target</outputDirectory>
422 <overwrite>true</overwrite>
425 <directory>${basedir}/src/main/docker</directory>
426 <filtering>true</filtering>
428 <include>**/*</include>
432 <directory>${basedir}/src/main/scripts/</directory>
446 <groupId>org.apache.maven.plugins</groupId>
447 <artifactId>maven-site-plugin</artifactId>
448 <version>3.3</version>
452 <groupId>org.apache.maven.plugins</groupId>
453 <artifactId>maven-checkstyle-plugin</artifactId>
454 <version>2.17</version>
458 <report>checkstyle</report>
467 <groupId>org.apache.maven.plugins</groupId>
468 <artifactId>maven-resources-plugin</artifactId>
469 <version>2.7</version>
472 <id>copy-docker-file</id>
473 <phase>package</phase>
475 <goal>copy-resources</goal>
478 <outputDirectory>target</outputDirectory>
479 <overwrite>true</overwrite>
482 <directory>${basedir}/src/main/docker</directory>
483 <filtering>true</filtering>
485 <include>**/*</include>
489 <directory>${basedir}/src/main/scripts/</directory>
497 <groupId>com.spotify</groupId>
498 <artifactId>docker-maven-plugin</artifactId>
499 <version>0.4.11</version>
501 <verbose>true</verbose>
502 <serverId>docker-hub</serverId>
503 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
504 <dockerDirectory>${docker.location}</dockerDirectory>
506 <imageTag>latest</imageTag>
508 <forceTags>true</forceTags>
511 <!-- license plugin -->
513 <groupId>com.mycila</groupId>
514 <artifactId>license-maven-plugin</artifactId>
515 <version>3.0</version>
517 <header>LICENSE</header>
519 <include>src/main/java/**</include>
527 <phase>process-sources</phase>
532 <groupId>org.sonatype.plugins</groupId>
533 <artifactId>nexus-staging-maven-plugin</artifactId>
534 <version>1.6.7</version>
535 <extensions>true</extensions>
537 <nexusUrl>${nexusproxy}</nexusUrl>
538 <stagingProfileId>176c31dfe190a</stagingProfileId>
539 <serverId>ecomp-staging</serverId>
543 <groupId>org.apache.maven.plugins</groupId>
544 <artifactId>maven-deploy-plugin</artifactId>
550 <groupId>org.codehaus.mojo</groupId>
551 <artifactId>sonar-maven-plugin</artifactId>
552 <version>3.2</version>
555 <groupId>org.jacoco</groupId>
556 <artifactId>jacoco-maven-plugin</artifactId>
557 <version>0.7.9</version>
559 <destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
560 <dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>
564 <id>prepare-agent</id>
566 <goal>prepare-agent</goal>
571 <phase>package</phase>
581 <distributionManagement>
583 <id>ecomp-releases</id>
584 <name>ECOMP Release Repository</name>
585 <url>${nexusproxy}/content/repositories/releases/</url>
588 <id>ecomp-snapshots</id>
589 <name>ECOMP Snapshot Repository</name>
590 <url>${nexusproxy}/content/repositories/snapshots/</url>
591 </snapshotRepository>
592 </distributionManagement>