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>2.1.0</version>
22 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23 <artifactId>dmaapMR1</artifactId>
24 <version>1.1.18-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.jacoco</groupId>
52 <artifactId>jacoco-maven-plugin</artifactId>
55 <id>prepare-agent</id>
57 <goal>prepare-agent</goal>
66 <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
67 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
73 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-site-plugin</artifactId>
75 <version>3.6</version>
78 <groupId>org.apache.maven.wagon</groupId>
79 <artifactId>wagon-webdav-jackrabbit</artifactId>
80 <version>2.10</version>
86 <groupId>org.apache.maven.plugins</groupId>
87 <artifactId>maven-jar-plugin</artifactId>
88 <version>3.0.2</version>
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-source-plugin</artifactId>
93 <version>3.0.0</version>
96 <id>attach-sources</id>
98 <goal>jar-no-fork</goal>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-release-plugin</artifactId>
106 <version>2.5.3</version>
108 <autoVersionSubmodules>true</autoVersionSubmodules>
109 <checkModificationExcludes>
110 </checkModificationExcludes>
114 <groupId>org.apache.maven.scm</groupId>
115 <artifactId>maven-scm-provider-gitexe</artifactId>
116 <version>1.9.4</version>
123 <groupId>com.blackducksoftware.integration</groupId>
124 <artifactId>hub-maven-plugin</artifactId>
125 <version>1.0.4</version>
126 <inherited>false</inherited>
128 <target>${project.basedir}</target>
132 <id>create-bdio-file</id>
133 <phase>package</phase>
135 <goal>createHubOutput</goal>
141 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
142 <version>3.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId>
143 <verbose>true</verbose> <source>1.7</source> <target>1.7</target> </configuration>
144 <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId>
145 <version>2.8.0-01</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId>
146 <artifactId>groovy-eclipse-batch</artifactId> <version>2.1.5-03</version>
147 </dependency> </dependencies> </plugin> -->
149 <groupId>org.codehaus.groovy</groupId>
150 <artifactId>groovy-eclipse-compiler</artifactId>
151 <version>2.8.0-01</version>
152 <extensions>true</extensions>
159 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
160 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
161 <docker.image.prefix>simpledemo</docker.image.prefix>
162 <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
163 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
164 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
165 <ajscRuntimeVersion>3.0.11-oss</ajscRuntimeVersion>
167 <!-- This will be the Absolute Root of the Project and should contain NO
169 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
170 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
171 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
172 For NO Versioning, leave as is -->
173 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
174 ${project.version} to ${runAjscHome} for running locally. -->
175 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
176 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
177 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
179 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
180 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
181 <!-- For SOA Cloud Installation -->
182 <installOwnerUser>msgrtr</installOwnerUser>
183 <installOwnerGroup>dmaap</installOwnerGroup>
184 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
185 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
186 For local testing, you may choose to hardcode this value to something like
188 <serverPort>3904</serverPort>
189 <sslport>3905</sslport>
190 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
191 <testRouteOffer>workstation</testRouteOffer>
192 <testEnv>DEV</testEnv>
193 <!-- <dmaapImg>${project.version}</dmaapImg> -->
194 <timestamp>${maven.build.timestamp}</timestamp>
195 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
196 <camel.version>2.21.5</camel.version>
197 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
198 <skip.docker.build>true</skip.docker.build>
199 <skip.docker.tag>true</skip.docker.tag>
200 <skip.docker.push>true</skip.docker.push>
201 <nexusproxy>https://nexus.onap.org</nexusproxy>
202 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
203 <spring.version>3.2.18.RELEASE</spring.version>
204 <sonar.language>java</sonar.language>
205 <sonar.skip>false</sonar.skip>
206 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
207 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
208 <sonar.projectVersion>${project.version}</sonar.projectVersion>
211 <!-- Distribution management -->
212 <distributionManagement>
215 <url>dav:${nexusproxy}${sitePath}</url>
217 </distributionManagement>
219 <!-- End Distribution management -->
221 <!-- The standard build tasks for this project are inherited from the parent.
222 Please do not override the build tasks. However tasks and/or profiles can
223 be included here as well as additional dependencies for your service. Any
224 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
225 folder and will be made available on the AJSC classpath for your service.
226 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
227 CSI environment. Therefore, they are provided within this project as "provided"
228 dependencies. In order for the AJSC to run properly, locally, the CSM and
229 DME2 dependencies will be copied into the target/commonLibs folder and will
230 be made available to the classpath of the AJSC through the use of the system
231 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
232 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
233 so). If you have a startup failure related to a missing dme2 class not found
234 exception, please contact the AJSC team for assistance. You can email support
235 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
236 the usage of the AJSC service pom.xml and management of dependencies, -->
239 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
242 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
243 <version>112.0.50</version> </dependency> -->
244 <!-- TODO: add open source version here -->
248 <groupId>com.sun.mail</groupId>
249 <artifactId>javax.mail</artifactId>
250 <version>1.6.0</version>
252 <!-- javax activation is part of the JDK now -->
254 <groupId>javax.activation</groupId>
255 <artifactId>activation</artifactId>
260 <groupId>com.sun.xml.bind</groupId>
261 <artifactId>jaxb-core</artifactId>
262 <version>2.3.0.1</version>
263 <scope>compile</scope>
266 <groupId>com.sun.xml.bind</groupId>
267 <artifactId>jaxb-impl</artifactId>
268 <version>2.3.0.1</version>
269 <scope>compile</scope>
272 <artifactId>jsr181-api</artifactId>
273 <groupId>javax.jws</groupId>
279 <groupId>org.apache.cxf</groupId>
280 <artifactId>cxf-rt-transports-http</artifactId>
281 <version>3.2.5</version>
285 <groupId>com.att.cadi</groupId>
286 <artifactId>cadi-core</artifactId>
287 <version>1.3.0</version>
290 <groupId>com.att.aft</groupId>
291 <artifactId>dme2</artifactId>
292 <version>3.1.200-oss</version>
295 <groupId>org.springframework</groupId>
296 <artifactId>spring-expression</artifactId>
297 <version>4.3.18.RELEASE</version>
300 <groupId>org.springframework</groupId>
301 <artifactId>spring-messaging</artifactId>
302 <version>4.1.9.RELEASE</version>
304 <!-- <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId>
305 <version>${javax-mail-version}</version> <exclusions> javax activation is
306 part of the JDK now <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId>
307 </exclusion> </exclusions> </dependency> -->
310 <groupId>org.apache.zookeeper</groupId>
311 <artifactId>zookeeper</artifactId>
312 <version>3.4.14</version>
315 <groupId>org.slf4j</groupId>
316 <artifactId>slf4j-api</artifactId>
317 <version>1.6.1</version>
320 <groupId>org.slf4j</groupId>
321 <artifactId>slf4j-log4j12</artifactId>
322 <version>1.6.1</version>
326 <artifactId>*</artifactId>
332 <groupId>org.apache.kafka</groupId>
333 <artifactId>kafka_2.11</artifactId>
334 <version>2.3.0</version>
337 <groupId>commons-codec</groupId>
338 <artifactId>commons-codec</artifactId>
339 <version>1.14</version>
342 <groupId>commons-io</groupId>
343 <artifactId>commons-io</artifactId>
344 <version>2.7</version>
347 <groupId>org.quartz-scheduler</groupId>
348 <artifactId>quartz</artifactId>
349 <version>2.3.2</version>
352 <groupId>com.fasterxml.woodstox</groupId>
353 <artifactId>woodstox-core</artifactId>
354 <version>5.3.0</version>
357 <groupId>org.springframework</groupId>
358 <artifactId>spring-webmvc</artifactId>
359 <version>5.2.3.RELEASE</version>
362 <groupId>org.grails</groupId>
363 <artifactId>grails-bootstrap</artifactId>
364 <version>2.5.4</version>
365 <scope>compile</scope>
368 <artifactId>ant</artifactId>
369 <groupId>org.apache.ant</groupId>
372 <artifactId>jna</artifactId>
373 <groupId>net.java.dev.jna</groupId>
376 <artifactId>ant-trax</artifactId>
377 <groupId>org.apache.ant</groupId>
380 <artifactId>gant_groovy1.8</artifactId>
381 <groupId>org.codehaus.gant</groupId>
384 <artifactId>ant-launcher</artifactId>
385 <groupId>org.apache.ant</groupId>
388 <artifactId>jline</artifactId>
389 <groupId>jline</groupId>
392 <artifactId>ivy</artifactId>
393 <groupId>org.apache.ivy</groupId>
396 <artifactId>jansi</artifactId>
397 <groupId>org.fusesource.jansi</groupId>
400 <artifactId>commons-logging</artifactId>
401 <groupId>commons-logging</groupId>
404 <artifactId>ant-junit</artifactId>
405 <groupId>org.apache.ant</groupId>
410 <groupId>commons-fileupload</groupId>
411 <artifactId>commons-fileupload</artifactId>
412 <version>1.4</version>
415 <groupId>org.springframework</groupId>
416 <artifactId>spring-webmvc</artifactId>
417 <version>4.3.18.RELEASE</version>
420 <groupId>org.springframework</groupId>
421 <artifactId>spring-core</artifactId>
422 <version>4.3.18.RELEASE</version>
425 <groupId>org.springframework</groupId>
426 <artifactId>spring-beans</artifactId>
427 <version>4.3.18.RELEASE</version>
431 <groupId>org.springframework</groupId>
432 <artifactId>spring-context</artifactId>
433 <version>4.3.18.RELEASE</version>
436 <groupId>org.apache.commons</groupId>
437 <artifactId>commons-io</artifactId>
438 <version>1.3.2</version>
441 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
442 <artifactId>msgrtr</artifactId>
443 <version>1.1.22</version>
446 <groupId>org.apache.kafka</groupId>
447 <artifactId>kafka_2.11</artifactId>
450 <groupId>org.slf4j</groupId>
451 <artifactId>slf4j-log4j12</artifactId>
454 <groupId>com.att.ajsc</groupId>
455 <artifactId>ajsc-core</artifactId>
458 <groupId>org.apache.tomcat</groupId>
459 <artifactId>tomcat-catalina</artifactId>
463 <groupId>org.apache.tomcat.embed</groupId>
464 <artifactId>tomcat-embed-core</artifactId>
467 <groupId>org.apache.tomcat</groupId>
468 <artifactId>tomcat-util</artifactId>
470 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
473 <groupId>com.att.nsa</groupId>
474 <artifactId>tomcat-util</artifactId>
478 <groupId>commons-beanutils</groupId>
479 <artifactId>commons-beanutils</artifactId>
482 <groupId>javax.mail</groupId>
483 <artifactId>mail</artifactId>
488 <groupId>org.mockito</groupId>
489 <artifactId>mockito-core</artifactId>
490 <version>1.10.19</version>
494 <groupId>org.powermock</groupId>
495 <artifactId>powermock-module-junit4</artifactId>
496 <version>1.6.4</version>
500 <groupId>org.powermock</groupId>
501 <artifactId>powermock-api-mockito</artifactId>
502 <version>1.6.4</version>
505 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
506 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
507 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
508 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
509 <version>1.9.13</version> </dependency> -->
512 <groupId>com.fasterxml.jackson.jaxrs</groupId>
513 <artifactId>jackson-jaxrs-json-provider</artifactId>
514 <version>2.2.3</version>
518 <groupId>com.fasterxml.jackson.core</groupId>
519 <artifactId>jackson-core</artifactId>
520 <version>2.8.11</version>
524 <groupId>com.fasterxml.jackson.core</groupId>
525 <artifactId>jackson-databind</artifactId>
526 <version>2.8.11.1</version>
529 <groupId>org.grails</groupId>
530 <artifactId>grails-web</artifactId>
531 <version>2.5.4</version>
534 <groupId>org.grails</groupId>
535 <artifactId>grails-web-jsp</artifactId>
540 <groupId>org.codehaus.groovy</groupId>
541 <artifactId>groovy-all</artifactId>
542 <version>2.4.8</version>
543 <scope>compile</scope>
546 <artifactId>jline</artifactId>
547 <groupId>jline</groupId>
553 <groupId>junit</groupId>
554 <artifactId>junit</artifactId>
555 <version>4.11</version>
560 <groupId>org.json</groupId>
561 <artifactId>json</artifactId>
562 <version>20131018</version>
565 <!-- CXF JAX-RS extension -->
567 <groupId>org.apache.cxf</groupId>
568 <artifactId>cxf-rt-rs-extension-providers</artifactId>
569 <version>3.2.2</version>
570 <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
571 </exclusion> </exclusions> -->
574 <groupId>org.apache.cxf</groupId>
575 <artifactId>cxf-core</artifactId>
579 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
580 <version>3.1.14</version> </dependency> -->
582 <groupId>org.codehaus.jettison</groupId>
583 <artifactId>jettison</artifactId>
584 <version>1.3.7</version>
587 <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId>
588 <version>1.6.1</version> <scope>provided</scope> </dependency> -->
590 <groupId>com.att.ajsc</groupId>
591 <artifactId>ajsc-archetype-parent</artifactId>
592 <version>3.0.11-oss</version>
597 <groupId>org.onap.aaf.authz</groupId>
598 <artifactId>aaf-cadi-aaf</artifactId>
599 <version>2.1.13</version>
602 <groupId>backport-util-concurrent</groupId>
603 <artifactId>backport-util-concurrent</artifactId>
604 <version>3.1</version>
607 <groupId>org.apache.camel</groupId>
608 <artifactId>camel-core</artifactId>
609 <version>${camel.version}</version>
612 <groupId>org.apache.camel</groupId>
613 <artifactId>camel-quartz</artifactId>
614 <version>${camel.version}</version>
617 <groupId>org.apache.camel</groupId>
618 <artifactId>camel-spring</artifactId>
619 <version>${camel.version}</version>
622 <groupId>org.apache.camel</groupId>
623 <artifactId>camel-restlet</artifactId>
624 <version>${camel.version}</version>
627 <artifactId>org.restlet</artifactId>
628 <groupId>org.restlet.jse</groupId>
633 <groupId>org.apache.camel</groupId>
634 <artifactId>camel-servlet</artifactId>
635 <version>${camel.version}</version>
636 <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
637 </exclusion> </exclusions> -->
639 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId>
640 <version>4.0</version> </dependency> -->
643 <groupId>org.apache.camel</groupId>
644 <artifactId>camel-http4</artifactId>
645 <version>${camel.version}</version>
648 <groupId>org.apache.geronimo.specs</groupId>
649 <artifactId>geronimo-servlet_2.5_spec</artifactId>
654 <groupId>org.apache.camel</groupId>
655 <artifactId>camel-groovy</artifactId>
656 <version>${camel.version}</version>
659 <groupId>org.apache.camel</groupId>
660 <artifactId>camel-twitter</artifactId>
661 <version>${camel.version}</version>
664 <groupId>org.apache.camel</groupId>
665 <artifactId>camel-mail</artifactId>
666 <version>${camel.version}</version>
669 <groupId>org.apache.camel</groupId>
670 <artifactId>camel-smpp</artifactId>
671 <version>${camel.version}</version>
674 <groupId>org.apache.camel</groupId>
675 <artifactId>camel-jms</artifactId>
676 <version>${camel.version}</version>
679 <groupId>org.apache.camel</groupId>
680 <artifactId>camel-script</artifactId>
681 <version>${camel.version}</version>
684 <groupId>org.apache.camel</groupId>
685 <artifactId>camel-xmpp</artifactId>
686 <version>${camel.version}</version>
689 <groupId>org.igniterealtime.smack</groupId>
690 <artifactId>smack-tcp</artifactId>
691 <version>4.1.0-rc1</version>
694 <groupId>org.apache.camel</groupId>
695 <artifactId>camel-velocity</artifactId>
696 <version>${camel.version}</version>
699 <groupId>com.att.ajsc</groupId>
700 <artifactId>ajsc-runner</artifactId>
701 <version>3.0.11-oss</version>
702 <scope>runtime</scope>
705 <groupId>com.att.ajsc</groupId>
706 <artifactId>ajsc-core</artifactId>
707 <version>3.0.11-oss</version>
708 <scope>provided</scope>
711 <groupId>org.springframework</groupId>
712 <artifactId>spring-test</artifactId>
713 <version>3.2.12.RELEASE</version>
717 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
718 </resource> </resources> </build> -->
720 <!-- Use this profile to run the AJSC locally. This profile can be successfully
721 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
722 available with this profile. -->
726 <skip.docker.build>false</skip.docker.build>
727 <skip.docker.tag>false</skip.docker.tag>
728 <skip.docker.push>false</skip.docker.push>
733 <groupId>org.codehaus.groovy.maven</groupId>
734 <artifactId>gmaven-plugin</artifactId>
737 <phase>validate</phase>
743 <ver>${project.version}</ver>
744 <timestamp>${maven.build.timestamp}</timestamp>
747 println project.properties['ver'];
748 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
749 project.properties['dockertag1']=project.properties['ver'] + "-latest";
750 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
752 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
753 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
755 println 'docker tag 1: ' + project.properties['dockertag1'];
756 println 'docker tag 2: ' + project.properties['dockertag2'];
763 <groupId>io.fabric8</groupId>
764 <artifactId>docker-maven-plugin</artifactId>
765 <version>0.28.0</version>
767 <verbose>${docker.verbose}</verbose>
768 <apiVersion>${docker.apiVersion}</apiVersion>
769 <pullRegistry>${docker.pull.registry}</pullRegistry>
770 <pushRegistry>${docker.push.registry}</pushRegistry>
773 <name>onap/dmaap/dmaap-mr</name>
775 <cleanup>try</cleanup>
776 <dockerFileDir>${dockerLocation}</dockerFileDir>
777 <dockerFile>Dockerfile</dockerFile>
779 <tag>${dockertag1}</tag>
780 <tag>${dockertag2}</tag>
788 <id>generate-images</id>
789 <phase>install</phase>
796 <phase>deploy</phase>
810 <defaultGoal>initialize</defaultGoal>
813 <groupId>org.apache.maven.plugins</groupId>
814 <artifactId>maven-antrun-plugin</artifactId>
817 <phase>initialize</phase>
819 <target name="runLocal">
820 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
836 <defaultGoal>initialize</defaultGoal>
839 <groupId>org.codehaus.mojo</groupId>
840 <artifactId>exec-maven-plugin</artifactId>
841 <version>1.3.2</version>
844 <phase>initialize</phase>
849 <!-- In order to better mimic a SOA cloud installation of AJSC (and
850 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
851 to diagnose), within this profile used to run locally, we are NOT including
852 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
853 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
854 the only dependency required by this profile to run locally. -->
855 <includeProjectDependencies>false</includeProjectDependencies>
856 <includePluginDependencies>true</includePluginDependencies>
857 <executable>java</executable>
858 <mainClass>com.att.ajsc.runner.Runner</mainClass>
859 <executableDependency>
860 <groupId>com.att.ajsc</groupId>
861 <artifactId>ajsc-runner</artifactId>
862 </executableDependency>
863 <additionalClasspathElements>
864 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
865 </additionalClasspathElements>
867 <environmentVariables>
868 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
869 </environmentVariables>
871 <!-- Main AJSC System Properties below (necessary for proper startup) -->
875 <value>${runAjscHome}</value>
879 <value>${runAjscHome}</value>
882 <key>AJSC_CONF_HOME</key>
883 <value>${basedir}/bundleconfig-local</value>
886 <key>logback.configurationFile</key>
887 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
890 <key>com.att.eelf.logging.file</key>
891 <value>logback.xml</value>
894 <key>com.att.eelf.logging.path</key>
895 <value>${basedir}/ajsc-shared-config/etc</value>
898 <key>logging.config</key>
899 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
902 <key>AJSC_SHARED_CONFIG</key>
903 <value>${basedir}/ajsc-shared-config</value>
906 <!-- Please, NOTE: The following 2 system properties will normally
907 be set within the sys-props.properties file once deployed to a node. We are
908 setting them HERE to run locally to make more efficient use of maven variable
909 replacement for ${basedir} -->
910 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
911 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
913 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
914 <value>${basedir}/target/commonLibs</value>
916 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
917 files that may need to be added to the classpath. These files will be externalized
918 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
919 Failure to have these files on the classpath may result in errors thrown
920 by csm framework. -->
922 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
923 <value>${basedir}/ajsc-shared-config/etc</value>
927 <key>AJSC_SERVICE_NAMESPACE</key>
928 <value>${module.ajsc.namespace.name}</value>
931 <key>AJSC_SERVICE_VERSION</key>
932 <value>${module.ajsc.namespace.version}</value>
935 <key>SOACLOUD_SERVICE_VERSION</key>
936 <value>${project.version}</value>
939 <key>server.port</key>
940 <value>${serverPort}</value>
944 <!-- Command Line Arguments to add to the java command. Here, you
945 can specify the port as well as the Context you want your service to run
946 in. Use context=/ to run in an unnamed Context (Root Context). The default
947 configuration of the AJSC is to run under the / Context. Setting the port
948 here can aid during the development phase of your service. However, you can
949 leave this argument out entirely, and the AJSC will default to using an Ephemeral
952 <argument>context=/</argument>
953 <argument>port=${serverPort}</argument>
954 <argument>sslport=${sslport}</argument>
960 <executable>java</executable>
964 <groupId>com.att.ajsc</groupId>
965 <artifactId>ajsc-runner</artifactId>
966 <version>${ajscRuntimeVersion}</version>
975 <id>standardbuild</id>
984 <directory>src/main/resources</directory>
986 <exclude>extApps/*.*</exclude>
987 <exclude>${module.ajsc.namespace.name}/**</exclude>
991 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
993 <exclude>**/*.route</exclude>
994 <exclude>**/*.props</exclude>
995 <exclude>**/*.xslt</exclude>
996 <exclude>**/*.vm</exclude>
997 <exclude>**/*.jar</exclude>
998 <exclude>**/*.xml</exclude>
1004 <groupId>org.apache.maven.plugins</groupId>
1005 <artifactId>maven-compiler-plugin</artifactId>
1006 <version>3.1</version>
1009 <groupId>org.codehaus.groovy</groupId>
1010 <artifactId>groovy-eclipse-compiler</artifactId>
1011 <version>2.8.0-01</version>
1012 <extensions>true</extensions>
1016 <groupId>org.codehaus.mojo</groupId>
1017 <artifactId>exec-maven-plugin</artifactId>
1018 <version>1.2.1</version>
1027 <executable>bash</executable>
1029 <argument>runServer.sh</argument>
1034 <groupId>org.codehaus.mojo</groupId>
1035 <artifactId>build-helper-maven-plugin</artifactId>
1036 <version>1.9</version>
1039 <id>add-source-groovy-ajsc-arch-parent</id>
1040 <phase>generate-sources</phase>
1042 <goal>add-source</goal>
1046 <source>src/main/groovy</source>
1051 <id>add-test-source-groovy-ajsc-arch-parent</id>
1052 <phase>generate-test-sources</phase>
1054 <goal>add-test-source</goal>
1058 <source>src/test/groovy</source>
1063 <id>regex-properties-ajsc-arch-parent</id>
1064 <phase>initialize</phase>
1066 <goal>regex-properties</goal>
1069 <regexPropertySettings>
1070 <regexPropertySetting>
1071 <name>replaceWinFilePath</name>
1072 <value>${runAjscHome}</value>
1074 <replacement>/</replacement>
1075 <failIfNoMatch>false</failIfNoMatch>
1076 </regexPropertySetting>
1077 <regexPropertySetting>
1078 <name>replaceWinBasedirPath</name>
1079 <value>${basedir}</value>
1081 <replacement>/</replacement>
1082 <failIfNoMatch>false</failIfNoMatch>
1083 </regexPropertySetting>
1084 </regexPropertySettings>
1090 <groupId>org.codehaus.mojo</groupId>
1091 <artifactId>properties-maven-plugin</artifactId>
1092 <version>1.0-alpha-2</version>
1095 <id>write-project-properties-ajsc-arch-parent</id>
1096 <phase>generate-resources</phase>
1098 <goal>write-project-properties</goal>
1102 ${project.build.outputDirectory}/build.properties
1109 <groupId>org.apache.maven.plugins</groupId>
1110 <artifactId>maven-assembly-plugin</artifactId>
1111 <version>2.4</version>
1114 <id>make-assembly-ajsc-arch-parent</id>
1115 <phase>package</phase>
1122 <finalName>${project.artifactId}</finalName>
1124 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1129 <groupId>org.codehaus.groovy.maven</groupId>
1130 <artifactId>gmaven-plugin</artifactId>
1131 <version>1.0</version>
1134 <id>gmaven-ajsc-arch-parent</id>
1135 <phase>package</phase>
1137 <goal>execute</goal>
1140 <sourcepath>src/main/groovy</sourcepath>
1142 import ajsc.AssemblyService;
1143 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1150 <groupId>org.apache.maven.plugins</groupId>
1151 <artifactId>maven-antrun-plugin</artifactId>
1152 <version>1.7</version>
1155 <id>prep_service_runtime-ajsc-arch-parent</id>
1156 <phase>generate-resources</phase>
1158 <target name="prep_service_runtime">
1159 <echo message="ENTERING 'copy_services_template' ant tasks" />
1160 <!-- <filter token="basedir" value="${basedir}" /> -->
1161 <!-- delete any prior stating stuff before package phase -->
1162 <delete dir="target/versioned-ajsc" includes="**/*" />
1163 <delete dir="target/versioned-runtime" includes="**/*" />
1164 <delete dir="target/CDP" includes="**/*" />
1166 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1167 is replaced by module.ajsc.namespace.name) -->
1168 <copy todir="target/versioned-ajsc">
1169 <fileset dir="src/main/ajsc" includes="**/*" />
1172 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1173 directory for future use by replacer plugin -->
1174 <copy todir="target/CDP" failonerror="false">
1175 <fileset dir="CDP" includes="**/*.sh" />
1177 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1179 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1180 <copy todir="target/staticContent" failonerror="false">
1181 <fileset dir="staticContent" includes="**/*" />
1183 <copy todir="target/bundleconfig" failonerror="false">
1184 <!-- filtering="true"> -->
1185 <fileset dir="bundleconfig" />
1188 <echo message="EXITING 'copy_services_template' ant tasks" />
1189 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1190 <copy todir="target/versioned-runtime">
1191 <fileset dir="src/main/runtime" includes="**/*" />
1194 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1195 <copy flatten="true"
1196 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1197 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1199 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1200 <copy flatten="true"
1201 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1202 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1204 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1205 <copy flatten="true"
1206 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1207 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1209 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1210 <copy flatten="true"
1211 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1212 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1213 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1222 <phase>package</phase>
1226 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1227 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1235 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1236 <phase>package</phase>
1238 <target name="prep_home_directory_for_swm_pkgcreate">
1239 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1249 <groupId>org.apache.maven.plugins</groupId>
1250 <artifactId>maven-dependency-plugin</artifactId>
1251 <version>2.8</version>
1254 <id>copy-dependencies-ajsc-arch-parent</id>
1255 <phase>prepare-package</phase>
1257 <goal>copy-dependencies</goal>
1260 <includeScope>runtime</includeScope>
1261 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1262 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1263 <silent>true</silent>
1267 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1268 <phase>prepare-package</phase>
1270 <goal>copy-dependencies</goal>
1273 <includeScope>provided</includeScope>
1274 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1275 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1276 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1277 <silent>true</silent>
1282 <phase>prepare-package</phase>
1284 <goal>copy-dependencies</goal>
1287 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1288 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1294 <artifactId>maven-resources-plugin</artifactId>
1295 <version>2.7</version>
1299 <phase>package</phase>
1301 <goal>copy-resources</goal>
1304 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1307 <directory>src/main/config</directory>
1314 <phase>package</phase>
1316 <goal>copy-resources</goal>
1319 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1322 <directory>src/main/scripts</directory>
1328 <id>copy-docker-file</id>
1329 <phase>prepare-package</phase>
1331 <goal>copy-resources</goal>
1334 <outputDirectory>${dockerLocation}</outputDirectory>
1335 <overwrite>true</overwrite>
1338 <directory>${basedir}/src/main/resources/docker</directory>
1339 <filtering>true</filtering>
1341 <include>**/*</include>
1352 <groupId>com.google.code.maven-replacer-plugin</groupId>
1353 <artifactId>replacer</artifactId>
1354 <version>1.5.2</version>
1357 <id>google-replacer-ajsc-arch-parent</id>
1358 <phase>prepare-package</phase>
1360 <goal>replace</goal>
1363 <basedir>${project.build.directory}</basedir>
1365 <include>staticContent/**/*.html</include>
1366 <include>CDP/**</include>
1367 <include>bundleconfig/**</include>
1368 <include>versioned-runtime/**/*.context</include>
1369 <include>versioned-runtime/**/*.json</include>
1370 <include>versioned-ajsc/**/*.route</include>
1371 <include>versioned-ajsc/**/*.groovy</include>
1372 <include>versioned-ajsc/**/*.xml</include>
1373 <include>classes/*.properties</include>
1374 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1376 <escape>true</escape>
1379 <token>__module_ajsc_namespace_name__</token>
1380 <value>${module.ajsc.namespace.name}</value>
1383 <token>__module_ajsc_namespace_version__</token>
1384 <value>${module.ajsc.namespace.version}</value>
1387 <token>__ajscHome__</token>
1388 <value>${replaceWinFilePath}</value>
1391 <token>__projectGroupId__</token>
1392 <value>${project.groupId}</value>
1395 <token>__projectArtifactId__</token>
1396 <value>${project.artifactId}</value>
1399 <token>__projectVersion__</token>
1400 <value>${project.version}</value>
1403 <token>__basedir__</token>
1404 <value>${replaceWinBasedirPath}</value>
1415 <groupId>org.apache.maven.plugins</groupId>
1416 <artifactId>maven-surefire-plugin</artifactId>
1417 <version>2.14.1</version>
1420 <exclude>**/AbstractTest.java</exclude>