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.2.1</version>
22 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23 <artifactId>dmaapMR1</artifactId>
24 <version>1.1.14-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>
52 <groupId>org.apache.maven.plugins</groupId>
53 <artifactId>maven-site-plugin</artifactId>
54 <version>3.6</version>
57 <groupId>org.apache.maven.wagon</groupId>
58 <artifactId>wagon-webdav-jackrabbit</artifactId>
59 <version>2.10</version>
65 <groupId>org.apache.maven.plugins</groupId>
66 <artifactId>maven-jar-plugin</artifactId>
67 <version>3.0.2</version>
70 <groupId>org.apache.maven.plugins</groupId>
71 <artifactId>maven-source-plugin</artifactId>
72 <version>3.0.0</version>
75 <id>attach-sources</id>
77 <goal>jar-no-fork</goal>
83 <groupId>org.apache.maven.plugins</groupId>
84 <artifactId>maven-release-plugin</artifactId>
85 <version>2.5.3</version>
87 <autoVersionSubmodules>true</autoVersionSubmodules>
88 <checkModificationExcludes>
89 </checkModificationExcludes>
93 <groupId>org.apache.maven.scm</groupId>
94 <artifactId>maven-scm-provider-gitexe</artifactId>
95 <version>1.9.4</version>
102 <groupId>com.blackducksoftware.integration</groupId>
103 <artifactId>hub-maven-plugin</artifactId>
104 <version>1.0.4</version>
105 <inherited>false</inherited>
107 <target>${project.basedir}</target>
111 <id>create-bdio-file</id>
112 <phase>package</phase>
114 <goal>createHubOutput</goal>
120 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
121 <version>3.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId>
122 <verbose>true</verbose> <source>1.7</source> <target>1.7</target> </configuration>
123 <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId>
124 <version>2.8.0-01</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId>
125 <artifactId>groovy-eclipse-batch</artifactId> <version>2.1.5-03</version>
126 </dependency> </dependencies> </plugin> -->
128 <groupId>org.codehaus.groovy</groupId>
129 <artifactId>groovy-eclipse-compiler</artifactId>
130 <version>2.8.0-01</version>
131 <extensions>true</extensions>
138 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
139 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
140 <docker.image.prefix>simpledemo</docker.image.prefix>
141 <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
142 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
143 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
144 <ajscRuntimeVersion>3.0.10-oss</ajscRuntimeVersion>
146 <!-- This will be the Absolute Root of the Project and should contain NO
148 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
149 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
150 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
151 For NO Versioning, leave as is -->
152 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
153 ${project.version} to ${runAjscHome} for running locally. -->
154 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
155 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
156 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
158 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
159 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
160 <!-- For SOA Cloud Installation -->
161 <installOwnerUser>msgrtr</installOwnerUser>
162 <installOwnerGroup>dmaap</installOwnerGroup>
163 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
164 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
165 For local testing, you may choose to hardcode this value to something like
167 <serverPort>3904</serverPort>
168 <sslport>3905</sslport>
169 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
170 <testRouteOffer>workstation</testRouteOffer>
171 <testEnv>DEV</testEnv>
172 <!-- <dmaapImg>${project.version}</dmaapImg> -->
173 <timestamp>${maven.build.timestamp}</timestamp>
174 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
175 <camel.version>2.21.1</camel.version>
176 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
177 <skip.docker.build>true</skip.docker.build>
178 <skip.docker.tag>true</skip.docker.tag>
179 <skip.docker.push>true</skip.docker.push>
180 <nexusproxy>https://nexus.onap.org</nexusproxy>
181 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
182 <spring.version>3.2.18.RELEASE</spring.version>
185 <!-- Distribution management -->
186 <distributionManagement>
189 <url>dav:${nexusproxy}${sitePath}</url>
191 </distributionManagement>
193 <!-- End Distribution management -->
195 <!-- The standard build tasks for this project are inherited from the parent.
196 Please do not override the build tasks. However tasks and/or profiles can
197 be included here as well as additional dependencies for your service. Any
198 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
199 folder and will be made available on the AJSC classpath for your service.
200 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
201 CSI environment. Therefore, they are provided within this project as "provided"
202 dependencies. In order for the AJSC to run properly, locally, the CSM and
203 DME2 dependencies will be copied into the target/commonLibs folder and will
204 be made available to the classpath of the AJSC through the use of the system
205 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
206 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
207 so). If you have a startup failure related to a missing dme2 class not found
208 exception, please contact the AJSC team for assistance. You can email support
209 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
210 the usage of the AJSC service pom.xml and management of dependencies, -->
213 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
216 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
217 <version>112.0.50</version> </dependency> -->
218 <!-- TODO: add open source version here -->
222 <groupId>com.sun.mail</groupId>
223 <artifactId>javax.mail</artifactId>
224 <version>1.6.0</version>
226 <!-- javax activation is part of the JDK now -->
228 <groupId>javax.activation</groupId>
229 <artifactId>activation</artifactId>
234 <groupId>com.sun.xml.bind</groupId>
235 <artifactId>jaxb-core</artifactId>
236 <version>2.3.0.1</version>
237 <scope>compile</scope>
240 <groupId>com.sun.xml.bind</groupId>
241 <artifactId>jaxb-impl</artifactId>
242 <version>2.3.0.1</version>
243 <scope>compile</scope>
246 <artifactId>jsr181-api</artifactId>
247 <groupId>javax.jws</groupId>
253 <groupId>org.apache.cxf</groupId>
254 <artifactId>cxf-rt-transports-http</artifactId>
255 <version>3.2.5</version>
259 <groupId>com.att.cadi</groupId>
260 <artifactId>cadi-core</artifactId>
261 <version>1.3.0</version>
264 <groupId>com.att.aft</groupId>
265 <artifactId>dme2</artifactId>
266 <version>3.1.200-oss</version>
269 <groupId>org.springframework</groupId>
270 <artifactId>spring-expression</artifactId>
271 <version>4.3.18.RELEASE</version>
274 <groupId>org.springframework</groupId>
275 <artifactId>spring-messaging</artifactId>
276 <version>4.1.9.RELEASE</version>
278 <!-- <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId>
279 <version>${javax-mail-version}</version> <exclusions> javax activation is
280 part of the JDK now <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId>
281 </exclusion> </exclusions> </dependency> -->
284 <groupId>org.apache.zookeeper</groupId>
285 <artifactId>zookeeper</artifactId>
286 <version>3.4.10</version>
289 <groupId>org.grails</groupId>
290 <artifactId>grails-bootstrap</artifactId>
291 <version>2.5.4</version>
292 <scope>compile</scope>
295 <artifactId>ant</artifactId>
296 <groupId>org.apache.ant</groupId>
299 <artifactId>jna</artifactId>
300 <groupId>net.java.dev.jna</groupId>
303 <artifactId>ant-trax</artifactId>
304 <groupId>org.apache.ant</groupId>
307 <artifactId>gant_groovy1.8</artifactId>
308 <groupId>org.codehaus.gant</groupId>
311 <artifactId>ant-launcher</artifactId>
312 <groupId>org.apache.ant</groupId>
315 <artifactId>jline</artifactId>
316 <groupId>jline</groupId>
319 <artifactId>ivy</artifactId>
320 <groupId>org.apache.ivy</groupId>
323 <artifactId>jansi</artifactId>
324 <groupId>org.fusesource.jansi</groupId>
327 <artifactId>commons-logging</artifactId>
328 <groupId>commons-logging</groupId>
331 <artifactId>ant-junit</artifactId>
332 <groupId>org.apache.ant</groupId>
337 <groupId>org.springframework</groupId>
338 <artifactId>spring-webmvc</artifactId>
339 <version>4.3.18.RELEASE</version>
342 <groupId>org.springframework</groupId>
343 <artifactId>spring-core</artifactId>
344 <version>4.3.18.RELEASE</version>
347 <groupId>org.springframework</groupId>
348 <artifactId>spring-beans</artifactId>
349 <version>4.3.18.RELEASE</version>
353 <groupId>org.springframework</groupId>
354 <artifactId>spring-context</artifactId>
355 <version>4.3.18.RELEASE</version>
358 <groupId>commons-io</groupId>
359 <artifactId>commons-io</artifactId>
360 <version>2.4</version>
363 <groupId>org.apache.commons</groupId>
364 <artifactId>commons-io</artifactId>
365 <version>1.3.2</version>
368 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
369 <artifactId>msgrtr</artifactId>
370 <version>1.1.17</version>
373 <groupId>org.slf4j</groupId>
374 <artifactId>slf4j-log4j12</artifactId>
377 <groupId>com.att.ajsc</groupId>
378 <artifactId>ajsc-core</artifactId>
381 <groupId>org.apache.tomcat</groupId>
382 <artifactId>tomcat-catalina</artifactId>
386 <groupId>org.apache.tomcat.embed</groupId>
387 <artifactId>tomcat-embed-core</artifactId>
390 <groupId>org.apache.tomcat</groupId>
391 <artifactId>tomcat-util</artifactId>
393 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
396 <groupId>com.att.nsa</groupId>
397 <artifactId>tomcat-util</artifactId>
401 <groupId>commons-beanutils</groupId>
402 <artifactId>commons-beanutils</artifactId>
407 <groupId>org.mockito</groupId>
408 <artifactId>mockito-core</artifactId>
409 <version>1.10.19</version>
413 <groupId>org.powermock</groupId>
414 <artifactId>powermock-module-junit4</artifactId>
415 <version>1.6.4</version>
419 <groupId>org.powermock</groupId>
420 <artifactId>powermock-api-mockito</artifactId>
421 <version>1.6.4</version>
424 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
425 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
426 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
427 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
428 <version>1.9.13</version> </dependency> -->
431 <groupId>com.fasterxml.jackson.jaxrs</groupId>
432 <artifactId>jackson-jaxrs-json-provider</artifactId>
433 <version>2.2.3</version>
437 <groupId>com.fasterxml.jackson.core</groupId>
438 <artifactId>jackson-core</artifactId>
439 <version>2.8.11</version>
443 <groupId>com.fasterxml.jackson.core</groupId>
444 <artifactId>jackson-databind</artifactId>
445 <version>2.8.11.1</version>
448 <groupId>org.grails</groupId>
449 <artifactId>grails-web</artifactId>
450 <version>2.5.4</version>
453 <groupId>org.grails</groupId>
454 <artifactId>grails-web-jsp</artifactId>
459 <groupId>org.codehaus.groovy</groupId>
460 <artifactId>groovy-all</artifactId>
461 <version>2.4.8</version>
462 <scope>compile</scope>
465 <artifactId>jline</artifactId>
466 <groupId>jline</groupId>
472 <groupId>junit</groupId>
473 <artifactId>junit</artifactId>
474 <version>4.11</version>
479 <groupId>org.json</groupId>
480 <artifactId>json</artifactId>
481 <version>20131018</version>
484 <!-- CXF JAX-RS extension -->
486 <groupId>org.apache.cxf</groupId>
487 <artifactId>cxf-rt-rs-extension-providers</artifactId>
488 <version>3.2.2</version>
489 <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
490 </exclusion> </exclusions> -->
493 <groupId>org.apache.cxf</groupId>
494 <artifactId>cxf-core</artifactId>
498 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
499 <version>3.1.14</version> </dependency> -->
501 <groupId>org.codehaus.jettison</groupId>
502 <artifactId>jettison</artifactId>
503 <version>1.3.7</version>
506 <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId>
507 <version>1.6.1</version> <scope>provided</scope> </dependency> -->
509 <groupId>com.att.ajsc</groupId>
510 <artifactId>ajsc-archetype-parent</artifactId>
511 <version>3.0.10-oss</version>
516 <groupId>org.onap.aaf.authz</groupId>
517 <artifactId>aaf-cadi-aaf</artifactId>
518 <version>2.1.13</version>
521 <groupId>backport-util-concurrent</groupId>
522 <artifactId>backport-util-concurrent</artifactId>
523 <version>3.1</version>
526 <groupId>org.apache.camel</groupId>
527 <artifactId>camel-core</artifactId>
528 <version>${camel.version}</version>
531 <groupId>org.apache.camel</groupId>
532 <artifactId>camel-quartz</artifactId>
533 <version>${camel.version}</version>
536 <groupId>org.apache.camel</groupId>
537 <artifactId>camel-spring</artifactId>
538 <version>${camel.version}</version>
541 <groupId>org.apache.camel</groupId>
542 <artifactId>camel-restlet</artifactId>
543 <version>${camel.version}</version>
546 <artifactId>org.restlet</artifactId>
547 <groupId>org.restlet.jse</groupId>
552 <groupId>org.apache.camel</groupId>
553 <artifactId>camel-servlet</artifactId>
554 <version>${camel.version}</version>
555 <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
556 </exclusion> </exclusions> -->
558 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId>
559 <version>4.0</version> </dependency> -->
562 <groupId>org.apache.camel</groupId>
563 <artifactId>camel-http4</artifactId>
564 <version>${camel.version}</version>
567 <groupId>org.apache.geronimo.specs</groupId>
568 <artifactId>geronimo-servlet_2.5_spec</artifactId>
573 <groupId>org.apache.camel</groupId>
574 <artifactId>camel-groovy</artifactId>
575 <version>${camel.version}</version>
578 <groupId>org.apache.camel</groupId>
579 <artifactId>camel-twitter</artifactId>
580 <version>${camel.version}</version>
583 <groupId>org.apache.camel</groupId>
584 <artifactId>camel-mail</artifactId>
585 <version>${camel.version}</version>
588 <groupId>org.apache.camel</groupId>
589 <artifactId>camel-smpp</artifactId>
590 <version>${camel.version}</version>
593 <groupId>org.apache.camel</groupId>
594 <artifactId>camel-jms</artifactId>
595 <version>${camel.version}</version>
598 <groupId>org.apache.camel</groupId>
599 <artifactId>camel-script</artifactId>
600 <version>${camel.version}</version>
603 <groupId>org.apache.camel</groupId>
604 <artifactId>camel-xmpp</artifactId>
605 <version>${camel.version}</version>
608 <groupId>org.igniterealtime.smack</groupId>
609 <artifactId>smack-tcp</artifactId>
610 <version>4.1.0-rc1</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.10-oss</version>
621 <scope>runtime</scope>
624 <groupId>com.att.ajsc</groupId>
625 <artifactId>ajsc-core</artifactId>
626 <version>3.0.10-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. -->
639 <skip.docker.build>false</skip.docker.build>
640 <skip.docker.tag>false</skip.docker.tag>
641 <skip.docker.push>false</skip.docker.push>
646 <groupId>org.codehaus.groovy.maven</groupId>
647 <artifactId>gmaven-plugin</artifactId>
650 <phase>validate</phase>
656 <ver>${project.version}</ver>
657 <timestamp>${maven.build.timestamp}</timestamp>
660 println project.properties['ver'];
661 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
662 project.properties['dockertag1']=project.properties['ver'] + "-latest";
663 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
665 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
666 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
668 println 'docker tag 1: ' + project.properties['dockertag1'];
669 println 'docker tag 2: ' + project.properties['dockertag2'];
676 <groupId>io.fabric8</groupId>
677 <artifactId>docker-maven-plugin</artifactId>
678 <version>0.28.0</version>
680 <verbose>${docker.verbose}</verbose>
681 <apiVersion>${docker.apiVersion}</apiVersion>
682 <pullRegistry>${docker.pull.registry}</pullRegistry>
683 <pushRegistry>${docker.push.registry}</pushRegistry>
686 <name>onap/dmaap/dmaap-mr</name>
688 <cleanup>try</cleanup>
689 <dockerFileDir>${dockerLocation}</dockerFileDir>
690 <dockerFile>Dockerfile</dockerFile>
692 <tag>${dockertag1}</tag>
693 <tag>${dockertag2}</tag>
701 <id>generate-images</id>
702 <phase>install</phase>
709 <phase>deploy</phase>
723 <defaultGoal>initialize</defaultGoal>
726 <groupId>org.apache.maven.plugins</groupId>
727 <artifactId>maven-antrun-plugin</artifactId>
730 <phase>initialize</phase>
732 <target name="runLocal">
733 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
749 <defaultGoal>initialize</defaultGoal>
752 <groupId>org.codehaus.mojo</groupId>
753 <artifactId>exec-maven-plugin</artifactId>
754 <version>1.3.2</version>
757 <phase>initialize</phase>
762 <!-- In order to better mimic a SOA cloud installation of AJSC (and
763 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
764 to diagnose), within this profile used to run locally, we are NOT including
765 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
766 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
767 the only dependency required by this profile to run locally. -->
768 <includeProjectDependencies>false</includeProjectDependencies>
769 <includePluginDependencies>true</includePluginDependencies>
770 <executable>java</executable>
771 <mainClass>com.att.ajsc.runner.Runner</mainClass>
772 <executableDependency>
773 <groupId>com.att.ajsc</groupId>
774 <artifactId>ajsc-runner</artifactId>
775 </executableDependency>
776 <additionalClasspathElements>
777 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
778 </additionalClasspathElements>
780 <environmentVariables>
781 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
782 </environmentVariables>
784 <!-- Main AJSC System Properties below (necessary for proper startup) -->
788 <value>${runAjscHome}</value>
792 <value>${runAjscHome}</value>
795 <key>AJSC_CONF_HOME</key>
796 <value>${basedir}/bundleconfig-local</value>
799 <key>logback.configurationFile</key>
800 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
803 <key>com.att.eelf.logging.file</key>
804 <value>logback.xml</value>
807 <key>com.att.eelf.logging.path</key>
808 <value>${basedir}/ajsc-shared-config/etc</value>
811 <key>logging.config</key>
812 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
815 <key>AJSC_SHARED_CONFIG</key>
816 <value>${basedir}/ajsc-shared-config</value>
819 <!-- Please, NOTE: The following 2 system properties will normally
820 be set within the sys-props.properties file once deployed to a node. We are
821 setting them HERE to run locally to make more efficient use of maven variable
822 replacement for ${basedir} -->
823 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
824 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
826 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
827 <value>${basedir}/target/commonLibs</value>
829 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
830 files that may need to be added to the classpath. These files will be externalized
831 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
832 Failure to have these files on the classpath may result in errors thrown
833 by csm framework. -->
835 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
836 <value>${basedir}/ajsc-shared-config/etc</value>
840 <key>AJSC_SERVICE_NAMESPACE</key>
841 <value>${module.ajsc.namespace.name}</value>
844 <key>AJSC_SERVICE_VERSION</key>
845 <value>${module.ajsc.namespace.version}</value>
848 <key>SOACLOUD_SERVICE_VERSION</key>
849 <value>${project.version}</value>
852 <key>server.port</key>
853 <value>${serverPort}</value>
857 <!-- Command Line Arguments to add to the java command. Here, you
858 can specify the port as well as the Context you want your service to run
859 in. Use context=/ to run in an unnamed Context (Root Context). The default
860 configuration of the AJSC is to run under the / Context. Setting the port
861 here can aid during the development phase of your service. However, you can
862 leave this argument out entirely, and the AJSC will default to using an Ephemeral
865 <argument>context=/</argument>
866 <argument>port=${serverPort}</argument>
867 <argument>sslport=${sslport}</argument>
873 <executable>java</executable>
877 <groupId>com.att.ajsc</groupId>
878 <artifactId>ajsc-runner</artifactId>
879 <version>${ajscRuntimeVersion}</version>
888 <id>standardbuild</id>
897 <directory>src/main/resources</directory>
899 <exclude>extApps/*.*</exclude>
900 <exclude>${module.ajsc.namespace.name}/**</exclude>
904 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
906 <exclude>**/*.route</exclude>
907 <exclude>**/*.props</exclude>
908 <exclude>**/*.xslt</exclude>
909 <exclude>**/*.vm</exclude>
910 <exclude>**/*.jar</exclude>
911 <exclude>**/*.xml</exclude>
917 <groupId>org.apache.maven.plugins</groupId>
918 <artifactId>maven-compiler-plugin</artifactId>
919 <version>3.1</version>
922 <groupId>org.codehaus.groovy</groupId>
923 <artifactId>groovy-eclipse-compiler</artifactId>
924 <version>2.8.0-01</version>
925 <extensions>true</extensions>
929 <groupId>org.codehaus.mojo</groupId>
930 <artifactId>exec-maven-plugin</artifactId>
931 <version>1.2.1</version>
940 <executable>bash</executable>
942 <argument>runServer.sh</argument>
947 <groupId>org.codehaus.mojo</groupId>
948 <artifactId>build-helper-maven-plugin</artifactId>
949 <version>1.9</version>
952 <id>add-source-groovy-ajsc-arch-parent</id>
953 <phase>generate-sources</phase>
955 <goal>add-source</goal>
959 <source>src/main/groovy</source>
964 <id>add-test-source-groovy-ajsc-arch-parent</id>
965 <phase>generate-test-sources</phase>
967 <goal>add-test-source</goal>
971 <source>src/test/groovy</source>
976 <id>regex-properties-ajsc-arch-parent</id>
977 <phase>initialize</phase>
979 <goal>regex-properties</goal>
982 <regexPropertySettings>
983 <regexPropertySetting>
984 <name>replaceWinFilePath</name>
985 <value>${runAjscHome}</value>
987 <replacement>/</replacement>
988 <failIfNoMatch>false</failIfNoMatch>
989 </regexPropertySetting>
990 <regexPropertySetting>
991 <name>replaceWinBasedirPath</name>
992 <value>${basedir}</value>
994 <replacement>/</replacement>
995 <failIfNoMatch>false</failIfNoMatch>
996 </regexPropertySetting>
997 </regexPropertySettings>
1003 <groupId>org.codehaus.mojo</groupId>
1004 <artifactId>properties-maven-plugin</artifactId>
1005 <version>1.0-alpha-2</version>
1008 <id>write-project-properties-ajsc-arch-parent</id>
1009 <phase>generate-resources</phase>
1011 <goal>write-project-properties</goal>
1015 ${project.build.outputDirectory}/build.properties
1022 <groupId>org.apache.maven.plugins</groupId>
1023 <artifactId>maven-assembly-plugin</artifactId>
1024 <version>2.4</version>
1027 <id>make-assembly-ajsc-arch-parent</id>
1028 <phase>package</phase>
1035 <finalName>${project.artifactId}</finalName>
1037 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1042 <groupId>org.codehaus.groovy.maven</groupId>
1043 <artifactId>gmaven-plugin</artifactId>
1044 <version>1.0</version>
1047 <id>gmaven-ajsc-arch-parent</id>
1048 <phase>package</phase>
1050 <goal>execute</goal>
1053 <sourcepath>src/main/groovy</sourcepath>
1055 import ajsc.AssemblyService;
1056 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1063 <groupId>org.apache.maven.plugins</groupId>
1064 <artifactId>maven-antrun-plugin</artifactId>
1065 <version>1.7</version>
1068 <id>prep_service_runtime-ajsc-arch-parent</id>
1069 <phase>generate-resources</phase>
1071 <target name="prep_service_runtime">
1072 <echo message="ENTERING 'copy_services_template' ant tasks" />
1073 <!-- <filter token="basedir" value="${basedir}" /> -->
1074 <!-- delete any prior stating stuff before package phase -->
1075 <delete dir="target/versioned-ajsc" includes="**/*" />
1076 <delete dir="target/versioned-runtime" includes="**/*" />
1077 <delete dir="target/CDP" includes="**/*" />
1079 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1080 is replaced by module.ajsc.namespace.name) -->
1081 <copy todir="target/versioned-ajsc">
1082 <fileset dir="src/main/ajsc" includes="**/*" />
1085 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1086 directory for future use by replacer plugin -->
1087 <copy todir="target/CDP" failonerror="false">
1088 <fileset dir="CDP" includes="**/*.sh" />
1090 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1092 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1093 <copy todir="target/staticContent" failonerror="false">
1094 <fileset dir="staticContent" includes="**/*" />
1096 <copy todir="target/bundleconfig" failonerror="false">
1097 <!-- filtering="true"> -->
1098 <fileset dir="bundleconfig" />
1101 <echo message="EXITING 'copy_services_template' ant tasks" />
1102 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1103 <copy todir="target/versioned-runtime">
1104 <fileset dir="src/main/runtime" includes="**/*" />
1107 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1108 <copy flatten="true"
1109 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1110 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1112 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1113 <copy flatten="true"
1114 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1115 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1117 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1118 <copy flatten="true"
1119 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1120 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1122 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1123 <copy flatten="true"
1124 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1125 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1126 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1135 <phase>package</phase>
1139 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1140 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1148 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1149 <phase>package</phase>
1151 <target name="prep_home_directory_for_swm_pkgcreate">
1152 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1162 <groupId>org.apache.maven.plugins</groupId>
1163 <artifactId>maven-dependency-plugin</artifactId>
1164 <version>2.8</version>
1167 <id>copy-dependencies-ajsc-arch-parent</id>
1168 <phase>prepare-package</phase>
1170 <goal>copy-dependencies</goal>
1173 <includeScope>runtime</includeScope>
1174 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1175 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1176 <silent>true</silent>
1180 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1181 <phase>prepare-package</phase>
1183 <goal>copy-dependencies</goal>
1186 <includeScope>provided</includeScope>
1187 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1188 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1189 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1190 <silent>true</silent>
1195 <phase>prepare-package</phase>
1197 <goal>copy-dependencies</goal>
1200 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1201 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1207 <artifactId>maven-resources-plugin</artifactId>
1208 <version>2.7</version>
1212 <phase>package</phase>
1214 <goal>copy-resources</goal>
1217 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1220 <directory>src/main/config</directory>
1227 <phase>package</phase>
1229 <goal>copy-resources</goal>
1232 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1235 <directory>src/main/scripts</directory>
1241 <id>copy-docker-file</id>
1242 <phase>prepare-package</phase>
1244 <goal>copy-resources</goal>
1247 <outputDirectory>${dockerLocation}</outputDirectory>
1248 <overwrite>true</overwrite>
1251 <directory>${basedir}/src/main/resources/docker</directory>
1252 <filtering>true</filtering>
1254 <include>**/*</include>
1265 <groupId>com.google.code.maven-replacer-plugin</groupId>
1266 <artifactId>replacer</artifactId>
1267 <version>1.5.2</version>
1270 <id>google-replacer-ajsc-arch-parent</id>
1271 <phase>prepare-package</phase>
1273 <goal>replace</goal>
1276 <basedir>${project.build.directory}</basedir>
1278 <include>staticContent/**/*.html</include>
1279 <include>CDP/**</include>
1280 <include>bundleconfig/**</include>
1281 <include>versioned-runtime/**/*.context</include>
1282 <include>versioned-runtime/**/*.json</include>
1283 <include>versioned-ajsc/**/*.route</include>
1284 <include>versioned-ajsc/**/*.groovy</include>
1285 <include>versioned-ajsc/**/*.xml</include>
1286 <include>classes/*.properties</include>
1287 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1289 <escape>true</escape>
1292 <token>__module_ajsc_namespace_name__</token>
1293 <value>${module.ajsc.namespace.name}</value>
1296 <token>__module_ajsc_namespace_version__</token>
1297 <value>${module.ajsc.namespace.version}</value>
1300 <token>__ajscHome__</token>
1301 <value>${replaceWinFilePath}</value>
1304 <token>__projectGroupId__</token>
1305 <value>${project.groupId}</value>
1308 <token>__projectArtifactId__</token>
1309 <value>${project.artifactId}</value>
1312 <token>__projectVersion__</token>
1313 <value>${project.version}</value>
1316 <token>__basedir__</token>
1317 <value>${replaceWinBasedirPath}</value>
1328 <groupId>org.apache.maven.plugins</groupId>
1329 <artifactId>maven-surefire-plugin</artifactId>
1330 <version>2.14.1</version>
1333 <exclude>**/AbstractTest.java</exclude>