1 <!-- ============LICENSE_START====================================================
3 ================================================================================
4 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
5 Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 use this file except in compliance with the License. You may obtain a copy
7 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
8 by applicable law or agreed to in writing, software distributed under the
9 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
10 OF ANY KIND, either express or implied. See the License for the specific
11 language governing permissions and limitations under the License.
12 ============LICENSE_END=========================================================
13 ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
14 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
16 <modelVersion>4.0.0</modelVersion>
19 <groupId>org.onap.oparent</groupId>
20 <artifactId>oparent</artifactId>
21 <version>3.2.0</version>
24 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
25 <artifactId>dmaapMR1</artifactId>
26 <version>1.3.0-SNAPSHOT</version>
27 <name>dmaap-messagerouter-messageservice</name>
28 <description>Message Router - Restful interface built for kafka</description>
31 <name>Apache License Version 2.0</name>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
37 <docker.image.prefix>simpledemo</docker.image.prefix>
38 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
39 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
40 <ajscRuntimeVersion>3.0.11-oss</ajscRuntimeVersion>
42 <!-- This will be the Absolute Root of the Project and should contain NO Versioning -->
43 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
44 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
45 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
46 For NO Versioning, leave as is -->
47 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
48 ${project.version} to ${runAjscHome} for running locally. -->
49 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
50 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
51 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
52 <serverPort>3904</serverPort>
53 <sslport>3905</sslport>
54 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
55 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
56 <camel.version>2.21.5</camel.version>
57 <camel.version.latest>3.5.0</camel.version.latest>
58 <skip.docker.build>false</skip.docker.build>
59 <skip.docker.tag>false</skip.docker.tag>
60 <skip.docker.push>false</skip.docker.push>
61 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
62 <nexusproxy>https://nexus.onap.org</nexusproxy>
63 <spring.version>3.2.18.RELEASE</spring.version>
64 <sonar.language>java</sonar.language>
65 <sonar.skip>false</sonar.skip>
66 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
67 <sonar.projectVersion>${project.version}</sonar.projectVersion>
68 <log4j.version>2.13.3</log4j.version>
69 <maven.compiler.target>8</maven.compiler.target>
70 <maven.compiler.source>8</maven.compiler.source>
71 <skip.deploy>false</skip.deploy>
77 <artifactId>maven-checkstyle-plugin</artifactId>
80 <id>onap-java-style</id>
82 <consoleOutput>false</consoleOutput>
88 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-site-plugin</artifactId>
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-jar-plugin</artifactId>
94 <version>3.0.2</version>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-source-plugin</artifactId>
99 <version>3.0.0</version>
102 <id>attach-sources</id>
104 <goal>jar-no-fork</goal>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-release-plugin</artifactId>
112 <version>2.5.3</version>
114 <autoVersionSubmodules>true</autoVersionSubmodules>
115 <checkModificationExcludes>
116 </checkModificationExcludes>
120 <groupId>org.apache.maven.scm</groupId>
121 <artifactId>maven-scm-provider-gitexe</artifactId>
122 <version>1.9.4</version>
127 <groupId>com.blackducksoftware.integration</groupId>
128 <artifactId>hub-maven-plugin</artifactId>
129 <version>1.0.4</version>
130 <inherited>false</inherited>
132 <target>${project.basedir}</target>
136 <id>create-bdio-file</id>
137 <phase>package</phase>
139 <goal>createHubOutput</goal>
145 <groupId>org.codehaus.groovy</groupId>
146 <artifactId>groovy-eclipse-compiler</artifactId>
147 <version>2.8.0-01</version>
148 <extensions>true</extensions>
151 <artifactId>maven-deploy-plugin</artifactId>
152 <version>3.0.0-M1</version>
154 <skip>${skip.deploy}</skip>
160 <!-- Distribution management -->
161 <distributionManagement>
164 <url>dav:${nexusproxy}${sitePath}</url>
166 </distributionManagement>
168 <!-- End Distribution management -->
170 <!-- The standard build tasks for this project are inherited from the parent.
171 Please do not override the build tasks. However tasks and/or profiles can
172 be included here as well as additional dependencies for your service. Any
173 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
174 folder and will be made available on the AJSC classpath for your service.
175 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
176 CSI environment. Therefore, they are provided within this project as "provided"
177 dependencies. In order for the AJSC to run properly, locally, the CSM and
178 DME2 dependencies will be copied into the target/commonLibs folder and will
179 be made available to the classpath of the AJSC through the use of the system
180 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
181 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
182 so). If you have a startup failure related to a missing dme2 class not found
183 exception, please contact the AJSC team for assistance. You can email support
184 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
185 the usage of the AJSC service pom.xml and management of dependencies, -->
188 <groupId>org.springframework.boot</groupId>
189 <artifactId>spring-boot-starter-actuator</artifactId>
190 <version>2.4.0</version>
193 <artifactId>logback-classic</artifactId>
194 <groupId>ch.qos.logback</groupId>
198 <!-- Micormeter core dependecy -->
200 <groupId>io.micrometer</groupId>
201 <artifactId>micrometer-core</artifactId>
202 <version>1.7.1</version>
204 <!-- Micrometer Prometheus registry -->
206 <groupId>io.micrometer</groupId>
207 <artifactId>micrometer-registry-prometheus</artifactId>
208 <version>1.6.1</version>
211 <groupId>com.sun.mail</groupId>
212 <artifactId>javax.mail</artifactId>
213 <version>1.6.0</version>
215 <!-- javax activation is part of the JDK now -->
217 <groupId>javax.activation</groupId>
218 <artifactId>activation</artifactId>
223 <groupId>com.sun.xml.bind</groupId>
224 <artifactId>jaxb-core</artifactId>
225 <version>2.3.0.1</version>
226 <scope>compile</scope>
229 <groupId>com.sun.xml.bind</groupId>
230 <artifactId>jaxb-impl</artifactId>
231 <version>2.3.0.1</version>
232 <scope>compile</scope>
235 <artifactId>jsr181-api</artifactId>
236 <groupId>javax.jws</groupId>
241 <groupId>org.apache.cxf</groupId>
242 <artifactId>cxf-rt-transports-http</artifactId>
243 <version>3.2.5</version>
246 <groupId>com.att.aft</groupId>
247 <artifactId>dme2</artifactId>
248 <version>3.1.200-oss</version>
251 <groupId>javax.jms</groupId>
252 <artifactId>jms</artifactId>
257 <groupId>org.springframework</groupId>
258 <artifactId>spring-test</artifactId>
259 <version>3.2.12.RELEASE</version>
263 <groupId>org.springframework</groupId>
264 <artifactId>spring-expression</artifactId>
265 <version>4.3.18.RELEASE</version>
268 <groupId>org.springframework</groupId>
269 <artifactId>spring-messaging</artifactId>
270 <version>4.1.9.RELEASE</version>
273 <groupId>org.apache.zookeeper</groupId>
274 <artifactId>zookeeper</artifactId>
275 <version>3.7.0</version>
278 <artifactId>slf4j-log4j12</artifactId>
279 <groupId>org.slf4j</groupId>
284 <groupId>com.101tec</groupId>
285 <artifactId>zkclient</artifactId>
286 <version>0.11</version>
288 <!-- Log4j2 logger -->
290 <groupId>org.apache.logging.log4j</groupId>
291 <artifactId>log4j-api</artifactId>
292 <version>${log4j.version}</version>
295 <groupId>org.apache.logging.log4j</groupId>
296 <artifactId>log4j-core</artifactId>
297 <version>${log4j.version}</version>
300 <groupId>org.slf4j</groupId>
301 <artifactId>slf4j-log4j12</artifactId>
302 <version>1.7.32</version>
306 <artifactId>*</artifactId>
311 <groupId>org.hamcrest</groupId>
312 <artifactId>hamcrest-library</artifactId>
313 <version>1.3</version>
317 <groupId>org.apache.kafka</groupId>
318 <artifactId>kafka_2.13</artifactId>
319 <version>2.8.0</version>
322 <groupId>commons-codec</groupId>
323 <artifactId>commons-codec</artifactId>
324 <version>1.14</version>
327 <groupId>jline</groupId>
328 <artifactId>jline</artifactId>
329 <version>2.12.1</version>
332 <groupId>org.quartz-scheduler</groupId>
333 <artifactId>quartz</artifactId>
334 <version>2.3.2</version>
337 <groupId>com.fasterxml.woodstox</groupId>
338 <artifactId>woodstox-core</artifactId>
339 <version>5.3.0</version>
342 <groupId>org.grails</groupId>
343 <artifactId>grails-bootstrap</artifactId>
344 <version>4.0.1</version>
345 <scope>compile</scope>
348 <artifactId>ant</artifactId>
349 <groupId>org.apache.ant</groupId>
352 <artifactId>jna</artifactId>
353 <groupId>net.java.dev.jna</groupId>
356 <artifactId>ant-trax</artifactId>
357 <groupId>org.apache.ant</groupId>
360 <artifactId>gant_groovy1.8</artifactId>
361 <groupId>org.codehaus.gant</groupId>
364 <artifactId>ant-launcher</artifactId>
365 <groupId>org.apache.ant</groupId>
368 <artifactId>jline</artifactId>
369 <groupId>jline</groupId>
372 <artifactId>ivy</artifactId>
373 <groupId>org.apache.ivy</groupId>
376 <artifactId>jansi</artifactId>
377 <groupId>org.fusesource.jansi</groupId>
380 <artifactId>commons-logging</artifactId>
381 <groupId>commons-logging</groupId>
384 <artifactId>ant-junit</artifactId>
385 <groupId>org.apache.ant</groupId>
390 <groupId>commons-fileupload</groupId>
391 <artifactId>commons-fileupload</artifactId>
392 <version>1.4</version>
395 <groupId>org.springframework</groupId>
396 <artifactId>spring-context</artifactId>
397 <version>4.3.18.RELEASE</version>
400 <groupId>org.springframework</groupId>
401 <artifactId>spring-webmvc</artifactId>
402 <version>5.3.3</version>
405 <groupId>org.springframework</groupId>
406 <artifactId>spring-core</artifactId>
407 <version>4.3.18.RELEASE</version>
410 <groupId>org.springframework</groupId>
411 <artifactId>spring-beans</artifactId>
412 <version>4.3.18.RELEASE</version>
415 <groupId>commons-io</groupId>
416 <artifactId>commons-io</artifactId>
417 <version>2.11.0</version>
420 <groupId>com.att.eelf</groupId>
421 <artifactId>eelf-core</artifactId>
422 <version>2.0.0-oss</version>
425 <groupId>org.mockito</groupId>
426 <artifactId>mockito-core</artifactId>
429 <groupId>org.powermock</groupId>
430 <artifactId>powermock-module-junit4</artifactId>
433 <groupId>org.powermock</groupId>
434 <artifactId>powermock-api-mockito</artifactId>
438 <!-- our NSA server library -->
440 <groupId>com.att.nsa</groupId>
441 <artifactId>nsaServerLibrary</artifactId>
442 <version>1.0.10</version>
445 <groupId>org.apache.tomcat</groupId>
446 <artifactId>tomcat-catalina</artifactId>
449 <groupId>org.apache.tomcat.embed</groupId>
450 <artifactId>tomcat-embed-core</artifactId>
453 <groupId>org.apache.tomcat</groupId>
454 <artifactId>tomcat-util</artifactId>
457 <groupId>javax.mail</groupId>
458 <artifactId>mail</artifactId>
463 <groupId>com.att.nsa</groupId>
464 <artifactId>saToolkit</artifactId>
465 <version>1.2.0-oss</version>
468 <groupId>org.apache.curator</groupId>
469 <artifactId>curator-recipes</artifactId>
470 <version>4.0.1</version>
473 <groupId>org.apache.curator</groupId>
474 <artifactId>curator-test</artifactId>
475 <version>4.0.1</version>
478 <groupId>javax.inject</groupId>
479 <artifactId>javax.inject</artifactId>
483 <groupId>org.mockito</groupId>
484 <artifactId>mockito-core</artifactId>
485 <version>3.9.0</version>
489 <groupId>org.powermock</groupId>
490 <artifactId>powermock-core</artifactId>
491 <version>2.0.7</version>
495 <groupId>org.powermock</groupId>
496 <artifactId>powermock-module-junit4</artifactId>
497 <version>2.0.7</version>
501 <groupId>org.powermock</groupId>
502 <artifactId>powermock-module-junit4-rule</artifactId>
503 <version>2.0.7</version>
507 <groupId>org.powermock</groupId>
508 <artifactId>powermock-api-support</artifactId>
509 <version>2.0.7</version>
513 <groupId>org.powermock</groupId>
514 <artifactId>powermock-api-mockito2</artifactId>
515 <version>2.0.7</version>
518 <groupId>com.fasterxml.jackson.jaxrs</groupId>
519 <artifactId>jackson-jaxrs-json-provider</artifactId>
520 <version>2.2.3</version>
523 <groupId>com.fasterxml.jackson.core</groupId>
524 <artifactId>jackson-core</artifactId>
527 <groupId>com.fasterxml.jackson.core</groupId>
528 <artifactId>jackson-databind</artifactId>
531 <groupId>org.grails</groupId>
532 <artifactId>grails-web</artifactId>
533 <version>2.5.4</version>
536 <groupId>org.grails</groupId>
537 <artifactId>grails-web-jsp</artifactId>
542 <groupId>org.codehaus.groovy</groupId>
543 <artifactId>groovy-all</artifactId>
544 <version>3.0.8</version>
548 <artifactId>jline</artifactId>
549 <groupId>jline</groupId>
552 <artifactId>testng</artifactId>
553 <groupId>org.testng</groupId>
558 <groupId>junit</groupId>
559 <artifactId>junit</artifactId>
560 <version>4.13.2</version>
564 <groupId>org.json</groupId>
565 <artifactId>json</artifactId>
566 <version>20131018</version>
568 <!-- CXF JAX-RS extension -->
570 <groupId>org.apache.cxf</groupId>
571 <artifactId>cxf-rt-rs-extension-providers</artifactId>
572 <version>3.2.2</version>
575 <groupId>org.apache.cxf</groupId>
576 <artifactId>cxf-core</artifactId>
581 <groupId>org.codehaus.jettison</groupId>
582 <artifactId>jettison</artifactId>
583 <version>1.3.7</version>
586 <groupId>com.att.ajsc</groupId>
587 <artifactId>ajsc-archetype-parent</artifactId>
588 <version>3.0.11-oss</version>
592 <groupId>org.onap.aaf.authz</groupId>
593 <artifactId>aaf-cadi-aaf</artifactId>
594 <version>2.7.4</version>
597 <artifactId>log4j</artifactId>
598 <groupId>log4j</groupId>
603 <groupId>backport-util-concurrent</groupId>
604 <artifactId>backport-util-concurrent</artifactId>
605 <version>3.1</version>
608 <groupId>org.apache.camel</groupId>
609 <artifactId>camel-core</artifactId>
610 <version>3.4.0</version>
613 <groupId>org.apache.camel</groupId>
614 <artifactId>camel-quartz</artifactId>
615 <version>${camel.version}</version>
618 <groupId>org.apache.camel</groupId>
619 <artifactId>camel-spring</artifactId>
620 <version>${camel.version.latest}</version>
623 <groupId>org.apache.camel</groupId>
624 <artifactId>camel-restlet</artifactId>
625 <version>${camel.version}</version>
628 <artifactId>org.restlet</artifactId>
629 <groupId>org.restlet.jse</groupId>
634 <groupId>org.apache.camel</groupId>
635 <artifactId>camel-servlet</artifactId>
636 <version>${camel.version}</version>
639 <groupId>org.apache.httpcomponents</groupId>
640 <artifactId>httpcore</artifactId>
641 <version>4.4.1</version>
644 <groupId>org.apache.camel</groupId>
645 <artifactId>camel-http4</artifactId>
646 <version>${camel.version}</version>
649 <groupId>org.apache.geronimo.specs</groupId>
650 <artifactId>geronimo-servlet_2.5_spec</artifactId>
655 <groupId>org.apache.camel</groupId>
656 <artifactId>camel-groovy</artifactId>
657 <version>${camel.version.latest}</version>
660 <groupId>org.apache.camel</groupId>
661 <artifactId>camel-twitter</artifactId>
662 <version>${camel.version}</version>
665 <groupId>org.apache.camel</groupId>
666 <artifactId>camel-mail</artifactId>
667 <version>${camel.version}</version>
670 <groupId>org.apache.camel</groupId>
671 <artifactId>camel-smpp</artifactId>
672 <version>${camel.version}</version>
675 <groupId>org.apache.camel</groupId>
676 <artifactId>camel-jms</artifactId>
677 <version>${camel.version}</version>
680 <groupId>org.apache.camel</groupId>
681 <artifactId>camel-script</artifactId>
682 <version>${camel.version}</version>
685 <groupId>org.apache.camel</groupId>
686 <artifactId>camel-xmpp</artifactId>
687 <version>${camel.version}</version>
690 <groupId>org.igniterealtime.smack</groupId>
691 <artifactId>smack-tcp</artifactId>
692 <version>4.4.2</version>
695 <groupId>org.apache.camel</groupId>
696 <artifactId>camel-velocity</artifactId>
697 <version>${camel.version.latest}</version>
700 <groupId>com.att.ajsc</groupId>
701 <artifactId>ajsc-runner</artifactId>
702 <version>3.0.11-oss</version>
703 <scope>runtime</scope>
706 <groupId>com.att.ajsc</groupId>
707 <artifactId>ajsc-core</artifactId>
708 <version>3.0.11-oss</version>
709 <scope>provided</scope>
712 <groupId>io.dropwizard.metrics</groupId>
713 <artifactId>metrics-core</artifactId>
714 <version>4.2.3</version>
718 <groupId>org.slf4j</groupId>
719 <artifactId>slf4j-api</artifactId>
720 <version>1.7.32</version>
724 <!-- Use this profile to run the AJSC locally. This profile can be successfully
725 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
726 available with this profile. -->
730 <skipTests>true</skipTests>
735 <groupId>org.codehaus.groovy.maven</groupId>
736 <artifactId>gmaven-plugin</artifactId>
739 <phase>validate</phase>
745 <ver>${project.version}</ver>
746 <timestamp>${maven.build.timestamp}</timestamp>
749 println project.properties['ver'];
750 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
751 project.properties['dockertag1']=project.properties['ver'] + "-latest";
752 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
754 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
755 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
757 println 'docker tag 1: ' + project.properties['dockertag1'];
758 println 'docker tag 2: ' + project.properties['dockertag2'];
765 <groupId>io.fabric8</groupId>
766 <artifactId>docker-maven-plugin</artifactId>
767 <version>0.33.0</version>
769 <skipBuild>${skip.docker.build}</skipBuild>
770 <skipPush>${skip.docker.push}</skipPush>
771 <pullRegistry>${docker.pull.registry}</pullRegistry>
772 <pushRegistry>${docker.push.registry}</pushRegistry>
775 <name>onap/dmaap/dmaap-mr</name>
777 <cleanup>try</cleanup>
778 <dockerFileDir>${dockerLocation}</dockerFileDir>
779 <dockerFile>Dockerfile</dockerFile>
781 <tag>${dockertag1}</tag>
782 <tag>${dockertag2}</tag>
790 <id>generate-images</id>
791 <phase>install</phase>
798 <phase>deploy</phase>
809 <id>standardbuild</id>
818 <directory>src/main/resources</directory>
820 <exclude>extApps/*.*</exclude>
821 <exclude>${module.ajsc.namespace.name}/**</exclude>
825 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
827 <exclude>**/*.route</exclude>
828 <exclude>**/*.props</exclude>
829 <exclude>**/*.xslt</exclude>
830 <exclude>**/*.vm</exclude>
831 <exclude>**/*.jar</exclude>
832 <exclude>**/*.xml</exclude>
838 <groupId>org.apache.maven.plugins</groupId>
839 <artifactId>maven-compiler-plugin</artifactId>
840 <version>3.1</version>
843 <groupId>org.codehaus.groovy</groupId>
844 <artifactId>groovy-eclipse-compiler</artifactId>
845 <version>2.8.0-01</version>
846 <extensions>true</extensions>
849 <groupId>org.codehaus.mojo</groupId>
850 <artifactId>exec-maven-plugin</artifactId>
851 <version>1.2.1</version>
860 <executable>bash</executable>
862 <argument>runServer.sh</argument>
867 <groupId>org.codehaus.mojo</groupId>
868 <artifactId>build-helper-maven-plugin</artifactId>
869 <version>1.9</version>
872 <id>add-source-groovy-ajsc-arch-parent</id>
873 <phase>generate-sources</phase>
875 <goal>add-source</goal>
879 <source>src/main/groovy</source>
884 <id>add-test-source-groovy-ajsc-arch-parent</id>
885 <phase>generate-test-sources</phase>
887 <goal>add-test-source</goal>
891 <source>src/test/groovy</source>
896 <id>regex-properties-ajsc-arch-parent</id>
897 <phase>initialize</phase>
899 <goal>regex-properties</goal>
902 <regexPropertySettings>
903 <regexPropertySetting>
904 <name>replaceWinFilePath</name>
905 <value>${runAjscHome}</value>
907 <replacement>/</replacement>
908 <failIfNoMatch>false</failIfNoMatch>
909 </regexPropertySetting>
910 <regexPropertySetting>
911 <name>replaceWinBasedirPath</name>
912 <value>${basedir}</value>
914 <replacement>/</replacement>
915 <failIfNoMatch>false</failIfNoMatch>
916 </regexPropertySetting>
917 </regexPropertySettings>
923 <groupId>org.codehaus.mojo</groupId>
924 <artifactId>properties-maven-plugin</artifactId>
925 <version>1.0-alpha-2</version>
928 <id>write-project-properties-ajsc-arch-parent</id>
929 <phase>generate-resources</phase>
931 <goal>write-project-properties</goal>
935 ${project.build.outputDirectory}/build.properties
942 <groupId>org.apache.maven.plugins</groupId>
943 <artifactId>maven-assembly-plugin</artifactId>
944 <version>2.4</version>
947 <id>make-assembly-ajsc-arch-parent</id>
948 <phase>package</phase>
955 <finalName>${project.artifactId}</finalName>
957 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
962 <groupId>org.codehaus.groovy.maven</groupId>
963 <artifactId>gmaven-plugin</artifactId>
964 <version>1.0</version>
967 <id>gmaven-ajsc-arch-parent</id>
968 <phase>package</phase>
973 <sourcepath>src/main/groovy</sourcepath>
975 import ajsc.AssemblyService;
976 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
983 <groupId>org.apache.maven.plugins</groupId>
984 <artifactId>maven-antrun-plugin</artifactId>
985 <version>1.7</version>
988 <id>prep_service_runtime-ajsc-arch-parent</id>
989 <phase>generate-resources</phase>
991 <target name="prep_service_runtime">
992 <echo message="ENTERING 'copy_services_template' ant tasks" />
993 <!-- <filter token="basedir" value="${basedir}" /> -->
994 <!-- delete any prior stating stuff before package phase -->
995 <delete dir="target/versioned-ajsc" includes="**/*" />
996 <delete dir="target/versioned-runtime" includes="**/*" />
997 <delete dir="target/CDP" includes="**/*" />
999 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1000 is replaced by module.ajsc.namespace.name) -->
1001 <copy todir="target/versioned-ajsc">
1002 <fileset dir="src/main/ajsc" includes="**/*" />
1005 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1006 directory for future use by replacer plugin -->
1007 <copy todir="target/CDP" failonerror="false">
1008 <fileset dir="CDP" includes="**/*.sh" />
1010 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1012 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1013 <copy todir="target/staticContent" failonerror="false">
1014 <fileset dir="staticContent" includes="**/*" />
1016 <copy todir="target/bundleconfig" failonerror="false">
1017 <!-- filtering="true"> -->
1018 <fileset dir="bundleconfig" />
1021 <echo message="EXITING 'copy_services_template' ant tasks" />
1022 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1023 <copy todir="target/versioned-runtime">
1024 <fileset dir="src/main/runtime" includes="**/*" />
1027 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1028 <copy flatten="true"
1029 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1030 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1032 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1033 <copy flatten="true"
1034 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1035 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1037 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1038 <copy flatten="true"
1039 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1040 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1042 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1043 <copy flatten="true"
1044 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1045 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1046 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1055 <phase>package</phase>
1059 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1060 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1068 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1069 <phase>package</phase>
1071 <target name="prep_home_directory_for_swm_pkgcreate">
1072 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1082 <groupId>org.apache.maven.plugins</groupId>
1083 <artifactId>maven-dependency-plugin</artifactId>
1084 <version>2.8</version>
1087 <id>copy-dependencies-ajsc-arch-parent</id>
1088 <phase>prepare-package</phase>
1090 <goal>copy-dependencies</goal>
1093 <includeScope>runtime</includeScope>
1094 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1095 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1096 <silent>true</silent>
1101 <phase>prepare-package</phase>
1103 <goal>copy-dependencies</goal>
1106 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1107 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1113 <artifactId>maven-resources-plugin</artifactId>
1114 <version>2.7</version>
1118 <phase>package</phase>
1120 <goal>copy-resources</goal>
1123 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1126 <directory>src/main/config</directory>
1132 <id>copy-docker-file</id>
1133 <phase>prepare-package</phase>
1135 <goal>copy-resources</goal>
1138 <outputDirectory>${dockerLocation}</outputDirectory>
1139 <overwrite>true</overwrite>
1142 <directory>${basedir}/src/main/resources/docker</directory>
1143 <filtering>true</filtering>
1145 <include>**/*</include>
1157 <groupId>org.apache.maven.plugins</groupId>
1158 <artifactId>maven-surefire-plugin</artifactId>
1159 <version>2.19.1</version>
1162 <exclude>**/AbstractTest.java</exclude>
1165 ${surefireArgLine} --illegal-access=permit