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=========================================================
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22 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 <groupId>com.att.ajsc</groupId>
28 <artifactId>ajsc-archetype-parent</artifactId>
29 <version>2.0.0</version>
32 <groupId>org.onap.aai</groupId>
33 <artifactId>champ-service</artifactId>
34 <version>1.2.0-SNAPSHOT</version>
37 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
38 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
40 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
42 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
43 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
44 version, THIS will be used as your directory structure. If you do NOT want
45 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
47 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
49 <common.logging.groupid>org.onap.aai.logging-service</common.logging.groupid>
50 <common.logging.version>1.2.0</common.logging.version>
51 <org.apache.httpcomponents.httpclient.version>4.5.2</org.apache.httpcomponents.httpclient.version>
53 <docker.location>${basedir}/target</docker.location>
54 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
59 <groupId>com.sun.jersey</groupId>
60 <artifactId>jersey-core</artifactId>
61 <version>1.18.6</version>
65 <groupId>dom4j</groupId>
66 <artifactId>dom4j</artifactId>
67 <version>1.6.1</version>
68 <scope>provided</scope>
72 <groupId>com.att.aft</groupId>
73 <artifactId>dme2</artifactId>
74 <version>3.1.200</version>
75 <scope>provided</scope>
79 <groupId>org.json</groupId>
80 <artifactId>json</artifactId>
81 <version>20160212</version>
85 <groupId>org.glassfish.jersey.core</groupId>
86 <artifactId>jersey-client</artifactId>
87 <version>2.23</version>
91 <groupId>commons-io</groupId>
92 <artifactId>commons-io</artifactId>
93 <version>2.4</version>
97 <groupId>com.google.code.gson</groupId>
98 <artifactId>gson</artifactId>
99 <version>2.6.2</version>
103 <groupId>${common.logging.groupid}</groupId>
104 <artifactId>common-logging</artifactId>
105 <version>${common.logging.version}</version>
109 <groupId>ch.qos.logback</groupId>
110 <artifactId>logback-core</artifactId>
111 <version>1.1.7</version>
115 <groupId>org.eclipse.persistence</groupId>
116 <artifactId>eclipselink</artifactId>
117 <version>2.6.2</version>
121 <groupId>org.apache.httpcomponents</groupId>
122 <artifactId>httpclient</artifactId>
123 <version>${org.apache.httpcomponents.httpclient.version}</version>
127 <groupId>org.onap.aai</groupId>
128 <artifactId>champ-core</artifactId>
129 <version>1.2.0-SNAPSHOT</version>
130 <scope>compile</scope>
133 <groupId>org.apache.hbase</groupId>
134 <artifactId>hbase-client</artifactId>
140 <distributionManagement>
142 <id>ecomp-releases</id>
143 <name>ECOMP Release Repository</name>
144 <url>${onap.nexus.url}/content/repositories/releases/</url>
147 <id>ecomp-snapshots</id>
148 <name>ECOMP Snapshot Repository</name>
149 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
150 </snapshotRepository>
151 </distributionManagement>
154 <finalName>${project.artifactId}</finalName>
157 <groupId>org.apache.maven.plugins</groupId>
158 <artifactId>maven-resources-plugin</artifactId>
159 <version>2.7</version>
162 <id>copy-docker-file</id>
163 <phase>package</phase>
165 <goal>copy-resources</goal>
168 <outputDirectory>target</outputDirectory>
169 <overwrite>true</overwrite>
172 <directory>${basedir}/src/main/docker</directory>
173 <filtering>true</filtering>
175 <include>**/*</include>
179 <directory>${basedir}/src/main/bin/</directory>
182 <directory>../champ-service-deps-janus/target/</directory>
185 <directory>../champ-service-deps-titan/target/</directory>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-deploy-plugin</artifactId>
201 <groupId>com.mycila</groupId>
202 <artifactId>license-maven-plugin</artifactId>
203 <version>3.0</version>
205 <header>License.txt</header>
207 <include>src/main/java/**</include>
215 <phase>process-sources</phase>
221 <groupId>com.spotify</groupId>
222 <artifactId>docker-maven-plugin</artifactId>
223 <version>0.4.11</version>
225 <verbose>true</verbose>
226 <serverId>docker-hub</serverId>
227 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
228 <dockerDirectory>${docker.location}</dockerDirectory>
230 <imageTag>latest</imageTag>
232 <forceTags>true</forceTags>
236 <groupId>org.jacoco</groupId>
237 <artifactId>jacoco-maven-plugin</artifactId>
238 <version>0.7.9</version>
241 <id>default-prepare-agent</id>
243 <goal>prepare-agent</goal>
247 <id>default-report</id>
248 <phase>prepare-package</phase>
254 <id>default-check</id>
260 <!-- implementation is needed only for Maven 2 -->
261 <rule implementation="org.jacoco.maven.RuleConfiguration">
262 <element>BUNDLE</element>
264 <!-- implementation is needed only for Maven 2 -->
265 <limit implementation="org.jacoco.report.check.Limit">
266 <counter>INSTRUCTION</counter>
267 <value>COVEREDRATIO</value>
268 <minimum>.15</minimum>
270 <limit implementation="org.jacoco.report.check.Limit">
271 <counter>BRANCH</counter>
272 <value>COVEREDRATIO</value>
273 <minimum>.12</minimum>
275 <limit implementation="org.jacoco.report.check.Limit">
276 <counter>COMPLEXITY</counter>
277 <value>COVEREDRATIO</value>
278 <minimum>.15</minimum>
280 <limit implementation="org.jacoco.report.check.Limit">
281 <counter>LINE</counter>
282 <value>COVEREDRATIO</value>
283 <minimum>.10</minimum>
285 <limit implementation="org.jacoco.report.check.Limit">
286 <counter>METHOD</counter>
287 <value>COVEREDRATIO</value>
288 <minimum>.17</minimum>
290 <limit implementation="org.jacoco.report.check.Limit">
291 <counter>CLASS</counter>
292 <value>MISSEDCOUNT</value>
309 <defaultGoal>initialize</defaultGoal>
312 <groupId>org.codehaus.mojo</groupId>
313 <artifactId>exec-maven-plugin</artifactId>
314 <version>1.3.2</version>
317 <phase>initialize</phase>
322 <includeProjectDependencies>false</includeProjectDependencies>
323 <includePluginDependencies>true</includePluginDependencies>
324 <executable>java</executable>
325 <mainClass>com.att.ajsc.runner.Runner</mainClass>
326 <executableDependency>
327 <groupId>com.att.ajsc</groupId>
328 <artifactId>ajsc-runner</artifactId>
329 </executableDependency>
330 <additionalClasspathElements>
331 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
332 </additionalClasspathElements>
334 <environmentVariables>
335 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
336 </environmentVariables>
338 <!-- Main AJSC System Properties below (necessary for proper startup) -->
342 <value>${runAjscHome}</value>
345 <key>CONFIG_HOME</key>
346 <value>${basedir}/appconfig-local/</value>
349 <key>AJSC_CONF_HOME</key>
350 <value>${basedir}/bundleconfig-local</value>
353 <key>logback.configurationFile</key>
354 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
357 <key>AJSC_SHARED_CONFIG</key>
358 <value>${basedir}/ajsc-shared-config</value>
362 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
363 <value>${basedir}/target/commonLibs</value>
366 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
367 <value>${basedir}/ajsc-shared-config/etc</value>
371 <key>AJSC_SERVICE_NAMESPACE</key>
372 <value>${module.ajsc.namespace.name}</value>
375 <key>AJSC_SERVICE_VERSION</key>
376 <value>${module.ajsc.namespace.version}</value>
379 <key>SOACLOUD_SERVICE_VERSION</key>
380 <value>${project.version}</value>
383 <key>server.port</key>
384 <value>${serverPort}</value>
388 <!-- Command Line Arguments to add to the java command. Here, you
389 can specify the port as well as the Context you want your service to run
390 in. Use context=/ to run in an unnamed Context (Root Context). The default
391 configuration of the AJSC is to run under the / Context. Setting the port
392 here can aid during the development phase of your service. However, you can
393 leave this argument out entirely, and the AJSC will default to using an Ephemeral
396 <argument>context=/</argument>
397 <argument>port=${serverPort}</argument>
398 <argument>sslport=${sslport}</argument>
404 <executable>java</executable>
408 <groupId>com.att.ajsc</groupId>
409 <artifactId>ajsc-runner</artifactId>
410 <version>${ajscRuntimeVersion}</version>