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>0.1.1</version>
22 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23 <artifactId>dmaapMR1</artifactId>
24 <version>1.1.3-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>package</phase>
138 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
143 <id>tag-image-project-version</id>
144 <phase>package</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>package</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>
250 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
251 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
252 <ajscRuntimeVersion>3.0.1-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.16.0</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>
289 <!-- Distribution management -->
290 <distributionManagement>
293 <url>dav:${nexusproxy}${sitePath}</url>
295 </distributionManagement>
297 <!-- End Distribution management -->
299 <!-- The standard build tasks for this project are inherited from the parent.
300 Please do not override the build tasks. However tasks and/or profiles can
301 be included here as well as additional dependencies for your service. Any
302 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
303 folder and will be made available on the AJSC classpath for your service.
304 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
305 CSI environment. Therefore, they are provided within this project as "provided"
306 dependencies. In order for the AJSC to run properly, locally, the CSM and
307 DME2 dependencies will be copied into the target/commonLibs folder and will
308 be made available to the classpath of the AJSC through the use of the system
309 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
310 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
311 so). If you have a startup failure related to a missing dme2 class not found
312 exception, please contact the AJSC team for assistance. You can email support
313 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
314 the usage of the AJSC service pom.xml and management of dependencies, please
315 goto wiki link:http://wiki.web.att.com/display/ajsc/pom.xml -->
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 -->
325 <groupId>com.att.cadi</groupId>
326 <artifactId>cadi-core</artifactId>
327 <version>1.3.0</version>
330 <groupId>com.att.aft</groupId>
331 <artifactId>dme2</artifactId>
332 <version>3.1.200-oss</version>
335 <groupId>commons-io</groupId>
336 <artifactId>commons-io</artifactId>
337 <version>2.4</version>
340 <groupId>org.apache.commons</groupId>
341 <artifactId>commons-io</artifactId>
342 <version>1.3.2</version>
345 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
346 <artifactId>msgrtr</artifactId>
347 <version>1.1.1</version>
350 <groupId>org.slf4j</groupId>
351 <artifactId>slf4j-log4j12</artifactId>
354 <groupId>com.att.ajsc</groupId>
355 <artifactId>ajsc-core</artifactId>
358 <groupId>org.apache.tomcat</groupId>
359 <artifactId>tomcat-catalina</artifactId>
363 <groupId>org.apache.tomcat.embed</groupId>
364 <artifactId>tomcat-embed-core</artifactId>
367 <groupId>org.apache.tomcat</groupId>
368 <artifactId>tomcat-util</artifactId>
370 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
373 <groupId>com.att.nsa</groupId>
374 <artifactId>tomcat-util</artifactId>
378 <groupId>commons-beanutils</groupId>
379 <artifactId>commons-beanutils</artifactId>
384 <groupId>org.mockito</groupId>
385 <artifactId>mockito-core</artifactId>
386 <version>1.10.19</version>
390 <groupId>org.powermock</groupId>
391 <artifactId>powermock-module-junit4</artifactId>
392 <version>1.6.4</version>
396 <groupId>org.powermock</groupId>
397 <artifactId>powermock-api-mockito</artifactId>
398 <version>1.6.4</version>
401 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
402 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
403 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
404 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
405 <version>1.9.13</version> </dependency> -->
408 <groupId>com.fasterxml.jackson.jaxrs</groupId>
409 <artifactId>jackson-jaxrs-json-provider</artifactId>
410 <version>2.2.3</version>
414 <groupId>com.fasterxml.jackson.core</groupId>
415 <artifactId>jackson-core</artifactId>
416 <version>2.8.11</version>
420 <groupId>com.fasterxml.jackson.core</groupId>
421 <artifactId>jackson-databind</artifactId>
422 <version>2.8.11.1</version>
425 <groupId>org.grails</groupId>
426 <artifactId>grails-web</artifactId>
427 <version>2.4.4</version>
430 <groupId>org.grails</groupId>
431 <artifactId>grails-web-jsp</artifactId>
436 <groupId>org.codehaus.groovy</groupId>
437 <artifactId>groovy-all</artifactId>
438 <version>2.4.4</version>
439 <scope>compile</scope>
442 <artifactId>jline</artifactId>
443 <groupId>jline</groupId>
449 <groupId>junit</groupId>
450 <artifactId>junit</artifactId>
451 <version>4.11</version>
456 <groupId>org.json</groupId>
457 <artifactId>json</artifactId>
458 <version>20131018</version>
461 <!-- CXF JAX-RS extension -->
463 <groupId>org.apache.cxf</groupId>
464 <artifactId>cxf-rt-rs-extension-providers</artifactId>
465 <version>3.0.4</version>
468 <groupId>org.codehaus.jettison</groupId>
469 <artifactId>jettison</artifactId>
470 <version>1.3.7</version>
474 <groupId>dom4j</groupId>
475 <artifactId>dom4j</artifactId>
476 <version>1.6.1</version>
477 <scope>provided</scope>
480 <groupId>com.att.aft</groupId>
481 <artifactId>dme2</artifactId>
482 <version>3.1.200</version>
483 <!-- <scope>provided</scope> -->
486 <groupId>com.att.ajsc</groupId>
487 <artifactId>ajsc-archetype-parent</artifactId>
488 <version>3.0.1-oss</version>
493 <groupId>com.att.cadi</groupId>
494 <artifactId>cadi-aaf</artifactId>
495 <version>1.3.0</version>
499 <groupId>com.att.inno</groupId>
500 <artifactId>rosetta</artifactId>
501 <version>1.2.11</version>
504 <groupId>com.att.inno</groupId>
505 <artifactId>env</artifactId>
506 <version>1.2.11</version>
509 <groupId>com.att.inno</groupId>
510 <artifactId>xgen</artifactId>
511 <version>1.2.11</version>
514 <groupId>com.att.inno</groupId>
515 <artifactId>rosetta</artifactId>
516 <version>1.2.11</version>
519 <groupId>backport-util-concurrent</groupId>
520 <artifactId>backport-util-concurrent</artifactId>
521 <version>3.1</version>
524 <groupId>org.apache.camel</groupId>
525 <artifactId>camel-core</artifactId>
526 <version>${camel.version}</version>
529 <groupId>org.apache.camel</groupId>
530 <artifactId>camel-quartz</artifactId>
531 <version>${camel.version}</version>
534 <groupId>org.apache.camel</groupId>
535 <artifactId>camel-spring</artifactId>
536 <version>${camel.version}</version>
539 <groupId>org.apache.camel</groupId>
540 <artifactId>camel-restlet</artifactId>
541 <version>${camel.version}</version>
544 <artifactId>org.restlet</artifactId>
545 <groupId>org.restlet.jse</groupId>
550 <groupId>org.apache.camel</groupId>
551 <artifactId>camel-servlet</artifactId>
552 <version>${camel.version}</version>
555 <groupId>commons-httpclient</groupId>
556 <artifactId>commons-httpclient</artifactId>
561 <groupId>org.apache.httpcomponents</groupId>
562 <artifactId>httpclient</artifactId>
563 <version>4.0</version>
567 <groupId>org.apache.camel</groupId>
568 <artifactId>camel-http4</artifactId>
569 <version>${camel.version}</version>
572 <groupId>org.apache.geronimo.specs</groupId>
573 <artifactId>geronimo-servlet_2.5_spec</artifactId>
578 <groupId>org.apache.camel</groupId>
579 <artifactId>camel-groovy</artifactId>
580 <version>${camel.version}</version>
583 <groupId>org.apache.camel</groupId>
584 <artifactId>camel-twitter</artifactId>
585 <version>${camel.version}</version>
588 <groupId>org.apache.camel</groupId>
589 <artifactId>camel-mail</artifactId>
590 <version>${camel.version}</version>
593 <groupId>org.apache.camel</groupId>
594 <artifactId>camel-smpp</artifactId>
595 <version>${camel.version}</version>
598 <groupId>org.apache.camel</groupId>
599 <artifactId>camel-jms</artifactId>
600 <version>${camel.version}</version>
603 <groupId>org.apache.camel</groupId>
604 <artifactId>camel-script</artifactId>
605 <version>${camel.version}</version>
608 <groupId>org.apache.camel</groupId>
609 <artifactId>camel-xmpp</artifactId>
610 <version>${camel.version}</version>
613 <groupId>org.apache.camel</groupId>
614 <artifactId>camel-velocity</artifactId>
615 <version>${camel.version}</version>
618 <groupId>com.att.ajsc</groupId>
619 <artifactId>ajsc-runner</artifactId>
620 <version>3.0.1-oss</version>
621 <scope>runtime</scope>
624 <groupId>com.att.ajsc</groupId>
625 <artifactId>ajsc-core</artifactId>
626 <version>3.0.1-oss</version>
627 <scope>provided</scope>
630 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
631 </resource> </resources> </build> -->
633 <!-- Use this profile to run the AJSC locally. This profile can be successfully
634 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
635 available with this profile. -->
640 <skip.docker.build>false</skip.docker.build>
641 <skip.docker.tag>false</skip.docker.tag>
642 <skip.docker.push>false</skip.docker.push>
649 <defaultGoal>initialize</defaultGoal>
652 <groupId>org.apache.maven.plugins</groupId>
653 <artifactId>maven-antrun-plugin</artifactId>
656 <phase>initialize</phase>
658 <target name="runLocal">
659 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
675 <defaultGoal>initialize</defaultGoal>
678 <groupId>org.codehaus.mojo</groupId>
679 <artifactId>exec-maven-plugin</artifactId>
680 <version>1.3.2</version>
683 <phase>initialize</phase>
688 <!-- In order to better mimic a SOA cloud installation of AJSC (and
689 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
690 to diagnose), within this profile used to run locally, we are NOT including
691 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
692 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
693 the only dependency required by this profile to run locally. -->
694 <includeProjectDependencies>false</includeProjectDependencies>
695 <includePluginDependencies>true</includePluginDependencies>
696 <executable>java</executable>
697 <mainClass>com.att.ajsc.runner.Runner</mainClass>
698 <executableDependency>
699 <groupId>com.att.ajsc</groupId>
700 <artifactId>ajsc-runner</artifactId>
701 </executableDependency>
702 <additionalClasspathElements>
703 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
704 </additionalClasspathElements>
706 <environmentVariables>
707 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
708 </environmentVariables>
710 <!-- Main AJSC System Properties below (necessary for proper startup) -->
714 <value>${runAjscHome}</value>
718 <value>${runAjscHome}</value>
721 <key>AJSC_CONF_HOME</key>
722 <value>${basedir}/bundleconfig-local</value>
725 <key>logback.configurationFile</key>
726 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
729 <key>AJSC_SHARED_CONFIG</key>
730 <value>${basedir}/ajsc-shared-config</value>
733 <!-- Please, NOTE: The following 2 system properties will normally
734 be set within the sys-props.properties file once deployed to a node. We are
735 setting them HERE to run locally to make more efficient use of maven variable
736 replacement for ${basedir} -->
737 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
738 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
740 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
741 <value>${basedir}/target/commonLibs</value>
743 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
744 files that may need to be added to the classpath. These files will be externalized
745 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
746 Failure to have these files on the classpath may result in errors thrown
747 by csm framework. -->
749 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
750 <value>${basedir}/ajsc-shared-config/etc</value>
754 <key>AJSC_SERVICE_NAMESPACE</key>
755 <value>${module.ajsc.namespace.name}</value>
758 <key>AJSC_SERVICE_VERSION</key>
759 <value>${module.ajsc.namespace.version}</value>
762 <key>SOACLOUD_SERVICE_VERSION</key>
763 <value>${project.version}</value>
766 <key>server.port</key>
767 <value>${serverPort}</value>
771 <!-- Command Line Arguments to add to the java command. Here, you
772 can specify the port as well as the Context you want your service to run
773 in. Use context=/ to run in an unnamed Context (Root Context). The default
774 configuration of the AJSC is to run under the / Context. Setting the port
775 here can aid during the development phase of your service. However, you can
776 leave this argument out entirely, and the AJSC will default to using an Ephemeral
779 <argument>context=/</argument>
780 <argument>port=${serverPort}</argument>
781 <argument>sslport=${sslport}</argument>
787 <executable>java</executable>
791 <groupId>com.att.ajsc</groupId>
792 <artifactId>ajsc-runner</artifactId>
793 <version>${ajscRuntimeVersion}</version>
802 <id>standardbuild</id>
811 <directory>src/main/resources</directory>
813 <exclude>extApps/*.*</exclude>
814 <exclude>${module.ajsc.namespace.name}/**</exclude>
818 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
820 <exclude>**/*.route</exclude>
821 <exclude>**/*.props</exclude>
822 <exclude>**/*.xslt</exclude>
823 <exclude>**/*.vm</exclude>
824 <exclude>**/*.jar</exclude>
825 <exclude>**/*.xml</exclude>
831 <groupId>org.apache.maven.plugins</groupId>
832 <artifactId>maven-compiler-plugin</artifactId>
833 <version>3.1</version>
836 <groupId>org.codehaus.groovy</groupId>
837 <artifactId>groovy-eclipse-compiler</artifactId>
838 <version>2.8.0-01</version>
839 <extensions>true</extensions>
843 <groupId>org.codehaus.mojo</groupId>
844 <artifactId>exec-maven-plugin</artifactId>
845 <version>1.2.1</version>
854 <executable>bash</executable>
856 <argument>runServer.sh</argument>
861 <groupId>org.codehaus.mojo</groupId>
862 <artifactId>build-helper-maven-plugin</artifactId>
863 <version>1.9</version>
866 <id>add-source-groovy-ajsc-arch-parent</id>
867 <phase>generate-sources</phase>
869 <goal>add-source</goal>
873 <source>src/main/groovy</source>
878 <id>add-test-source-groovy-ajsc-arch-parent</id>
879 <phase>generate-test-sources</phase>
881 <goal>add-test-source</goal>
885 <source>src/test/groovy</source>
890 <id>regex-properties-ajsc-arch-parent</id>
891 <phase>initialize</phase>
893 <goal>regex-properties</goal>
896 <regexPropertySettings>
897 <regexPropertySetting>
898 <name>replaceWinFilePath</name>
899 <value>${runAjscHome}</value>
901 <replacement>/</replacement>
902 <failIfNoMatch>false</failIfNoMatch>
903 </regexPropertySetting>
904 <regexPropertySetting>
905 <name>replaceWinBasedirPath</name>
906 <value>${basedir}</value>
908 <replacement>/</replacement>
909 <failIfNoMatch>false</failIfNoMatch>
910 </regexPropertySetting>
911 </regexPropertySettings>
917 <groupId>org.codehaus.mojo</groupId>
918 <artifactId>properties-maven-plugin</artifactId>
919 <version>1.0-alpha-2</version>
922 <id>write-project-properties-ajsc-arch-parent</id>
923 <phase>generate-resources</phase>
925 <goal>write-project-properties</goal>
929 ${project.build.outputDirectory}/build.properties
936 <groupId>org.apache.maven.plugins</groupId>
937 <artifactId>maven-assembly-plugin</artifactId>
938 <version>2.4</version>
941 <id>make-assembly-ajsc-arch-parent</id>
942 <phase>package</phase>
949 <finalName>${project.artifactId}</finalName>
951 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
956 <groupId>org.codehaus.groovy.maven</groupId>
957 <artifactId>gmaven-plugin</artifactId>
958 <version>1.0</version>
961 <id>gmaven-ajsc-arch-parent</id>
962 <phase>package</phase>
967 <sourcepath>src/main/groovy</sourcepath>
969 import ajsc.AssemblyService;
970 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
977 <groupId>org.apache.maven.plugins</groupId>
978 <artifactId>maven-antrun-plugin</artifactId>
979 <version>1.7</version>
982 <id>prep_service_runtime-ajsc-arch-parent</id>
983 <phase>generate-resources</phase>
985 <target name="prep_service_runtime">
986 <echo message="ENTERING 'copy_services_template' ant tasks" />
987 <!-- <filter token="basedir" value="${basedir}" /> -->
988 <!-- delete any prior stating stuff before package phase -->
989 <delete dir="target/versioned-ajsc" includes="**/*" />
990 <delete dir="target/versioned-runtime" includes="**/*" />
991 <delete dir="target/CDP" includes="**/*" />
993 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
994 is replaced by module.ajsc.namespace.name) -->
995 <copy todir="target/versioned-ajsc">
996 <fileset dir="src/main/ajsc" includes="**/*" />
999 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1000 directory for future use by replacer plugin -->
1001 <copy todir="target/CDP" failonerror="false">
1002 <fileset dir="CDP" includes="**/*.sh" />
1004 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1006 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1007 <copy todir="target/staticContent" failonerror="false">
1008 <fileset dir="staticContent" includes="**/*" />
1010 <copy todir="target/bundleconfig" failonerror="false">
1011 <!-- filtering="true"> -->
1012 <fileset dir="bundleconfig" />
1015 <echo message="EXITING 'copy_services_template' ant tasks" />
1016 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1017 <copy todir="target/versioned-runtime">
1018 <fileset dir="src/main/runtime" includes="**/*" />
1021 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1022 <copy flatten="true"
1023 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1024 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1026 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1027 <copy flatten="true"
1028 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1029 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1031 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1032 <copy flatten="true"
1033 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1034 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1036 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1037 <copy flatten="true"
1038 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1039 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1040 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1049 <phase>package</phase>
1053 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1054 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1062 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1063 <phase>package</phase>
1065 <target name="prep_home_directory_for_swm_pkgcreate">
1066 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1076 <groupId>org.apache.maven.plugins</groupId>
1077 <artifactId>maven-dependency-plugin</artifactId>
1078 <version>2.8</version>
1081 <id>copy-dependencies-ajsc-arch-parent</id>
1082 <phase>prepare-package</phase>
1084 <goal>copy-dependencies</goal>
1087 <includeScope>runtime</includeScope>
1088 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1089 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1090 <silent>true</silent>
1094 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1095 <phase>prepare-package</phase>
1097 <goal>copy-dependencies</goal>
1100 <includeScope>provided</includeScope>
1101 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1102 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1103 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1104 <silent>true</silent>
1109 <phase>prepare-package</phase>
1111 <goal>copy-dependencies</goal>
1114 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1115 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1121 <artifactId>maven-resources-plugin</artifactId>
1122 <version>2.7</version>
1126 <phase>package</phase>
1128 <goal>copy-resources</goal>
1131 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1134 <directory>src/main/config</directory>
1141 <phase>package</phase>
1143 <goal>copy-resources</goal>
1146 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1149 <directory>src/main/scripts</directory>
1155 <id>copy-docker-file</id>
1156 <phase>prepare-package</phase>
1158 <goal>copy-resources</goal>
1161 <outputDirectory>${dockerLocation}</outputDirectory>
1162 <overwrite>true</overwrite>
1165 <directory>${basedir}/src/main/resources/docker</directory>
1166 <filtering>true</filtering>
1168 <include>**/*</include>
1179 <groupId>com.google.code.maven-replacer-plugin</groupId>
1180 <artifactId>replacer</artifactId>
1181 <version>1.5.2</version>
1184 <id>google-replacer-ajsc-arch-parent</id>
1185 <phase>prepare-package</phase>
1187 <goal>replace</goal>
1190 <basedir>${project.build.directory}</basedir>
1192 <include>staticContent/**/*.html</include>
1193 <include>CDP/**</include>
1194 <include>bundleconfig/**</include>
1195 <include>versioned-runtime/**/*.context</include>
1196 <include>versioned-runtime/**/*.json</include>
1197 <include>versioned-ajsc/**/*.route</include>
1198 <include>versioned-ajsc/**/*.groovy</include>
1199 <include>versioned-ajsc/**/*.xml</include>
1200 <include>classes/*.properties</include>
1201 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1203 <escape>true</escape>
1206 <token>__module_ajsc_namespace_name__</token>
1207 <value>${module.ajsc.namespace.name}</value>
1210 <token>__module_ajsc_namespace_version__</token>
1211 <value>${module.ajsc.namespace.version}</value>
1214 <token>__ajscHome__</token>
1215 <value>${replaceWinFilePath}</value>
1218 <token>__projectGroupId__</token>
1219 <value>${project.groupId}</value>
1222 <token>__projectArtifactId__</token>
1223 <value>${project.artifactId}</value>
1226 <token>__projectVersion__</token>
1227 <value>${project.version}</value>
1230 <token>__basedir__</token>
1231 <value>${replaceWinBasedirPath}</value>
1242 <groupId>org.apache.maven.plugins</groupId>
1243 <artifactId>maven-surefire-plugin</artifactId>
1244 <version>2.14.1</version>
1247 <exclude>**/AbstractTest.java</exclude>