1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
8 <groupId>com.att.ajsc</groupId>
9 <artifactId>ajsc-archetype-parent</artifactId>
10 <version>2.0.0</version>
13 <groupId>org.onap.aai</groupId>
14 <artifactId>champ-service</artifactId>
15 <version>1.2.0-SNAPSHOT</version>
18 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
19 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
21 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
23 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
24 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
25 version, THIS will be used as your directory structure. If you do NOT want
26 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
28 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
30 <common.logging.groupid>org.onap.aai.logging-service</common.logging.groupid>
31 <common.logging.version>1.2.2</common.logging.version>
32 <org.apache.httpcomponents.httpclient.version>4.5.2</org.apache.httpcomponents.httpclient.version>
37 <groupId>com.sun.jersey</groupId>
38 <artifactId>jersey-core</artifactId>
39 <version>1.18.6</version>
42 <!-- AJSC Dependencies -->
44 <groupId>dom4j</groupId>
45 <artifactId>dom4j</artifactId>
46 <version>1.6.1</version>
47 <scope>provided</scope>
50 <groupId>com.att.aft</groupId>
51 <artifactId>dme2</artifactId>
52 <version>3.1.200</version>
53 <scope>provided</scope>
56 <!--Adding this dependency explicit.-->
58 <groupId>org.json</groupId>
59 <artifactId>json</artifactId>
60 <version>20160212</version>
64 <groupId>org.glassfish.jersey.core</groupId>
65 <artifactId>jersey-client</artifactId>
66 <version>2.23</version>
70 <groupId>commons-io</groupId>
71 <artifactId>commons-io</artifactId>
72 <version>2.4</version>
76 <groupId>com.google.code.gson</groupId>
77 <artifactId>gson</artifactId>
78 <version>2.6.2</version>
82 <groupId>${common.logging.groupid}</groupId>
83 <artifactId>common-logging</artifactId>
84 <version>${common.logging.version}</version>
88 <groupId>ch.qos.logback</groupId>
89 <artifactId>logback-core</artifactId>
90 <version>1.1.7</version>
94 <groupId>org.eclipse.persistence</groupId>
95 <artifactId>eclipselink</artifactId>
96 <version>2.6.2</version>
100 <groupId>org.apache.httpcomponents</groupId>
101 <artifactId>httpclient</artifactId>
102 <version>${org.apache.httpcomponents.httpclient.version}</version>
105 <!-- Champ graph database library. -->
107 <groupId>org.onap.aai</groupId>
108 <artifactId>champ-core</artifactId>
109 <version>1.2.0-SNAPSHOT</version>
110 <scope>compile</scope>
113 <groupId>org.apache.hbase</groupId>
114 <artifactId>hbase-client</artifactId>
121 <finalName>${project.artifactId}</finalName>
124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-resources-plugin</artifactId>
126 <version>2.7</version>
129 <id>copy-docker-file</id>
130 <phase>package</phase>
132 <goal>copy-resources</goal>
135 <outputDirectory>target</outputDirectory>
136 <overwrite>true</overwrite>
139 <directory>${basedir}/src/main/docker</directory>
140 <filtering>true</filtering>
142 <include>**/*</include>
146 <directory>${basedir}/src/main/bin/</directory>
155 <groupId>com.mycila</groupId>
156 <artifactId>license-maven-plugin</artifactId>
157 <version>3.0</version>
159 <header>License.txt</header>
161 <include>src/main/java/**</include>
169 <phase>process-sources</phase>
175 <groupId>com.spotify</groupId>
176 <artifactId>docker-maven-plugin</artifactId>
177 <version>0.4.11</version>
179 <verbose>true</verbose>
180 <serverId>docker-hub</serverId>
181 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
182 <dockerDirectory>${docker.location}</dockerDirectory>
184 <imageTag>latest</imageTag>
186 <forceTags>true</forceTags>
191 <groupId>org.jacoco</groupId>
192 <artifactId>jacoco-maven-plugin</artifactId>
193 <version>0.7.9</version>
196 <id>default-prepare-agent</id>
198 <goal>prepare-agent</goal>
202 <id>default-report</id>
203 <phase>prepare-package</phase>
209 <id>default-check</id>
215 <!-- implementation is needed only for Maven 2 -->
216 <rule implementation="org.jacoco.maven.RuleConfiguration">
217 <element>BUNDLE</element>
219 <!-- implementation is needed only for Maven 2 -->
220 <limit implementation="org.jacoco.report.check.Limit">
221 <counter>INSTRUCTION</counter>
222 <value>COVEREDRATIO</value>
223 <minimum>.15</minimum>
225 <limit implementation="org.jacoco.report.check.Limit">
226 <counter>BRANCH</counter>
227 <value>COVEREDRATIO</value>
228 <minimum>.12</minimum>
230 <limit implementation="org.jacoco.report.check.Limit">
231 <counter>COMPLEXITY</counter>
232 <value>COVEREDRATIO</value>
233 <minimum>.15</minimum>
235 <limit implementation="org.jacoco.report.check.Limit">
236 <counter>LINE</counter>
237 <value>COVEREDRATIO</value>
238 <minimum>.10</minimum>
240 <limit implementation="org.jacoco.report.check.Limit">
241 <counter>METHOD</counter>
242 <value>COVEREDRATIO</value>
243 <minimum>.17</minimum>
245 <limit implementation="org.jacoco.report.check.Limit">
246 <counter>CLASS</counter>
247 <value>MISSEDCOUNT</value>
264 <defaultGoal>initialize</defaultGoal>
267 <groupId>org.codehaus.mojo</groupId>
268 <artifactId>exec-maven-plugin</artifactId>
269 <version>1.3.2</version>
272 <phase>initialize</phase>
277 <includeProjectDependencies>false</includeProjectDependencies>
278 <includePluginDependencies>true</includePluginDependencies>
279 <executable>java</executable>
280 <mainClass>com.att.ajsc.runner.Runner</mainClass>
281 <executableDependency>
282 <groupId>com.att.ajsc</groupId>
283 <artifactId>ajsc-runner</artifactId>
284 </executableDependency>
285 <additionalClasspathElements>
286 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
287 </additionalClasspathElements>
289 <environmentVariables>
290 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
291 </environmentVariables>
293 <!-- Main AJSC System Properties below (necessary for proper startup) -->
297 <value>${runAjscHome}</value>
300 <key>CONFIG_HOME</key>
301 <value>${basedir}/appconfig-local/</value>
304 <key>AJSC_CONF_HOME</key>
305 <value>${basedir}/bundleconfig-local</value>
308 <key>logback.configurationFile</key>
309 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
312 <key>AJSC_SHARED_CONFIG</key>
313 <value>${basedir}/ajsc-shared-config</value>
317 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
318 <value>${basedir}/target/commonLibs</value>
321 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
322 <value>${basedir}/ajsc-shared-config/etc</value>
326 <key>AJSC_SERVICE_NAMESPACE</key>
327 <value>${module.ajsc.namespace.name}</value>
330 <key>AJSC_SERVICE_VERSION</key>
331 <value>${module.ajsc.namespace.version}</value>
334 <key>SOACLOUD_SERVICE_VERSION</key>
335 <value>${project.version}</value>
338 <key>server.port</key>
339 <value>${serverPort}</value>
343 <!-- Command Line Arguments to add to the java command. Here, you
344 can specify the port as well as the Context you want your service to run
345 in. Use context=/ to run in an unnamed Context (Root Context). The default
346 configuration of the AJSC is to run under the / Context. Setting the port
347 here can aid during the development phase of your service. However, you can
348 leave this argument out entirely, and the AJSC will default to using an Ephemeral
351 <argument>context=/</argument>
352 <argument>port=${serverPort}</argument>
353 <argument>sslport=${sslport}</argument>
359 <executable>java</executable>
363 <groupId>com.att.ajsc</groupId>
364 <artifactId>ajsc-runner</artifactId>
365 <version>${ajscRuntimeVersion}</version>