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.onap.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>
307 <name>Maven 2 repository 2</name>
308 <url>http://repo2.maven.org/maven2/</url>
311 <id>ecomp-releases</id>
312 <name>ECOMP Release Repository</name>
313 <url>${nexusproxy}/content/repositories/releases/</url>
316 <id>ecomp-snapshots</id>
317 <name>ECOMP Snapshot Repository</name>
318 <url>${nexusproxy}/content/repositories/snapshots/</url>
321 <id>ecomp-staging</id>
322 <name>ECOMP Staging Repository</name>
323 <url>${nexusproxy}/content/repositories/staging/</url>
331 <defaultGoal>initialize</defaultGoal>
334 <groupId>org.codehaus.mojo</groupId>
335 <artifactId>exec-maven-plugin</artifactId>
336 <version>1.3.2</version>
339 <phase>initialize</phase>
344 <includeProjectDependencies>false</includeProjectDependencies>
345 <includePluginDependencies>true</includePluginDependencies>
346 <executable>java</executable>
347 <mainClass>com.att.ajsc.runner.Runner</mainClass>
348 <executableDependency>
349 <groupId>com.att.ajsc</groupId>
350 <artifactId>ajsc-runner</artifactId>
351 </executableDependency>
352 <additionalClasspathElements>
353 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
354 </additionalClasspathElements>
356 <environmentVariables>
357 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
358 </environmentVariables>
360 <!-- Main AJSC System Properties below (necessary for proper startup) -->
364 <value>${runAjscHome}</value>
367 <key>CONFIG_HOME</key>
368 <value>${basedir}/appconfig-local/</value>
371 <key>AJSC_CONF_HOME</key>
372 <value>${basedir}/bundleconfig-local</value>
375 <key>logback.configurationFile</key>
376 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
379 <key>AJSC_SHARED_CONFIG</key>
380 <value>${basedir}/ajsc-shared-config</value>
384 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
385 <value>${basedir}/target/commonLibs</value>
388 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
389 <value>${basedir}/ajsc-shared-config/etc</value>
392 <key>AJSC_SERVICE_NAMESPACE</key>
393 <value>${module.ajsc.namespace.name}</value>
396 <key>AJSC_SERVICE_VERSION</key>
397 <value>${module.ajsc.namespace.version}</value>
400 <key>SOACLOUD_SERVICE_VERSION</key>
401 <value>${project.version}</value>
404 <key>server.port</key>
405 <value>${serverPort}</value>
409 <!-- Command Line Arguments to add to the java command. Here, you
410 can specify the port as well as the Context you want your service to run
411 in. Use context=/ to run in an unnamed Context (Root Context). The default
412 configuration of the AJSC is to run under the / Context. Setting the port
413 here can aid during the development phase of your service. However, you can
414 leave this argument out entirely, and the AJSC will default to using an Ephemeral
417 <argument>context=//</argument>
418 <argument>port=${serverPort}</argument>
419 <argument>sslport=${sslport}</argument>
425 <executable>java</executable>
429 <groupId>com.att.ajsc</groupId>
430 <artifactId>ajsc-runner</artifactId>
431 <version>${ajscRuntimeVersion}</version>
443 <groupId>org.apache.maven.plugins</groupId>
444 <artifactId>maven-resources-plugin</artifactId>
445 <version>2.7</version>
448 <id>copy-docker-file</id>
449 <phase>package</phase>
451 <goal>copy-resources</goal>
454 <outputDirectory>target</outputDirectory>
455 <overwrite>true</overwrite>
458 <directory>${basedir}/src/main/docker</directory>
459 <filtering>true</filtering>
461 <include>**/*</include>
465 <directory>${basedir}/src/main/bin/</directory>
473 <groupId>com.spotify</groupId>
474 <artifactId>docker-maven-plugin</artifactId>
475 <version>0.4.11</version>
477 <verbose>true</verbose>
478 <serverId>docker-hub</serverId>
479 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
480 <dockerDirectory>${docker.location}</dockerDirectory>
482 <imageTag>latest</imageTag>
484 <forceTags>true</forceTags>
488 <groupId>org.apache.maven.plugins</groupId>
489 <artifactId>maven-dependency-plugin</artifactId>
490 <version>2.8</version>
494 <phase>process-test-classes</phase>
501 <groupId>org.powermock</groupId>
502 <artifactId>powermock-module-javaagent</artifactId>
503 <version>1.6.2</version>
504 <outputDirectory>${project.build.directory}/agents</outputDirectory>
505 <destFileName>powermock-javaagent.jar</destFileName>
513 <groupId>org.apache.maven.plugins</groupId>
514 <artifactId>maven-surefire-plugin</artifactId>
515 <version>2.12.4</version><!--$NO-MVN-MAN-VER$ -->
517 <argLine>-noverify ${argLine}</argLine>
521 <groupId>org.apache.maven.plugins</groupId>
522 <artifactId>maven-compiler-plugin</artifactId>
523 <version>3.1</version>
526 <!-- Checkstyle plugin - used to report on compliance with -->
527 <!-- the Google style guide. -->
529 <groupId>org.apache.maven.plugins</groupId>
530 <artifactId>maven-site-plugin</artifactId>
531 <version>3.3</version>
535 <groupId>org.apache.maven.plugins</groupId>
536 <artifactId>maven-checkstyle-plugin</artifactId>
537 <version>2.17</version>
541 <report>checkstyle</report>
550 <!-- license plugin -->
552 <groupId>com.mycila</groupId>
553 <artifactId>license-maven-plugin</artifactId>
554 <version>3.0</version>
556 <header>License.txt</header>
558 <include>src/main/java/**</include>
559 <include>src/test/java/**</include>
567 <phase>process-sources</phase>
573 <groupId>org.apache.maven.plugins</groupId>
574 <artifactId>maven-deploy-plugin</artifactId>
580 <groupId>org.codehaus.mojo</groupId>
581 <artifactId>sonar-maven-plugin</artifactId>
582 <version>3.2</version>
585 <groupId>org.jacoco</groupId>
586 <artifactId>jacoco-maven-plugin</artifactId>
587 <version>${version.jacoco.maven.plugin}</version>
590 <id>jacoco-initialize-unit-tests</id>
592 <goal>prepare-agent</goal>
597 <phase>package</phase>
605 <groupId>org.sonatype.plugins</groupId>
606 <artifactId>nexus-staging-maven-plugin</artifactId>
607 <version>1.6.7</version>
608 <extensions>true</extensions>
610 <nexusUrl>${nexusproxy}</nexusUrl>
611 <stagingProfileId>176c31dfe190a</stagingProfileId>
612 <serverId>ecomp-staging</serverId>