2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
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
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ============LICENSE_END=========================================================
19 ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 <project xmlns="http://maven.apache.org/POM/4.0.0" 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>1.0.0</version>
30 <relativePath></relativePath>
32 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
33 <artifactId>dmaapMR1</artifactId>
34 <version>1.0.0-SNAPSHOT</version>
35 <name>Message Router Service</name>
36 <description>Message Router - Restful interface built for kafka</description>
37 <url>https://github.com/att/dmaap-framework</url>
40 <name>APache License Version 2.0</name>
46 <name>Rajashree</name>
48 <organization>ATT</organization>
49 <organizationUrl>www.att.com</organizationUrl>
54 <organization>ATT</organization>
55 <organizationUrl>www.att.com</organizationUrl>
63 <groupId>org.apache.maven.plugins</groupId>
64 <artifactId>maven-javadoc-plugin</artifactId>
65 <version>2.10.4</version>
67 <additionalparam>-Xdoclint:none</additionalparam>
71 <id>attach-javadocs</id>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-source-plugin</artifactId>
81 <version>3.0.0</version>
84 <id>attach-sources</id>
86 <goal>jar-no-fork</goal>
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-release-plugin</artifactId>
94 <version>2.5.3</version>
96 <autoVersionSubmodules>true</autoVersionSubmodules>
97 <checkModificationExcludes>
98 </checkModificationExcludes>
102 <groupId>org.apache.maven.scm</groupId>
103 <artifactId>maven-scm-provider-gitexe</artifactId>
104 <version>1.9.4</version>
109 <groupId>org.apache.maven.plugins</groupId>
110 <artifactId>maven-deploy-plugin</artifactId>
111 <version>2.5</version>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-resources-plugin</artifactId>
119 <version>2.7</version>
122 <id>copy-docker-file</id>
123 <phase>package</phase>
125 <goal>copy-resources</goal>
128 <outputDirectory>${dockerLocation}</outputDirectory>
129 <overwrite>true</overwrite>
132 <directory>${basedir}/src/main/resources/docker</directory>
133 <filtering>true</filtering>
135 <include>**/*</include>
144 <groupId>com.spotify</groupId>
145 <artifactId>docker-maven-plugin</artifactId>
146 <version>0.4.11</version>
148 <imageName>attos/dmaap</imageName>
149 <dockerDirectory>${dockerLocation}</dockerDirectory>
150 <serverId>docker-hub</serverId>
151 <registryUrl>https://index.docker.io/v1</registryUrl>
153 <imageTag>${dmaapImg}</imageTag>
154 <imageTag>latest</imageTag>
156 <forceTags>true</forceTags>
160 <groupId>com.blackducksoftware.integration</groupId>
161 <artifactId>hub-maven-plugin</artifactId>
162 <version>1.0.4</version>
163 <inherited>false</inherited>
165 <target>${project.basedir}</target>
169 <id>create-bdio-file</id>
170 <phase>package</phase>
172 <goal>createHubOutput</goal>
178 <groupId>org.apache.maven.plugins</groupId>
179 <artifactId>maven-gpg-plugin</artifactId>
180 <version>1.5</version>
183 <id>sign-artifacts</id>
184 <phase>verify</phase>
192 <groupId>org.sonatype.plugins</groupId>
193 <artifactId>nexus-staging-maven-plugin</artifactId>
194 <version>1.6.7</version>
195 <extensions>true</extensions>
197 <nexusUrl>${nexusproxy}</nexusUrl>
198 <stagingProfileId>176c31dfe190a</stagingProfileId>
199 <serverId>ecomp-staging</serverId>
200 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
204 <groupId>org.jacoco</groupId>
205 <artifactId>jacoco-maven-plugin</artifactId>
206 <version>0.7.7.201606060606</version>
208 <dumpOnExit>true</dumpOnExit>
210 <include>org.onap.clamp.*</include>
215 <id>pre-unit-test</id>
217 <goal>prepare-agent</goal>
220 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
221 <!-- <append>true</append> -->
225 <id>pre-integration-test</id>
226 <phase>pre-integration-test</phase>
228 <goal>prepare-agent</goal>
231 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
232 <!-- <append>true</append> -->
239 <phase>post-integration-test</phase>
242 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
243 <directory>${project.build.directory}/coverage-reports</directory>
245 <include>*.exec</include>
249 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
259 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
260 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
261 <docker.registry>hub.docker.com</docker.registry>
263 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
264 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
265 <ajscRuntimeVersion>1.0.0</ajscRuntimeVersion>
267 <!-- This will be the Absolute Root of the Project and should contain NO
269 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
270 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
271 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
272 For NO Versioning, leave as is -->
273 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
274 ${project.version} to ${runAjscHome} for running locally. -->
275 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
276 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
277 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
279 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
280 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
281 <!-- For SOA Cloud Installation -->
282 <installOwnerUser>msgrtr</installOwnerUser>
283 <installOwnerGroup>dmaap</installOwnerGroup>
284 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
285 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
286 For local testing, you may choose to hardcode this value to something like
288 <serverPort>3904</serverPort>
289 <sslport>3905</sslport>
291 <testRouteOffer>workstation</testRouteOffer>
292 <testEnv>DEV</testEnv>
293 <dmaapImg>1.0.19</dmaapImg>
295 <sonar.language>java</sonar.language>
296 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
297 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
298 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
299 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
300 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
301 <sonar.projectVersion>${project.version}</sonar.projectVersion>
303 <nexusproxy>https://nexus.onap.org</nexusproxy>
304 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
305 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
306 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
307 <sitePath>/content/sites/site/org/onap/clamp/${project.version}</sitePath>
310 <!-- Distribution management -->
313 <!-- End Distribution management -->
315 <!-- The standard build tasks for this project are inherited from the parent.
316 Please do not override the build tasks. However tasks and/or profiles can
317 be included here as well as additional dependencies for your service. Any
318 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
319 folder and will be made available on the AJSC classpath for your service.
320 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
321 CSI environment. Therefore, they are provided within this project as "provided"
322 dependencies. In order for the AJSC to run properly, locally, the CSM and
323 DME2 dependencies will be copied into the target/commonLibs folder and will
324 be made available to the classpath of the AJSC through the use of the system
325 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
326 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
327 so). If you have a startup failure related to a missing dme2 class not found
328 exception, please contact the AJSC team for assistance. You can email support
329 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
330 the usage of the AJSC service pom.xml and management of dependencies, please
331 goto wiki link:http://wiki.web.att.com/display/ajsc/pom.xml -->
334 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
338 <groupId>csi-schemas-source</groupId>
339 <artifactId>cmn-CommonDataModel</artifactId>
340 <version>112.0.50</version>
342 <!-- TODO: add open source version here -->
344 <groupId>com.att.cadi</groupId>
345 <artifactId>cadi-core</artifactId>
346 <version>1.3.0</version>
349 <groupId>commons-io</groupId>
350 <artifactId>commons-io</artifactId>
351 <version>2.4</version>
354 <groupId>org.apache.commons</groupId>
355 <artifactId>commons-io</artifactId>
356 <version>1.3.2</version>
359 <groupId>com.att.nsa</groupId>
360 <artifactId>msgrtr</artifactId>
361 <version>0.0.5</version>
364 <groupId>org.slf4j</groupId>
365 <artifactId>slf4j-log4j12</artifactId>
368 <groupId>com.att.ajsc</groupId>
369 <artifactId>ajsc-core</artifactId>
372 <groupId>org.apache.tomcat</groupId>
373 <artifactId>tomcat-catalina</artifactId>
377 <groupId>org.apache.tomcat.embed</groupId>
378 <artifactId>tomcat-embed-core</artifactId>
381 <groupId>org.apache.tomcat</groupId>
382 <artifactId>tomcat-util</artifactId>
384 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
387 <groupId>com.att.nsa</groupId>
388 <artifactId>tomcat-util</artifactId>
395 <groupId>org.codehaus.jackson</groupId>
396 <artifactId>jackson-jaxrs</artifactId>
397 <version>1.9.13</version>
401 <groupId>org.json</groupId>
402 <artifactId>json</artifactId>
403 <version>20131018</version>
406 <!-- CXF JAX-RS extension -->
408 <groupId>org.apache.cxf</groupId>
409 <artifactId>cxf-rt-rs-extension-providers</artifactId>
410 <version>3.0.4</version>
413 <groupId>org.codehaus.jettison</groupId>
414 <artifactId>jettison</artifactId>
415 <version>1.3.7</version>
417 <!-- dme2 related dependencies -->
419 <groupId>net.cingular.enterprise</groupId>
420 <artifactId>csm-framework</artifactId>
421 <version>${csm.version}</version>
422 <scope>provided</scope>
425 <groupId>net.cingular.enterprise</groupId>
426 <artifactId>csm-jmxsupport-jdk</artifactId>
427 <version>${csm.version}</version>
428 <scope>provided</scope>
431 <groupId>net.cingular.enterprise</groupId>
432 <artifactId>csm-jmx</artifactId>
433 <version>${csm.version}</version>
434 <scope>provided</scope>
437 <!-- For dom4j dependency ONLY! - If deploying to CSI env, remove "provided"
438 scope. In CSI env, this jar MUST be included within service project's swm
441 <groupId>dom4j</groupId>
442 <artifactId>dom4j</artifactId>
443 <version>1.6.1</version>
444 <scope>provided</scope>
447 <groupId>com.att.aft</groupId>
448 <artifactId>dme2</artifactId>
449 <version>${dme2.version}</version>
450 <!-- <scope>provided</scope> -->
453 <groupId>com.att.ajsc</groupId>
454 <artifactId>ajsc-archetype-parent</artifactId>
455 <version>1.0.0</version>
460 <groupId>com.att.cadi</groupId>
461 <artifactId>cadi-aaf</artifactId>
462 <version>1.3.0</version>
466 <groupId>com.att.inno</groupId>
467 <artifactId>rosetta</artifactId>
468 <version>1.2.11</version>
471 <groupId>com.att.inno</groupId>
472 <artifactId>env</artifactId>
473 <version>1.2.11</version>
476 <groupId>com.att.inno</groupId>
477 <artifactId>xgen</artifactId>
478 <version>1.2.11</version>
481 <groupId>com.att.inno</groupId>
482 <artifactId>rosetta</artifactId>
483 <version>1.2.11</version>
486 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
487 </resource> </resources> </build> -->
489 <!-- Use this profile to run the AJSC locally. This profile can be successfully
490 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
491 available with this profile. -->
495 <defaultGoal>initialize</defaultGoal>
498 <groupId>org.codehaus.mojo</groupId>
499 <artifactId>exec-maven-plugin</artifactId>
500 <version>1.3.2</version>
503 <phase>initialize</phase>
508 <!-- In order to better mimic a SOA cloud installation of AJSC (and
509 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
510 to diagnose), within this profile used to run locally, we are NOT including
511 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
512 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
513 the only dependency required by this profile to run locally. -->
514 <includeProjectDependencies>false</includeProjectDependencies>
515 <includePluginDependencies>true</includePluginDependencies>
516 <executable>java</executable>
517 <mainClass>com.att.ajsc.runner.Runner</mainClass>
518 <executableDependency>
519 <groupId>com.att.ajsc</groupId>
520 <artifactId>ajsc-runner</artifactId>
521 </executableDependency>
522 <additionalClasspathElements>
523 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
524 </additionalClasspathElements>
526 <environmentVariables>
527 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
528 </environmentVariables>
530 <!-- Main AJSC System Properties below (necessary for proper startup) -->
534 <value>${runAjscHome}</value>
538 <value>${runAjscHome}</value>
541 <key>AJSC_CONF_HOME</key>
542 <value>${basedir}/bundleconfig-local</value>
545 <key>logback.configurationFile</key>
546 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
549 <key>AJSC_SHARED_CONFIG</key>
550 <value>${basedir}/ajsc-shared-config</value>
553 <!-- Please, NOTE: The following 2 system properties will normally
554 be set within the sys-props.properties file once deployed to a node. We are
555 setting them HERE to run locally to make more efficient use of maven variable
556 replacement for ${basedir} -->
557 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
558 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
560 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
561 <value>${basedir}/target/commonLibs</value>
563 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
564 files that may need to be added to the classpath. These files will be externalized
565 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
566 Failure to have these files on the classpath may result in errors thrown
567 by csm framework. -->
569 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
570 <value>${basedir}/ajsc-shared-config/etc</value>
574 <key>AJSC_SERVICE_NAMESPACE</key>
575 <value>${module.ajsc.namespace.name}</value>
578 <key>AJSC_SERVICE_VERSION</key>
579 <value>${module.ajsc.namespace.version}</value>
582 <key>SOACLOUD_SERVICE_VERSION</key>
583 <value>${project.version}</value>
586 <key>server.port</key>
587 <value>${serverPort}</value>
591 <!-- Command Line Arguments to add to the java command. Here, you
592 can specify the port as well as the Context you want your service to run
593 in. Use context=/ to run in an unnamed Context (Root Context). The default
594 configuration of the AJSC is to run under the / Context. Setting the port
595 here can aid during the development phase of your service. However, you can
596 leave this argument out entirely, and the AJSC will default to using an Ephemeral
599 <argument>context=/</argument>
600 <argument>port=${serverPort}</argument>
601 <argument>sslport=${sslport}</argument>
607 <executable>java</executable>
611 <groupId>com.att.ajsc</groupId>
612 <artifactId>ajsc-runner</artifactId>
613 <version>${ajscRuntimeVersion}</version>
619 <groupId>org.apache.maven.plugins</groupId>
620 <artifactId>maven-resources-plugin</artifactId>
621 <version>2.7</version>
624 <id>copy-docker-file</id>
625 <phase>package</phase>
627 <goal>copy-resources</goal>
630 <outputDirectory>${dockerLocation}</outputDirectory>
631 <overwrite>true</overwrite>
634 <directory>${basedir}/src/main/resources/docker</directory>
635 <filtering>true</filtering>
637 <include>**/*</include>
646 <groupId>com.spotify</groupId>
647 <artifactId>docker-maven-plugin</artifactId>
648 <version>0.4.11</version>
650 <imageName>${docker.registry}/${project.artifactId}</imageName>
651 <dockerDirectory>${dockerLocation}</dockerDirectory>
652 <serverId>docker-hub</serverId>
653 <registryUrl>https://${docker.registry}</registryUrl>
655 <imageTag>${dmaapImg}</imageTag>
656 <imageTag>latest</imageTag>
658 <forceTags>true</forceTags>
667 <distributionManagement>
669 <id>ecomp-releases</id>
670 <name>Clamp Release Repository</name>
671 <url>${nexusproxy}/${releaseNexusPath}</url>
674 <id>ecomp-snapshots</id>
675 <name>Clamp Snapshot Repository</name>
676 <url>${nexusproxy}/${snapshotNexusPath}</url>
677 </snapshotRepository>
680 <url>dav:${nexusproxy}${sitePath}</url>
682 </distributionManagement>
687 <name>Maven 2 repository 2</name>
688 <url>http://repo2.maven.org/maven2/</url>
691 <id>ecomp-releases</id>
692 <name>ONAP Release Repository</name>
693 <url>${nexusproxy}/${releaseNexusPath}</url>
696 <id>ecomp-staging</id>
697 <name>ONAP Staging Repository</name>
698 <url>${nexusproxy}/${stagingNexusPath}</url>
701 <id>ecomp-snapshots</id>
702 <name>ONAP Snapshot Repository</name>
703 <url>${nexusproxy}/${snapshotNexusPath}</url>
705 <enabled>true</enabled>
708 <enabled>false</enabled>
713 <name>Spring repo</name>
714 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
717 <id>repository.jboss.org-public</id>
718 <name>JBoss.org Maven repository</name>
719 <url>https://repository.jboss.org/nexus/content/groups/public</url>