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 <module.ajsc.namespace.name>inventory-ui-service</module.ajsc.namespace.name>
16 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
17 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
18 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
20 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
21 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
22 version, THIS will be used as your directory structure. If you do NOT want
23 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
25 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
26 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
28 <!-- For SOA Cloud Installation -->
29 <installOwnerUser>aaiadmin</installOwnerUser>
30 <installOwnerGroup>aaiadmin</installOwnerGroup>
31 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
33 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
34 For local testing, you may choose to hardcode this value to something like
36 <serverPort>9517</serverPort>
37 <sslport>8000</sslport>
39 <testRouteOffer>workstation</testRouteOffer>
40 <testEnv>DEV</testEnv>
41 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
42 <nexusproxy>https://nexus.onap.org</nexusproxy>
48 <groupId>org.mockito</groupId>
49 <artifactId>mockito-all</artifactId>
50 <version>1.10.19</version>
54 <groupId>org.powermock</groupId>
55 <artifactId>powermock-module-junit4</artifactId>
56 <version>1.6.2</version>
60 <groupId>org.powermock</groupId>
61 <artifactId>powermock-api-mockito</artifactId>
62 <version>1.6.2</version>
66 <groupId>org.powermock</groupId>
67 <artifactId>powermock-module-javaagent</artifactId>
68 <version>1.6.2</version>
72 <groupId>org.powermock</groupId>
73 <artifactId>powermock-module-junit4-rule-agent</artifactId>
74 <version>1.6.2</version>
80 <groupId>dom4j</groupId>
81 <artifactId>dom4j</artifactId>
82 <version>1.6.1</version>
83 <scope>provided</scope>
86 <groupId>com.att.aft</groupId>
87 <artifactId>dme2</artifactId>
88 <version>3.1.200</version>
89 <scope>provided</scope>
93 <groupId>org.slf4j</groupId>
94 <artifactId>slf4j-api</artifactId>
95 <version>1.7.20</version>
99 <groupId>org.openecomp.aai</groupId>
100 <artifactId>rest-client</artifactId>
101 <version>1.1.0-SNAPSHOT</version>
106 <groupId>org.hamcrest</groupId>
107 <artifactId>hamcrest-library</artifactId>
108 <version>1.3</version>
112 <!-- <dependency> <groupId>com.att.csp</groupId> <artifactId>gatekeeper</artifactId>
113 <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/gatekeeper-1.0.jar</systemPath>
114 </dependency> <dependency> <groupId>com.att.csp</groupId> <artifactId>PSE_Lite</artifactId>
115 <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/PSE_Lite-1.0.jar</systemPath>
119 <groupId>org.eclipse.persistence</groupId>
120 <artifactId>eclipselink</artifactId>
121 <version>2.6.2</version>
125 <groupId>com.fasterxml.jackson.core</groupId>
126 <artifactId>jackson-core</artifactId>
127 <version>2.7.4</version>
131 <groupId>org.json</groupId>
132 <artifactId>json</artifactId>
133 <version>20131018</version>
137 <groupId>com.fasterxml.jackson.core</groupId>
138 <artifactId>jackson-databind</artifactId>
139 <version>2.7.4</version>
142 <!-- Common logging framework -->
144 <groupId>org.openecomp.aai.logging-service</groupId>
145 <artifactId>common-logging</artifactId>
146 <version>1.0.0</version>
150 <groupId>com.google.code.gson</groupId>
151 <artifactId>gson</artifactId>
152 <version>2.6.2</version>
156 <groupId>ch.qos.logback</groupId>
157 <artifactId>logback-classic</artifactId>
158 <version>1.1.7</version>
162 <groupId>ch.qos.logback</groupId>
163 <artifactId>logback-core</artifactId>
164 <version>1.1.7</version>
168 <groupId>commons-io</groupId>
169 <artifactId>commons-io</artifactId>
170 <version>2.4</version>
174 <groupId>log4j</groupId>
175 <artifactId>log4j</artifactId>
176 <version>1.2.17</version>
180 <groupId>org.openecomp.ecompsdkos</groupId>
181 <artifactId>epsdk-fw</artifactId>
182 <version>1.1.0-SNAPSHOT</version>
185 <groupId>commons-logging</groupId>
186 <artifactId>commons-logging</artifactId>
189 <groupId>log4j</groupId>
190 <artifactId>log4j</artifactId>
193 <groupId>log4j</groupId>
194 <artifactId>apache-log4j-extras</artifactId>
197 <groupId>org.slf4j</groupId>
198 <artifactId>slf4j-log4j12</artifactId>
209 <defaultGoal>initialize</defaultGoal>
213 <groupId>org.codehaus.mojo</groupId>
214 <artifactId>exec-maven-plugin</artifactId>
215 <version>1.3.2</version>
218 <phase>initialize</phase>
223 <includeProjectDependencies>false</includeProjectDependencies>
224 <includePluginDependencies>true</includePluginDependencies>
225 <executable>java</executable>
226 <mainClass>com.att.ajsc.runner.Runner</mainClass>
227 <executableDependency>
228 <groupId>com.att.ajsc</groupId>
229 <artifactId>ajsc-runner</artifactId>
230 </executableDependency>
231 <additionalClasspathElements>
232 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
233 </additionalClasspathElements>
235 <environmentVariables>
236 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
237 </environmentVariables>
239 <!-- Main AJSC System Properties below (necessary for proper startup) -->
243 <value>${runAjscHome}</value>
246 <key>CONFIG_HOME</key>
247 <value>${basedir}/appconfig-local/</value>
250 <key>AJSC_CONF_HOME</key>
251 <value>${basedir}/bundleconfig-local</value>
254 <key>logback.configurationFile</key>
255 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
258 <key>AJSC_SHARED_CONFIG</key>
259 <value>${basedir}/ajsc-shared-config</value>
263 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
264 <value>${basedir}/target/commonLibs</value>
267 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
268 <value>${basedir}/ajsc-shared-config/etc</value>
272 <key>AJSC_SERVICE_NAMESPACE</key>
273 <value>${module.ajsc.namespace.name}</value>
276 <key>AJSC_SERVICE_VERSION</key>
277 <value>${module.ajsc.namespace.version}</value>
280 <key>SOACLOUD_SERVICE_VERSION</key>
281 <value>${project.version}</value>
284 <key>server.port</key>
285 <value>${serverPort}</value>
289 <!-- Command Line Arguments to add to the java command. Here, you
290 can specify the port as well as the Context you want your service to run
291 in. Use context=/ to run in an unnamed Context (Root Context). The default
292 configuration of the AJSC is to run under the / Context. Setting the port
293 here can aid during the development phase of your service. However, you can
294 leave this argument out entirely, and the AJSC will default to using an Ephemeral
297 <argument>context=/</argument>
298 <argument>port=${serverPort}</argument>
299 <argument>sslport=${sslport}</argument>
305 <executable>java</executable>
309 <groupId>com.att.ajsc</groupId>
310 <artifactId>ajsc-runner</artifactId>
311 <version>${ajscRuntimeVersion}</version>
323 <!-- purposely disable cobertura from parent pom as it is very broken
324 Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
327 <groupId>org.codehaus.mojo</groupId>
328 <artifactId>cobertura-maven-plugin</artifactId>
329 <version>2.7</version>
336 <!--This plugin's configuration is used to store Eclipse m2e settings
337 only. It has no influence on the Maven build itself. -->
339 <groupId>org.eclipse.m2e</groupId>
340 <artifactId>lifecycle-mapping</artifactId>
341 <version>1.0.0</version>
343 <lifecycleMappingMetadata>
346 <pluginExecutionFilter>
351 properties-maven-plugin
358 write-project-properties
361 </pluginExecutionFilter>
367 </lifecycleMappingMetadata>
372 <groupId>org.apache.maven.plugins</groupId>
373 <artifactId>maven-dependency-plugin</artifactId>
374 <version>3.0.0</version>
377 <id>copy-installed</id>
378 <phase>install</phase>
385 <groupId>org.openecomp.aai</groupId>
386 <artifactId>sparky-fe</artifactId>
387 <version>1.0.0-SNAPSHOT</version>
389 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
390 <destFileName>aai.war</destFileName>
399 <groupId>org.apache.maven.plugins</groupId>
400 <artifactId>maven-compiler-plugin</artifactId>
409 <groupId>org.apache.maven.plugins</groupId>
410 <artifactId>maven-resources-plugin</artifactId>
411 <version>2.7</version>
414 <id>copy-docker-file</id>
415 <phase>package</phase>
417 <goal>copy-resources</goal>
420 <outputDirectory>target</outputDirectory>
421 <overwrite>true</overwrite>
424 <directory>${basedir}/src/main/docker</directory>
425 <filtering>true</filtering>
427 <include>**/*</include>
431 <directory>${basedir}/src/main/scripts/</directory>
445 <groupId>org.apache.maven.plugins</groupId>
446 <artifactId>maven-site-plugin</artifactId>
447 <version>3.3</version>
451 <groupId>org.apache.maven.plugins</groupId>
452 <artifactId>maven-checkstyle-plugin</artifactId>
453 <version>2.17</version>
457 <report>checkstyle</report>
466 <groupId>org.apache.maven.plugins</groupId>
467 <artifactId>maven-resources-plugin</artifactId>
468 <version>2.7</version>
471 <id>copy-docker-file</id>
472 <phase>package</phase>
474 <goal>copy-resources</goal>
477 <outputDirectory>target</outputDirectory>
478 <overwrite>true</overwrite>
481 <directory>${basedir}/src/main/docker</directory>
482 <filtering>true</filtering>
484 <include>**/*</include>
488 <directory>${basedir}/src/main/scripts/</directory>
496 <groupId>com.spotify</groupId>
497 <artifactId>docker-maven-plugin</artifactId>
498 <version>0.4.11</version>
500 <verbose>true</verbose>
501 <serverId>docker-hub</serverId>
502 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
503 <dockerDirectory>${docker.location}</dockerDirectory>
505 <imageTag>latest</imageTag>
507 <forceTags>true</forceTags>
510 <!-- license plugin -->
512 <groupId>com.mycila</groupId>
513 <artifactId>license-maven-plugin</artifactId>
514 <version>3.0</version>
516 <header>LICENSE</header>
518 <include>src/main/java/**</include>
526 <phase>process-sources</phase>
531 <groupId>org.sonatype.plugins</groupId>
532 <artifactId>nexus-staging-maven-plugin</artifactId>
533 <version>1.6.7</version>
534 <extensions>true</extensions>
536 <nexusUrl>${nexusproxy}</nexusUrl>
537 <stagingProfileId>176c31dfe190a</stagingProfileId>
538 <serverId>ecomp-staging</serverId>
542 <groupId>org.apache.maven.plugins</groupId>
543 <artifactId>maven-deploy-plugin</artifactId>
549 <groupId>org.codehaus.mojo</groupId>
550 <artifactId>sonar-maven-plugin</artifactId>
551 <version>3.2</version>
554 <groupId>org.jacoco</groupId>
555 <artifactId>jacoco-maven-plugin</artifactId>
556 <version>0.7.9</version>
558 <destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
559 <dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>
563 <id>prepare-agent</id>
565 <goal>prepare-agent</goal>
570 <phase>package</phase>
580 <distributionManagement>
582 <id>ecomp-releases</id>
583 <name>ECOMP Release Repository</name>
584 <url>${nexusproxy}/content/repositories/releases/</url>
587 <id>ecomp-snapshots</id>
588 <name>ECOMP Snapshot Repository</name>
589 <url>${nexusproxy}/content/repositories/snapshots/</url>
590 </snapshotRepository>
591 </distributionManagement>