2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2017-2018 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
26 <artifactId>ajsc-archetype-parent</artifactId>
27 <groupId>com.att.ajsc</groupId>
28 <version>2.0.0</version>
30 <groupId>org.onap.aai.sparky-be</groupId>
31 <artifactId>sparky-be</artifactId>
32 <version>1.2.0-SNAPSHOT</version>
33 <name>aai-sparky-be</name>
36 <docker.location>${basedir}/target</docker.location>
37 <module.ajsc.namespace.name>inventory-ui-service</module.ajsc.namespace.name>
38 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
39 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
40 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
41 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
42 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
43 <frontEndVersion>1.1.0-SNAPSHOT</frontEndVersion>
45 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
46 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
47 version, THIS will be used as your directory structure. If you do NOT want
48 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
50 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
51 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
53 <!-- For SOA Cloud Installation -->
54 <installOwnerUser>aaiadmin</installOwnerUser>
55 <installOwnerGroup>aaiadmin</installOwnerGroup>
56 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
58 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
59 For local testing, you may choose to hardcode this value to something like
61 <serverPort>9517</serverPort>
62 <sslport>8000</sslport>
64 <testRouteOffer>workstation</testRouteOffer>
65 <testEnv>DEV</testEnv>
66 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
67 <nexusproxy>https://nexus.onap.org</nexusproxy>
69 <!-- Sonar Configuration -->
70 <sonar.language>java</sonar.language>
71 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
72 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
73 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
74 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
75 <sonar.projectVersion>${project.version}</sonar.projectVersion>
80 <groupId>org.mockito</groupId>
81 <artifactId>mockito-all</artifactId>
82 <version>1.10.19</version>
86 <groupId>org.powermock</groupId>
87 <artifactId>powermock-module-junit4</artifactId>
88 <version>1.6.2</version>
92 <groupId>org.powermock</groupId>
93 <artifactId>powermock-api-mockito</artifactId>
94 <version>1.6.2</version>
98 <groupId>org.powermock</groupId>
99 <artifactId>powermock-module-javaagent</artifactId>
100 <version>1.6.2</version>
104 <groupId>org.powermock</groupId>
105 <artifactId>powermock-module-junit4-rule-agent</artifactId>
106 <version>1.6.2</version>
112 <groupId>dom4j</groupId>
113 <artifactId>dom4j</artifactId>
114 <version>1.6.1</version>
115 <scope>provided</scope>
118 <groupId>com.att.aft</groupId>
119 <artifactId>dme2</artifactId>
120 <version>3.1.200</version>
121 <scope>provided</scope>
125 <groupId>org.slf4j</groupId>
126 <artifactId>slf4j-api</artifactId>
127 <version>1.7.20</version>
131 <groupId>org.hamcrest</groupId>
132 <artifactId>hamcrest-library</artifactId>
133 <version>1.3</version>
138 <groupId>org.eclipse.persistence</groupId>
139 <artifactId>eclipselink</artifactId>
140 <version>2.6.2</version>
144 <groupId>com.fasterxml.jackson.core</groupId>
145 <artifactId>jackson-core</artifactId>
146 <version>2.7.4</version>
150 <groupId>org.json</groupId>
151 <artifactId>json</artifactId>
152 <version>20131018</version>
156 <groupId>com.fasterxml.jackson.core</groupId>
157 <artifactId>jackson-databind</artifactId>
158 <version>2.7.4</version>
162 <groupId>org.onap.aai.logging-service</groupId>
163 <artifactId>common-logging</artifactId>
164 <version>1.2.0</version>
168 <groupId>org.onap.aai.aai-common</groupId>
169 <artifactId>aai-schema</artifactId>
170 <version>1.2.0</version>
174 <groupId>org.onap.aai</groupId>
175 <artifactId>rest-client</artifactId>
176 <version>1.2.0</version>
180 <groupId>com.google.code.gson</groupId>
181 <artifactId>gson</artifactId>
182 <version>2.6.2</version>
186 <groupId>ch.qos.logback</groupId>
187 <artifactId>logback-classic</artifactId>
188 <version>1.1.7</version>
192 <groupId>ch.qos.logback</groupId>
193 <artifactId>logback-core</artifactId>
194 <version>1.1.7</version>
198 <groupId>commons-io</groupId>
199 <artifactId>commons-io</artifactId>
200 <version>2.4</version>
204 <groupId>log4j</groupId>
205 <artifactId>log4j</artifactId>
206 <version>1.2.17</version>
210 <groupId>com.openpojo</groupId>
211 <artifactId>openpojo</artifactId>
212 <version>0.8.6</version>
216 <groupId>org.onap.portal.sdk</groupId>
217 <artifactId>epsdk-fw</artifactId>
218 <version>1.3.0 </version>
221 <groupId>commons-logging</groupId>
222 <artifactId>commons-logging</artifactId>
225 <groupId>log4j</groupId>
226 <artifactId>log4j</artifactId>
229 <groupId>log4j</groupId>
230 <artifactId>apache-log4j-extras</artifactId>
233 <groupId>org.slf4j</groupId>
234 <artifactId>slf4j-log4j12</artifactId>
245 <defaultGoal>initialize</defaultGoal>
249 <groupId>org.codehaus.mojo</groupId>
250 <artifactId>exec-maven-plugin</artifactId>
251 <version>1.3.2</version>
254 <phase>initialize</phase>
259 <includeProjectDependencies>false</includeProjectDependencies>
260 <includePluginDependencies>true</includePluginDependencies>
261 <executable>java</executable>
262 <mainClass>com.att.ajsc.runner.Runner</mainClass>
263 <executableDependency>
264 <groupId>com.att.ajsc</groupId>
265 <artifactId>ajsc-runner</artifactId>
266 </executableDependency>
267 <additionalClasspathElements>
268 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
269 </additionalClasspathElements>
271 <environmentVariables>
272 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
273 </environmentVariables>
275 <!-- Main AJSC System Properties below (necessary for proper startup) -->
279 <value>${runAjscHome}</value>
282 <key>CONFIG_HOME</key>
283 <value>${basedir}/appconfig-local/</value>
286 <key>AJSC_CONF_HOME</key>
287 <value>${basedir}/bundleconfig-local</value>
290 <key>logback.configurationFile</key>
291 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
294 <key>AJSC_SHARED_CONFIG</key>
295 <value>${basedir}/ajsc-shared-config</value>
299 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
300 <value>${basedir}/target/commonLibs</value>
303 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
304 <value>${basedir}/ajsc-shared-config/etc</value>
308 <key>AJSC_SERVICE_NAMESPACE</key>
309 <value>${module.ajsc.namespace.name}</value>
312 <key>AJSC_SERVICE_VERSION</key>
313 <value>${module.ajsc.namespace.version}</value>
316 <key>SOACLOUD_SERVICE_VERSION</key>
317 <value>${project.version}</value>
320 <key>server.port</key>
321 <value>${serverPort}</value>
325 <!-- Command Line Arguments to add to the java command. Here, you
326 can specify the port as well as the Context you want your service to run
327 in. Use context=/ to run in an unnamed Context (Root Context). The default
328 configuration of the AJSC is to run under the / Context. Setting the port
329 here can aid during the development phase of your service. However, you can
330 leave this argument out entirely, and the AJSC will default to using an Ephemeral
333 <argument>context=/</argument>
334 <argument>port=${serverPort}</argument>
335 <argument>sslport=${sslport}</argument>
341 <executable>java</executable>
345 <groupId>com.att.ajsc</groupId>
346 <artifactId>ajsc-runner</artifactId>
347 <version>${ajscRuntimeVersion}</version>
359 <!-- purposely disable cobertura from parent pom as it is very broken
360 Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
363 <groupId>org.codehaus.mojo</groupId>
364 <artifactId>cobertura-maven-plugin</artifactId>
365 <version>2.7</version>
372 <!--This plugin's configuration is used to store Eclipse m2e settings
373 only. It has no influence on the Maven build itself. -->
375 <groupId>org.eclipse.m2e</groupId>
376 <artifactId>lifecycle-mapping</artifactId>
377 <version>1.0.0</version>
379 <lifecycleMappingMetadata>
382 <pluginExecutionFilter>
387 properties-maven-plugin
394 write-project-properties
397 </pluginExecutionFilter>
403 </lifecycleMappingMetadata>
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-dependency-plugin</artifactId>
410 <version>3.0.0</version>
413 <id>copy-installed</id>
414 <phase>install</phase>
421 <groupId>${frontEndGroupdId}</groupId>
422 <artifactId>${frontEndArtifactId}</artifactId>
423 <version>${frontEndVersion}</version>
425 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
426 <destFileName>aai.war</destFileName>
435 <groupId>org.apache.maven.plugins</groupId>
436 <artifactId>maven-compiler-plugin</artifactId>
445 <groupId>org.apache.maven.plugins</groupId>
446 <artifactId>maven-resources-plugin</artifactId>
447 <version>2.7</version>
450 <id>copy-docker-file</id>
451 <phase>package</phase>
453 <goal>copy-resources</goal>
456 <outputDirectory>target</outputDirectory>
457 <overwrite>true</overwrite>
460 <directory>${basedir}/src/main/docker</directory>
461 <filtering>true</filtering>
463 <include>**/*</include>
467 <directory>${basedir}/src/main/scripts/</directory>
481 <groupId>org.apache.maven.plugins</groupId>
482 <artifactId>maven-site-plugin</artifactId>
483 <version>3.3</version>
487 <groupId>org.apache.maven.plugins</groupId>
488 <artifactId>maven-checkstyle-plugin</artifactId>
489 <version>2.17</version>
493 <report>checkstyle</report>
502 <groupId>org.apache.maven.plugins</groupId>
503 <artifactId>maven-resources-plugin</artifactId>
504 <version>2.7</version>
507 <id>copy-docker-file</id>
508 <phase>package</phase>
510 <goal>copy-resources</goal>
513 <outputDirectory>target</outputDirectory>
514 <overwrite>true</overwrite>
517 <directory>${basedir}/src/main/docker</directory>
518 <filtering>true</filtering>
520 <include>**/*</include>
524 <directory>${basedir}/src/main/scripts/</directory>
532 <groupId>com.spotify</groupId>
533 <artifactId>docker-maven-plugin</artifactId>
534 <version>0.4.11</version>
536 <verbose>true</verbose>
537 <serverId>docker-hub</serverId>
538 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
539 <dockerDirectory>${docker.location}</dockerDirectory>
541 <imageTag>latest</imageTag>
543 <forceTags>true</forceTags>
548 <groupId>com.mycila</groupId>
549 <artifactId>license-maven-plugin</artifactId>
550 <version>3.0</version>
552 <header>LICENSE</header>
554 <include>src/main/java/**</include>
562 <phase>process-sources</phase>
567 <groupId>org.sonatype.plugins</groupId>
568 <artifactId>nexus-staging-maven-plugin</artifactId>
569 <version>1.6.7</version>
570 <extensions>true</extensions>
572 <nexusUrl>${nexusproxy}</nexusUrl>
573 <stagingProfileId>176c31dfe190a</stagingProfileId>
574 <serverId>ecomp-staging</serverId>
578 <groupId>org.apache.maven.plugins</groupId>
579 <artifactId>maven-deploy-plugin</artifactId>
585 <groupId>org.codehaus.mojo</groupId>
586 <artifactId>sonar-maven-plugin</artifactId>
587 <version>3.2</version>
590 <groupId>org.jacoco</groupId>
591 <artifactId>jacoco-maven-plugin</artifactId>
592 <version>0.7.7.201606060606</version>
594 <dumpOnExit>true</dumpOnExit>
598 <id>jacoco-initialize-unit-tests</id>
600 <goal>prepare-agent</goal>
603 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
604 <!-- <append>true</append> -->
612 <distributionManagement>
614 <id>ecomp-releases</id>
615 <name>ECOMP Release Repository</name>
616 <url>${nexusproxy}/content/repositories/releases/</url>
619 <id>ecomp-snapshots</id>
620 <name>ECOMP Snapshot Repository</name>
621 <url>${nexusproxy}/content/repositories/snapshots/</url>
622 </snapshotRepository>
623 </distributionManagement>