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.6-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>latest</imageTag>
116 <forceTags>true</forceTags>
119 <targetPath>/</targetPath>
120 <directory>${dockerLocation}</directory>
121 <include>${project.build.finalName}.jar</include>
124 <targetPath>/</targetPath>
125 <directory>${project.build.directory}</directory>
126 <include>**/**</include>
133 <phase>install</phase>
138 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
143 <id>tag-image-project-version</id>
144 <phase>install</phase>
149 <image>onap/dmaap/dmaap-mr</image>
150 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</newName>
151 <skipDockerTag>${skip.docker.push}</skipDockerTag>
156 <id>tag-image-latest</id>
157 <phase>install</phase>
162 <image>onap/dmaap/dmaap-mr</image>
163 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</newName>
164 <skipDockerTag>${skip.docker.push}</skipDockerTag>
169 <id>push-image-latest</id>
170 <phase>deploy</phase>
175 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</imageName>
176 <skipDockerPush>${skip.docker.push}</skipDockerPush>
182 <phase>deploy</phase>
187 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</imageName>
188 <skipDockerPush>${skip.docker.push}</skipDockerPush>
194 <groupId>com.blackducksoftware.integration</groupId>
195 <artifactId>hub-maven-plugin</artifactId>
196 <version>1.0.4</version>
197 <inherited>false</inherited>
199 <target>${project.basedir}</target>
203 <id>create-bdio-file</id>
204 <phase>package</phase>
206 <goal>createHubOutput</goal>
213 <groupId>org.apache.maven.plugins</groupId>
214 <artifactId>maven-compiler-plugin</artifactId>
215 <version>3.1</version>
217 <compilerId>groovy-eclipse-compiler</compilerId>
218 <verbose>true</verbose>
224 <groupId>org.codehaus.groovy</groupId>
225 <artifactId>groovy-eclipse-compiler</artifactId>
226 <version>2.8.0-01</version>
229 <groupId>org.codehaus.groovy</groupId>
230 <artifactId>groovy-eclipse-batch</artifactId>
231 <version>2.1.5-03</version>
236 <groupId>org.codehaus.groovy</groupId>
237 <artifactId>groovy-eclipse-compiler</artifactId>
238 <version>2.8.0-01</version>
239 <extensions>true</extensions>
246 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
247 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
248 <docker.image.prefix>simpledemo</docker.image.prefix>
249 <javax-mail-version>1.5.0</javax-mail-version>
250 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
251 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
252 <ajscRuntimeVersion>3.0.7-oss</ajscRuntimeVersion>
254 <!-- This will be the Absolute Root of the Project and should contain NO
256 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
257 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
258 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
259 For NO Versioning, leave as is -->
260 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
261 ${project.version} to ${runAjscHome} for running locally. -->
262 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
263 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
264 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
266 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
267 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
268 <!-- For SOA Cloud Installation -->
269 <installOwnerUser>msgrtr</installOwnerUser>
270 <installOwnerGroup>dmaap</installOwnerGroup>
271 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
272 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
273 For local testing, you may choose to hardcode this value to something like
275 <serverPort>3904</serverPort>
276 <sslport>3905</sslport>
278 <testRouteOffer>workstation</testRouteOffer>
279 <testEnv>DEV</testEnv>
280 <!-- <dmaapImg>${project.version}</dmaapImg> -->
281 <dmaapImg>1.1.6</dmaapImg>
282 <camel.version>2.17.6</camel.version>
283 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
284 <skip.docker.build>true</skip.docker.build>
285 <skip.docker.push>true</skip.docker.push>
286 <nexusproxy>https://nexus.onap.org</nexusproxy>
287 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
288 <spring.version>3.2.18.RELEASE</spring.version>
291 <!-- Distribution management -->
292 <distributionManagement>
295 <url>dav:${nexusproxy}${sitePath}</url>
297 </distributionManagement>
299 <!-- End Distribution management -->
301 <!-- The standard build tasks for this project are inherited from the parent.
302 Please do not override the build tasks. However tasks and/or profiles can
303 be included here as well as additional dependencies for your service. Any
304 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
305 folder and will be made available on the AJSC classpath for your service.
306 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
307 CSI environment. Therefore, they are provided within this project as "provided"
308 dependencies. In order for the AJSC to run properly, locally, the CSM and
309 DME2 dependencies will be copied into the target/commonLibs folder and will
310 be made available to the classpath of the AJSC through the use of the system
311 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
312 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
313 so). If you have a startup failure related to a missing dme2 class not found
314 exception, please contact the AJSC team for assistance. You can email support
315 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
316 the usage of the AJSC service pom.xml and management of dependencies, -->
319 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
322 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
323 <version>112.0.50</version> </dependency> -->
324 <!-- TODO: add open source version here -->
327 <groupId>com.att.cadi</groupId>
328 <artifactId>cadi-core</artifactId>
329 <version>1.3.0</version>
332 <groupId>com.att.aft</groupId>
333 <artifactId>dme2</artifactId>
334 <version>3.1.200-oss</version>
337 <groupId>org.springframework</groupId>
338 <artifactId>spring-expression</artifactId>
339 <version>4.3.16.RELEASE</version>
342 <groupId>org.springframework</groupId>
343 <artifactId>spring-messaging</artifactId>
344 <version>4.1.9.RELEASE</version>
347 <groupId>com.sun.mail</groupId>
348 <artifactId>javax.mail</artifactId>
349 <version>${javax-mail-version}</version>
351 <!-- javax activation is part of the JDK now -->
353 <groupId>javax.activation</groupId>
354 <artifactId>activation</artifactId>
360 <groupId>org.apache.zookeeper</groupId>
361 <artifactId>zookeeper</artifactId>
362 <version>3.4.10</version>
365 <groupId>org.grails</groupId>
366 <artifactId>grails-bootstrap</artifactId>
367 <version>2.5.4</version>
368 <scope>compile</scope>
371 <artifactId>ant</artifactId>
372 <groupId>org.apache.ant</groupId>
375 <artifactId>jna</artifactId>
376 <groupId>net.java.dev.jna</groupId>
379 <artifactId>ant-trax</artifactId>
380 <groupId>org.apache.ant</groupId>
383 <artifactId>gant_groovy1.8</artifactId>
384 <groupId>org.codehaus.gant</groupId>
387 <artifactId>ant-launcher</artifactId>
388 <groupId>org.apache.ant</groupId>
391 <artifactId>jline</artifactId>
392 <groupId>jline</groupId>
395 <artifactId>ivy</artifactId>
396 <groupId>org.apache.ivy</groupId>
399 <artifactId>jansi</artifactId>
400 <groupId>org.fusesource.jansi</groupId>
403 <artifactId>commons-logging</artifactId>
404 <groupId>commons-logging</groupId>
407 <artifactId>ant-junit</artifactId>
408 <groupId>org.apache.ant</groupId>
413 <groupId>org.springframework</groupId>
414 <artifactId>spring-webmvc</artifactId>
415 <version>4.3.15.RELEASE</version>
418 <groupId>org.springframework</groupId>
419 <artifactId>spring-core</artifactId>
420 <version>4.3.15.RELEASE</version>
423 <groupId>org.springframework</groupId>
424 <artifactId>spring-beans</artifactId>
425 <version>4.3.15.RELEASE</version>
429 <groupId>org.springframework</groupId>
430 <artifactId>spring-context</artifactId>
431 <version>4.3.15.RELEASE</version>
434 <groupId>commons-io</groupId>
435 <artifactId>commons-io</artifactId>
436 <version>2.4</version>
439 <groupId>org.apache.commons</groupId>
440 <artifactId>commons-io</artifactId>
441 <version>1.3.2</version>
444 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
445 <artifactId>msgrtr</artifactId>
446 <version>1.1.5</version>
449 <groupId>org.slf4j</groupId>
450 <artifactId>slf4j-log4j12</artifactId>
453 <groupId>com.att.ajsc</groupId>
454 <artifactId>ajsc-core</artifactId>
457 <groupId>org.apache.tomcat</groupId>
458 <artifactId>tomcat-catalina</artifactId>
462 <groupId>org.apache.tomcat.embed</groupId>
463 <artifactId>tomcat-embed-core</artifactId>
466 <groupId>org.apache.tomcat</groupId>
467 <artifactId>tomcat-util</artifactId>
469 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
472 <groupId>com.att.nsa</groupId>
473 <artifactId>tomcat-util</artifactId>
477 <groupId>commons-beanutils</groupId>
478 <artifactId>commons-beanutils</artifactId>
483 <groupId>org.mockito</groupId>
484 <artifactId>mockito-core</artifactId>
485 <version>1.10.19</version>
489 <groupId>org.powermock</groupId>
490 <artifactId>powermock-module-junit4</artifactId>
491 <version>1.6.4</version>
495 <groupId>org.powermock</groupId>
496 <artifactId>powermock-api-mockito</artifactId>
497 <version>1.6.4</version>
500 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
501 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
502 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
503 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
504 <version>1.9.13</version> </dependency> -->
507 <groupId>com.fasterxml.jackson.jaxrs</groupId>
508 <artifactId>jackson-jaxrs-json-provider</artifactId>
509 <version>2.2.3</version>
513 <groupId>com.fasterxml.jackson.core</groupId>
514 <artifactId>jackson-core</artifactId>
515 <version>2.8.11</version>
519 <groupId>com.fasterxml.jackson.core</groupId>
520 <artifactId>jackson-databind</artifactId>
521 <version>2.8.11.1</version>
524 <groupId>org.grails</groupId>
525 <artifactId>grails-web</artifactId>
526 <version>2.5.4</version>
529 <groupId>org.grails</groupId>
530 <artifactId>grails-web-jsp</artifactId>
535 <groupId>org.codehaus.groovy</groupId>
536 <artifactId>groovy-all</artifactId>
537 <version>2.4.4</version>
538 <scope>compile</scope>
541 <artifactId>jline</artifactId>
542 <groupId>jline</groupId>
548 <groupId>junit</groupId>
549 <artifactId>junit</artifactId>
550 <version>4.11</version>
555 <groupId>org.json</groupId>
556 <artifactId>json</artifactId>
557 <version>20131018</version>
560 <!-- CXF JAX-RS extension -->
562 <groupId>org.apache.cxf</groupId>
563 <artifactId>cxf-rt-rs-extension-providers</artifactId>
564 <version>3.0.12</version>
567 <groupId>org.apache.cxf</groupId>
568 <artifactId>cxf-rt-transports-http</artifactId>
573 <groupId>org.apache.cxf</groupId>
574 <artifactId>cxf-rt-transports-http</artifactId>
575 <version>3.1.16</version>
578 <groupId>org.codehaus.jettison</groupId>
579 <artifactId>jettison</artifactId>
580 <version>1.3.7</version>
584 <groupId>dom4j</groupId>
585 <artifactId>dom4j</artifactId>
586 <version>1.6.1</version>
587 <scope>provided</scope>
590 <groupId>com.att.ajsc</groupId>
591 <artifactId>ajsc-archetype-parent</artifactId>
592 <version>3.0.6-oss</version>
597 <groupId>com.att.cadi</groupId>
598 <artifactId>cadi-aaf</artifactId>
599 <version>1.3.0</version>
603 <groupId>com.att.inno</groupId>
604 <artifactId>rosetta</artifactId>
605 <version>1.2.11</version>
608 <groupId>com.att.inno</groupId>
609 <artifactId>env</artifactId>
610 <version>1.2.11</version>
613 <groupId>com.att.inno</groupId>
614 <artifactId>xgen</artifactId>
615 <version>1.2.11</version>
618 <groupId>com.att.inno</groupId>
619 <artifactId>rosetta</artifactId>
620 <version>1.2.11</version>
623 <groupId>backport-util-concurrent</groupId>
624 <artifactId>backport-util-concurrent</artifactId>
625 <version>3.1</version>
628 <groupId>org.apache.camel</groupId>
629 <artifactId>camel-core</artifactId>
630 <version>${camel.version}</version>
633 <groupId>org.apache.camel</groupId>
634 <artifactId>camel-quartz</artifactId>
635 <version>${camel.version}</version>
638 <groupId>org.apache.camel</groupId>
639 <artifactId>camel-spring</artifactId>
640 <version>${camel.version}</version>
643 <groupId>org.apache.camel</groupId>
644 <artifactId>camel-restlet</artifactId>
645 <version>${camel.version}</version>
648 <artifactId>org.restlet</artifactId>
649 <groupId>org.restlet.jse</groupId>
654 <groupId>org.apache.camel</groupId>
655 <artifactId>camel-servlet</artifactId>
656 <version>${camel.version}</version>
659 <groupId>commons-httpclient</groupId>
660 <artifactId>commons-httpclient</artifactId>
665 <groupId>org.apache.httpcomponents</groupId>
666 <artifactId>httpclient</artifactId>
667 <version>4.0</version>
671 <groupId>org.apache.camel</groupId>
672 <artifactId>camel-http4</artifactId>
673 <version>${camel.version}</version>
676 <groupId>org.apache.geronimo.specs</groupId>
677 <artifactId>geronimo-servlet_2.5_spec</artifactId>
682 <groupId>org.apache.camel</groupId>
683 <artifactId>camel-groovy</artifactId>
684 <version>${camel.version}</version>
687 <groupId>org.apache.camel</groupId>
688 <artifactId>camel-twitter</artifactId>
689 <version>${camel.version}</version>
692 <groupId>org.apache.camel</groupId>
693 <artifactId>camel-mail</artifactId>
694 <version>${camel.version}</version>
697 <groupId>org.apache.camel</groupId>
698 <artifactId>camel-smpp</artifactId>
699 <version>${camel.version}</version>
702 <groupId>org.apache.camel</groupId>
703 <artifactId>camel-jms</artifactId>
704 <version>${camel.version}</version>
707 <groupId>org.apache.camel</groupId>
708 <artifactId>camel-script</artifactId>
709 <version>${camel.version}</version>
712 <groupId>org.apache.camel</groupId>
713 <artifactId>camel-xmpp</artifactId>
714 <version>${camel.version}</version>
717 <groupId>org.apache.camel</groupId>
718 <artifactId>camel-velocity</artifactId>
719 <version>${camel.version}</version>
722 <groupId>com.att.ajsc</groupId>
723 <artifactId>ajsc-runner</artifactId>
724 <version>3.0.7-oss</version>
725 <scope>runtime</scope>
728 <groupId>com.att.ajsc</groupId>
729 <artifactId>ajsc-core</artifactId>
730 <version>3.0.7-oss</version>
731 <scope>provided</scope>
734 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
735 </resource> </resources> </build> -->
737 <!-- Use this profile to run the AJSC locally. This profile can be successfully
738 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
739 available with this profile. -->
744 <skip.docker.build>false</skip.docker.build>
745 <skip.docker.tag>false</skip.docker.tag>
746 <skip.docker.push>false</skip.docker.push>
753 <defaultGoal>initialize</defaultGoal>
756 <groupId>org.apache.maven.plugins</groupId>
757 <artifactId>maven-antrun-plugin</artifactId>
760 <phase>initialize</phase>
762 <target name="runLocal">
763 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
779 <defaultGoal>initialize</defaultGoal>
782 <groupId>org.codehaus.mojo</groupId>
783 <artifactId>exec-maven-plugin</artifactId>
784 <version>1.3.2</version>
787 <phase>initialize</phase>
792 <!-- In order to better mimic a SOA cloud installation of AJSC (and
793 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
794 to diagnose), within this profile used to run locally, we are NOT including
795 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
796 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
797 the only dependency required by this profile to run locally. -->
798 <includeProjectDependencies>false</includeProjectDependencies>
799 <includePluginDependencies>true</includePluginDependencies>
800 <executable>java</executable>
801 <mainClass>com.att.ajsc.runner.Runner</mainClass>
802 <executableDependency>
803 <groupId>com.att.ajsc</groupId>
804 <artifactId>ajsc-runner</artifactId>
805 </executableDependency>
806 <additionalClasspathElements>
807 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
808 </additionalClasspathElements>
810 <environmentVariables>
811 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
812 </environmentVariables>
814 <!-- Main AJSC System Properties below (necessary for proper startup) -->
818 <value>${runAjscHome}</value>
822 <value>${runAjscHome}</value>
825 <key>AJSC_CONF_HOME</key>
826 <value>${basedir}/bundleconfig-local</value>
829 <key>logback.configurationFile</key>
830 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
833 <key>com.att.eelf.logging.file</key>
834 <value>logback.xml</value>
837 <key>com.att.eelf.logging.path</key>
838 <value>${basedir}/ajsc-shared-config/etc</value>
841 <key>logging.config</key>
842 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
845 <key>AJSC_SHARED_CONFIG</key>
846 <value>${basedir}/ajsc-shared-config</value>
849 <!-- Please, NOTE: The following 2 system properties will normally
850 be set within the sys-props.properties file once deployed to a node. We are
851 setting them HERE to run locally to make more efficient use of maven variable
852 replacement for ${basedir} -->
853 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
854 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
856 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
857 <value>${basedir}/target/commonLibs</value>
859 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
860 files that may need to be added to the classpath. These files will be externalized
861 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
862 Failure to have these files on the classpath may result in errors thrown
863 by csm framework. -->
865 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
866 <value>${basedir}/ajsc-shared-config/etc</value>
870 <key>AJSC_SERVICE_NAMESPACE</key>
871 <value>${module.ajsc.namespace.name}</value>
874 <key>AJSC_SERVICE_VERSION</key>
875 <value>${module.ajsc.namespace.version}</value>
878 <key>SOACLOUD_SERVICE_VERSION</key>
879 <value>${project.version}</value>
882 <key>server.port</key>
883 <value>${serverPort}</value>
887 <!-- Command Line Arguments to add to the java command. Here, you
888 can specify the port as well as the Context you want your service to run
889 in. Use context=/ to run in an unnamed Context (Root Context). The default
890 configuration of the AJSC is to run under the / Context. Setting the port
891 here can aid during the development phase of your service. However, you can
892 leave this argument out entirely, and the AJSC will default to using an Ephemeral
895 <argument>context=/</argument>
896 <argument>port=${serverPort}</argument>
897 <argument>sslport=${sslport}</argument>
903 <executable>java</executable>
907 <groupId>com.att.ajsc</groupId>
908 <artifactId>ajsc-runner</artifactId>
909 <version>${ajscRuntimeVersion}</version>
918 <id>standardbuild</id>
927 <directory>src/main/resources</directory>
929 <exclude>extApps/*.*</exclude>
930 <exclude>${module.ajsc.namespace.name}/**</exclude>
934 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
936 <exclude>**/*.route</exclude>
937 <exclude>**/*.props</exclude>
938 <exclude>**/*.xslt</exclude>
939 <exclude>**/*.vm</exclude>
940 <exclude>**/*.jar</exclude>
941 <exclude>**/*.xml</exclude>
947 <groupId>org.apache.maven.plugins</groupId>
948 <artifactId>maven-compiler-plugin</artifactId>
949 <version>3.1</version>
952 <groupId>org.codehaus.groovy</groupId>
953 <artifactId>groovy-eclipse-compiler</artifactId>
954 <version>2.8.0-01</version>
955 <extensions>true</extensions>
959 <groupId>org.codehaus.mojo</groupId>
960 <artifactId>exec-maven-plugin</artifactId>
961 <version>1.2.1</version>
970 <executable>bash</executable>
972 <argument>runServer.sh</argument>
977 <groupId>org.codehaus.mojo</groupId>
978 <artifactId>build-helper-maven-plugin</artifactId>
979 <version>1.9</version>
982 <id>add-source-groovy-ajsc-arch-parent</id>
983 <phase>generate-sources</phase>
985 <goal>add-source</goal>
989 <source>src/main/groovy</source>
994 <id>add-test-source-groovy-ajsc-arch-parent</id>
995 <phase>generate-test-sources</phase>
997 <goal>add-test-source</goal>
1001 <source>src/test/groovy</source>
1006 <id>regex-properties-ajsc-arch-parent</id>
1007 <phase>initialize</phase>
1009 <goal>regex-properties</goal>
1012 <regexPropertySettings>
1013 <regexPropertySetting>
1014 <name>replaceWinFilePath</name>
1015 <value>${runAjscHome}</value>
1017 <replacement>/</replacement>
1018 <failIfNoMatch>false</failIfNoMatch>
1019 </regexPropertySetting>
1020 <regexPropertySetting>
1021 <name>replaceWinBasedirPath</name>
1022 <value>${basedir}</value>
1024 <replacement>/</replacement>
1025 <failIfNoMatch>false</failIfNoMatch>
1026 </regexPropertySetting>
1027 </regexPropertySettings>
1033 <groupId>org.codehaus.mojo</groupId>
1034 <artifactId>properties-maven-plugin</artifactId>
1035 <version>1.0-alpha-2</version>
1038 <id>write-project-properties-ajsc-arch-parent</id>
1039 <phase>generate-resources</phase>
1041 <goal>write-project-properties</goal>
1045 ${project.build.outputDirectory}/build.properties
1052 <groupId>org.apache.maven.plugins</groupId>
1053 <artifactId>maven-assembly-plugin</artifactId>
1054 <version>2.4</version>
1057 <id>make-assembly-ajsc-arch-parent</id>
1058 <phase>package</phase>
1065 <finalName>${project.artifactId}</finalName>
1067 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1072 <groupId>org.codehaus.groovy.maven</groupId>
1073 <artifactId>gmaven-plugin</artifactId>
1074 <version>1.0</version>
1077 <id>gmaven-ajsc-arch-parent</id>
1078 <phase>package</phase>
1080 <goal>execute</goal>
1083 <sourcepath>src/main/groovy</sourcepath>
1085 import ajsc.AssemblyService;
1086 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1093 <groupId>org.apache.maven.plugins</groupId>
1094 <artifactId>maven-antrun-plugin</artifactId>
1095 <version>1.7</version>
1098 <id>prep_service_runtime-ajsc-arch-parent</id>
1099 <phase>generate-resources</phase>
1101 <target name="prep_service_runtime">
1102 <echo message="ENTERING 'copy_services_template' ant tasks" />
1103 <!-- <filter token="basedir" value="${basedir}" /> -->
1104 <!-- delete any prior stating stuff before package phase -->
1105 <delete dir="target/versioned-ajsc" includes="**/*" />
1106 <delete dir="target/versioned-runtime" includes="**/*" />
1107 <delete dir="target/CDP" includes="**/*" />
1109 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1110 is replaced by module.ajsc.namespace.name) -->
1111 <copy todir="target/versioned-ajsc">
1112 <fileset dir="src/main/ajsc" includes="**/*" />
1115 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1116 directory for future use by replacer plugin -->
1117 <copy todir="target/CDP" failonerror="false">
1118 <fileset dir="CDP" includes="**/*.sh" />
1120 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1122 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1123 <copy todir="target/staticContent" failonerror="false">
1124 <fileset dir="staticContent" includes="**/*" />
1126 <copy todir="target/bundleconfig" failonerror="false">
1127 <!-- filtering="true"> -->
1128 <fileset dir="bundleconfig" />
1131 <echo message="EXITING 'copy_services_template' ant tasks" />
1132 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1133 <copy todir="target/versioned-runtime">
1134 <fileset dir="src/main/runtime" includes="**/*" />
1137 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1138 <copy flatten="true"
1139 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1140 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1142 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1143 <copy flatten="true"
1144 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1145 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1147 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1148 <copy flatten="true"
1149 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1150 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1152 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1153 <copy flatten="true"
1154 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1155 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1156 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1165 <phase>package</phase>
1169 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1170 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1178 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1179 <phase>package</phase>
1181 <target name="prep_home_directory_for_swm_pkgcreate">
1182 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1192 <groupId>org.apache.maven.plugins</groupId>
1193 <artifactId>maven-dependency-plugin</artifactId>
1194 <version>2.8</version>
1197 <id>copy-dependencies-ajsc-arch-parent</id>
1198 <phase>prepare-package</phase>
1200 <goal>copy-dependencies</goal>
1203 <includeScope>runtime</includeScope>
1204 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1205 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1206 <silent>true</silent>
1210 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1211 <phase>prepare-package</phase>
1213 <goal>copy-dependencies</goal>
1216 <includeScope>provided</includeScope>
1217 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1218 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1219 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1220 <silent>true</silent>
1225 <phase>prepare-package</phase>
1227 <goal>copy-dependencies</goal>
1230 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1231 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1237 <artifactId>maven-resources-plugin</artifactId>
1238 <version>2.7</version>
1242 <phase>package</phase>
1244 <goal>copy-resources</goal>
1247 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1250 <directory>src/main/config</directory>
1257 <phase>package</phase>
1259 <goal>copy-resources</goal>
1262 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1265 <directory>src/main/scripts</directory>
1271 <id>copy-docker-file</id>
1272 <phase>prepare-package</phase>
1274 <goal>copy-resources</goal>
1277 <outputDirectory>${dockerLocation}</outputDirectory>
1278 <overwrite>true</overwrite>
1281 <directory>${basedir}/src/main/resources/docker</directory>
1282 <filtering>true</filtering>
1284 <include>**/*</include>
1295 <groupId>com.google.code.maven-replacer-plugin</groupId>
1296 <artifactId>replacer</artifactId>
1297 <version>1.5.2</version>
1300 <id>google-replacer-ajsc-arch-parent</id>
1301 <phase>prepare-package</phase>
1303 <goal>replace</goal>
1306 <basedir>${project.build.directory}</basedir>
1308 <include>staticContent/**/*.html</include>
1309 <include>CDP/**</include>
1310 <include>bundleconfig/**</include>
1311 <include>versioned-runtime/**/*.context</include>
1312 <include>versioned-runtime/**/*.json</include>
1313 <include>versioned-ajsc/**/*.route</include>
1314 <include>versioned-ajsc/**/*.groovy</include>
1315 <include>versioned-ajsc/**/*.xml</include>
1316 <include>classes/*.properties</include>
1317 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1319 <escape>true</escape>
1322 <token>__module_ajsc_namespace_name__</token>
1323 <value>${module.ajsc.namespace.name}</value>
1326 <token>__module_ajsc_namespace_version__</token>
1327 <value>${module.ajsc.namespace.version}</value>
1330 <token>__ajscHome__</token>
1331 <value>${replaceWinFilePath}</value>
1334 <token>__projectGroupId__</token>
1335 <value>${project.groupId}</value>
1338 <token>__projectArtifactId__</token>
1339 <value>${project.artifactId}</value>
1342 <token>__projectVersion__</token>
1343 <value>${project.version}</value>
1346 <token>__basedir__</token>
1347 <value>${replaceWinBasedirPath}</value>
1358 <groupId>org.apache.maven.plugins</groupId>
1359 <artifactId>maven-surefire-plugin</artifactId>
1360 <version>2.14.1</version>
1363 <exclude>**/AbstractTest.java</exclude>