1 <!-- ============LICENSE_START=======================================================
2 org.onap.dmaap ================================================================================
3 Copyright © 2017 AT&T Intellectual Property. All rights reserved. ================================================================================
4 Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 use this file except in compliance with the License. You may obtain a copy
6 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
7 by applicable law or agreed to in writing, software distributed under the
8 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9 OF ANY KIND, either express or implied. See the License for the specific
10 language governing permissions and limitations under the License. ============LICENSE_END=========================================================
11 ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
12 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
14 <modelVersion>4.0.0</modelVersion>
17 <groupId>org.onap.oparent</groupId>
18 <artifactId>oparent</artifactId>
19 <version>1.1.0</version>
22 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23 <artifactId>dmaapMR1</artifactId>
24 <version>1.1.4-SNAPSHOT</version>
25 <name>dmaap-messagerouter-messageservice</name>
26 <description>Message Router - Restful interface built for kafka</description>
29 <name>Apache License Version 2.0</name>
35 <name>Rajashree</name>
37 <organization>ATT</organization>
38 <organizationUrl>www.att.com</organizationUrl>
43 <organization>ATT</organization>
44 <organizationUrl>www.att.com</organizationUrl>
51 <groupId>org.apache.maven.plugins</groupId>
52 <artifactId>maven-site-plugin</artifactId>
53 <version>3.6</version>
56 <groupId>org.apache.maven.wagon</groupId>
57 <artifactId>wagon-webdav-jackrabbit</artifactId>
58 <version>2.10</version>
64 <groupId>org.apache.maven.plugins</groupId>
65 <artifactId>maven-jar-plugin</artifactId>
66 <version>3.0.2</version>
69 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId>
70 <version>2.10.4</version> <configuration> <additionalparam>-Xdoclint:none</additionalparam>
71 </configuration> <executions> <execution> <id>attach-javadocs</id> <goals>
72 <goal>jar</goal> </goals> </execution> </executions> </plugin> -->
74 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-source-plugin</artifactId>
76 <version>3.0.0</version>
79 <id>attach-sources</id>
81 <goal>jar-no-fork</goal>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-release-plugin</artifactId>
89 <version>2.5.3</version>
91 <autoVersionSubmodules>true</autoVersionSubmodules>
92 <checkModificationExcludes>
93 </checkModificationExcludes>
97 <groupId>org.apache.maven.scm</groupId>
98 <artifactId>maven-scm-provider-gitexe</artifactId>
99 <version>1.9.4</version>
105 <groupId>com.spotify</groupId>
106 <artifactId>docker-maven-plugin</artifactId>
107 <version>1.0.0</version>
109 <imageName>onap/dmaap/dmaap-mr</imageName>
110 <dockerDirectory>${dockerLocation}</dockerDirectory>
111 <serverId>docker-hub</serverId>
113 <imageTag>${dmaapImg}</imageTag>
114 <imageTag>${dmaapImg.release.version}</imageTag>
115 <imageTag>latest</imageTag>
117 <forceTags>true</forceTags>
120 <targetPath>/</targetPath>
121 <directory>${dockerLocation}</directory>
122 <include>${project.build.finalName}.jar</include>
125 <targetPath>/</targetPath>
126 <directory>${project.build.directory}</directory>
127 <include>**/**</include>
134 <phase>install</phase>
139 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
144 <id>tag-image-project-version</id>
145 <phase>install</phase>
150 <image>onap/dmaap/dmaap-mr</image>
151 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</newName>
152 <skipDockerTag>${skip.docker.push}</skipDockerTag>
157 <id>tag-image-latest</id>
158 <phase>install</phase>
163 <image>onap/dmaap/dmaap-mr</image>
164 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</newName>
165 <skipDockerTag>${skip.docker.push}</skipDockerTag>
170 <id>push-image-latest</id>
171 <phase>deploy</phase>
176 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</imageName>
177 <skipDockerPush>${skip.docker.push}</skipDockerPush>
183 <phase>deploy</phase>
188 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</imageName>
189 <skipDockerPush>${skip.docker.push}</skipDockerPush>
195 <groupId>com.blackducksoftware.integration</groupId>
196 <artifactId>hub-maven-plugin</artifactId>
197 <version>1.0.4</version>
198 <inherited>false</inherited>
200 <target>${project.basedir}</target>
204 <id>create-bdio-file</id>
205 <phase>package</phase>
207 <goal>createHubOutput</goal>
214 <groupId>org.apache.maven.plugins</groupId>
215 <artifactId>maven-compiler-plugin</artifactId>
216 <version>3.1</version>
218 <compilerId>groovy-eclipse-compiler</compilerId>
219 <verbose>true</verbose>
225 <groupId>org.codehaus.groovy</groupId>
226 <artifactId>groovy-eclipse-compiler</artifactId>
227 <version>2.8.0-01</version>
230 <groupId>org.codehaus.groovy</groupId>
231 <artifactId>groovy-eclipse-batch</artifactId>
232 <version>2.1.5-03</version>
237 <groupId>org.codehaus.groovy</groupId>
238 <artifactId>groovy-eclipse-compiler</artifactId>
239 <version>2.8.0-01</version>
240 <extensions>true</extensions>
247 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
248 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
249 <docker.image.prefix>simpledemo</docker.image.prefix>
250 <javax-mail-version>1.5.0</javax-mail-version>
251 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
252 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
253 <ajscRuntimeVersion>3.0.6-oss</ajscRuntimeVersion>
254 <dmaapImg.release.version>1.1.4</dmaapImg.release.version>
256 <!-- This will be the Absolute Root of the Project and should contain NO
258 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
259 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
260 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
261 For NO Versioning, leave as is -->
262 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
263 ${project.version} to ${runAjscHome} for running locally. -->
264 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
265 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
266 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
268 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
269 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
270 <!-- For SOA Cloud Installation -->
271 <installOwnerUser>msgrtr</installOwnerUser>
272 <installOwnerGroup>dmaap</installOwnerGroup>
273 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
274 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
275 For local testing, you may choose to hardcode this value to something like
277 <serverPort>3904</serverPort>
278 <sslport>3905</sslport>
280 <testRouteOffer>workstation</testRouteOffer>
281 <testEnv>DEV</testEnv>
282 <dmaapImg>${project.version}</dmaapImg>
283 <camel.version>2.17.6</camel.version>
284 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
285 <skip.docker.build>true</skip.docker.build>
286 <skip.docker.push>true</skip.docker.push>
287 <nexusproxy>https://nexus.onap.org</nexusproxy>
288 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
289 <spring.version>3.2.18.RELEASE</spring.version>
292 <!-- Distribution management -->
293 <distributionManagement>
296 <url>dav:${nexusproxy}${sitePath}</url>
298 </distributionManagement>
300 <!-- End Distribution management -->
302 <!-- The standard build tasks for this project are inherited from the parent.
303 Please do not override the build tasks. However tasks and/or profiles can
304 be included here as well as additional dependencies for your service. Any
305 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
306 folder and will be made available on the AJSC classpath for your service.
307 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
308 CSI environment. Therefore, they are provided within this project as "provided"
309 dependencies. In order for the AJSC to run properly, locally, the CSM and
310 DME2 dependencies will be copied into the target/commonLibs folder and will
311 be made available to the classpath of the AJSC through the use of the system
312 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
313 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
314 so). If you have a startup failure related to a missing dme2 class not found
315 exception, please contact the AJSC team for assistance. You can email support
316 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
317 the usage of the AJSC service pom.xml and management of dependencies, -->
320 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
323 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
324 <version>112.0.50</version> </dependency> -->
325 <!-- TODO: add open source version here -->
328 <groupId>com.att.cadi</groupId>
329 <artifactId>cadi-core</artifactId>
330 <version>1.3.0</version>
333 <groupId>com.att.aft</groupId>
334 <artifactId>dme2</artifactId>
335 <version>3.1.200-oss</version>
338 <groupId>org.springframework</groupId>
339 <artifactId>spring-expression</artifactId>
340 <version>4.3.16.RELEASE</version>
343 <groupId>org.springframework</groupId>
344 <artifactId>spring-messaging</artifactId>
345 <version>4.1.9.RELEASE</version>
348 <groupId>com.sun.mail</groupId>
349 <artifactId>javax.mail</artifactId>
350 <version>${javax-mail-version}</version>
352 <!-- javax activation is part of the JDK now -->
354 <groupId>javax.activation</groupId>
355 <artifactId>activation</artifactId>
361 <groupId>org.apache.zookeeper</groupId>
362 <artifactId>zookeeper</artifactId>
363 <version>3.4.10</version>
366 <groupId>org.grails</groupId>
367 <artifactId>grails-bootstrap</artifactId>
368 <version>2.5.4</version>
369 <scope>compile</scope>
372 <artifactId>ant</artifactId>
373 <groupId>org.apache.ant</groupId>
376 <artifactId>jna</artifactId>
377 <groupId>net.java.dev.jna</groupId>
380 <artifactId>ant-trax</artifactId>
381 <groupId>org.apache.ant</groupId>
384 <artifactId>gant_groovy1.8</artifactId>
385 <groupId>org.codehaus.gant</groupId>
388 <artifactId>ant-launcher</artifactId>
389 <groupId>org.apache.ant</groupId>
392 <artifactId>jline</artifactId>
393 <groupId>jline</groupId>
396 <artifactId>ivy</artifactId>
397 <groupId>org.apache.ivy</groupId>
400 <artifactId>jansi</artifactId>
401 <groupId>org.fusesource.jansi</groupId>
404 <artifactId>commons-logging</artifactId>
405 <groupId>commons-logging</groupId>
408 <artifactId>ant-junit</artifactId>
409 <groupId>org.apache.ant</groupId>
414 <groupId>org.springframework</groupId>
415 <artifactId>spring-webmvc</artifactId>
416 <version>4.3.15.RELEASE</version>
419 <groupId>org.springframework</groupId>
420 <artifactId>spring-core</artifactId>
421 <version>4.3.15.RELEASE</version>
424 <groupId>org.springframework</groupId>
425 <artifactId>spring-beans</artifactId>
426 <version>4.3.15.RELEASE</version>
430 <groupId>org.springframework</groupId>
431 <artifactId>spring-context</artifactId>
432 <version>4.3.15.RELEASE</version>
435 <groupId>commons-io</groupId>
436 <artifactId>commons-io</artifactId>
437 <version>2.4</version>
440 <groupId>org.apache.commons</groupId>
441 <artifactId>commons-io</artifactId>
442 <version>1.3.2</version>
445 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
446 <artifactId>msgrtr</artifactId>
447 <version>1.1.3</version>
450 <groupId>org.slf4j</groupId>
451 <artifactId>slf4j-log4j12</artifactId>
454 <groupId>com.att.ajsc</groupId>
455 <artifactId>ajsc-core</artifactId>
458 <groupId>org.apache.tomcat</groupId>
459 <artifactId>tomcat-catalina</artifactId>
463 <groupId>org.apache.tomcat.embed</groupId>
464 <artifactId>tomcat-embed-core</artifactId>
467 <groupId>org.apache.tomcat</groupId>
468 <artifactId>tomcat-util</artifactId>
470 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
473 <groupId>com.att.nsa</groupId>
474 <artifactId>tomcat-util</artifactId>
478 <groupId>commons-beanutils</groupId>
479 <artifactId>commons-beanutils</artifactId>
484 <groupId>org.mockito</groupId>
485 <artifactId>mockito-core</artifactId>
486 <version>1.10.19</version>
490 <groupId>org.powermock</groupId>
491 <artifactId>powermock-module-junit4</artifactId>
492 <version>1.6.4</version>
496 <groupId>org.powermock</groupId>
497 <artifactId>powermock-api-mockito</artifactId>
498 <version>1.6.4</version>
501 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
502 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
503 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
504 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
505 <version>1.9.13</version> </dependency> -->
508 <groupId>com.fasterxml.jackson.jaxrs</groupId>
509 <artifactId>jackson-jaxrs-json-provider</artifactId>
510 <version>2.2.3</version>
514 <groupId>com.fasterxml.jackson.core</groupId>
515 <artifactId>jackson-core</artifactId>
516 <version>2.8.11</version>
520 <groupId>com.fasterxml.jackson.core</groupId>
521 <artifactId>jackson-databind</artifactId>
522 <version>2.8.11.1</version>
525 <groupId>org.grails</groupId>
526 <artifactId>grails-web</artifactId>
527 <version>2.5.4</version>
530 <groupId>org.grails</groupId>
531 <artifactId>grails-web-jsp</artifactId>
536 <groupId>org.codehaus.groovy</groupId>
537 <artifactId>groovy-all</artifactId>
538 <version>2.4.4</version>
539 <scope>compile</scope>
542 <artifactId>jline</artifactId>
543 <groupId>jline</groupId>
549 <groupId>junit</groupId>
550 <artifactId>junit</artifactId>
551 <version>4.11</version>
556 <groupId>org.json</groupId>
557 <artifactId>json</artifactId>
558 <version>20131018</version>
561 <!-- CXF JAX-RS extension -->
563 <groupId>org.apache.cxf</groupId>
564 <artifactId>cxf-rt-rs-extension-providers</artifactId>
565 <version>3.0.12</version>
568 <groupId>org.codehaus.jettison</groupId>
569 <artifactId>jettison</artifactId>
570 <version>1.3.7</version>
574 <groupId>dom4j</groupId>
575 <artifactId>dom4j</artifactId>
576 <version>1.6.1</version>
577 <scope>provided</scope>
580 <groupId>com.att.ajsc</groupId>
581 <artifactId>ajsc-archetype-parent</artifactId>
582 <version>3.0.6-oss</version>
587 <groupId>com.att.cadi</groupId>
588 <artifactId>cadi-aaf</artifactId>
589 <version>1.3.0</version>
593 <groupId>com.att.inno</groupId>
594 <artifactId>rosetta</artifactId>
595 <version>1.2.11</version>
598 <groupId>com.att.inno</groupId>
599 <artifactId>env</artifactId>
600 <version>1.2.11</version>
603 <groupId>com.att.inno</groupId>
604 <artifactId>xgen</artifactId>
605 <version>1.2.11</version>
608 <groupId>com.att.inno</groupId>
609 <artifactId>rosetta</artifactId>
610 <version>1.2.11</version>
613 <groupId>backport-util-concurrent</groupId>
614 <artifactId>backport-util-concurrent</artifactId>
615 <version>3.1</version>
618 <groupId>org.apache.camel</groupId>
619 <artifactId>camel-core</artifactId>
620 <version>${camel.version}</version>
623 <groupId>org.apache.camel</groupId>
624 <artifactId>camel-quartz</artifactId>
625 <version>${camel.version}</version>
628 <groupId>org.apache.camel</groupId>
629 <artifactId>camel-spring</artifactId>
630 <version>${camel.version}</version>
633 <groupId>org.apache.camel</groupId>
634 <artifactId>camel-restlet</artifactId>
635 <version>${camel.version}</version>
638 <artifactId>org.restlet</artifactId>
639 <groupId>org.restlet.jse</groupId>
644 <groupId>org.apache.camel</groupId>
645 <artifactId>camel-servlet</artifactId>
646 <version>${camel.version}</version>
649 <groupId>commons-httpclient</groupId>
650 <artifactId>commons-httpclient</artifactId>
655 <groupId>org.apache.httpcomponents</groupId>
656 <artifactId>httpclient</artifactId>
657 <version>4.0</version>
661 <groupId>org.apache.camel</groupId>
662 <artifactId>camel-http4</artifactId>
663 <version>${camel.version}</version>
666 <groupId>org.apache.geronimo.specs</groupId>
667 <artifactId>geronimo-servlet_2.5_spec</artifactId>
672 <groupId>org.apache.camel</groupId>
673 <artifactId>camel-groovy</artifactId>
674 <version>${camel.version}</version>
677 <groupId>org.apache.camel</groupId>
678 <artifactId>camel-twitter</artifactId>
679 <version>${camel.version}</version>
682 <groupId>org.apache.camel</groupId>
683 <artifactId>camel-mail</artifactId>
684 <version>${camel.version}</version>
687 <groupId>org.apache.camel</groupId>
688 <artifactId>camel-smpp</artifactId>
689 <version>${camel.version}</version>
692 <groupId>org.apache.camel</groupId>
693 <artifactId>camel-jms</artifactId>
694 <version>${camel.version}</version>
697 <groupId>org.apache.camel</groupId>
698 <artifactId>camel-script</artifactId>
699 <version>${camel.version}</version>
702 <groupId>org.apache.camel</groupId>
703 <artifactId>camel-xmpp</artifactId>
704 <version>${camel.version}</version>
707 <groupId>org.apache.camel</groupId>
708 <artifactId>camel-velocity</artifactId>
709 <version>${camel.version}</version>
712 <groupId>com.att.ajsc</groupId>
713 <artifactId>ajsc-runner</artifactId>
714 <version>3.0.6-oss</version>
715 <scope>runtime</scope>
718 <groupId>com.att.ajsc</groupId>
719 <artifactId>ajsc-core</artifactId>
720 <version>3.0.6-oss</version>
721 <scope>provided</scope>
724 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
725 </resource> </resources> </build> -->
727 <!-- Use this profile to run the AJSC locally. This profile can be successfully
728 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
729 available with this profile. -->
734 <skip.docker.build>false</skip.docker.build>
735 <skip.docker.tag>false</skip.docker.tag>
736 <skip.docker.push>false</skip.docker.push>
743 <defaultGoal>initialize</defaultGoal>
746 <groupId>org.apache.maven.plugins</groupId>
747 <artifactId>maven-antrun-plugin</artifactId>
750 <phase>initialize</phase>
752 <target name="runLocal">
753 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
769 <defaultGoal>initialize</defaultGoal>
772 <groupId>org.codehaus.mojo</groupId>
773 <artifactId>exec-maven-plugin</artifactId>
774 <version>1.3.2</version>
777 <phase>initialize</phase>
782 <!-- In order to better mimic a SOA cloud installation of AJSC (and
783 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
784 to diagnose), within this profile used to run locally, we are NOT including
785 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
786 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
787 the only dependency required by this profile to run locally. -->
788 <includeProjectDependencies>false</includeProjectDependencies>
789 <includePluginDependencies>true</includePluginDependencies>
790 <executable>java</executable>
791 <mainClass>com.att.ajsc.runner.Runner</mainClass>
792 <executableDependency>
793 <groupId>com.att.ajsc</groupId>
794 <artifactId>ajsc-runner</artifactId>
795 </executableDependency>
796 <additionalClasspathElements>
797 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
798 </additionalClasspathElements>
800 <environmentVariables>
801 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
802 </environmentVariables>
804 <!-- Main AJSC System Properties below (necessary for proper startup) -->
808 <value>${runAjscHome}</value>
812 <value>${runAjscHome}</value>
815 <key>AJSC_CONF_HOME</key>
816 <value>${basedir}/bundleconfig-local</value>
819 <key>logback.configurationFile</key>
820 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
823 <key>com.att.eelf.logging.file</key>
824 <value>logback.xml</value>
827 <key>com.att.eelf.logging.path</key>
828 <value>${basedir}/ajsc-shared-config/etc</value>
831 <key>logging.config</key>
832 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
835 <key>AJSC_SHARED_CONFIG</key>
836 <value>${basedir}/ajsc-shared-config</value>
839 <!-- Please, NOTE: The following 2 system properties will normally
840 be set within the sys-props.properties file once deployed to a node. We are
841 setting them HERE to run locally to make more efficient use of maven variable
842 replacement for ${basedir} -->
843 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
844 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
846 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
847 <value>${basedir}/target/commonLibs</value>
849 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
850 files that may need to be added to the classpath. These files will be externalized
851 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
852 Failure to have these files on the classpath may result in errors thrown
853 by csm framework. -->
855 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
856 <value>${basedir}/ajsc-shared-config/etc</value>
860 <key>AJSC_SERVICE_NAMESPACE</key>
861 <value>${module.ajsc.namespace.name}</value>
864 <key>AJSC_SERVICE_VERSION</key>
865 <value>${module.ajsc.namespace.version}</value>
868 <key>SOACLOUD_SERVICE_VERSION</key>
869 <value>${project.version}</value>
872 <key>server.port</key>
873 <value>${serverPort}</value>
877 <!-- Command Line Arguments to add to the java command. Here, you
878 can specify the port as well as the Context you want your service to run
879 in. Use context=/ to run in an unnamed Context (Root Context). The default
880 configuration of the AJSC is to run under the / Context. Setting the port
881 here can aid during the development phase of your service. However, you can
882 leave this argument out entirely, and the AJSC will default to using an Ephemeral
885 <argument>context=/</argument>
886 <argument>port=${serverPort}</argument>
887 <argument>sslport=${sslport}</argument>
893 <executable>java</executable>
897 <groupId>com.att.ajsc</groupId>
898 <artifactId>ajsc-runner</artifactId>
899 <version>${ajscRuntimeVersion}</version>
908 <id>standardbuild</id>
917 <directory>src/main/resources</directory>
919 <exclude>extApps/*.*</exclude>
920 <exclude>${module.ajsc.namespace.name}/**</exclude>
924 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
926 <exclude>**/*.route</exclude>
927 <exclude>**/*.props</exclude>
928 <exclude>**/*.xslt</exclude>
929 <exclude>**/*.vm</exclude>
930 <exclude>**/*.jar</exclude>
931 <exclude>**/*.xml</exclude>
937 <groupId>org.apache.maven.plugins</groupId>
938 <artifactId>maven-compiler-plugin</artifactId>
939 <version>3.1</version>
942 <groupId>org.codehaus.groovy</groupId>
943 <artifactId>groovy-eclipse-compiler</artifactId>
944 <version>2.8.0-01</version>
945 <extensions>true</extensions>
949 <groupId>org.codehaus.mojo</groupId>
950 <artifactId>exec-maven-plugin</artifactId>
951 <version>1.2.1</version>
960 <executable>bash</executable>
962 <argument>runServer.sh</argument>
967 <groupId>org.codehaus.mojo</groupId>
968 <artifactId>build-helper-maven-plugin</artifactId>
969 <version>1.9</version>
972 <id>add-source-groovy-ajsc-arch-parent</id>
973 <phase>generate-sources</phase>
975 <goal>add-source</goal>
979 <source>src/main/groovy</source>
984 <id>add-test-source-groovy-ajsc-arch-parent</id>
985 <phase>generate-test-sources</phase>
987 <goal>add-test-source</goal>
991 <source>src/test/groovy</source>
996 <id>regex-properties-ajsc-arch-parent</id>
997 <phase>initialize</phase>
999 <goal>regex-properties</goal>
1002 <regexPropertySettings>
1003 <regexPropertySetting>
1004 <name>replaceWinFilePath</name>
1005 <value>${runAjscHome}</value>
1007 <replacement>/</replacement>
1008 <failIfNoMatch>false</failIfNoMatch>
1009 </regexPropertySetting>
1010 <regexPropertySetting>
1011 <name>replaceWinBasedirPath</name>
1012 <value>${basedir}</value>
1014 <replacement>/</replacement>
1015 <failIfNoMatch>false</failIfNoMatch>
1016 </regexPropertySetting>
1017 </regexPropertySettings>
1023 <groupId>org.codehaus.mojo</groupId>
1024 <artifactId>properties-maven-plugin</artifactId>
1025 <version>1.0-alpha-2</version>
1028 <id>write-project-properties-ajsc-arch-parent</id>
1029 <phase>generate-resources</phase>
1031 <goal>write-project-properties</goal>
1035 ${project.build.outputDirectory}/build.properties
1042 <groupId>org.apache.maven.plugins</groupId>
1043 <artifactId>maven-assembly-plugin</artifactId>
1044 <version>2.4</version>
1047 <id>make-assembly-ajsc-arch-parent</id>
1048 <phase>package</phase>
1055 <finalName>${project.artifactId}</finalName>
1057 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1062 <groupId>org.codehaus.groovy.maven</groupId>
1063 <artifactId>gmaven-plugin</artifactId>
1064 <version>1.0</version>
1067 <id>gmaven-ajsc-arch-parent</id>
1068 <phase>package</phase>
1070 <goal>execute</goal>
1073 <sourcepath>src/main/groovy</sourcepath>
1075 import ajsc.AssemblyService;
1076 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1083 <groupId>org.apache.maven.plugins</groupId>
1084 <artifactId>maven-antrun-plugin</artifactId>
1085 <version>1.7</version>
1088 <id>prep_service_runtime-ajsc-arch-parent</id>
1089 <phase>generate-resources</phase>
1091 <target name="prep_service_runtime">
1092 <echo message="ENTERING 'copy_services_template' ant tasks" />
1093 <!-- <filter token="basedir" value="${basedir}" /> -->
1094 <!-- delete any prior stating stuff before package phase -->
1095 <delete dir="target/versioned-ajsc" includes="**/*" />
1096 <delete dir="target/versioned-runtime" includes="**/*" />
1097 <delete dir="target/CDP" includes="**/*" />
1099 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1100 is replaced by module.ajsc.namespace.name) -->
1101 <copy todir="target/versioned-ajsc">
1102 <fileset dir="src/main/ajsc" includes="**/*" />
1105 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1106 directory for future use by replacer plugin -->
1107 <copy todir="target/CDP" failonerror="false">
1108 <fileset dir="CDP" includes="**/*.sh" />
1110 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1112 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1113 <copy todir="target/staticContent" failonerror="false">
1114 <fileset dir="staticContent" includes="**/*" />
1116 <copy todir="target/bundleconfig" failonerror="false">
1117 <!-- filtering="true"> -->
1118 <fileset dir="bundleconfig" />
1121 <echo message="EXITING 'copy_services_template' ant tasks" />
1122 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1123 <copy todir="target/versioned-runtime">
1124 <fileset dir="src/main/runtime" includes="**/*" />
1127 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1128 <copy flatten="true"
1129 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1130 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1132 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1133 <copy flatten="true"
1134 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1135 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1137 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1138 <copy flatten="true"
1139 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1140 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1142 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1143 <copy flatten="true"
1144 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1145 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1146 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1155 <phase>package</phase>
1159 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1160 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1168 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1169 <phase>package</phase>
1171 <target name="prep_home_directory_for_swm_pkgcreate">
1172 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1182 <groupId>org.apache.maven.plugins</groupId>
1183 <artifactId>maven-dependency-plugin</artifactId>
1184 <version>2.8</version>
1187 <id>copy-dependencies-ajsc-arch-parent</id>
1188 <phase>prepare-package</phase>
1190 <goal>copy-dependencies</goal>
1193 <includeScope>runtime</includeScope>
1194 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1195 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1196 <silent>true</silent>
1200 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1201 <phase>prepare-package</phase>
1203 <goal>copy-dependencies</goal>
1206 <includeScope>provided</includeScope>
1207 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1208 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1209 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1210 <silent>true</silent>
1215 <phase>prepare-package</phase>
1217 <goal>copy-dependencies</goal>
1220 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1221 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1227 <artifactId>maven-resources-plugin</artifactId>
1228 <version>2.7</version>
1232 <phase>package</phase>
1234 <goal>copy-resources</goal>
1237 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1240 <directory>src/main/config</directory>
1247 <phase>package</phase>
1249 <goal>copy-resources</goal>
1252 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1255 <directory>src/main/scripts</directory>
1261 <id>copy-docker-file</id>
1262 <phase>prepare-package</phase>
1264 <goal>copy-resources</goal>
1267 <outputDirectory>${dockerLocation}</outputDirectory>
1268 <overwrite>true</overwrite>
1271 <directory>${basedir}/src/main/resources/docker</directory>
1272 <filtering>true</filtering>
1274 <include>**/*</include>
1285 <groupId>com.google.code.maven-replacer-plugin</groupId>
1286 <artifactId>replacer</artifactId>
1287 <version>1.5.2</version>
1290 <id>google-replacer-ajsc-arch-parent</id>
1291 <phase>prepare-package</phase>
1293 <goal>replace</goal>
1296 <basedir>${project.build.directory}</basedir>
1298 <include>staticContent/**/*.html</include>
1299 <include>CDP/**</include>
1300 <include>bundleconfig/**</include>
1301 <include>versioned-runtime/**/*.context</include>
1302 <include>versioned-runtime/**/*.json</include>
1303 <include>versioned-ajsc/**/*.route</include>
1304 <include>versioned-ajsc/**/*.groovy</include>
1305 <include>versioned-ajsc/**/*.xml</include>
1306 <include>classes/*.properties</include>
1307 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1309 <escape>true</escape>
1312 <token>__module_ajsc_namespace_name__</token>
1313 <value>${module.ajsc.namespace.name}</value>
1316 <token>__module_ajsc_namespace_version__</token>
1317 <value>${module.ajsc.namespace.version}</value>
1320 <token>__ajscHome__</token>
1321 <value>${replaceWinFilePath}</value>
1324 <token>__projectGroupId__</token>
1325 <value>${project.groupId}</value>
1328 <token>__projectArtifactId__</token>
1329 <value>${project.artifactId}</value>
1332 <token>__projectVersion__</token>
1333 <value>${project.version}</value>
1336 <token>__basedir__</token>
1337 <value>${replaceWinBasedirPath}</value>
1348 <groupId>org.apache.maven.plugins</groupId>
1349 <artifactId>maven-surefire-plugin</artifactId>
1350 <version>2.14.1</version>
1353 <exclude>**/AbstractTest.java</exclude>