1 <!-- ============LICENSE_START======================================================= -->
3 <!-- ================================================================================ -->
4 <!-- Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. -->
5 <!-- Copyright © 2017-2018 European Software Marketing Ltd. -->
6 <!-- ================================================================================ -->
7 <!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
8 <!-- you may not use this file except in compliance with the License. -->
9 <!-- You may obtain a copy of the License at -->
11 <!-- http://www.apache.org/licenses/LICENSE-2.0 -->
13 <!-- Unless required by applicable law or agreed to in writing, software -->
14 <!-- distributed under the License is distributed on an "AS IS" BASIS, -->
15 <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
16 <!-- See the License for the specific language governing permissions and -->
17 <!-- limitations under the License. -->
18 <!-- ============LICENSE_END========================================================= -->
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21 <modelVersion>4.0.0</modelVersion>
24 <artifactId>ajsc-archetype-parent</artifactId>
25 <groupId>com.att.ajsc</groupId>
26 <version>2.0.0</version>
28 <groupId>org.onap.aai</groupId>
29 <artifactId>babel</artifactId>
30 <version>1.2.0-SNAPSHOT</version>
31 <name>aai-babel</name>
34 <module.ajsc.namespace.name>babel-service</module.ajsc.namespace.name>
35 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
36 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
37 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
39 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot> property below. -->
40 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
41 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
43 <!-- For SOA Cloud Installation -->
44 <installOwnerUser>aaiadmin</installOwnerUser>
45 <installOwnerGroup>aaiadmin</installOwnerGroup>
46 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
48 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
49 For local testing, you may choose to hardcode this value to something like
51 <serverPort>9515</serverPort>
52 <sslport>9516</sslport>
54 <testRouteOffer>workstation</testRouteOffer>
55 <testEnv>DEV</testEnv>
56 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
57 <sitePath>/content/sites/site/org/onap/aai/babel/${project.artifactId}/${project.version}</sitePath>
59 <!-- Dependency Versions -->
60 <aai.rest.client.version>1.2.1</aai.rest.client.version>
61 <apache.lang3.version>3.6</apache.lang3.version>
62 <commons-compress.version>1.14</commons-compress.version>
63 <common.logging.version>1.2.2</common.logging.version>
64 <dom4j.version>1.6.1</dom4j.version>
65 <hamcrest.version>1.3</hamcrest.version>
66 <javaassist.version>3.21.0-GA</javaassist.version>
67 <logback.version>1.1.9</logback.version>
68 <mvn.jaxb2.version>0.13.2</mvn.jaxb2.version>
69 <mockito.version>1.10.19</mockito.version>
70 <powermock.version>1.6.2</powermock.version>
71 <sdc.distribution.client.version>1.1.32</sdc.distribution.client.version>
72 <sdc.tosca.version>1.3.3</sdc.tosca.version>
73 <fasterxml.version>2.9.4</fasterxml.version>
74 <jacoco.version>0.7.9</jacoco.version>
75 <xmlunit.version>1.6</xmlunit.version>
76 <aai-schema.version>1.2.1</aai-schema.version>
77 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
78 <docker.location>${basedir}/target</docker.location>
83 <groupId>javax.ws.rs</groupId>
84 <artifactId>javax.ws.rs-api</artifactId>
85 <version>2.0.1</version>
88 <groupId>dom4j</groupId>
89 <artifactId>dom4j</artifactId>
90 <version>${dom4j.version}</version>
91 <scope>provided</scope>
94 <!-- Common logging framework -->
96 <groupId>org.onap.aai.logging-service</groupId>
97 <artifactId>common-logging</artifactId>
98 <version>${common.logging.version}</version>
101 <groupId>org.hamcrest</groupId>
102 <artifactId>hamcrest-library</artifactId>
103 <version>1.3</version>
107 <groupId>com.google.code.gson</groupId>
108 <artifactId>gson</artifactId>
109 <version>2.8.1</version>
112 <groupId>ch.qos.logback</groupId>
113 <artifactId>logback-core</artifactId>
114 <version>${logback.version}</version>
117 <!-- apache commons -->
119 <groupId>org.apache.commons</groupId>
120 <artifactId>commons-compress</artifactId>
121 <version>${commons-compress.version}</version>
124 <groupId>commons-io</groupId>
125 <artifactId>commons-io</artifactId>
128 <groupId>org.apache.commons</groupId>
129 <artifactId>commons-lang3</artifactId>
130 <version>${apache.lang3.version}</version>
133 <groupId>org.onap.sdc.sdc-tosca</groupId>
134 <artifactId>sdc-tosca</artifactId>
135 <version>${sdc.tosca.version}</version>
138 <groupId>com.fasterxml.jackson.core</groupId>
139 <artifactId>jackson-core</artifactId>
140 <version>${fasterxml.version}</version><!--$NO-MVN-MAN-VER$ -->
143 <groupId>org.onap.aai</groupId>
144 <artifactId>rest-client</artifactId>
145 <version>${aai.rest.client.version}</version>
150 <groupId>org.mockito</groupId>
151 <artifactId>mockito-core</artifactId>
152 <version>${mockito.version}</version>
156 <groupId>org.powermock</groupId>
157 <artifactId>powermock-module-junit4</artifactId>
158 <version>${powermock.version}</version>
162 <groupId>org.powermock</groupId>
163 <artifactId>powermock-api-mockito</artifactId>
164 <version>${powermock.version}</version>
168 <groupId>org.powermock</groupId>
169 <artifactId>powermock-module-javaagent</artifactId>
170 <version>${powermock.version}</version>
174 <groupId>org.powermock</groupId>
175 <artifactId>powermock-module-junit4-rule-agent</artifactId>
176 <version>${powermock.version}</version>
180 <groupId>org.javassist</groupId>
181 <artifactId>javassist</artifactId>
182 <version>${javaassist.version}</version>
185 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
186 <artifactId>sdc-distribution-client</artifactId>
187 <version>${sdc.distribution.client.version}</version>
191 <groupId>xmlunit</groupId>
192 <artifactId>xmlunit</artifactId>
193 <version>${xmlunit.version}</version>
200 <id>ecomp-staging</id>
201 <name>ECOMP Staging Repository</name>
202 <url>${onap.nexus.url}/content/repositories/staging/</url>
206 <distributionManagement>
208 <id>ecomp-releases</id>
209 <name>ECOMP Release Repository</name>
210 <url>${onap.nexus.url}/content/repositories/releases/</url>
213 <id>ecomp-snapshots</id>
214 <name>ECOMP Snapshot Repository</name>
215 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
216 </snapshotRepository>
219 <url>dav:${onap.nexus.url}${sitePath}</url>
221 </distributionManagement>
226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-dependency-plugin</artifactId>
231 <phase>initialize</phase>
238 <groupId>org.onap.aai.aai-common</groupId>
239 <artifactId>aai-schema</artifactId>
240 <version>${aai-schema.version}</version>
242 <includes>aai_schema/aai_schema_v**.xsd</includes>
243 <outputDirectory>target/tmp</outputDirectory>
251 <groupId>org.jvnet.jaxb2.maven2</groupId>
252 <artifactId>maven-jaxb2-plugin</artifactId>
253 <version>${mvn.jaxb2.version}</version>
256 <phase>process-sources</phase>
258 <goal>generate</goal>
263 <schemaDirectory>target/tmp/aai_schema</schemaDirectory>
264 <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
265 <generateDirectory>target/generated-sources</generateDirectory>
267 <include>aai_schema_latest.xsd</include>
269 <extension>true</extension>
271 <arg>-Xannotate</arg>
275 <groupId>org.jvnet.jaxb2_commons</groupId>
276 <artifactId>jaxb2-basics-annotate</artifactId>
277 <version>0.6.4</version>
279 <!-- Add the dependencies with your annotations as 'plugins' below -->
281 <groupId>org.jvnet.jaxb2_commons</groupId>
282 <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
283 <version>1.0.0</version>
289 <artifactId>exec-maven-plugin</artifactId>
290 <groupId>org.codehaus.mojo</groupId>
292 <execution><!-- Run our script to get latest xsd version -->
293 <id>Get latest xsd version</id>
294 <phase>generate-sources</phase>
299 <workingDirectory>${basedir}/scripts</workingDirectory>
300 <executable>bash</executable>
301 <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
307 <groupId>org.codehaus.mojo</groupId>
308 <artifactId>sonar-maven-plugin</artifactId>
309 <version>3.2</version>
312 <groupId>org.codehaus.mojo</groupId>
313 <artifactId>cobertura-maven-plugin</artifactId>
314 <version>2.7</version>
322 <groupId>org.jacoco</groupId>
323 <artifactId>jacoco-maven-plugin</artifactId>
324 <version>${jacoco.version}</version>
327 <exclude>**/xml/generator/xsd/*.class</exclude>
332 <id>prepare-agent</id>
334 <goal>prepare-agent</goal>
340 <phase>package</phase>
349 <groupId>org.codehaus.groovy</groupId>
350 <artifactId>groovy-eclipse-compiler</artifactId>
351 <version>2.9.2-01</version>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-resources-plugin</artifactId>
356 <version>3.0.2</version>
359 <id>copy-docker-file</id>
360 <phase>package</phase>
362 <goal>copy-resources</goal>
365 <outputDirectory>target</outputDirectory>
366 <overwrite>true</overwrite>
369 <directory>${basedir}/src/main/docker</directory>
370 <filtering>true</filtering>
372 <include>**/*</include>
376 <directory>${basedir}/src/main/bin/</directory>
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-jar-plugin</artifactId>
387 <version>3.0.2</version>
390 <phase>package</phase>
395 <classifier>client</classifier>
397 <include>**/babel/service/data/*</include>
404 <groupId>com.spotify</groupId>
405 <artifactId>docker-maven-plugin</artifactId>
406 <version>0.4.11</version>
408 <verbose>true</verbose>
409 <serverId>docker-hub</serverId>
410 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
411 <dockerDirectory>${docker.location}</dockerDirectory>
413 <imageTag>latest</imageTag>
415 <forceTags>true</forceTags>
420 <groupId>org.apache.maven.plugins</groupId>
421 <artifactId>maven-deploy-plugin</artifactId>
422 <version>2.8.2</version>
424 <classifier>client</classifier>
429 <groupId>org.apache.maven.plugins</groupId>
430 <artifactId>maven-site-plugin</artifactId>
431 <version>3.3</version>
435 <groupId>org.apache.maven.plugins</groupId>
436 <artifactId>maven-checkstyle-plugin</artifactId>
437 <version>2.17</version>
441 <report>checkstyle</report>
451 <groupId>org.sonatype.plugins</groupId>
452 <artifactId>nexus-staging-maven-plugin</artifactId>
453 <version>1.6.7</version>
454 <extensions>true</extensions>
456 <nexusUrl>${onap.nexus.url}</nexusUrl>
457 <stagingProfileId>176c31dfe190a</stagingProfileId>
458 <serverId>ecomp-staging</serverId>
462 <!-- Strong recommendation to use forkCount and reuseForks parameters as forkMode is deprecated since v2.14 -->
464 <groupId>org.apache.maven.plugins</groupId>
465 <artifactId>maven-surefire-plugin</artifactId>
467 <reuseForks>false</reuseForks>
468 <forkCount>1</forkCount>
469 <environmentVariables>
470 <AJSC_HOME>.</AJSC_HOME>
471 </environmentVariables>
482 <defaultGoal>initialize</defaultGoal>
485 <groupId>org.codehaus.mojo</groupId>
486 <artifactId>exec-maven-plugin</artifactId>
487 <version>1.3.2</version>
490 <phase>initialize</phase>
495 <includeProjectDependencies>false</includeProjectDependencies>
496 <includePluginDependencies>true</includePluginDependencies>
497 <executable>java</executable>
498 <mainClass>com.att.ajsc.runner.Runner</mainClass>
499 <executableDependency>
500 <groupId>com.att.ajsc</groupId>
501 <artifactId>ajsc-runner</artifactId>
502 </executableDependency>
503 <additionalClasspathElements>
504 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
505 </additionalClasspathElements>
507 <environmentVariables>
508 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
509 </environmentVariables>
511 <!-- Main AJSC System Properties below (necessary for proper startup) -->
515 <value>${runAjscHome}</value>
519 <value>${runAjscHome}</value>
522 <key>AJSC_CONF_HOME</key>
523 <value>${basedir}/bundleconfig-local</value>
526 <key>logback.configurationFile</key>
527 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
530 <key>AJSC_SHARED_CONFIG</key>
531 <value>${basedir}/ajsc-shared-config</value>
534 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
535 <value>${basedir}/target/commonLibs</value>
538 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
539 <value>${basedir}/ajsc-shared-config/etc</value>
543 <key>AJSC_SERVICE_NAMESPACE</key>
544 <value>${module.ajsc.namespace.name}</value>
547 <key>AJSC_SERVICE_VERSION</key>
548 <value>${module.ajsc.namespace.version}</value>
551 <key>SOACLOUD_SERVICE_VERSION</key>
552 <value>${project.version}</value>
555 <key>server.port</key>
556 <value>${serverPort}</value>
559 <key>CONFIG_HOME</key>
560 <value>${basedir}/appconfig-local</value>
563 <key>artifactgenerator.config</key>
564 <value>${basedir}/appconfig-local/artifact-generator.properties</value>
568 <!-- Command Line Arguments to add to the java command. Here, you
569 can specify the port as well as the Context you want your service to run
570 in. Use context=/ to run in an unnamed Context (Root Context). The default
571 configuration of the AJSC is to run under the / Context. Setting the port
572 here can aid during the development phase of your service. However, you can
573 leave this argument out entirely, and the AJSC will default to using an Ephemeral
576 <argument>context=/</argument>
577 <argument>port=${serverPort}</argument>
578 <argument>sslport=${sslport}</argument>
584 <executable>java</executable>
588 <groupId>com.att.ajsc</groupId>
589 <artifactId>ajsc-runner</artifactId>
590 <version>${ajscRuntimeVersion}</version>