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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
27 <artifactId>ajsc-archetype-parent</artifactId>
28 <groupId>com.att.ajsc</groupId>
29 <version>2.0.0</version>
32 <groupId>org.onap.aai.model-loader</groupId>
33 <artifactId>model-loader</artifactId>
34 <version>1.2.0-SNAPSHOT</version>
37 <docker.location>${basedir}/target</docker.location>
38 <module.ajsc.namespace.name>model-loader</module.ajsc.namespace.name>
39 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
40 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
41 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
42 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
43 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
45 <javax.ws.rs-api.version>2.0.1</javax.ws.rs-api.version>
46 <apache.lang3.version>3.6</apache.lang3.version>
47 <apache.commons-text.version>1.1</apache.commons-text.version>
48 <commons-compress.version>1.14</commons-compress.version>
49 <fasterxml.version>2.8.1</fasterxml.version>
50 <mockito.version>1.10.19</mockito.version>
51 <powermock.version>1.6.2</powermock.version>
52 <jsr311-api.version>1.1.1</jsr311-api.version>
53 <jersey-client.version>1.18</jersey-client.version>
54 <gson.version>2.7</gson.version>
55 <hamcrest-all.version>1.3</hamcrest-all.version>
56 <version.jacoco.maven.plugin>0.7.9</version.jacoco.maven.plugin>
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>9500</serverPort>
65 <!-- For SOA Cloud Installation -->
66 <installOwnerUser>aaiadmin</installOwnerUser>
67 <installOwnerGroup>aaiadmin</installOwnerGroup>
68 <ownerManagementGroup>org.openecomp.aai.dev</ownerManagementGroup>
70 <testRouteOffer>workstation</testRouteOffer>
71 <testEnv>DEV</testEnv>
73 <dependency.scope>provided</dependency.scope>
74 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
75 <maven.compiler.source>1.8</maven.compiler.source>
76 <maven.compiler.target>1.8</maven.compiler.target>
77 <sonar.language>java</sonar.language>
78 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
79 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
80 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
81 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
82 <sonar.projectVersion>${project.version}</sonar.projectVersion>
83 <nexusproxy>https://nexus.openecomp.org</nexusproxy>
84 <babel.version>1.2.0-SNAPSHOT</babel.version>
85 <aai.rest.client.version>1.2.1</aai.rest.client.version>
88 <distributionManagement>
90 <id>ecomp-releases</id>
91 <name>ECOMP Release Repository</name>
92 <url>${nexusproxy}/content/repositories/releases/</url>
95 <id>ecomp-snapshots</id>
96 <name>ECOMP Snapshot Repository</name>
97 <url>${nexusproxy}/content/repositories/snapshots/</url>
99 </distributionManagement>
103 <groupId>org.onap.aai</groupId>
104 <artifactId>babel</artifactId>
105 <version>${babel.version}</version>
106 <classifier>client</classifier>
110 <artifactId>*</artifactId>
115 <groupId>javax.ws.rs</groupId>
116 <artifactId>javax.ws.rs-api</artifactId>
117 <version>${javax.ws.rs-api.version}</version>
120 <groupId>javax.ws.rs</groupId>
121 <artifactId>jsr311-api</artifactId>
122 <version>${jsr311-api.version}</version>
124 <!-- https://mvnrepository.com/artifact/com.sun.jersey/jersey-bundle -->
126 <groupId>com.sun.jersey</groupId>
127 <artifactId>jersey-client</artifactId>
128 <version>${jersey-client.version}</version>
131 <groupId>org.onap.aai</groupId>
132 <artifactId>rest-client</artifactId>
133 <version>${aai.rest.client.version}</version>
136 <groupId>com.google.code.gson</groupId>
137 <artifactId>gson</artifactId>
138 <version>${gson.version}</version>
141 <!-- Test dependencies -->
143 <groupId>org.hamcrest</groupId>
144 <artifactId>hamcrest-all</artifactId>
145 <version>${hamcrest-all.version}</version>
149 <groupId>org.mockito</groupId>
150 <artifactId>mockito-core</artifactId>
151 <version>${mockito.version}</version>
155 <groupId>org.powermock</groupId>
156 <artifactId>powermock-module-junit4</artifactId>
157 <version>${powermock.version}</version>
161 <groupId>org.powermock</groupId>
162 <artifactId>powermock-api-mockito</artifactId>
163 <version>${powermock.version}</version>
167 <groupId>org.powermock</groupId>
168 <artifactId>powermock-module-junit4-rule-agent</artifactId>
169 <version>1.6.2</version>
173 <artifactId>powermock-module-javaagent</artifactId>
174 <groupId>org.powermock</groupId>
179 <groupId>org.javassist</groupId>
180 <artifactId>javassist</artifactId>
181 <version>3.19.0-GA</version>
184 <groupId>com.fasterxml.jackson.core</groupId>
185 <artifactId>jackson-core</artifactId>
186 <version>${fasterxml.version}</version><!--$NO-MVN-MAN-VER$ -->
189 <!-- xjc dependencies -->
191 <groupId>javax.xml.bind</groupId>
192 <artifactId>jaxb-api</artifactId>
193 <version>2.2.11</version>
196 <groupId>com.sun.xml.bind</groupId>
197 <artifactId>jaxb-impl</artifactId>
198 <version>2.2.11</version>
201 <groupId>com.sun.xml.bind</groupId>
202 <artifactId>jaxb-core</artifactId>
203 <version>2.2.11</version>
206 <groupId>com.sun.xml.bind</groupId>
207 <artifactId>jaxb-xjc</artifactId>
208 <version>2.2.11</version>
211 <groupId>org.eclipse.persistence</groupId>
212 <artifactId>org.eclipse.persistence.moxy</artifactId>
213 <version>2.6.2</version>
214 <scope>compile</scope>
216 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
218 <groupId>com.mikesamuel</groupId>
219 <artifactId>json-sanitizer</artifactId>
220 <version>1.2.0</version>
223 <!-- Common logging framework -->
225 <groupId>org.onap.aai.logging-service</groupId>
226 <artifactId>common-logging</artifactId>
227 <version>1.2.2</version>
230 <groupId>ch.qos.logback</groupId>
231 <artifactId>logback-core</artifactId>
232 <version>1.1.7</version>
235 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
236 <artifactId>sdc-distribution-client</artifactId>
237 <version>1.2.2</version>
240 <groupId>org.apache.httpcomponents</groupId>
241 <artifactId>httpclient</artifactId>
242 <version>4.5</version>
245 <groupId>org.json</groupId>
246 <artifactId>json</artifactId>
247 <version>20131018</version><!--$NO-MVN-MAN-VER$ -->
250 <groupId>org.eclipse.jetty</groupId>
251 <artifactId>jetty-security</artifactId>
252 <version>9.3.8.RC0</version>
255 <groupId>org.springframework</groupId>
256 <artifactId>spring-webmvc</artifactId>
259 <groupId>jline</groupId>
260 <artifactId>jline</artifactId>
261 <version>2.12.1</version>
264 <groupId>org.yaml</groupId>
265 <artifactId>snakeyaml</artifactId>
266 <version>1.18</version>
269 <!-- apache commons -->
271 <groupId>org.apache.commons</groupId>
272 <artifactId>commons-compress</artifactId>
273 <version>${commons-compress.version}</version>
276 <groupId>commons-io</groupId>
277 <artifactId>commons-io</artifactId>
280 <groupId>org.apache.commons</groupId>
281 <artifactId>commons-lang3</artifactId>
282 <version>${apache.lang3.version}</version>
285 <groupId>org.apache.commons</groupId>
286 <artifactId>commons-text</artifactId>
287 <version>${apache.commons-text.version}</version>
291 <!-- Plugins and repositories -->
295 <url>http://repo1.maven.org/maven2</url>
299 <name>EvoSuite Repository</name>
300 <url>http://www.evosuite.org/m2</url>
302 </pluginRepositories>
308 <defaultGoal>initialize</defaultGoal>
311 <groupId>org.codehaus.mojo</groupId>
312 <artifactId>exec-maven-plugin</artifactId>
313 <version>1.3.2</version>
316 <phase>initialize</phase>
321 <includeProjectDependencies>false</includeProjectDependencies>
322 <includePluginDependencies>true</includePluginDependencies>
323 <executable>java</executable>
324 <mainClass>com.att.ajsc.runner.Runner</mainClass>
325 <executableDependency>
326 <groupId>com.att.ajsc</groupId>
327 <artifactId>ajsc-runner</artifactId>
328 </executableDependency>
329 <additionalClasspathElements>
330 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
331 </additionalClasspathElements>
333 <environmentVariables>
334 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
335 </environmentVariables>
337 <!-- Main AJSC System Properties below (necessary for proper startup) -->
341 <value>${runAjscHome}</value>
344 <key>CONFIG_HOME</key>
345 <value>${basedir}/appconfig-local/</value>
348 <key>AJSC_CONF_HOME</key>
349 <value>${basedir}/bundleconfig-local</value>
352 <key>logback.configurationFile</key>
353 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
356 <key>AJSC_SHARED_CONFIG</key>
357 <value>${basedir}/ajsc-shared-config</value>
361 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
362 <value>${basedir}/target/commonLibs</value>
365 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
366 <value>${basedir}/ajsc-shared-config/etc</value>
369 <key>AJSC_SERVICE_NAMESPACE</key>
370 <value>${module.ajsc.namespace.name}</value>
373 <key>AJSC_SERVICE_VERSION</key>
374 <value>${module.ajsc.namespace.version}</value>
377 <key>SOACLOUD_SERVICE_VERSION</key>
378 <value>${project.version}</value>
381 <key>server.port</key>
382 <value>${serverPort}</value>
386 <!-- Command Line Arguments to add to the java command. Here, you
387 can specify the port as well as the Context you want your service to run
388 in. Use context=/ to run in an unnamed Context (Root Context). The default
389 configuration of the AJSC is to run under the / Context. Setting the port
390 here can aid during the development phase of your service. However, you can
391 leave this argument out entirely, and the AJSC will default to using an Ephemeral
394 <argument>context=//</argument>
395 <argument>port=${serverPort}</argument>
396 <argument>sslport=${sslport}</argument>
402 <executable>java</executable>
406 <groupId>com.att.ajsc</groupId>
407 <artifactId>ajsc-runner</artifactId>
408 <version>${ajscRuntimeVersion}</version>
420 <groupId>org.apache.maven.plugins</groupId>
421 <artifactId>maven-resources-plugin</artifactId>
422 <version>2.7</version>
425 <id>copy-docker-file</id>
426 <phase>package</phase>
428 <goal>copy-resources</goal>
431 <outputDirectory>target</outputDirectory>
432 <overwrite>true</overwrite>
435 <directory>${basedir}/src/main/docker</directory>
436 <filtering>true</filtering>
438 <include>**/*</include>
442 <directory>${basedir}/src/main/bin/</directory>
450 <groupId>com.spotify</groupId>
451 <artifactId>docker-maven-plugin</artifactId>
452 <version>0.4.11</version>
454 <verbose>true</verbose>
455 <serverId>docker-hub</serverId>
456 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
457 <dockerDirectory>${docker.location}</dockerDirectory>
459 <imageTag>latest</imageTag>
461 <forceTags>true</forceTags>
465 <groupId>org.apache.maven.plugins</groupId>
466 <artifactId>maven-dependency-plugin</artifactId>
467 <version>2.8</version>
471 <phase>process-test-classes</phase>
478 <groupId>org.powermock</groupId>
479 <artifactId>powermock-module-javaagent</artifactId>
480 <version>1.6.2</version>
481 <outputDirectory>${project.build.directory}/agents</outputDirectory>
482 <destFileName>powermock-javaagent.jar</destFileName>
490 <groupId>org.apache.maven.plugins</groupId>
491 <artifactId>maven-surefire-plugin</artifactId>
492 <version>2.12.4</version><!--$NO-MVN-MAN-VER$ -->
494 <argLine>-noverify ${argLine}</argLine>
498 <groupId>org.apache.maven.plugins</groupId>
499 <artifactId>maven-compiler-plugin</artifactId>
500 <version>3.1</version>
503 <!-- Checkstyle plugin - used to report on compliance with -->
504 <!-- the Google style guide. -->
506 <groupId>org.apache.maven.plugins</groupId>
507 <artifactId>maven-site-plugin</artifactId>
508 <version>3.3</version>
512 <groupId>org.apache.maven.plugins</groupId>
513 <artifactId>maven-checkstyle-plugin</artifactId>
514 <version>2.17</version>
518 <report>checkstyle</report>
529 <groupId>com.mycila</groupId>
530 <artifactId>license-maven-plugin</artifactId>
531 <version>3.0</version>
533 <header>License.txt</header>
535 <include>src/main/java/**</include>
536 <include>src/test/java/**</include>
544 <phase>process-sources</phase>
550 <groupId>org.apache.maven.plugins</groupId>
551 <artifactId>maven-deploy-plugin</artifactId>
557 <groupId>org.codehaus.mojo</groupId>
558 <artifactId>sonar-maven-plugin</artifactId>
559 <version>3.2</version>
562 <groupId>org.jacoco</groupId>
563 <artifactId>jacoco-maven-plugin</artifactId>
564 <version>${version.jacoco.maven.plugin}</version>
567 <id>jacoco-initialize-unit-tests</id>
569 <goal>prepare-agent</goal>
574 <phase>package</phase>
582 <groupId>org.sonatype.plugins</groupId>
583 <artifactId>nexus-staging-maven-plugin</artifactId>
584 <version>1.6.7</version>
585 <extensions>true</extensions>
587 <nexusUrl>${nexusproxy}</nexusUrl>
588 <stagingProfileId>176c31dfe190a</stagingProfileId>
589 <serverId>ecomp-staging</serverId>