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>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.6-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 <camel.version>2.17.6</camel.version>
282 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
283 <skip.docker.build>true</skip.docker.build>
284 <skip.docker.push>true</skip.docker.push>
285 <nexusproxy>https://nexus.onap.org</nexusproxy>
286 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
287 <spring.version>3.2.18.RELEASE</spring.version>
290 <!-- Distribution management -->
291 <distributionManagement>
294 <url>dav:${nexusproxy}${sitePath}</url>
296 </distributionManagement>
298 <!-- End Distribution management -->
300 <!-- The standard build tasks for this project are inherited from the parent.
301 Please do not override the build tasks. However tasks and/or profiles can
302 be included here as well as additional dependencies for your service. Any
303 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
304 folder and will be made available on the AJSC classpath for your service.
305 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
306 CSI environment. Therefore, they are provided within this project as "provided"
307 dependencies. In order for the AJSC to run properly, locally, the CSM and
308 DME2 dependencies will be copied into the target/commonLibs folder and will
309 be made available to the classpath of the AJSC through the use of the system
310 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
311 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
312 so). If you have a startup failure related to a missing dme2 class not found
313 exception, please contact the AJSC team for assistance. You can email support
314 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
315 the usage of the AJSC service pom.xml and management of dependencies, -->
318 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
321 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
322 <version>112.0.50</version> </dependency> -->
323 <!-- TODO: add open source version here -->
326 <groupId>com.att.cadi</groupId>
327 <artifactId>cadi-core</artifactId>
328 <version>1.3.0</version>
331 <groupId>com.att.aft</groupId>
332 <artifactId>dme2</artifactId>
333 <version>3.1.200-oss</version>
336 <groupId>org.springframework</groupId>
337 <artifactId>spring-expression</artifactId>
338 <version>4.3.16.RELEASE</version>
341 <groupId>org.springframework</groupId>
342 <artifactId>spring-messaging</artifactId>
343 <version>4.1.9.RELEASE</version>
346 <groupId>com.sun.mail</groupId>
347 <artifactId>javax.mail</artifactId>
348 <version>${javax-mail-version}</version>
350 <!-- javax activation is part of the JDK now -->
352 <groupId>javax.activation</groupId>
353 <artifactId>activation</artifactId>
359 <groupId>org.apache.zookeeper</groupId>
360 <artifactId>zookeeper</artifactId>
361 <version>3.4.10</version>
364 <groupId>org.grails</groupId>
365 <artifactId>grails-bootstrap</artifactId>
366 <version>2.5.4</version>
367 <scope>compile</scope>
370 <artifactId>ant</artifactId>
371 <groupId>org.apache.ant</groupId>
374 <artifactId>jna</artifactId>
375 <groupId>net.java.dev.jna</groupId>
378 <artifactId>ant-trax</artifactId>
379 <groupId>org.apache.ant</groupId>
382 <artifactId>gant_groovy1.8</artifactId>
383 <groupId>org.codehaus.gant</groupId>
386 <artifactId>ant-launcher</artifactId>
387 <groupId>org.apache.ant</groupId>
390 <artifactId>jline</artifactId>
391 <groupId>jline</groupId>
394 <artifactId>ivy</artifactId>
395 <groupId>org.apache.ivy</groupId>
398 <artifactId>jansi</artifactId>
399 <groupId>org.fusesource.jansi</groupId>
402 <artifactId>commons-logging</artifactId>
403 <groupId>commons-logging</groupId>
406 <artifactId>ant-junit</artifactId>
407 <groupId>org.apache.ant</groupId>
412 <groupId>org.springframework</groupId>
413 <artifactId>spring-webmvc</artifactId>
414 <version>4.3.15.RELEASE</version>
417 <groupId>org.springframework</groupId>
418 <artifactId>spring-core</artifactId>
419 <version>4.3.15.RELEASE</version>
422 <groupId>org.springframework</groupId>
423 <artifactId>spring-beans</artifactId>
424 <version>4.3.15.RELEASE</version>
428 <groupId>org.springframework</groupId>
429 <artifactId>spring-context</artifactId>
430 <version>4.3.15.RELEASE</version>
433 <groupId>commons-io</groupId>
434 <artifactId>commons-io</artifactId>
435 <version>2.4</version>
438 <groupId>org.apache.commons</groupId>
439 <artifactId>commons-io</artifactId>
440 <version>1.3.2</version>
443 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
444 <artifactId>msgrtr</artifactId>
445 <version>1.1.3</version>
448 <groupId>org.slf4j</groupId>
449 <artifactId>slf4j-log4j12</artifactId>
452 <groupId>com.att.ajsc</groupId>
453 <artifactId>ajsc-core</artifactId>
456 <groupId>org.apache.tomcat</groupId>
457 <artifactId>tomcat-catalina</artifactId>
461 <groupId>org.apache.tomcat.embed</groupId>
462 <artifactId>tomcat-embed-core</artifactId>
465 <groupId>org.apache.tomcat</groupId>
466 <artifactId>tomcat-util</artifactId>
468 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
471 <groupId>com.att.nsa</groupId>
472 <artifactId>tomcat-util</artifactId>
476 <groupId>commons-beanutils</groupId>
477 <artifactId>commons-beanutils</artifactId>
482 <groupId>org.mockito</groupId>
483 <artifactId>mockito-core</artifactId>
484 <version>1.10.19</version>
488 <groupId>org.powermock</groupId>
489 <artifactId>powermock-module-junit4</artifactId>
490 <version>1.6.4</version>
494 <groupId>org.powermock</groupId>
495 <artifactId>powermock-api-mockito</artifactId>
496 <version>1.6.4</version>
499 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
500 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
501 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
502 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
503 <version>1.9.13</version> </dependency> -->
506 <groupId>com.fasterxml.jackson.jaxrs</groupId>
507 <artifactId>jackson-jaxrs-json-provider</artifactId>
508 <version>2.2.3</version>
512 <groupId>com.fasterxml.jackson.core</groupId>
513 <artifactId>jackson-core</artifactId>
514 <version>2.8.11</version>
518 <groupId>com.fasterxml.jackson.core</groupId>
519 <artifactId>jackson-databind</artifactId>
520 <version>2.8.11.1</version>
523 <groupId>org.grails</groupId>
524 <artifactId>grails-web</artifactId>
525 <version>2.5.4</version>
528 <groupId>org.grails</groupId>
529 <artifactId>grails-web-jsp</artifactId>
534 <groupId>org.codehaus.groovy</groupId>
535 <artifactId>groovy-all</artifactId>
536 <version>2.4.4</version>
537 <scope>compile</scope>
540 <artifactId>jline</artifactId>
541 <groupId>jline</groupId>
547 <groupId>junit</groupId>
548 <artifactId>junit</artifactId>
549 <version>4.11</version>
554 <groupId>org.json</groupId>
555 <artifactId>json</artifactId>
556 <version>20131018</version>
559 <!-- CXF JAX-RS extension -->
561 <groupId>org.apache.cxf</groupId>
562 <artifactId>cxf-rt-rs-extension-providers</artifactId>
563 <version>3.0.12</version>
566 <groupId>org.codehaus.jettison</groupId>
567 <artifactId>jettison</artifactId>
568 <version>1.3.7</version>
572 <groupId>dom4j</groupId>
573 <artifactId>dom4j</artifactId>
574 <version>1.6.1</version>
575 <scope>provided</scope>
578 <groupId>com.att.ajsc</groupId>
579 <artifactId>ajsc-archetype-parent</artifactId>
580 <version>3.0.6-oss</version>
585 <groupId>com.att.cadi</groupId>
586 <artifactId>cadi-aaf</artifactId>
587 <version>1.3.0</version>
591 <groupId>com.att.inno</groupId>
592 <artifactId>rosetta</artifactId>
593 <version>1.2.11</version>
596 <groupId>com.att.inno</groupId>
597 <artifactId>env</artifactId>
598 <version>1.2.11</version>
601 <groupId>com.att.inno</groupId>
602 <artifactId>xgen</artifactId>
603 <version>1.2.11</version>
606 <groupId>com.att.inno</groupId>
607 <artifactId>rosetta</artifactId>
608 <version>1.2.11</version>
611 <groupId>backport-util-concurrent</groupId>
612 <artifactId>backport-util-concurrent</artifactId>
613 <version>3.1</version>
616 <groupId>org.apache.camel</groupId>
617 <artifactId>camel-core</artifactId>
618 <version>${camel.version}</version>
621 <groupId>org.apache.camel</groupId>
622 <artifactId>camel-quartz</artifactId>
623 <version>${camel.version}</version>
626 <groupId>org.apache.camel</groupId>
627 <artifactId>camel-spring</artifactId>
628 <version>${camel.version}</version>
631 <groupId>org.apache.camel</groupId>
632 <artifactId>camel-restlet</artifactId>
633 <version>${camel.version}</version>
636 <artifactId>org.restlet</artifactId>
637 <groupId>org.restlet.jse</groupId>
642 <groupId>org.apache.camel</groupId>
643 <artifactId>camel-servlet</artifactId>
644 <version>${camel.version}</version>
647 <groupId>commons-httpclient</groupId>
648 <artifactId>commons-httpclient</artifactId>
653 <groupId>org.apache.httpcomponents</groupId>
654 <artifactId>httpclient</artifactId>
655 <version>4.0</version>
659 <groupId>org.apache.camel</groupId>
660 <artifactId>camel-http4</artifactId>
661 <version>${camel.version}</version>
664 <groupId>org.apache.geronimo.specs</groupId>
665 <artifactId>geronimo-servlet_2.5_spec</artifactId>
670 <groupId>org.apache.camel</groupId>
671 <artifactId>camel-groovy</artifactId>
672 <version>${camel.version}</version>
675 <groupId>org.apache.camel</groupId>
676 <artifactId>camel-twitter</artifactId>
677 <version>${camel.version}</version>
680 <groupId>org.apache.camel</groupId>
681 <artifactId>camel-mail</artifactId>
682 <version>${camel.version}</version>
685 <groupId>org.apache.camel</groupId>
686 <artifactId>camel-smpp</artifactId>
687 <version>${camel.version}</version>
690 <groupId>org.apache.camel</groupId>
691 <artifactId>camel-jms</artifactId>
692 <version>${camel.version}</version>
695 <groupId>org.apache.camel</groupId>
696 <artifactId>camel-script</artifactId>
697 <version>${camel.version}</version>
700 <groupId>org.apache.camel</groupId>
701 <artifactId>camel-xmpp</artifactId>
702 <version>${camel.version}</version>
705 <groupId>org.apache.camel</groupId>
706 <artifactId>camel-velocity</artifactId>
707 <version>${camel.version}</version>
710 <groupId>com.att.ajsc</groupId>
711 <artifactId>ajsc-runner</artifactId>
712 <version>3.0.6-oss</version>
713 <scope>runtime</scope>
716 <groupId>com.att.ajsc</groupId>
717 <artifactId>ajsc-core</artifactId>
718 <version>3.0.6-oss</version>
719 <scope>provided</scope>
722 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
723 </resource> </resources> </build> -->
725 <!-- Use this profile to run the AJSC locally. This profile can be successfully
726 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
727 available with this profile. -->
732 <skip.docker.build>false</skip.docker.build>
733 <skip.docker.tag>false</skip.docker.tag>
734 <skip.docker.push>false</skip.docker.push>
741 <defaultGoal>initialize</defaultGoal>
744 <groupId>org.apache.maven.plugins</groupId>
745 <artifactId>maven-antrun-plugin</artifactId>
748 <phase>initialize</phase>
750 <target name="runLocal">
751 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
767 <defaultGoal>initialize</defaultGoal>
770 <groupId>org.codehaus.mojo</groupId>
771 <artifactId>exec-maven-plugin</artifactId>
772 <version>1.3.2</version>
775 <phase>initialize</phase>
780 <!-- In order to better mimic a SOA cloud installation of AJSC (and
781 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
782 to diagnose), within this profile used to run locally, we are NOT including
783 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
784 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
785 the only dependency required by this profile to run locally. -->
786 <includeProjectDependencies>false</includeProjectDependencies>
787 <includePluginDependencies>true</includePluginDependencies>
788 <executable>java</executable>
789 <mainClass>com.att.ajsc.runner.Runner</mainClass>
790 <executableDependency>
791 <groupId>com.att.ajsc</groupId>
792 <artifactId>ajsc-runner</artifactId>
793 </executableDependency>
794 <additionalClasspathElements>
795 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
796 </additionalClasspathElements>
798 <environmentVariables>
799 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
800 </environmentVariables>
802 <!-- Main AJSC System Properties below (necessary for proper startup) -->
806 <value>${runAjscHome}</value>
810 <value>${runAjscHome}</value>
813 <key>AJSC_CONF_HOME</key>
814 <value>${basedir}/bundleconfig-local</value>
817 <key>logback.configurationFile</key>
818 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
821 <key>com.att.eelf.logging.file</key>
822 <value>logback.xml</value>
825 <key>com.att.eelf.logging.path</key>
826 <value>${basedir}/ajsc-shared-config/etc</value>
829 <key>logging.config</key>
830 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
833 <key>AJSC_SHARED_CONFIG</key>
834 <value>${basedir}/ajsc-shared-config</value>
837 <!-- Please, NOTE: The following 2 system properties will normally
838 be set within the sys-props.properties file once deployed to a node. We are
839 setting them HERE to run locally to make more efficient use of maven variable
840 replacement for ${basedir} -->
841 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
842 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
844 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
845 <value>${basedir}/target/commonLibs</value>
847 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
848 files that may need to be added to the classpath. These files will be externalized
849 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
850 Failure to have these files on the classpath may result in errors thrown
851 by csm framework. -->
853 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
854 <value>${basedir}/ajsc-shared-config/etc</value>
858 <key>AJSC_SERVICE_NAMESPACE</key>
859 <value>${module.ajsc.namespace.name}</value>
862 <key>AJSC_SERVICE_VERSION</key>
863 <value>${module.ajsc.namespace.version}</value>
866 <key>SOACLOUD_SERVICE_VERSION</key>
867 <value>${project.version}</value>
870 <key>server.port</key>
871 <value>${serverPort}</value>
875 <!-- Command Line Arguments to add to the java command. Here, you
876 can specify the port as well as the Context you want your service to run
877 in. Use context=/ to run in an unnamed Context (Root Context). The default
878 configuration of the AJSC is to run under the / Context. Setting the port
879 here can aid during the development phase of your service. However, you can
880 leave this argument out entirely, and the AJSC will default to using an Ephemeral
883 <argument>context=/</argument>
884 <argument>port=${serverPort}</argument>
885 <argument>sslport=${sslport}</argument>
891 <executable>java</executable>
895 <groupId>com.att.ajsc</groupId>
896 <artifactId>ajsc-runner</artifactId>
897 <version>${ajscRuntimeVersion}</version>
906 <id>standardbuild</id>
915 <directory>src/main/resources</directory>
917 <exclude>extApps/*.*</exclude>
918 <exclude>${module.ajsc.namespace.name}/**</exclude>
922 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
924 <exclude>**/*.route</exclude>
925 <exclude>**/*.props</exclude>
926 <exclude>**/*.xslt</exclude>
927 <exclude>**/*.vm</exclude>
928 <exclude>**/*.jar</exclude>
929 <exclude>**/*.xml</exclude>
935 <groupId>org.apache.maven.plugins</groupId>
936 <artifactId>maven-compiler-plugin</artifactId>
937 <version>3.1</version>
940 <groupId>org.codehaus.groovy</groupId>
941 <artifactId>groovy-eclipse-compiler</artifactId>
942 <version>2.8.0-01</version>
943 <extensions>true</extensions>
947 <groupId>org.codehaus.mojo</groupId>
948 <artifactId>exec-maven-plugin</artifactId>
949 <version>1.2.1</version>
958 <executable>bash</executable>
960 <argument>runServer.sh</argument>
965 <groupId>org.codehaus.mojo</groupId>
966 <artifactId>build-helper-maven-plugin</artifactId>
967 <version>1.9</version>
970 <id>add-source-groovy-ajsc-arch-parent</id>
971 <phase>generate-sources</phase>
973 <goal>add-source</goal>
977 <source>src/main/groovy</source>
982 <id>add-test-source-groovy-ajsc-arch-parent</id>
983 <phase>generate-test-sources</phase>
985 <goal>add-test-source</goal>
989 <source>src/test/groovy</source>
994 <id>regex-properties-ajsc-arch-parent</id>
995 <phase>initialize</phase>
997 <goal>regex-properties</goal>
1000 <regexPropertySettings>
1001 <regexPropertySetting>
1002 <name>replaceWinFilePath</name>
1003 <value>${runAjscHome}</value>
1005 <replacement>/</replacement>
1006 <failIfNoMatch>false</failIfNoMatch>
1007 </regexPropertySetting>
1008 <regexPropertySetting>
1009 <name>replaceWinBasedirPath</name>
1010 <value>${basedir}</value>
1012 <replacement>/</replacement>
1013 <failIfNoMatch>false</failIfNoMatch>
1014 </regexPropertySetting>
1015 </regexPropertySettings>
1021 <groupId>org.codehaus.mojo</groupId>
1022 <artifactId>properties-maven-plugin</artifactId>
1023 <version>1.0-alpha-2</version>
1026 <id>write-project-properties-ajsc-arch-parent</id>
1027 <phase>generate-resources</phase>
1029 <goal>write-project-properties</goal>
1033 ${project.build.outputDirectory}/build.properties
1040 <groupId>org.apache.maven.plugins</groupId>
1041 <artifactId>maven-assembly-plugin</artifactId>
1042 <version>2.4</version>
1045 <id>make-assembly-ajsc-arch-parent</id>
1046 <phase>package</phase>
1053 <finalName>${project.artifactId}</finalName>
1055 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1060 <groupId>org.codehaus.groovy.maven</groupId>
1061 <artifactId>gmaven-plugin</artifactId>
1062 <version>1.0</version>
1065 <id>gmaven-ajsc-arch-parent</id>
1066 <phase>package</phase>
1068 <goal>execute</goal>
1071 <sourcepath>src/main/groovy</sourcepath>
1073 import ajsc.AssemblyService;
1074 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1081 <groupId>org.apache.maven.plugins</groupId>
1082 <artifactId>maven-antrun-plugin</artifactId>
1083 <version>1.7</version>
1086 <id>prep_service_runtime-ajsc-arch-parent</id>
1087 <phase>generate-resources</phase>
1089 <target name="prep_service_runtime">
1090 <echo message="ENTERING 'copy_services_template' ant tasks" />
1091 <!-- <filter token="basedir" value="${basedir}" /> -->
1092 <!-- delete any prior stating stuff before package phase -->
1093 <delete dir="target/versioned-ajsc" includes="**/*" />
1094 <delete dir="target/versioned-runtime" includes="**/*" />
1095 <delete dir="target/CDP" includes="**/*" />
1097 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1098 is replaced by module.ajsc.namespace.name) -->
1099 <copy todir="target/versioned-ajsc">
1100 <fileset dir="src/main/ajsc" includes="**/*" />
1103 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1104 directory for future use by replacer plugin -->
1105 <copy todir="target/CDP" failonerror="false">
1106 <fileset dir="CDP" includes="**/*.sh" />
1108 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1110 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1111 <copy todir="target/staticContent" failonerror="false">
1112 <fileset dir="staticContent" includes="**/*" />
1114 <copy todir="target/bundleconfig" failonerror="false">
1115 <!-- filtering="true"> -->
1116 <fileset dir="bundleconfig" />
1119 <echo message="EXITING 'copy_services_template' ant tasks" />
1120 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1121 <copy todir="target/versioned-runtime">
1122 <fileset dir="src/main/runtime" includes="**/*" />
1125 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1126 <copy flatten="true"
1127 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1128 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1130 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1131 <copy flatten="true"
1132 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1133 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1135 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1136 <copy flatten="true"
1137 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1138 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1140 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1141 <copy flatten="true"
1142 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1143 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1144 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1153 <phase>package</phase>
1157 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1158 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1166 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1167 <phase>package</phase>
1169 <target name="prep_home_directory_for_swm_pkgcreate">
1170 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1180 <groupId>org.apache.maven.plugins</groupId>
1181 <artifactId>maven-dependency-plugin</artifactId>
1182 <version>2.8</version>
1185 <id>copy-dependencies-ajsc-arch-parent</id>
1186 <phase>prepare-package</phase>
1188 <goal>copy-dependencies</goal>
1191 <includeScope>runtime</includeScope>
1192 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1193 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1194 <silent>true</silent>
1198 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1199 <phase>prepare-package</phase>
1201 <goal>copy-dependencies</goal>
1204 <includeScope>provided</includeScope>
1205 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1206 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1207 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1208 <silent>true</silent>
1213 <phase>prepare-package</phase>
1215 <goal>copy-dependencies</goal>
1218 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1219 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1225 <artifactId>maven-resources-plugin</artifactId>
1226 <version>2.7</version>
1230 <phase>package</phase>
1232 <goal>copy-resources</goal>
1235 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1238 <directory>src/main/config</directory>
1245 <phase>package</phase>
1247 <goal>copy-resources</goal>
1250 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1253 <directory>src/main/scripts</directory>
1259 <id>copy-docker-file</id>
1260 <phase>prepare-package</phase>
1262 <goal>copy-resources</goal>
1265 <outputDirectory>${dockerLocation}</outputDirectory>
1266 <overwrite>true</overwrite>
1269 <directory>${basedir}/src/main/resources/docker</directory>
1270 <filtering>true</filtering>
1272 <include>**/*</include>
1283 <groupId>com.google.code.maven-replacer-plugin</groupId>
1284 <artifactId>replacer</artifactId>
1285 <version>1.5.2</version>
1288 <id>google-replacer-ajsc-arch-parent</id>
1289 <phase>prepare-package</phase>
1291 <goal>replace</goal>
1294 <basedir>${project.build.directory}</basedir>
1296 <include>staticContent/**/*.html</include>
1297 <include>CDP/**</include>
1298 <include>bundleconfig/**</include>
1299 <include>versioned-runtime/**/*.context</include>
1300 <include>versioned-runtime/**/*.json</include>
1301 <include>versioned-ajsc/**/*.route</include>
1302 <include>versioned-ajsc/**/*.groovy</include>
1303 <include>versioned-ajsc/**/*.xml</include>
1304 <include>classes/*.properties</include>
1305 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1307 <escape>true</escape>
1310 <token>__module_ajsc_namespace_name__</token>
1311 <value>${module.ajsc.namespace.name}</value>
1314 <token>__module_ajsc_namespace_version__</token>
1315 <value>${module.ajsc.namespace.version}</value>
1318 <token>__ajscHome__</token>
1319 <value>${replaceWinFilePath}</value>
1322 <token>__projectGroupId__</token>
1323 <value>${project.groupId}</value>
1326 <token>__projectArtifactId__</token>
1327 <value>${project.artifactId}</value>
1330 <token>__projectVersion__</token>
1331 <value>${project.version}</value>
1334 <token>__basedir__</token>
1335 <value>${replaceWinBasedirPath}</value>
1346 <groupId>org.apache.maven.plugins</groupId>
1347 <artifactId>maven-surefire-plugin</artifactId>
1348 <version>2.14.1</version>
1351 <exclude>**/AbstractTest.java</exclude>