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=========================================================
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
28 <artifactId>ajsc-archetype-parent</artifactId>
29 <groupId>com.att.ajsc</groupId>
30 <version>2.0.0</version>
33 <groupId>org.onap.aai.gizmo</groupId>
34 <artifactId>gizmo</artifactId>
35 <version>1.2.0-SNAPSHOT</version>
36 <name>aai-gizmo</name>
39 <docker.location>${basedir}/target</docker.location>
40 <module.ajsc.namespace.name>crud-api</module.ajsc.namespace.name>
41 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
42 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
43 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
44 <nexusproxy>https://nexus.onap.org</nexusproxy>
46 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
47 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
48 version, THIS will be used as your directory structure. If you do NOT want
49 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
51 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
52 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
54 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
55 For local testing, you may choose to hardcode this value to something like
57 <serverPort>0</serverPort>
58 <sslport>9520</sslport>
60 <testRouteOffer>workstation</testRouteOffer>
61 <testEnv>DEV</testEnv>
62 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
64 <sonar.language>java</sonar.language>
65 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
66 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
67 </sonar.surefire.reportsPath>
68 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
69 </sonar.jacoco.reportPath>
70 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
71 <sonar.projectVersion>${project.version}</sonar.projectVersion>
72 <version.org.hamcrest.hamcrest-library>1.3</version.org.hamcrest.hamcrest-library>
77 <groupId>dom4j</groupId>
78 <artifactId>dom4j</artifactId>
79 <version>1.6.1</version>
80 <scope>provided</scope>
84 <groupId>com.att.aft</groupId>
85 <artifactId>dme2</artifactId>
86 <version>3.1.200</version>
90 <groupId>commons-io</groupId>
91 <artifactId>commons-io</artifactId>
92 <version>2.4</version>
96 <groupId>com.google.code.gson</groupId>
97 <artifactId>gson</artifactId>
98 <version>2.6.2</version>
101 <!-- Common logging framework -->
103 <groupId>org.onap.aai.logging-service</groupId>
104 <artifactId>common-logging</artifactId>
105 <version>1.2.2</version>
108 <groupId>org.glassfish.jersey.core</groupId>
109 <artifactId>jersey-client</artifactId>
110 <version>2.23</version>
113 <groupId>ch.qos.logback</groupId>
114 <artifactId>logback-core</artifactId>
115 <version>1.1.7</version>
118 <groupId>org.onap.aai.event-client</groupId>
119 <artifactId>event-client-dmaap</artifactId>
120 <version>1.2.1</version>
123 <groupId>org.onap.aai.aai-common</groupId>
124 <artifactId>aai-schema</artifactId>
125 <version>1.2.1</version>
128 <groupId>org.onap.aai.aai-common</groupId>
129 <artifactId>aai-utils</artifactId>
130 <version>1.2.1</version>
133 <groupId>org.onap.aai.aai-common</groupId>
134 <artifactId>aai-core</artifactId>
135 <version>1.2.1</version>
139 <artifactId>*</artifactId>
145 <groupId>org.onap.aai.aai-common</groupId>
146 <artifactId>aai-auth</artifactId>
147 <version>1.2.1</version>
151 <groupId>org.eclipse.persistence</groupId>
152 <artifactId>eclipselink</artifactId>
153 <version>2.6.2</version>
157 <groupId>org.onap.aai</groupId>
158 <artifactId>rest-client</artifactId>
159 <version>1.2.1</version>
162 <groupId>net.dongliu</groupId>
163 <artifactId>gson-java8-datatype</artifactId>
164 <version>1.0.3</version>
167 <groupId>com.jayway.jsonpath</groupId>
168 <artifactId>json-path</artifactId>
169 <version>2.2.0</version>
172 <!-- AAI-CORE specific dependencies -->
174 <groupId>org.apache.tinkerpop</groupId>
175 <artifactId>gremlin-core</artifactId>
176 <version>3.2.3</version>
177 <scope>provided</scope>
180 <groupId>org.slf4j</groupId>
181 <artifactId>slf4j-log4j12</artifactId>
184 <groupId>org.slf4j</groupId>
185 <artifactId>jcl-over-slf4j</artifactId>
191 <groupId>org.apache.tinkerpop</groupId>
192 <artifactId>tinkergraph-gremlin</artifactId>
193 <version>3.2.3</version>
194 <scope>provided</scope>
198 <groupId>org.json</groupId>
199 <artifactId>json</artifactId>
200 <version>20160212</version>
203 <groupId>junit</groupId>
204 <artifactId>junit</artifactId>
208 <groupId>org.skyscreamer</groupId>
209 <artifactId>jsonassert</artifactId>
210 <version>1.5.0</version>
215 <groupId>org.hamcrest</groupId>
216 <artifactId>hamcrest-library</artifactId>
217 <version>${version.org.hamcrest.hamcrest-library}</version>
225 <name>Maven 2 repository 2</name>
226 <url>http://repo2.maven.org/maven2/</url>
229 <id>ecomp-releases</id>
230 <name>ECOMP Release Repository</name>
231 <url>${nexusproxy}/content/repositories/releases/</url>
234 <id>ecomp-snapshots</id>
235 <name>ECOMP Snapshot Repository</name>
236 <url>${nexusproxy}/content/repositories/snapshots/</url>
239 <id>ecomp-staging</id>
240 <name>ECOMP Staging Repository</name>
241 <url>${nexusproxy}/content/repositories/staging/</url>
246 <finalName>${project.artifactId}</finalName>
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-resources-plugin</artifactId>
251 <version>2.7</version>
254 <id>copy-docker-file</id>
255 <phase>package</phase>
257 <goal>copy-resources</goal>
260 <outputDirectory>target</outputDirectory>
261 <overwrite>true</overwrite>
264 <directory>${basedir}/src/main/docker</directory>
265 <filtering>true</filtering>
267 <include>**/*</include>
271 <directory>${basedir}/src/main/bin/</directory>
280 <groupId>com.spotify</groupId>
281 <artifactId>docker-maven-plugin</artifactId>
282 <version>0.4.11</version>
284 <verbose>true</verbose>
285 <serverId>docker-hub</serverId>
286 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
287 <dockerDirectory>${docker.location}</dockerDirectory>
289 <imageTag>latest</imageTag>
291 <forceTags>true</forceTags>
295 <!-- license plugin -->
296 <!-- Uncomment this to add a license header to every source file
298 <groupId>com.mycila</groupId>
299 <artifactId>license-maven-plugin</artifactId>
300 <version>3.0</version>
302 <header>License.txt</header>
304 <include>src/main/java/**</include>
305 <include>src/test/java/**</include>
313 <phase>process-sources</phase>
320 <groupId>org.apache.maven.plugins</groupId>
321 <artifactId>maven-site-plugin</artifactId>
322 <version>3.3</version>
326 <groupId>org.apache.maven.plugins</groupId>
327 <artifactId>maven-checkstyle-plugin</artifactId>
328 <version>2.17</version>
332 <report>checkstyle</report>
342 <groupId>org.apache.maven.plugins</groupId>
343 <artifactId>maven-deploy-plugin</artifactId>
350 <groupId>org.codehaus.mojo</groupId>
351 <artifactId>sonar-maven-plugin</artifactId>
352 <version>3.2</version>
356 <groupId>org.jacoco</groupId>
357 <artifactId>jacoco-maven-plugin</artifactId>
358 <version>0.7.7.201606060606</version>
360 <dumpOnExit>true</dumpOnExit>
364 <id>jacoco-initialize-unit-tests</id>
366 <goal>prepare-agent</goal>
369 <destFile>${project.build.directory}/coverage-reports/jacoco.exec
371 <!-- <append>true</append> -->
383 <defaultGoal>initialize</defaultGoal>
386 <groupId>org.codehaus.mojo</groupId>
387 <artifactId>exec-maven-plugin</artifactId>
388 <version>1.3.2</version>
391 <phase>initialize</phase>
396 <includeProjectDependencies>false</includeProjectDependencies>
397 <includePluginDependencies>true</includePluginDependencies>
398 <executable>java</executable>
399 <mainClass>com.att.ajsc.runner.Runner</mainClass>
400 <executableDependency>
401 <groupId>com.att.ajsc</groupId>
402 <artifactId>ajsc-runner</artifactId>
403 </executableDependency>
404 <additionalClasspathElements>
405 <additionalClasspathElement>
406 ${basedir}/ajsc-shared-config/etc
407 </additionalClasspathElement>
408 </additionalClasspathElements>
410 <environmentVariables>
411 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
412 </environmentVariables>
414 <!-- Main AJSC System Properties below (necessary for proper startup) -->
418 <value>${runAjscHome}</value>
421 <key>CONFIG_HOME</key>
422 <value>${basedir}/appconfig-local/</value>
425 <key>AJSC_CONF_HOME</key>
426 <value>${basedir}/bundleconfig-local</value>
429 <key>logback.configurationFile</key>
430 <value>${basedir}/ajsc-shared-config/etc/logback.xml
434 <key>AJSC_SHARED_CONFIG</key>
435 <value>${basedir}/ajsc-shared-config</value>
439 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
440 <value>${basedir}/target/commonLibs</value>
443 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
444 <value>${basedir}/ajsc-shared-config/etc</value>
448 <key>AJSC_SERVICE_NAMESPACE</key>
449 <value>${module.ajsc.namespace.name}</value>
452 <key>AJSC_SERVICE_VERSION</key>
453 <value>${module.ajsc.namespace.version}</value>
456 <key>SOACLOUD_SERVICE_VERSION</key>
457 <value>${project.version}</value>
460 <key>server.port</key>
461 <value>${serverPort}</value>
465 <!-- Command Line Arguments to add to the java command. Here, you
466 can specify the port as well as the Context you want your service to run
467 in. Use context=/ to run in an unnamed Context (Root Context). The default
468 configuration of the AJSC is to run under the / Context. Setting the port
469 here can aid during the development phase of your service. However, you can
470 leave this argument out entirely, and the AJSC will default to using an Ephemeral
473 <argument>context=/</argument>
474 <argument>port=${serverPort}</argument>
475 <argument>sslport=${sslport}</argument>
481 <executable>java</executable>
485 <groupId>com.att.ajsc</groupId>
486 <artifactId>ajsc-runner</artifactId>
487 <version>${ajscRuntimeVersion}</version>
496 <dependencyManagement>
499 <groupId>org.apache.httpcomponents</groupId>
500 <artifactId>httpclient</artifactId>
501 <version>4.5</version>
504 <groupId>org.apache.httpcomponents</groupId>
505 <artifactId>httpcore</artifactId>
506 <version>4.4.1</version>
509 <groupId>org.json</groupId>
510 <artifactId>json</artifactId>
511 <version>20131018</version>
514 </dependencyManagement>
516 <distributionManagement>
518 <id>ecomp-releases</id>
519 <name>ECOMP Release Repository</name>
520 <url>${nexusproxy}/content/repositories/releases/</url>
523 <id>ecomp-snapshots</id>
524 <name>ECOMP Snapshot Repository</name>
525 <url>${nexusproxy}/content/repositories/snapshots/</url>
526 </snapshotRepository>
528 <id>ecomp-javadoc</id>
529 <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
531 </distributionManagement>