3 ============LICENSE_START=======================================================
5 ================================================================================
6 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7 Copyright © 2017-2018 European Software Marketing Ltd.
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END=========================================================
23 <project xmlns="http://maven.apache.org/POM/4.0.0" 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>
32 <groupId>org.onap.aai.babel</groupId>
33 <artifactId>babel</artifactId>
34 <version>1.2.0-SNAPSHOT</version>
35 <name>aai-babel</name>
38 <module.ajsc.namespace.name>babel-service</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>
43 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot> property below. -->
44 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
45 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
47 <!-- For SOA Cloud Installation -->
48 <installOwnerUser>aaiadmin</installOwnerUser>
49 <installOwnerGroup>aaiadmin</installOwnerGroup>
50 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
52 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
53 For local testing, you may choose to hardcode this value to something like
55 <serverPort>9515</serverPort>
56 <sslport>9516</sslport>
58 <testRouteOffer>workstation</testRouteOffer>
59 <testEnv>DEV</testEnv>
60 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
61 <sitePath>/content/sites/site/org/onap/aai/babel/${project.artifactId}/${project.version}</sitePath>
63 <!-- Dependency Versions -->
64 <aai.rest.client.version>1.2.1</aai.rest.client.version>
65 <apache.lang3.version>3.6</apache.lang3.version>
66 <commons-compress.version>1.14</commons-compress.version>
67 <common.logging.version>1.2.2</common.logging.version>
68 <dom4j.version>1.6.1</dom4j.version>
69 <hamcrest.version>1.3</hamcrest.version>
70 <javaassist.version>3.21.0-GA</javaassist.version>
71 <logback.version>1.1.9</logback.version>
72 <mvn.jaxb2.version>0.13.2</mvn.jaxb2.version>
73 <mockito.version>1.10.19</mockito.version>
74 <powermock.version>1.6.2</powermock.version>
75 <sdc.distribution.client.version>1.1.32</sdc.distribution.client.version>
76 <sdc.tosca.version>1.3.3</sdc.tosca.version>
77 <fasterxml.version>2.9.4</fasterxml.version>
78 <jacoco.version>0.7.9</jacoco.version>
79 <xmlunit.version>1.6</xmlunit.version>
80 <aai-schema.version>1.2.1</aai-schema.version>
81 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
82 <docker.location>${basedir}/target</docker.location>
87 <groupId>javax.ws.rs</groupId>
88 <artifactId>javax.ws.rs-api</artifactId>
89 <version>2.0.1</version>
92 <groupId>dom4j</groupId>
93 <artifactId>dom4j</artifactId>
94 <version>${dom4j.version}</version>
95 <scope>provided</scope>
98 <groupId>com.att.aft</groupId>
99 <artifactId>dme2</artifactId>
102 <!-- Common logging framework -->
104 <groupId>org.onap.aai.logging-service</groupId>
105 <artifactId>common-logging</artifactId>
106 <version>${common.logging.version}</version>
109 <groupId>org.hamcrest</groupId>
110 <artifactId>hamcrest-library</artifactId>
111 <version>1.3</version>
115 <groupId>com.google.code.gson</groupId>
116 <artifactId>gson</artifactId>
117 <version>2.8.1</version>
120 <groupId>ch.qos.logback</groupId>
121 <artifactId>logback-core</artifactId>
122 <version>${logback.version}</version>
125 <!-- apache commons -->
127 <groupId>org.apache.commons</groupId>
128 <artifactId>commons-compress</artifactId>
129 <version>${commons-compress.version}</version>
132 <groupId>commons-io</groupId>
133 <artifactId>commons-io</artifactId>
136 <groupId>org.apache.commons</groupId>
137 <artifactId>commons-lang3</artifactId>
138 <version>${apache.lang3.version}</version>
141 <groupId>org.onap.sdc.sdc-tosca</groupId>
142 <artifactId>sdc-tosca</artifactId>
143 <version>${sdc.tosca.version}</version>
146 <groupId>com.fasterxml.jackson.core</groupId>
147 <artifactId>jackson-core</artifactId>
148 <version>${fasterxml.version}</version><!--$NO-MVN-MAN-VER$ -->
151 <groupId>org.onap.aai</groupId>
152 <artifactId>rest-client</artifactId>
153 <version>${aai.rest.client.version}</version>
158 <groupId>org.mockito</groupId>
159 <artifactId>mockito-core</artifactId>
160 <version>${mockito.version}</version>
164 <groupId>org.powermock</groupId>
165 <artifactId>powermock-module-junit4</artifactId>
166 <version>${powermock.version}</version>
170 <groupId>org.powermock</groupId>
171 <artifactId>powermock-api-mockito</artifactId>
172 <version>${powermock.version}</version>
176 <groupId>org.powermock</groupId>
177 <artifactId>powermock-module-javaagent</artifactId>
178 <version>${powermock.version}</version>
182 <groupId>org.powermock</groupId>
183 <artifactId>powermock-module-junit4-rule-agent</artifactId>
184 <version>${powermock.version}</version>
188 <groupId>org.javassist</groupId>
189 <artifactId>javassist</artifactId>
190 <version>${javaassist.version}</version>
193 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
194 <artifactId>sdc-distribution-client</artifactId>
195 <version>${sdc.distribution.client.version}</version>
199 <groupId>xmlunit</groupId>
200 <artifactId>xmlunit</artifactId>
201 <version>${xmlunit.version}</version>
208 <id>ecomp-staging</id>
209 <name>ECOMP Staging Repository</name>
210 <url>${onap.nexus.url}/content/repositories/staging/</url>
214 <distributionManagement>
216 <id>ecomp-releases</id>
217 <name>ECOMP Release Repository</name>
218 <url>${onap.nexus.url}/content/repositories/releases/</url>
221 <id>ecomp-snapshots</id>
222 <name>ECOMP Snapshot Repository</name>
223 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
224 </snapshotRepository>
227 <url>dav:${onap.nexus.url}${sitePath}</url>
229 </distributionManagement>
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-dependency-plugin</artifactId>
239 <phase>initialize</phase>
246 <groupId>org.onap.aai.aai-common</groupId>
247 <artifactId>aai-schema</artifactId>
248 <version>${aai-schema.version}</version>
250 <includes>aai_schema/aai_schema_v**.xsd</includes>
251 <outputDirectory>target/tmp</outputDirectory>
259 <groupId>org.jvnet.jaxb2.maven2</groupId>
260 <artifactId>maven-jaxb2-plugin</artifactId>
261 <version>${mvn.jaxb2.version}</version>
264 <phase>process-sources</phase>
266 <goal>generate</goal>
271 <schemaDirectory>target/tmp/aai_schema</schemaDirectory>
272 <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
273 <generateDirectory>target/generated-sources</generateDirectory>
275 <include>aai_schema_latest.xsd</include>
277 <extension>true</extension>
279 <arg>-Xannotate</arg>
283 <groupId>org.jvnet.jaxb2_commons</groupId>
284 <artifactId>jaxb2-basics-annotate</artifactId>
285 <version>0.6.4</version>
287 <!-- Add the dependencies with your annotations as 'plugins' below -->
289 <groupId>org.jvnet.jaxb2_commons</groupId>
290 <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
291 <version>1.0.0</version>
297 <artifactId>exec-maven-plugin</artifactId>
298 <groupId>org.codehaus.mojo</groupId>
300 <execution><!-- Run our script to get latest xsd version -->
301 <id>Get latest xsd version</id>
302 <phase>generate-sources</phase>
307 <workingDirectory>${basedir}/scripts</workingDirectory>
308 <executable>bash</executable>
309 <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
315 <groupId>org.codehaus.mojo</groupId>
316 <artifactId>sonar-maven-plugin</artifactId>
317 <version>3.2</version>
320 <groupId>org.codehaus.mojo</groupId>
321 <artifactId>cobertura-maven-plugin</artifactId>
322 <version>2.7</version>
330 <groupId>org.jacoco</groupId>
331 <artifactId>jacoco-maven-plugin</artifactId>
332 <version>${jacoco.version}</version>
335 <exclude>**/xml/generator/xsd/*.class</exclude>
340 <id>prepare-agent</id>
342 <goal>prepare-agent</goal>
348 <phase>package</phase>
357 <groupId>org.codehaus.groovy</groupId>
358 <artifactId>groovy-eclipse-compiler</artifactId>
359 <version>2.9.2-01</version>
362 <groupId>org.apache.maven.plugins</groupId>
363 <artifactId>maven-resources-plugin</artifactId>
364 <version>3.0.2</version>
367 <id>copy-docker-file</id>
368 <phase>package</phase>
370 <goal>copy-resources</goal>
373 <outputDirectory>target</outputDirectory>
374 <overwrite>true</overwrite>
377 <directory>${basedir}/src/main/docker</directory>
378 <filtering>true</filtering>
380 <include>**/*</include>
384 <directory>${basedir}/src/main/bin/</directory>
393 <groupId>org.apache.maven.plugins</groupId>
394 <artifactId>maven-jar-plugin</artifactId>
395 <version>3.0.2</version>
398 <phase>package</phase>
403 <classifier>client</classifier>
405 <include>**/babel/service/data/*</include>
412 <groupId>com.spotify</groupId>
413 <artifactId>docker-maven-plugin</artifactId>
414 <version>0.4.11</version>
417 <groupId>com.github.jnr</groupId>
418 <artifactId>jnr-unixsocket</artifactId>
419 <version>0.13</version>
423 <verbose>true</verbose>
424 <serverId>docker-hub</serverId>
425 <imageName>onap/${project.artifactId}</imageName>
426 <dockerDirectory>${docker.location}</dockerDirectory>
428 <imageTag>latest</imageTag>
430 <forceTags>true</forceTags>
435 <groupId>org.apache.maven.plugins</groupId>
436 <artifactId>maven-deploy-plugin</artifactId>
437 <version>2.8.2</version>
439 <classifier>client</classifier>
444 <groupId>org.apache.maven.plugins</groupId>
445 <artifactId>maven-site-plugin</artifactId>
446 <version>3.3</version>
450 <groupId>org.apache.maven.plugins</groupId>
451 <artifactId>maven-checkstyle-plugin</artifactId>
452 <version>2.17</version>
456 <report>checkstyle</report>
466 <groupId>org.sonatype.plugins</groupId>
467 <artifactId>nexus-staging-maven-plugin</artifactId>
468 <version>1.6.7</version>
469 <extensions>true</extensions>
471 <nexusUrl>${onap.nexus.url}</nexusUrl>
472 <stagingProfileId>176c31dfe190a</stagingProfileId>
473 <serverId>ecomp-staging</serverId>
477 <!-- Strong recommendation to use forkCount and reuseForks parameters as forkMode is deprecated since v2.14 -->
479 <groupId>org.apache.maven.plugins</groupId>
480 <artifactId>maven-surefire-plugin</artifactId>
482 <reuseForks>false</reuseForks>
483 <forkCount>1</forkCount>
484 <environmentVariables>
485 <AJSC_HOME>.</AJSC_HOME>
486 </environmentVariables>
491 <groupId>com.mycila</groupId>
492 <artifactId>license-maven-plugin</artifactId>
493 <version>3.0</version>
495 <header>License.txt</header>
497 <include>src/main/java/**</include>
498 <include>src/test/java/**</include>
499 <include>pom.xml</include>
501 <skipExistingHeaders>true</skipExistingHeaders>
506 <!-- Set goal from "check" to "format" to auto update license headers -->
509 <phase>process-sources</phase>
522 <defaultGoal>initialize</defaultGoal>
525 <groupId>org.codehaus.mojo</groupId>
526 <artifactId>exec-maven-plugin</artifactId>
527 <version>1.3.2</version>
530 <phase>initialize</phase>
535 <includeProjectDependencies>false</includeProjectDependencies>
536 <includePluginDependencies>true</includePluginDependencies>
537 <executable>java</executable>
538 <mainClass>com.att.ajsc.runner.Runner</mainClass>
539 <executableDependency>
540 <groupId>com.att.ajsc</groupId>
541 <artifactId>ajsc-runner</artifactId>
542 </executableDependency>
543 <additionalClasspathElements>
544 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
545 </additionalClasspathElements>
547 <environmentVariables>
548 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
549 </environmentVariables>
551 <!-- Main AJSC System Properties below (necessary for proper startup) -->
555 <value>${runAjscHome}</value>
559 <value>${runAjscHome}</value>
562 <key>AJSC_CONF_HOME</key>
563 <value>${basedir}/bundleconfig-local</value>
566 <key>logback.configurationFile</key>
567 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
570 <key>AJSC_SHARED_CONFIG</key>
571 <value>${basedir}/ajsc-shared-config</value>
574 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
575 <value>${basedir}/target/commonLibs</value>
578 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
579 <value>${basedir}/ajsc-shared-config/etc</value>
583 <key>AJSC_SERVICE_NAMESPACE</key>
584 <value>${module.ajsc.namespace.name}</value>
587 <key>AJSC_SERVICE_VERSION</key>
588 <value>${module.ajsc.namespace.version}</value>
591 <key>SOACLOUD_SERVICE_VERSION</key>
592 <value>${project.version}</value>
595 <key>server.port</key>
596 <value>${serverPort}</value>
599 <key>CONFIG_HOME</key>
600 <value>${basedir}/appconfig-local</value>
603 <key>artifactgenerator.config</key>
604 <value>${basedir}/appconfig-local/artifact-generator.properties</value>
608 <!-- Command Line Arguments to add to the java command. Here, you
609 can specify the port as well as the Context you want your service to run
610 in. Use context=/ to run in an unnamed Context (Root Context). The default
611 configuration of the AJSC is to run under the / Context. Setting the port
612 here can aid during the development phase of your service. However, you can
613 leave this argument out entirely, and the AJSC will default to using an Ephemeral
616 <argument>context=/</argument>
617 <argument>port=${serverPort}</argument>
618 <argument>sslport=${sslport}</argument>
624 <executable>java</executable>
628 <groupId>com.att.ajsc</groupId>
629 <artifactId>ajsc-runner</artifactId>
630 <version>${ajscRuntimeVersion}</version>