1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
6 <artifactId>ajsc-archetype-parent</artifactId>
7 <groupId>com.att.ajsc</groupId>
8 <version>2.0.0</version>
10 <groupId>org.onap.aai.babel</groupId>
11 <artifactId>babel</artifactId>
12 <version>2.0.0-SNAPSHOT</version>
15 <module.ajsc.namespace.name>babel-service</module.ajsc.namespace.name>
16 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
17 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
18 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
20 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
21 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
22 version, THIS will be used as your directory structure. If you do NOT want
23 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
25 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
26 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
28 <!-- For SOA Cloud Installation -->
29 <installOwnerUser>aaiadmin</installOwnerUser>
30 <installOwnerGroup>aaiadmin</installOwnerGroup>
31 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
33 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
34 For local testing, you may choose to hardcode this value to something like
36 <serverPort>9515</serverPort>
37 <sslport>9516</sslport>
39 <testRouteOffer>workstation</testRouteOffer>
40 <testEnv>DEV</testEnv>
41 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
42 <sitePath>/content/sites/site/org/onap/aai/babel/${project.artifactId}/${project.version}</sitePath>
44 <!-- Dependency Versions -->
45 <aai.artifact.generator.version>1.1.0</aai.artifact.generator.version>
46 <apache.lang3.version>3.6</apache.lang3.version>
47 <commons-compress.version>1.14</commons-compress.version>
48 <common.logging.version>1.1.0</common.logging.version>
49 <dom4j.version>1.6.1</dom4j.version>
50 <fasterxml.version>2.8.1</fasterxml.version>
51 <hamcrest.version>1.3</hamcrest.version>
52 <javaassist.version>3.21.0-GA</javaassist.version>
53 <logback.version>1.1.9</logback.version>
54 <mockito.version>1.10.19</mockito.version>
55 <powermock.version>1.6.2</powermock.version>
56 <sdc.distribution.client.version>1.1.32</sdc.distribution.client.version>
57 <snakeyamle.version>1.18</snakeyamle.version>
58 <jacoco.version>0.7.9</jacoco.version>
59 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
60 <docker.location>${basedir}/target</docker.location>
65 <groupId>javax.ws.rs</groupId>
66 <artifactId>javax.ws.rs-api</artifactId>
67 <version>2.0.1</version>
70 <groupId>dom4j</groupId>
71 <artifactId>dom4j</artifactId>
72 <version>${dom4j.version}</version>
73 <scope>provided</scope>
76 <!-- Common logging framework -->
78 <groupId>org.onap.aai.logging-service</groupId>
79 <artifactId>common-logging</artifactId>
80 <version>${common.logging.version}</version>
83 <groupId>org.hamcrest</groupId>
84 <artifactId>hamcrest-library</artifactId>
85 <version>1.3</version>
89 <groupId>com.google.code.gson</groupId>
90 <artifactId>gson</artifactId>
91 <version>2.8.1</version>
94 <groupId>ch.qos.logback</groupId>
95 <artifactId>logback-core</artifactId>
96 <version>${logback.version}</version>
99 <!-- apache commons -->
101 <groupId>org.apache.commons</groupId>
102 <artifactId>commons-compress</artifactId>
103 <version>${commons-compress.version}</version>
106 <groupId>commons-io</groupId>
107 <artifactId>commons-io</artifactId>
110 <groupId>org.apache.commons</groupId>
111 <artifactId>commons-lang3</artifactId>
112 <version>${apache.lang3.version}</version>
115 <!-- Artifact generation -->
117 <groupId>org.openecomp.sdc.common</groupId>
118 <artifactId>openecomp-sdc-artifact-generator-core</artifactId>
119 <version>${aai.artifact.generator.version}</version>
122 <groupId>com.fasterxml.jackson.core</groupId>
123 <artifactId>jackson-core</artifactId>
124 <version>${fasterxml.version}</version>
129 <groupId>org.mockito</groupId>
130 <artifactId>mockito-core</artifactId>
131 <version>${mockito.version}</version>
135 <groupId>org.powermock</groupId>
136 <artifactId>powermock-module-junit4</artifactId>
137 <version>${powermock.version}</version>
141 <groupId>org.powermock</groupId>
142 <artifactId>powermock-api-mockito</artifactId>
143 <version>${powermock.version}</version>
147 <groupId>org.powermock</groupId>
148 <artifactId>powermock-module-javaagent</artifactId>
149 <version>${powermock.version}</version>
153 <groupId>org.powermock</groupId>
154 <artifactId>powermock-module-junit4-rule-agent</artifactId>
155 <version>${powermock.version}</version>
159 <groupId>org.javassist</groupId>
160 <artifactId>javassist</artifactId>
161 <version>${javaassist.version}</version>
164 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
165 <artifactId>sdc-distribution-client</artifactId>
166 <version>${sdc.distribution.client.version}</version>
169 <groupId>xmlunit</groupId>
170 <artifactId>xmlunit</artifactId>
171 <version>1.6</version>
178 <id>ecomp-staging</id>
179 <name>ECOMP Staging Repository</name>
180 <url>${onap.nexus.url}/content/repositories/staging/</url>
184 <distributionManagement>
186 <id>ecomp-releases</id>
187 <name>ECOMP Release Repository</name>
188 <url>${onap.nexus.url}/content/repositories/releases/</url>
191 <id>ecomp-snapshots</id>
192 <name>ECOMP Snapshot Repository</name>
193 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
194 </snapshotRepository>
197 <url>dav:${onap.nexus.url}${sitePath}</url>
199 </distributionManagement>
204 <groupId>org.codehaus.mojo</groupId>
205 <artifactId>sonar-maven-plugin</artifactId>
206 <version>3.2</version>
209 <groupId>org.codehaus.mojo</groupId>
210 <artifactId>cobertura-maven-plugin</artifactId>
211 <version>2.7</version>
220 <groupId>org.jacoco</groupId>
221 <artifactId>jacoco-maven-plugin</artifactId>
222 <version>${jacoco.version}</version>
226 <id>prepare-agent</id>
228 <goal>prepare-agent</goal>
234 <phase>package</phase>
244 <groupId>org.codehaus.groovy</groupId>
245 <artifactId>groovy-eclipse-compiler</artifactId>
246 <version>2.9.2-01</version>
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-resources-plugin</artifactId>
251 <version>3.0.2</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>
279 <groupId>org.apache.maven.plugins</groupId>
280 <artifactId>maven-jar-plugin</artifactId>
281 <version>3.0.2</version>
284 <phase>package</phase>
289 <classifier>client</classifier>
291 <include>**/babel/service/data/*</include>
298 <groupId>com.spotify</groupId>
299 <artifactId>docker-maven-plugin</artifactId>
300 <version>0.4.11</version>
302 <verbose>true</verbose>
303 <serverId>docker-hub</serverId>
304 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
305 <dockerDirectory>${docker.location}</dockerDirectory>
307 <imageTag>latest</imageTag>
309 <forceTags>true</forceTags>
313 <!-- license plugin -->
315 <groupId>com.mycila</groupId>
316 <artifactId>license-maven-plugin</artifactId>
317 <version>3.0</version>
319 <header>License.txt</header>
321 <include>src/main/java/**</include>
322 <include>src/test/java/**</include>
330 <phase>process-sources</phase>
336 <groupId>org.apache.maven.plugins</groupId>
337 <artifactId>maven-deploy-plugin</artifactId>
339 <classifier>client</classifier>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-site-plugin</artifactId>
346 <version>3.3</version>
350 <groupId>org.apache.maven.plugins</groupId>
351 <artifactId>maven-checkstyle-plugin</artifactId>
352 <version>2.17</version>
356 <report>checkstyle</report>
366 <groupId>org.sonatype.plugins</groupId>
367 <artifactId>nexus-staging-maven-plugin</artifactId>
368 <version>1.6.7</version>
369 <extensions>true</extensions>
371 <nexusUrl>${onap.nexus.url}</nexusUrl>
372 <stagingProfileId>176c31dfe190a</stagingProfileId>
373 <serverId>ecomp-staging</serverId>
376 <!-- Strong recommendation to use forkCount and reuseForks parameters as forkMode is deprecated since v2.14 -->
378 <groupId>org.apache.maven.plugins</groupId>
379 <artifactId>maven-surefire-plugin</artifactId>
381 <reuseForks>false</reuseForks>
382 <forkCount>1</forkCount>
388 <!-- Added to fix build warnings caused by parent pom and bom -->
394 <defaultGoal>initialize</defaultGoal>
397 <groupId>org.codehaus.mojo</groupId>
398 <artifactId>exec-maven-plugin</artifactId>
399 <version>1.3.2</version>
402 <phase>initialize</phase>
407 <includeProjectDependencies>false</includeProjectDependencies>
408 <includePluginDependencies>true</includePluginDependencies>
409 <executable>java</executable>
410 <mainClass>com.att.ajsc.runner.Runner</mainClass>
411 <executableDependency>
412 <groupId>com.att.ajsc</groupId>
413 <artifactId>ajsc-runner</artifactId>
414 </executableDependency>
415 <additionalClasspathElements>
416 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
417 </additionalClasspathElements>
419 <environmentVariables>
420 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
421 </environmentVariables>
423 <!-- Main AJSC System Properties below (necessary for proper startup) -->
427 <value>${runAjscHome}</value>
431 <value>${runAjscHome}</value>
434 <key>AJSC_CONF_HOME</key>
435 <value>${basedir}/bundleconfig-local</value>
438 <key>logback.configurationFile</key>
439 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
442 <key>AJSC_SHARED_CONFIG</key>
443 <value>${basedir}/ajsc-shared-config</value>
446 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
447 <value>${basedir}/target/commonLibs</value>
450 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
451 <value>${basedir}/ajsc-shared-config/etc</value>
455 <key>AJSC_SERVICE_NAMESPACE</key>
456 <value>${module.ajsc.namespace.name}</value>
459 <key>AJSC_SERVICE_VERSION</key>
460 <value>${module.ajsc.namespace.version}</value>
463 <key>SOACLOUD_SERVICE_VERSION</key>
464 <value>${project.version}</value>
467 <key>server.port</key>
468 <value>${serverPort}</value>
471 <key>CONFIG_HOME</key>
472 <value>${basedir}/appconfig-local</value>
475 <key>artifactgenerator.config</key>
476 <value>${basedir}/appconfig-local/artifact-generator.properties</value>
480 <!-- Command Line Arguments to add to the java command. Here, you
481 can specify the port as well as the Context you want your service to run
482 in. Use context=/ to run in an unnamed Context (Root Context). The default
483 configuration of the AJSC is to run under the / Context. Setting the port
484 here can aid during the development phase of your service. However, you can
485 leave this argument out entirely, and the AJSC will default to using an Ephemeral
488 <argument>context=/</argument>
489 <argument>port=${serverPort}</argument>
490 <argument>sslport=${sslport}</argument>
496 <executable>java</executable>
500 <groupId>com.att.ajsc</groupId>
501 <artifactId>ajsc-runner</artifactId>
502 <version>${ajscRuntimeVersion}</version>