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.1</version>
24 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
25 <artifactId>dmaapMR1</artifactId>
26 <version>1.4.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.17.1</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>
723 <groupId>com.github.stefanbirkner</groupId>
724 <artifactId>system-rules</artifactId>
725 <version>1.17.2</version>
730 <!-- Use this profile to run the AJSC locally. This profile can be successfully
731 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
732 available with this profile. -->
736 <skipTests>true</skipTests>
741 <groupId>org.codehaus.groovy.maven</groupId>
742 <artifactId>gmaven-plugin</artifactId>
745 <phase>validate</phase>
751 <ver>${project.version}</ver>
752 <timestamp>${maven.build.timestamp}</timestamp>
755 println project.properties['ver'];
756 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
757 project.properties['dockertag1']=project.properties['ver'] + "-latest";
758 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
760 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
761 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
763 println 'docker tag 1: ' + project.properties['dockertag1'];
764 println 'docker tag 2: ' + project.properties['dockertag2'];
771 <groupId>io.fabric8</groupId>
772 <artifactId>docker-maven-plugin</artifactId>
773 <version>0.33.0</version>
775 <skipBuild>${skip.docker.build}</skipBuild>
776 <skipPush>${skip.docker.push}</skipPush>
777 <pullRegistry>${docker.pull.registry}</pullRegistry>
778 <pushRegistry>${docker.push.registry}</pushRegistry>
781 <name>onap/dmaap/dmaap-mr</name>
783 <cleanup>try</cleanup>
784 <dockerFileDir>${dockerLocation}</dockerFileDir>
785 <dockerFile>Dockerfile</dockerFile>
787 <tag>${dockertag1}</tag>
788 <tag>${dockertag2}</tag>
796 <id>generate-images</id>
797 <phase>install</phase>
804 <phase>deploy</phase>
815 <id>standardbuild</id>
824 <directory>src/main/resources</directory>
826 <exclude>extApps/*.*</exclude>
827 <exclude>${module.ajsc.namespace.name}/**</exclude>
831 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
833 <exclude>**/*.route</exclude>
834 <exclude>**/*.props</exclude>
835 <exclude>**/*.xslt</exclude>
836 <exclude>**/*.vm</exclude>
837 <exclude>**/*.jar</exclude>
838 <exclude>**/*.xml</exclude>
844 <groupId>org.apache.maven.plugins</groupId>
845 <artifactId>maven-compiler-plugin</artifactId>
846 <version>3.1</version>
849 <groupId>org.codehaus.groovy</groupId>
850 <artifactId>groovy-eclipse-compiler</artifactId>
851 <version>2.8.0-01</version>
852 <extensions>true</extensions>
855 <groupId>org.codehaus.mojo</groupId>
856 <artifactId>exec-maven-plugin</artifactId>
857 <version>1.2.1</version>
866 <executable>bash</executable>
868 <argument>runServer.sh</argument>
873 <groupId>org.codehaus.mojo</groupId>
874 <artifactId>build-helper-maven-plugin</artifactId>
875 <version>1.9</version>
878 <id>add-source-groovy-ajsc-arch-parent</id>
879 <phase>generate-sources</phase>
881 <goal>add-source</goal>
885 <source>src/main/groovy</source>
890 <id>add-test-source-groovy-ajsc-arch-parent</id>
891 <phase>generate-test-sources</phase>
893 <goal>add-test-source</goal>
897 <source>src/test/groovy</source>
902 <id>regex-properties-ajsc-arch-parent</id>
903 <phase>initialize</phase>
905 <goal>regex-properties</goal>
908 <regexPropertySettings>
909 <regexPropertySetting>
910 <name>replaceWinFilePath</name>
911 <value>${runAjscHome}</value>
913 <replacement>/</replacement>
914 <failIfNoMatch>false</failIfNoMatch>
915 </regexPropertySetting>
916 <regexPropertySetting>
917 <name>replaceWinBasedirPath</name>
918 <value>${basedir}</value>
920 <replacement>/</replacement>
921 <failIfNoMatch>false</failIfNoMatch>
922 </regexPropertySetting>
923 </regexPropertySettings>
929 <groupId>org.codehaus.mojo</groupId>
930 <artifactId>properties-maven-plugin</artifactId>
931 <version>1.0-alpha-2</version>
934 <id>write-project-properties-ajsc-arch-parent</id>
935 <phase>generate-resources</phase>
937 <goal>write-project-properties</goal>
941 ${project.build.outputDirectory}/build.properties
948 <groupId>org.apache.maven.plugins</groupId>
949 <artifactId>maven-assembly-plugin</artifactId>
950 <version>2.4</version>
953 <id>make-assembly-ajsc-arch-parent</id>
954 <phase>package</phase>
961 <finalName>${project.artifactId}</finalName>
963 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
968 <groupId>org.codehaus.groovy.maven</groupId>
969 <artifactId>gmaven-plugin</artifactId>
970 <version>1.0</version>
973 <id>gmaven-ajsc-arch-parent</id>
974 <phase>package</phase>
979 <sourcepath>src/main/groovy</sourcepath>
981 import ajsc.AssemblyService;
982 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
989 <groupId>org.apache.maven.plugins</groupId>
990 <artifactId>maven-antrun-plugin</artifactId>
991 <version>1.7</version>
994 <id>prep_service_runtime-ajsc-arch-parent</id>
995 <phase>generate-resources</phase>
997 <target name="prep_service_runtime">
998 <echo message="ENTERING 'copy_services_template' ant tasks" />
999 <!-- <filter token="basedir" value="${basedir}" /> -->
1000 <!-- delete any prior stating stuff before package phase -->
1001 <delete dir="target/versioned-ajsc" includes="**/*" />
1002 <delete dir="target/versioned-runtime" includes="**/*" />
1003 <delete dir="target/CDP" includes="**/*" />
1005 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1006 is replaced by module.ajsc.namespace.name) -->
1007 <copy todir="target/versioned-ajsc">
1008 <fileset dir="src/main/ajsc" includes="**/*" />
1011 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1012 directory for future use by replacer plugin -->
1013 <copy todir="target/CDP" failonerror="false">
1014 <fileset dir="CDP" includes="**/*.sh" />
1016 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1018 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1019 <copy todir="target/staticContent" failonerror="false">
1020 <fileset dir="staticContent" includes="**/*" />
1022 <copy todir="target/bundleconfig" failonerror="false">
1023 <!-- filtering="true"> -->
1024 <fileset dir="bundleconfig" />
1027 <echo message="EXITING 'copy_services_template' ant tasks" />
1028 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1029 <copy todir="target/versioned-runtime">
1030 <fileset dir="src/main/runtime" includes="**/*" />
1033 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1034 <copy flatten="true"
1035 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1036 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1038 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1039 <copy flatten="true"
1040 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1041 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1043 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1044 <copy flatten="true"
1045 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1046 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1048 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1049 <copy flatten="true"
1050 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1051 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1052 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1061 <phase>package</phase>
1065 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1066 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1074 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1075 <phase>package</phase>
1077 <target name="prep_home_directory_for_swm_pkgcreate">
1078 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1088 <groupId>org.apache.maven.plugins</groupId>
1089 <artifactId>maven-dependency-plugin</artifactId>
1090 <version>2.8</version>
1093 <id>copy-dependencies-ajsc-arch-parent</id>
1094 <phase>prepare-package</phase>
1096 <goal>copy-dependencies</goal>
1099 <includeScope>runtime</includeScope>
1100 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1101 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1102 <silent>true</silent>
1107 <phase>prepare-package</phase>
1109 <goal>copy-dependencies</goal>
1112 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1113 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1119 <artifactId>maven-resources-plugin</artifactId>
1120 <version>2.7</version>
1124 <phase>package</phase>
1126 <goal>copy-resources</goal>
1129 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1132 <directory>src/main/config</directory>
1138 <id>copy-docker-file</id>
1139 <phase>prepare-package</phase>
1141 <goal>copy-resources</goal>
1144 <outputDirectory>${dockerLocation}</outputDirectory>
1145 <overwrite>true</overwrite>
1148 <directory>${basedir}/src/main/resources/docker</directory>
1149 <filtering>true</filtering>
1151 <include>**/*</include>
1163 <groupId>org.apache.maven.plugins</groupId>
1164 <artifactId>maven-surefire-plugin</artifactId>
1165 <version>2.19.1</version>
1168 <exclude>**/AbstractTest.java</exclude>
1171 ${surefireArgLine} --illegal-access=permit