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</groupId>
11 <artifactId>inventory-ui-service</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 <additionalClasspathElement>${basedir}/appconfig-local</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>