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.onap.aai.sparky-be</groupId>
11 <artifactId>sparky-be</artifactId>
12 <version>1.2.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>
21 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
22 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
23 <frontEndVersion>1.1.0-SNAPSHOT</frontEndVersion>
25 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
26 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
27 version, THIS will be used as your directory structure. If you do NOT want
28 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
30 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
31 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
33 <!-- For SOA Cloud Installation -->
34 <installOwnerUser>aaiadmin</installOwnerUser>
35 <installOwnerGroup>aaiadmin</installOwnerGroup>
36 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
38 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
39 For local testing, you may choose to hardcode this value to something like
41 <serverPort>9517</serverPort>
42 <sslport>8000</sslport>
44 <testRouteOffer>workstation</testRouteOffer>
45 <testEnv>DEV</testEnv>
46 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
47 <nexusproxy>https://nexus.onap.org</nexusproxy>
49 <!-- Sonar Configuration -->
50 <sonar.language>java</sonar.language>
51 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
52 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
53 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
54 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
55 <sonar.projectVersion>${project.version}</sonar.projectVersion>
60 <groupId>org.mockito</groupId>
61 <artifactId>mockito-all</artifactId>
62 <version>1.10.19</version>
66 <groupId>org.powermock</groupId>
67 <artifactId>powermock-module-junit4</artifactId>
68 <version>1.6.2</version>
72 <groupId>org.powermock</groupId>
73 <artifactId>powermock-api-mockito</artifactId>
74 <version>1.6.2</version>
78 <groupId>org.powermock</groupId>
79 <artifactId>powermock-module-javaagent</artifactId>
80 <version>1.6.2</version>
84 <groupId>org.powermock</groupId>
85 <artifactId>powermock-module-junit4-rule-agent</artifactId>
86 <version>1.6.2</version>
92 <groupId>dom4j</groupId>
93 <artifactId>dom4j</artifactId>
94 <version>1.6.1</version>
95 <scope>provided</scope>
98 <groupId>com.att.aft</groupId>
99 <artifactId>dme2</artifactId>
100 <version>3.1.200</version>
101 <scope>provided</scope>
105 <groupId>org.slf4j</groupId>
106 <artifactId>slf4j-api</artifactId>
107 <version>1.7.20</version>
111 <groupId>org.hamcrest</groupId>
112 <artifactId>hamcrest-library</artifactId>
113 <version>1.3</version>
117 <!-- <dependency> <groupId>com.att.csp</groupId> <artifactId>gatekeeper</artifactId>
118 <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/gatekeeper-1.0.jar</systemPath>
119 </dependency> <dependency> <groupId>com.att.csp</groupId> <artifactId>PSE_Lite</artifactId>
120 <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/PSE_Lite-1.0.jar</systemPath>
124 <groupId>org.eclipse.persistence</groupId>
125 <artifactId>eclipselink</artifactId>
126 <version>2.6.2</version>
130 <groupId>com.fasterxml.jackson.core</groupId>
131 <artifactId>jackson-core</artifactId>
132 <version>2.7.4</version>
136 <groupId>org.json</groupId>
137 <artifactId>json</artifactId>
138 <version>20131018</version>
142 <groupId>com.fasterxml.jackson.core</groupId>
143 <artifactId>jackson-databind</artifactId>
144 <version>2.7.4</version>
148 <groupId>org.onap.aai.logging-service</groupId>
149 <artifactId>common-logging</artifactId>
150 <version>1.2.0</version>
154 <groupId>org.onap.aai.aai-common</groupId>
155 <artifactId>aai-schema</artifactId>
156 <version>1.2.0</version>
160 <groupId>org.onap.aai</groupId>
161 <artifactId>rest-client</artifactId>
162 <version>1.2.0</version>
166 <groupId>com.google.code.gson</groupId>
167 <artifactId>gson</artifactId>
168 <version>2.6.2</version>
172 <groupId>ch.qos.logback</groupId>
173 <artifactId>logback-classic</artifactId>
174 <version>1.1.7</version>
178 <groupId>ch.qos.logback</groupId>
179 <artifactId>logback-core</artifactId>
180 <version>1.1.7</version>
184 <groupId>commons-io</groupId>
185 <artifactId>commons-io</artifactId>
186 <version>2.4</version>
190 <groupId>log4j</groupId>
191 <artifactId>log4j</artifactId>
192 <version>1.2.17</version>
196 <groupId>com.openpojo</groupId>
197 <artifactId>openpojo</artifactId>
198 <version>0.8.6</version>
202 <groupId>org.onap.portal.sdk</groupId>
203 <artifactId>epsdk-fw</artifactId>
204 <version>1.3.0 </version>
207 <groupId>commons-logging</groupId>
208 <artifactId>commons-logging</artifactId>
211 <groupId>log4j</groupId>
212 <artifactId>log4j</artifactId>
215 <groupId>log4j</groupId>
216 <artifactId>apache-log4j-extras</artifactId>
219 <groupId>org.slf4j</groupId>
220 <artifactId>slf4j-log4j12</artifactId>
231 <defaultGoal>initialize</defaultGoal>
235 <groupId>org.codehaus.mojo</groupId>
236 <artifactId>exec-maven-plugin</artifactId>
237 <version>1.3.2</version>
240 <phase>initialize</phase>
245 <includeProjectDependencies>false</includeProjectDependencies>
246 <includePluginDependencies>true</includePluginDependencies>
247 <executable>java</executable>
248 <mainClass>com.att.ajsc.runner.Runner</mainClass>
249 <executableDependency>
250 <groupId>com.att.ajsc</groupId>
251 <artifactId>ajsc-runner</artifactId>
252 </executableDependency>
253 <additionalClasspathElements>
254 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
255 </additionalClasspathElements>
257 <environmentVariables>
258 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
259 </environmentVariables>
261 <!-- Main AJSC System Properties below (necessary for proper startup) -->
265 <value>${runAjscHome}</value>
268 <key>CONFIG_HOME</key>
269 <value>${basedir}/appconfig-local/</value>
272 <key>AJSC_CONF_HOME</key>
273 <value>${basedir}/bundleconfig-local</value>
276 <key>logback.configurationFile</key>
277 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
280 <key>AJSC_SHARED_CONFIG</key>
281 <value>${basedir}/ajsc-shared-config</value>
285 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
286 <value>${basedir}/target/commonLibs</value>
289 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
290 <value>${basedir}/ajsc-shared-config/etc</value>
294 <key>AJSC_SERVICE_NAMESPACE</key>
295 <value>${module.ajsc.namespace.name}</value>
298 <key>AJSC_SERVICE_VERSION</key>
299 <value>${module.ajsc.namespace.version}</value>
302 <key>SOACLOUD_SERVICE_VERSION</key>
303 <value>${project.version}</value>
306 <key>server.port</key>
307 <value>${serverPort}</value>
311 <!-- Command Line Arguments to add to the java command. Here, you
312 can specify the port as well as the Context you want your service to run
313 in. Use context=/ to run in an unnamed Context (Root Context). The default
314 configuration of the AJSC is to run under the / Context. Setting the port
315 here can aid during the development phase of your service. However, you can
316 leave this argument out entirely, and the AJSC will default to using an Ephemeral
319 <argument>context=/</argument>
320 <argument>port=${serverPort}</argument>
321 <argument>sslport=${sslport}</argument>
327 <executable>java</executable>
331 <groupId>com.att.ajsc</groupId>
332 <artifactId>ajsc-runner</artifactId>
333 <version>${ajscRuntimeVersion}</version>
345 <!-- purposely disable cobertura from parent pom as it is very broken
346 Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
349 <groupId>org.codehaus.mojo</groupId>
350 <artifactId>cobertura-maven-plugin</artifactId>
351 <version>2.7</version>
358 <!--This plugin's configuration is used to store Eclipse m2e settings
359 only. It has no influence on the Maven build itself. -->
361 <groupId>org.eclipse.m2e</groupId>
362 <artifactId>lifecycle-mapping</artifactId>
363 <version>1.0.0</version>
365 <lifecycleMappingMetadata>
368 <pluginExecutionFilter>
373 properties-maven-plugin
380 write-project-properties
383 </pluginExecutionFilter>
389 </lifecycleMappingMetadata>
394 <groupId>org.apache.maven.plugins</groupId>
395 <artifactId>maven-dependency-plugin</artifactId>
396 <version>3.0.0</version>
399 <id>copy-installed</id>
400 <phase>install</phase>
407 <groupId>${frontEndGroupdId}</groupId>
408 <artifactId>${frontEndArtifactId}</artifactId>
409 <version>${frontEndVersion}</version>
411 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
412 <destFileName>aai.war</destFileName>
421 <groupId>org.apache.maven.plugins</groupId>
422 <artifactId>maven-compiler-plugin</artifactId>
431 <groupId>org.apache.maven.plugins</groupId>
432 <artifactId>maven-resources-plugin</artifactId>
433 <version>2.7</version>
436 <id>copy-docker-file</id>
437 <phase>package</phase>
439 <goal>copy-resources</goal>
442 <outputDirectory>target</outputDirectory>
443 <overwrite>true</overwrite>
446 <directory>${basedir}/src/main/docker</directory>
447 <filtering>true</filtering>
449 <include>**/*</include>
453 <directory>${basedir}/src/main/scripts/</directory>
467 <groupId>org.apache.maven.plugins</groupId>
468 <artifactId>maven-site-plugin</artifactId>
469 <version>3.3</version>
473 <groupId>org.apache.maven.plugins</groupId>
474 <artifactId>maven-checkstyle-plugin</artifactId>
475 <version>2.17</version>
479 <report>checkstyle</report>
488 <groupId>org.apache.maven.plugins</groupId>
489 <artifactId>maven-resources-plugin</artifactId>
490 <version>2.7</version>
493 <id>copy-docker-file</id>
494 <phase>package</phase>
496 <goal>copy-resources</goal>
499 <outputDirectory>target</outputDirectory>
500 <overwrite>true</overwrite>
503 <directory>${basedir}/src/main/docker</directory>
504 <filtering>true</filtering>
506 <include>**/*</include>
510 <directory>${basedir}/src/main/scripts/</directory>
518 <groupId>com.spotify</groupId>
519 <artifactId>docker-maven-plugin</artifactId>
520 <version>0.4.11</version>
522 <verbose>true</verbose>
523 <serverId>docker-hub</serverId>
524 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
525 <dockerDirectory>${docker.location}</dockerDirectory>
527 <imageTag>latest</imageTag>
529 <forceTags>true</forceTags>
532 <!-- license plugin -->
534 <groupId>com.mycila</groupId>
535 <artifactId>license-maven-plugin</artifactId>
536 <version>3.0</version>
538 <header>LICENSE</header>
540 <include>src/main/java/**</include>
548 <phase>process-sources</phase>
553 <groupId>org.sonatype.plugins</groupId>
554 <artifactId>nexus-staging-maven-plugin</artifactId>
555 <version>1.6.7</version>
556 <extensions>true</extensions>
558 <nexusUrl>${nexusproxy}</nexusUrl>
559 <stagingProfileId>176c31dfe190a</stagingProfileId>
560 <serverId>ecomp-staging</serverId>
564 <groupId>org.apache.maven.plugins</groupId>
565 <artifactId>maven-deploy-plugin</artifactId>
571 <groupId>org.codehaus.mojo</groupId>
572 <artifactId>sonar-maven-plugin</artifactId>
573 <version>3.2</version>
576 <groupId>org.jacoco</groupId>
577 <artifactId>jacoco-maven-plugin</artifactId>
578 <version>0.7.7.201606060606</version>
580 <dumpOnExit>true</dumpOnExit>
584 <id>jacoco-initialize-unit-tests</id>
586 <goal>prepare-agent</goal>
589 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
590 <!-- <append>true</append> -->
598 <distributionManagement>
600 <id>ecomp-releases</id>
601 <name>ECOMP Release Repository</name>
602 <url>${nexusproxy}/content/repositories/releases/</url>
605 <id>ecomp-snapshots</id>
606 <name>ECOMP Snapshot Repository</name>
607 <url>${nexusproxy}/content/repositories/snapshots/</url>
608 </snapshotRepository>
609 </distributionManagement>