2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ============LICENSE_END=========================================================
19 ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.oparent</groupId>
28 <artifactId>oparent</artifactId>
29 <version>0.1.1</version>
32 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
33 <artifactId>dmaapMR1</artifactId>
34 <version>1.0.3-SNAPSHOT</version>
35 <name>dmaap-messagerouter-messageservice</name>
36 <description>Message Router - Restful interface built for kafka</description>
39 <name>Apache License Version 2.0</name>
45 <name>Rajashree</name>
47 <organization>ATT</organization>
48 <organizationUrl>www.att.com</organizationUrl>
53 <organization>ATT</organization>
54 <organizationUrl>www.att.com</organizationUrl>
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-site-plugin</artifactId>
63 <version>3.6</version>
66 <groupId>org.apache.maven.wagon</groupId>
67 <artifactId>wagon-webdav-jackrabbit</artifactId>
68 <version>2.10</version>
74 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-jar-plugin</artifactId>
76 <version>3.0.2</version>
80 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-javadoc-plugin</artifactId>
82 <version>2.10.4</version>
84 <additionalparam>-Xdoclint:none</additionalparam>
88 <id>attach-javadocs</id>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-source-plugin</artifactId>
98 <version>3.0.0</version>
101 <id>attach-sources</id>
103 <goal>jar-no-fork</goal>
109 <groupId>org.apache.maven.plugins</groupId>
110 <artifactId>maven-release-plugin</artifactId>
111 <version>2.5.3</version>
113 <autoVersionSubmodules>true</autoVersionSubmodules>
114 <checkModificationExcludes>
115 </checkModificationExcludes>
119 <groupId>org.apache.maven.scm</groupId>
120 <artifactId>maven-scm-provider-gitexe</artifactId>
121 <version>1.9.4</version>
127 <groupId>com.spotify</groupId>
128 <artifactId>docker-maven-plugin</artifactId>
129 <version>1.0.0</version>
131 <imageName>onap/dmaap/dmaap-mr</imageName>
132 <dockerDirectory>${dockerLocation}</dockerDirectory>
133 <serverId>docker-hub</serverId>
135 <imageTag>${dmaapImg}</imageTag>
136 <imageTag>latest</imageTag>
138 <forceTags>true</forceTags>
141 <targetPath>/</targetPath>
142 <directory>${dockerLocation}</directory>
143 <include>${project.build.finalName}.jar</include>
146 <targetPath>/</targetPath>
147 <directory>${project.build.directory}</directory>
148 <include>**/**</include>
155 <phase>package</phase>
160 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
165 <id>tag-image-project-version</id>
166 <phase>package</phase>
171 <image>onap/dmaap/dmaap-mr</image>
172 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</newName>
173 <skipDockerTag>${skip.docker.push}</skipDockerTag>
178 <id>tag-image-latest</id>
179 <phase>package</phase>
184 <image>onap/dmaap/dmaap-mr</image>
185 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</newName>
186 <skipDockerTag>${skip.docker.push}</skipDockerTag>
191 <id>push-image-latest</id>
192 <phase>deploy</phase>
197 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</imageName>
198 <skipDockerPush>${skip.docker.push}</skipDockerPush>
204 <phase>deploy</phase>
209 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</imageName>
210 <skipDockerPush>${skip.docker.push}</skipDockerPush>
216 <groupId>com.blackducksoftware.integration</groupId>
217 <artifactId>hub-maven-plugin</artifactId>
218 <version>1.0.4</version>
219 <inherited>false</inherited>
221 <target>${project.basedir}</target>
225 <id>create-bdio-file</id>
226 <phase>package</phase>
228 <goal>createHubOutput</goal>
235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-compiler-plugin</artifactId>
237 <version>3.1</version>
239 <compilerId>groovy-eclipse-compiler</compilerId>
240 <verbose>true</verbose>
246 <groupId>org.codehaus.groovy</groupId>
247 <artifactId>groovy-eclipse-compiler</artifactId>
248 <version>2.8.0-01</version>
251 <groupId>org.codehaus.groovy</groupId>
252 <artifactId>groovy-eclipse-batch</artifactId>
253 <version>2.1.5-03</version>
258 <groupId>org.codehaus.groovy</groupId>
259 <artifactId>groovy-eclipse-compiler</artifactId>
260 <version>2.8.0-01</version>
261 <extensions>true</extensions>
268 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
269 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
270 <docker.image.prefix>simpledemo</docker.image.prefix>
272 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
273 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
274 <ajscRuntimeVersion>1.0.0</ajscRuntimeVersion>
276 <!-- This will be the Absolute Root of the Project and should contain NO
278 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
279 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
280 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
281 For NO Versioning, leave as is -->
282 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
283 ${project.version} to ${runAjscHome} for running locally. -->
284 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
285 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
286 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
288 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
289 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
290 <!-- For SOA Cloud Installation -->
291 <installOwnerUser>msgrtr</installOwnerUser>
292 <installOwnerGroup>dmaap</installOwnerGroup>
293 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
294 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
295 For local testing, you may choose to hardcode this value to something like
297 <serverPort>3904</serverPort>
298 <sslport>3905</sslport>
300 <testRouteOffer>workstation</testRouteOffer>
301 <testEnv>DEV</testEnv>
302 <dmaapImg>${project.version}</dmaapImg>
303 <camel.version>2.15.5</camel.version>
304 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
305 <skip.docker.build>true</skip.docker.build>
306 <skip.docker.push>true</skip.docker.push>
307 <nexusproxy>https://nexus.onap.org</nexusproxy>
308 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
311 <!-- Distribution management -->
312 <distributionManagement>
315 <url>dav:${nexusproxy}${sitePath}</url>
317 </distributionManagement>
319 <!-- End Distribution management -->
321 <!-- The standard build tasks for this project are inherited from the parent.
322 Please do not override the build tasks. However tasks and/or profiles can
323 be included here as well as additional dependencies for your service. Any
324 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
325 folder and will be made available on the AJSC classpath for your service.
326 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
327 CSI environment. Therefore, they are provided within this project as "provided"
328 dependencies. In order for the AJSC to run properly, locally, the CSM and
329 DME2 dependencies will be copied into the target/commonLibs folder and will
330 be made available to the classpath of the AJSC through the use of the system
331 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
332 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
333 so). If you have a startup failure related to a missing dme2 class not found
334 exception, please contact the AJSC team for assistance. You can email support
335 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
336 the usage of the AJSC service pom.xml and management of dependencies, please
337 goto wiki link:http://wiki.web.att.com/display/ajsc/pom.xml -->
340 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
344 <groupId>csi-schemas-source</groupId>
345 <artifactId>cmn-CommonDataModel</artifactId>
346 <version>112.0.50</version>
348 <!-- TODO: add open source version here -->
350 <groupId>com.att.cadi</groupId>
351 <artifactId>cadi-core</artifactId>
352 <version>1.3.0</version>
355 <groupId>commons-io</groupId>
356 <artifactId>commons-io</artifactId>
357 <version>2.4</version>
360 <groupId>org.apache.commons</groupId>
361 <artifactId>commons-io</artifactId>
362 <version>1.3.2</version>
365 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
366 <artifactId>msgrtr</artifactId>
367 <version>1.0.0</version>
370 <groupId>org.slf4j</groupId>
371 <artifactId>slf4j-log4j12</artifactId>
374 <groupId>com.att.ajsc</groupId>
375 <artifactId>ajsc-core</artifactId>
378 <groupId>org.apache.tomcat</groupId>
379 <artifactId>tomcat-catalina</artifactId>
383 <groupId>org.apache.tomcat.embed</groupId>
384 <artifactId>tomcat-embed-core</artifactId>
387 <groupId>org.apache.tomcat</groupId>
388 <artifactId>tomcat-util</artifactId>
390 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
393 <groupId>com.att.nsa</groupId>
394 <artifactId>tomcat-util</artifactId>
401 <groupId>org.codehaus.jackson</groupId>
402 <artifactId>jackson-jaxrs</artifactId>
403 <version>1.9.13</version>
407 <groupId>org.codehaus.jackson</groupId>
408 <artifactId>jackson-mapper-asl</artifactId>
409 <version>1.9.13</version>
412 <groupId>org.codehaus.jackson</groupId>
413 <artifactId>jackson-core-asl</artifactId>
414 <version>1.9.13</version>
418 <groupId>com.fasterxml.jackson.core</groupId>
419 <artifactId>jackson-core</artifactId>
420 <version>2.4.3</version>
424 <groupId>com.fasterxml.jackson.core</groupId>
425 <artifactId>jackson-databind</artifactId>
426 <version>2.3.3</version>
430 <groupId>junit</groupId>
431 <artifactId>junit</artifactId>
432 <version>4.11</version>
437 <groupId>org.json</groupId>
438 <artifactId>json</artifactId>
439 <version>20131018</version>
442 <!-- CXF JAX-RS extension -->
444 <groupId>org.apache.cxf</groupId>
445 <artifactId>cxf-rt-rs-extension-providers</artifactId>
446 <version>3.0.4</version>
449 <groupId>org.codehaus.jettison</groupId>
450 <artifactId>jettison</artifactId>
451 <version>1.3.7</version>
455 <groupId>dom4j</groupId>
456 <artifactId>dom4j</artifactId>
457 <version>1.6.1</version>
458 <scope>provided</scope>
461 <groupId>com.att.aft</groupId>
462 <artifactId>dme2</artifactId>
463 <version>3.1.200</version>
464 <!-- <scope>provided</scope> -->
467 <groupId>com.att.ajsc</groupId>
468 <artifactId>ajsc-archetype-parent</artifactId>
469 <version>1.0.0</version>
474 <groupId>com.att.cadi</groupId>
475 <artifactId>cadi-aaf</artifactId>
476 <version>1.3.0</version>
480 <groupId>com.att.inno</groupId>
481 <artifactId>rosetta</artifactId>
482 <version>1.2.11</version>
485 <groupId>com.att.inno</groupId>
486 <artifactId>env</artifactId>
487 <version>1.2.11</version>
490 <groupId>com.att.inno</groupId>
491 <artifactId>xgen</artifactId>
492 <version>1.2.11</version>
495 <groupId>com.att.inno</groupId>
496 <artifactId>rosetta</artifactId>
497 <version>1.2.11</version>
500 <groupId>backport-util-concurrent</groupId>
501 <artifactId>backport-util-concurrent</artifactId>
502 <version>3.1</version>
505 <groupId>org.apache.camel</groupId>
506 <artifactId>camel-core</artifactId>
507 <version>${camel.version}</version>
510 <groupId>org.apache.camel</groupId>
511 <artifactId>camel-quartz</artifactId>
512 <version>${camel.version}</version>
515 <groupId>org.apache.camel</groupId>
516 <artifactId>camel-spring</artifactId>
517 <version>${camel.version}</version>
520 <groupId>org.apache.camel</groupId>
521 <artifactId>camel-restlet</artifactId>
522 <version>${camel.version}</version>
525 <artifactId>org.restlet</artifactId>
526 <groupId>org.restlet.jse</groupId>
531 <groupId>org.apache.camel</groupId>
532 <artifactId>camel-servlet</artifactId>
533 <version>${camel.version}</version>
536 <groupId>org.apache.camel</groupId>
537 <artifactId>camel-http4</artifactId>
538 <version>${camel.version}</version>
541 <groupId>org.apache.geronimo.specs</groupId>
542 <artifactId>geronimo-servlet_2.5_spec</artifactId>
547 <groupId>org.apache.camel</groupId>
548 <artifactId>camel-groovy</artifactId>
549 <version>${camel.version}</version>
552 <groupId>org.apache.camel</groupId>
553 <artifactId>camel-twitter</artifactId>
554 <version>${camel.version}</version>
557 <groupId>org.apache.camel</groupId>
558 <artifactId>camel-mail</artifactId>
559 <version>${camel.version}</version>
562 <groupId>org.apache.camel</groupId>
563 <artifactId>camel-smpp</artifactId>
564 <version>${camel.version}</version>
567 <groupId>org.apache.camel</groupId>
568 <artifactId>camel-jms</artifactId>
569 <version>${camel.version}</version>
572 <groupId>org.apache.camel</groupId>
573 <artifactId>camel-script</artifactId>
574 <version>${camel.version}</version>
577 <groupId>org.apache.camel</groupId>
578 <artifactId>camel-xmpp</artifactId>
579 <version>${camel.version}</version>
582 <groupId>org.apache.camel</groupId>
583 <artifactId>camel-velocity</artifactId>
584 <version>${camel.version}</version>
587 <groupId>com.att.ajsc</groupId>
588 <artifactId>ajsc-runner</artifactId>
589 <version>1.0.0</version>
590 <scope>runtime</scope>
593 <groupId>com.att.ajsc</groupId>
594 <artifactId>ajsc-core</artifactId>
595 <version>1.0.0</version>
596 <scope>provided</scope>
599 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
600 </resource> </resources> </build> -->
602 <!-- Use this profile to run the AJSC locally. This profile can be successfully
603 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
604 available with this profile. -->
609 <skip.docker.build>false</skip.docker.build>
610 <skip.docker.tag>false</skip.docker.tag>
611 <skip.docker.push>false</skip.docker.push>
618 <defaultGoal>initialize</defaultGoal>
621 <groupId>org.apache.maven.plugins</groupId>
622 <artifactId>maven-antrun-plugin</artifactId>
625 <phase>initialize</phase>
627 <target name="runLocal">
628 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
644 <defaultGoal>initialize</defaultGoal>
647 <groupId>org.codehaus.mojo</groupId>
648 <artifactId>exec-maven-plugin</artifactId>
649 <version>1.3.2</version>
652 <phase>initialize</phase>
657 <!-- In order to better mimic a SOA cloud installation of AJSC (and
658 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
659 to diagnose), within this profile used to run locally, we are NOT including
660 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
661 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
662 the only dependency required by this profile to run locally. -->
663 <includeProjectDependencies>false</includeProjectDependencies>
664 <includePluginDependencies>true</includePluginDependencies>
665 <executable>java</executable>
666 <mainClass>com.att.ajsc.runner.Runner</mainClass>
667 <executableDependency>
668 <groupId>com.att.ajsc</groupId>
669 <artifactId>ajsc-runner</artifactId>
670 </executableDependency>
671 <additionalClasspathElements>
672 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
673 </additionalClasspathElements>
675 <environmentVariables>
676 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
677 </environmentVariables>
679 <!-- Main AJSC System Properties below (necessary for proper startup) -->
683 <value>${runAjscHome}</value>
687 <value>${runAjscHome}</value>
690 <key>AJSC_CONF_HOME</key>
691 <value>${basedir}/bundleconfig-local</value>
694 <key>logback.configurationFile</key>
695 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
698 <key>AJSC_SHARED_CONFIG</key>
699 <value>${basedir}/ajsc-shared-config</value>
702 <!-- Please, NOTE: The following 2 system properties will normally
703 be set within the sys-props.properties file once deployed to a node. We are
704 setting them HERE to run locally to make more efficient use of maven variable
705 replacement for ${basedir} -->
706 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
707 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
709 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
710 <value>${basedir}/target/commonLibs</value>
712 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
713 files that may need to be added to the classpath. These files will be externalized
714 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
715 Failure to have these files on the classpath may result in errors thrown
716 by csm framework. -->
718 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
719 <value>${basedir}/ajsc-shared-config/etc</value>
723 <key>AJSC_SERVICE_NAMESPACE</key>
724 <value>${module.ajsc.namespace.name}</value>
727 <key>AJSC_SERVICE_VERSION</key>
728 <value>${module.ajsc.namespace.version}</value>
731 <key>SOACLOUD_SERVICE_VERSION</key>
732 <value>${project.version}</value>
735 <key>server.port</key>
736 <value>${serverPort}</value>
740 <!-- Command Line Arguments to add to the java command. Here, you
741 can specify the port as well as the Context you want your service to run
742 in. Use context=/ to run in an unnamed Context (Root Context). The default
743 configuration of the AJSC is to run under the / Context. Setting the port
744 here can aid during the development phase of your service. However, you can
745 leave this argument out entirely, and the AJSC will default to using an Ephemeral
748 <argument>context=/</argument>
749 <argument>port=${serverPort}</argument>
750 <argument>sslport=${sslport}</argument>
756 <executable>java</executable>
760 <groupId>com.att.ajsc</groupId>
761 <artifactId>ajsc-runner</artifactId>
762 <version>${ajscRuntimeVersion}</version>
771 <id>standardbuild</id>
780 <directory>src/main/resources</directory>
782 <exclude>extApps/*.*</exclude>
783 <exclude>${module.ajsc.namespace.name}/**</exclude>
787 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
789 <exclude>**/*.route</exclude>
790 <exclude>**/*.props</exclude>
791 <exclude>**/*.xslt</exclude>
792 <exclude>**/*.vm</exclude>
793 <exclude>**/*.jar</exclude>
794 <exclude>**/*.xml</exclude>
800 <groupId>org.apache.maven.plugins</groupId>
801 <artifactId>maven-compiler-plugin</artifactId>
802 <version>3.1</version>
805 <groupId>org.codehaus.groovy</groupId>
806 <artifactId>groovy-eclipse-compiler</artifactId>
807 <version>2.8.0-01</version>
808 <extensions>true</extensions>
812 <groupId>org.codehaus.mojo</groupId>
813 <artifactId>exec-maven-plugin</artifactId>
814 <version>1.2.1</version>
823 <executable>bash</executable>
825 <argument>runServer.sh</argument>
830 <groupId>org.codehaus.mojo</groupId>
831 <artifactId>build-helper-maven-plugin</artifactId>
832 <version>1.9</version>
835 <id>add-source-groovy-ajsc-arch-parent</id>
836 <phase>generate-sources</phase>
838 <goal>add-source</goal>
842 <source>src/main/groovy</source>
847 <id>add-test-source-groovy-ajsc-arch-parent</id>
848 <phase>generate-test-sources</phase>
850 <goal>add-test-source</goal>
854 <source>src/test/groovy</source>
859 <id>regex-properties-ajsc-arch-parent</id>
860 <phase>initialize</phase>
862 <goal>regex-properties</goal>
865 <regexPropertySettings>
866 <regexPropertySetting>
867 <name>replaceWinFilePath</name>
868 <value>${runAjscHome}</value>
870 <replacement>/</replacement>
871 <failIfNoMatch>false</failIfNoMatch>
872 </regexPropertySetting>
873 <regexPropertySetting>
874 <name>replaceWinBasedirPath</name>
875 <value>${basedir}</value>
877 <replacement>/</replacement>
878 <failIfNoMatch>false</failIfNoMatch>
879 </regexPropertySetting>
880 </regexPropertySettings>
886 <groupId>org.codehaus.mojo</groupId>
887 <artifactId>properties-maven-plugin</artifactId>
888 <version>1.0-alpha-2</version>
891 <id>write-project-properties-ajsc-arch-parent</id>
892 <phase>generate-resources</phase>
894 <goal>write-project-properties</goal>
898 ${project.build.outputDirectory}/build.properties
905 <groupId>org.apache.maven.plugins</groupId>
906 <artifactId>maven-assembly-plugin</artifactId>
907 <version>2.4</version>
910 <id>make-assembly-ajsc-arch-parent</id>
911 <phase>package</phase>
918 <finalName>${project.artifactId}</finalName>
920 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
925 <groupId>org.codehaus.groovy.maven</groupId>
926 <artifactId>gmaven-plugin</artifactId>
927 <version>1.0</version>
930 <id>gmaven-ajsc-arch-parent</id>
931 <phase>package</phase>
936 <sourcepath>src/main/groovy</sourcepath>
938 import ajsc.AssemblyService;
939 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
946 <groupId>org.apache.maven.plugins</groupId>
947 <artifactId>maven-antrun-plugin</artifactId>
948 <version>1.7</version>
951 <id>prep_service_runtime-ajsc-arch-parent</id>
952 <phase>generate-resources</phase>
954 <target name="prep_service_runtime">
955 <echo message="ENTERING 'copy_services_template' ant tasks" />
956 <!-- <filter token="basedir" value="${basedir}" /> -->
957 <!-- delete any prior stating stuff before package phase -->
958 <delete dir="target/versioned-ajsc" includes="**/*" />
959 <delete dir="target/versioned-runtime" includes="**/*" />
960 <delete dir="target/CDP" includes="**/*" />
962 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
963 is replaced by module.ajsc.namespace.name) -->
964 <copy todir="target/versioned-ajsc">
965 <fileset dir="src/main/ajsc" includes="**/*" />
968 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
969 directory for future use by replacer plugin -->
970 <copy todir="target/CDP" failonerror="false">
971 <fileset dir="CDP" includes="**/*.sh" />
973 <copy flatten="true" file="CDP/SampleBlueprint.xml"
975 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
976 <copy todir="target/staticContent" failonerror="false">
977 <fileset dir="staticContent" includes="**/*" />
979 <copy todir="target/bundleconfig" failonerror="false">
980 <!-- filtering="true"> -->
981 <fileset dir="bundleconfig" />
984 <echo message="EXITING 'copy_services_template' ant tasks" />
985 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
986 <copy todir="target/versioned-runtime">
987 <fileset dir="src/main/runtime" includes="**/*" />
990 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
992 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
993 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
995 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
997 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
998 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1000 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1001 <copy flatten="true"
1002 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1003 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1005 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1006 <copy flatten="true"
1007 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1008 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1009 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1018 <phase>package</phase>
1022 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1023 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1031 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1032 <phase>package</phase>
1034 <target name="prep_home_directory_for_swm_pkgcreate">
1035 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1045 <groupId>org.apache.maven.plugins</groupId>
1046 <artifactId>maven-dependency-plugin</artifactId>
1047 <version>2.8</version>
1050 <id>copy-dependencies-ajsc-arch-parent</id>
1051 <phase>prepare-package</phase>
1053 <goal>copy-dependencies</goal>
1056 <includeScope>runtime</includeScope>
1057 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1058 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1059 <silent>true</silent>
1063 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1064 <phase>prepare-package</phase>
1066 <goal>copy-dependencies</goal>
1069 <includeScope>provided</includeScope>
1070 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1071 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1072 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1073 <silent>true</silent>
1078 <phase>prepare-package</phase>
1080 <goal>copy-dependencies</goal>
1083 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1084 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1090 <artifactId>maven-resources-plugin</artifactId>
1091 <version>2.7</version>
1095 <phase>package</phase>
1097 <goal>copy-resources</goal>
1100 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1103 <directory>src/main/config</directory>
1110 <phase>package</phase>
1112 <goal>copy-resources</goal>
1115 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1118 <directory>src/main/scripts</directory>
1124 <id>copy-docker-file</id>
1125 <phase>prepare-package</phase>
1127 <goal>copy-resources</goal>
1130 <outputDirectory>${dockerLocation}</outputDirectory>
1131 <overwrite>true</overwrite>
1134 <directory>${basedir}/src/main/resources/docker</directory>
1135 <filtering>true</filtering>
1137 <include>**/*</include>
1148 <groupId>com.google.code.maven-replacer-plugin</groupId>
1149 <artifactId>replacer</artifactId>
1150 <version>1.5.2</version>
1153 <id>google-replacer-ajsc-arch-parent</id>
1154 <phase>prepare-package</phase>
1156 <goal>replace</goal>
1159 <basedir>${project.build.directory}</basedir>
1161 <include>staticContent/**/*.html</include>
1162 <include>CDP/**</include>
1163 <include>bundleconfig/**</include>
1164 <include>versioned-runtime/**/*.context</include>
1165 <include>versioned-runtime/**/*.json</include>
1166 <include>versioned-ajsc/**/*.route</include>
1167 <include>versioned-ajsc/**/*.groovy</include>
1168 <include>versioned-ajsc/**/*.xml</include>
1169 <include>classes/*.properties</include>
1170 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1172 <escape>true</escape>
1175 <token>__module_ajsc_namespace_name__</token>
1176 <value>${module.ajsc.namespace.name}</value>
1179 <token>__module_ajsc_namespace_version__</token>
1180 <value>${module.ajsc.namespace.version}</value>
1183 <token>__ajscHome__</token>
1184 <value>${replaceWinFilePath}</value>
1187 <token>__projectGroupId__</token>
1188 <value>${project.groupId}</value>
1191 <token>__projectArtifactId__</token>
1192 <value>${project.artifactId}</value>
1195 <token>__projectVersion__</token>
1196 <value>${project.version}</value>
1199 <token>__basedir__</token>
1200 <value>${replaceWinBasedirPath}</value>
1211 <groupId>org.apache.maven.plugins</groupId>
1212 <artifactId>maven-surefire-plugin</artifactId>
1213 <version>2.14.1</version>
1216 <exclude>**/AbstractTest.java</exclude>