Merge "Fix offeredapi doc typos and format"
[dmaap/messagerouter/messageservice.git] / pom.xml
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>
15
16         <parent>
17                 <groupId>org.onap.oparent</groupId>
18                 <artifactId>oparent</artifactId>
19                 <version>2.1.0</version>
20         </parent>
21
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>
27         <licenses>
28                 <license>
29                         <name>Apache License Version 2.0</name>
30                 </license>
31         </licenses>
32
33         <developers>
34                 <developer>
35                         <name>Rajashree</name>
36                         <email></email>
37                         <organization>ATT</organization>
38                         <organizationUrl>www.att.com</organizationUrl>
39                 </developer>
40                 <developer>
41                         <name>Ramkumar</name>
42                         <email></email>
43                         <organization>ATT</organization>
44                         <organizationUrl>www.att.com</organizationUrl>
45                 </developer>
46         </developers>
47
48         <build>
49                 <plugins>
50              <plugin>
51                     <groupId>org.jacoco</groupId>
52                     <artifactId>jacoco-maven-plugin</artifactId>
53                     <executions>
54                         <execution>
55                             <id>prepare-agent</id>
56                             <goals>
57                                 <goal>prepare-agent</goal>
58                             </goals>
59                         </execution>
60                         <execution>
61                             <id>report</id>
62                             <goals>
63                                 <goal>report</goal>
64                             </goals>
65                             <configuration>
66                                 <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
67                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
68                             </configuration>
69                         </execution>
70                     </executions>
71                 </plugin>
72                         <plugin>
73                                 <groupId>org.apache.maven.plugins</groupId>
74                                 <artifactId>maven-site-plugin</artifactId>
75                                 <version>3.6</version>
76                                 <dependencies>
77                                         <dependency>
78                                                 <groupId>org.apache.maven.wagon</groupId>
79                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
80                                                 <version>2.10</version>
81                                         </dependency>
82                                 </dependencies>
83                         </plugin>
84
85                         <plugin>
86                                 <groupId>org.apache.maven.plugins</groupId>
87                                 <artifactId>maven-jar-plugin</artifactId>
88                                 <version>3.0.2</version>
89                         </plugin>
90                         <plugin>
91                                 <groupId>org.apache.maven.plugins</groupId>
92                                 <artifactId>maven-source-plugin</artifactId>
93                                 <version>3.0.0</version>
94                                 <executions>
95                                         <execution>
96                                                 <id>attach-sources</id>
97                                                 <goals>
98                                                         <goal>jar-no-fork</goal>
99                                                 </goals>
100                                         </execution>
101                                 </executions>
102                         </plugin>
103                         <plugin>
104                                 <groupId>org.apache.maven.plugins</groupId>
105                                 <artifactId>maven-release-plugin</artifactId>
106                                 <version>2.5.3</version>
107                                 <configuration>
108                                         <autoVersionSubmodules>true</autoVersionSubmodules>
109                                         <checkModificationExcludes>
110                                         </checkModificationExcludes>
111                                 </configuration>
112                                 <dependencies>
113                                         <dependency>
114                                                 <groupId>org.apache.maven.scm</groupId>
115                                                 <artifactId>maven-scm-provider-gitexe</artifactId>
116                                                 <version>1.9.4</version>
117                                         </dependency>
118                                 </dependencies>
119                         </plugin>
120                 
121
122                         <plugin>
123                                 <groupId>com.blackducksoftware.integration</groupId>
124                                 <artifactId>hub-maven-plugin</artifactId>
125                                 <version>1.0.4</version>
126                                 <inherited>false</inherited>
127                                 <configuration>
128                                         <target>${project.basedir}</target>
129                                 </configuration>
130                                 <executions>
131                                         <execution>
132                                                 <id>create-bdio-file</id>
133                                                 <phase>package</phase>
134                                                 <goals>
135                                                         <goal>createHubOutput</goal>
136                                                 </goals>
137                                         </execution>
138                                 </executions>
139                         </plugin>
140
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> -->
148                         <plugin>
149                                 <groupId>org.codehaus.groovy</groupId>
150                                 <artifactId>groovy-eclipse-compiler</artifactId>
151                                 <version>2.8.0-01</version>
152                                 <extensions>true</extensions>
153                         </plugin>
154
155                 </plugins>
156         </build>
157
158         <properties>
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>
166
167                 <!-- This will be the Absolute Root of the Project and should contain NO 
168                         Versioning -->
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>
178
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 
187                         8080 -->
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                 <camel.version.latest>3.5.0</camel.version.latest>
198                 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
199                 <skip.docker.build>true</skip.docker.build>
200                 <skip.docker.tag>true</skip.docker.tag>
201                 <skip.docker.push>true</skip.docker.push>
202                 <nexusproxy>https://nexus.onap.org</nexusproxy>
203                 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
204                 <spring.version>3.2.18.RELEASE</spring.version>
205                 <sonar.language>java</sonar.language>
206         <sonar.skip>false</sonar.skip>
207         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
208         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
209         <sonar.projectVersion>${project.version}</sonar.projectVersion>
210         </properties>
211
212         <!-- Distribution management -->
213         <distributionManagement>
214                 <site>
215                         <id>ecomp-site</id>
216                         <url>dav:${nexusproxy}${sitePath}</url>
217                 </site>
218         </distributionManagement>
219
220         <!-- End Distribution management -->
221
222         <!-- The standard build tasks for this project are inherited from the parent. 
223                 Please do not override the build tasks. However tasks and/or profiles can 
224                 be included here as well as additional dependencies for your service. Any 
225                 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars 
226                 folder and will be made available on the AJSC classpath for your service. 
227                 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the 
228                 CSI environment. Therefore, they are provided within this project as "provided" 
229                 dependencies. In order for the AJSC to run properly, locally, the CSM and 
230                 DME2 dependencies will be copied into the target/commonLibs folder and will 
231                 be made available to the classpath of the AJSC through the use of the system 
232                 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set 
233                 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do 
234                 so). If you have a startup failure related to a missing dme2 class not found 
235                 exception, please contact the AJSC team for assistance. You can email support 
236                 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding 
237                 the usage of the AJSC service pom.xml and management of dependencies, -->
238         <dependencies>
239
240                 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding 
241                         version 100.0.64 -->
242
243                 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId> 
244                         <version>112.0.50</version> </dependency> -->
245                 <!-- TODO: add open source version here -->
246
247
248         <dependency>
249                 <groupId>com.sun.mail</groupId>
250                 <artifactId>javax.mail</artifactId>
251                 <version>1.6.0</version>
252                 <exclusions>
253                         <!-- javax activation is part of the JDK now -->
254                         <exclusion>
255                                 <groupId>javax.activation</groupId>
256                                 <artifactId>activation</artifactId>
257                         </exclusion>
258                 </exclusions>
259         </dependency>
260         <dependency>
261                 <groupId>com.sun.xml.bind</groupId>
262                 <artifactId>jaxb-core</artifactId>
263                 <version>2.3.0.1</version>
264                 <scope>compile</scope>
265         </dependency>
266         <dependency>
267                 <groupId>com.sun.xml.bind</groupId>
268                 <artifactId>jaxb-impl</artifactId>
269                 <version>2.3.0.1</version>
270                 <scope>compile</scope>
271                 <exclusions>
272                         <exclusion>
273                                 <artifactId>jsr181-api</artifactId>
274                                 <groupId>javax.jws</groupId>
275                         </exclusion>
276                 </exclusions>
277         </dependency>
278         
279                  <dependency>
280             <groupId>org.apache.cxf</groupId>
281             <artifactId>cxf-rt-transports-http</artifactId>
282             <version>3.2.5</version>
283            </dependency>
284
285                 <!-- <dependency>
286                         <groupId>com.att.cadi</groupId>
287                         <artifactId>cadi-core</artifactId>
288                         <version>1.3.0</version>
289                 </dependency>
290                 <dependency>
291                         <groupId>com.att.aft</groupId>
292                         <artifactId>dme2</artifactId>
293                         <version>3.1.200-oss</version>
294                 </dependency> -->
295                 <dependency>
296                         <groupId>org.springframework</groupId>
297                         <artifactId>spring-expression</artifactId>
298                         <version>4.3.18.RELEASE</version>
299                 </dependency>
300                 <dependency>
301                         <groupId>org.springframework</groupId>
302                         <artifactId>spring-messaging</artifactId>
303                         <version>4.1.9.RELEASE</version>
304                 </dependency>
305                 <!-- <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId> 
306                         <version>${javax-mail-version}</version> <exclusions> javax activation is 
307                         part of the JDK now <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> 
308                         </exclusion> </exclusions> </dependency> -->
309
310         <dependency>
311         <groupId>org.apache.zookeeper</groupId>
312         <artifactId>zookeeper</artifactId>
313         <version>3.4.14</version>
314    </dependency>
315    <dependency>
316       <groupId>org.slf4j</groupId>
317       <artifactId>slf4j-api</artifactId>
318       <version>1.6.1</version>
319     </dependency>
320     <dependency>
321       <groupId>org.slf4j</groupId>
322       <artifactId>slf4j-log4j12</artifactId>
323       <version>1.6.1</version>
324       <exclusions>
325         <exclusion>
326           <groupId>*</groupId>
327           <artifactId>*</artifactId>
328         </exclusion>
329       </exclusions>
330     </dependency>
331
332         <dependency>
333                 <groupId>org.apache.kafka</groupId>
334                 <artifactId>kafka_2.11</artifactId>
335                 <version>2.3.0</version>
336         </dependency>
337         <dependency>
338                 <groupId>commons-codec</groupId>
339                 <artifactId>commons-codec</artifactId>
340                 <version>1.14</version>
341         </dependency>
342         <dependency>
343                 <groupId>commons-io</groupId>
344                 <artifactId>commons-io</artifactId>
345                 <version>2.7</version>
346         </dependency>
347         <dependency>
348                 <groupId>org.quartz-scheduler</groupId>
349                 <artifactId>quartz</artifactId>
350                 <version>2.3.2</version>
351         </dependency>
352         <dependency>
353                 <groupId>com.fasterxml.woodstox</groupId>
354                 <artifactId>woodstox-core</artifactId>
355                 <version>5.3.0</version>
356         </dependency>
357                 <dependency>
358                         <groupId>org.grails</groupId>
359                         <artifactId>grails-bootstrap</artifactId>
360                         <version>4.0.1</version>
361                         <scope>compile</scope>
362                         <exclusions>
363                                 <exclusion>
364                                         <artifactId>ant</artifactId>
365                                         <groupId>org.apache.ant</groupId>
366                                 </exclusion>
367                                 <exclusion>
368                                         <artifactId>jna</artifactId>
369                                         <groupId>net.java.dev.jna</groupId>
370                                 </exclusion>
371                                 <exclusion>
372                                         <artifactId>ant-trax</artifactId>
373                                         <groupId>org.apache.ant</groupId>
374                                 </exclusion>
375                                 <exclusion>
376                                         <artifactId>gant_groovy1.8</artifactId>
377                                         <groupId>org.codehaus.gant</groupId>
378                                 </exclusion>
379                                 <exclusion>
380                                         <artifactId>ant-launcher</artifactId>
381                                         <groupId>org.apache.ant</groupId>
382                                 </exclusion>
383                                 <exclusion>
384                                         <artifactId>jline</artifactId>
385                                         <groupId>jline</groupId>
386                                 </exclusion>
387                                 <exclusion>
388                                         <artifactId>ivy</artifactId>
389                                         <groupId>org.apache.ivy</groupId>
390                                 </exclusion>
391                                 <exclusion>
392                                         <artifactId>jansi</artifactId>
393                                         <groupId>org.fusesource.jansi</groupId>
394                                 </exclusion>
395                                 <exclusion>
396                                         <artifactId>commons-logging</artifactId>
397                                         <groupId>commons-logging</groupId>
398                                 </exclusion>
399                                 <exclusion>
400                                         <artifactId>ant-junit</artifactId>
401                                         <groupId>org.apache.ant</groupId>
402                                 </exclusion>
403                         </exclusions>
404                 </dependency>
405                 <dependency>
406                         <groupId>commons-fileupload</groupId>
407                         <artifactId>commons-fileupload</artifactId>
408                         <version>1.4</version>
409                 </dependency>
410                 <dependency>
411                         <groupId>org.springframework</groupId>
412                         <artifactId>spring-webmvc</artifactId>
413                         <version>4.3.18.RELEASE</version>
414                 </dependency>
415                 <dependency>
416                         <groupId>org.springframework</groupId>
417                         <artifactId>spring-core</artifactId>
418                         <version>4.3.18.RELEASE</version>
419                 </dependency>
420                 <dependency>
421                         <groupId>org.springframework</groupId>
422                         <artifactId>spring-beans</artifactId>
423                         <version>4.3.18.RELEASE</version>
424                 </dependency>
425
426                 <dependency>
427                         <groupId>org.springframework</groupId>
428                         <artifactId>spring-context</artifactId>
429                         <version>4.3.18.RELEASE</version>
430                 </dependency>
431                 <dependency>
432                         <groupId>org.apache.commons</groupId>
433                         <artifactId>commons-io</artifactId>
434                         <version>1.3.2</version>
435                 </dependency>
436                 <dependency>
437                         <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
438                         <artifactId>msgrtr</artifactId>
439                         <version>1.1.22</version>
440                         <exclusions>
441                                 <exclusion>
442                                         <groupId>org.apache.kafka</groupId>
443                                 <artifactId>kafka_2.11</artifactId>
444                                 </exclusion>
445                                 <exclusion>
446                                         <groupId>org.slf4j</groupId>
447                                         <artifactId>slf4j-log4j12</artifactId>
448                                 </exclusion>
449                                 <exclusion>
450                                         <groupId>com.att.ajsc</groupId>
451                                         <artifactId>ajsc-core</artifactId>
452                                 </exclusion>
453                                 <exclusion>
454                                         <groupId>org.apache.tomcat</groupId>
455                                         <artifactId>tomcat-catalina</artifactId>
456                                 </exclusion>
457
458                                 <exclusion>
459                                         <groupId>org.apache.tomcat.embed</groupId>
460                                         <artifactId>tomcat-embed-core</artifactId>
461                                 </exclusion>
462                                 <exclusion>
463                                         <groupId>org.apache.tomcat</groupId>
464                                         <artifactId>tomcat-util</artifactId>
465                                 </exclusion>
466                                 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId> 
467                                         </exclusion> -->
468                                 <exclusion>
469                                         <groupId>com.att.nsa</groupId>
470                                         <artifactId>tomcat-util</artifactId>
471                                 </exclusion>
472
473                                 <exclusion>
474                                         <groupId>commons-beanutils</groupId>
475                                         <artifactId>commons-beanutils</artifactId>
476                                 </exclusion>
477                                 <exclusion>
478                                         <groupId>javax.mail</groupId>
479                                         <artifactId>mail</artifactId>
480                                 </exclusion>
481                         </exclusions>
482                 </dependency>
483                 <dependency>
484                         <groupId>org.mockito</groupId>
485                         <artifactId>mockito-core</artifactId>
486                         <version>1.10.19</version>
487                         <scope>test</scope>
488                 </dependency>
489                 <dependency>
490                         <groupId>org.powermock</groupId>
491                         <artifactId>powermock-module-junit4</artifactId>
492                         <version>1.6.4</version>
493                         <scope>test</scope>
494                 </dependency>
495                 <dependency>
496                         <groupId>org.powermock</groupId>
497                         <artifactId>powermock-api-mockito</artifactId>
498                         <version>1.6.4</version>
499                         <scope>test</scope>
500                 </dependency>
501                 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId> 
502                         <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId> 
503                         <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency> 
504                         <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> 
505                         <version>1.9.13</version> </dependency> -->
506
507                 <dependency>
508                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
509                         <artifactId>jackson-jaxrs-json-provider</artifactId>
510                         <version>2.2.3</version>
511                 </dependency>
512
513                 <dependency>
514                         <groupId>com.fasterxml.jackson.core</groupId>
515                         <artifactId>jackson-core</artifactId>
516                         <version>2.11.2</version>
517                 </dependency>
518
519                 <dependency>
520                         <groupId>com.fasterxml.jackson.core</groupId>
521                         <artifactId>jackson-databind</artifactId>
522                         <version>2.11.2</version>
523                 </dependency>
524                 <dependency>
525                         <groupId>org.grails</groupId>
526                         <artifactId>grails-web</artifactId>
527                         <version>2.5.4</version>
528                         <exclusions>
529                                 <exclusion>
530                                         <groupId>org.grails</groupId>
531                                         <artifactId>grails-web-jsp</artifactId>
532                                 </exclusion>
533                         </exclusions>
534                 </dependency>
535                 <dependency>
536                         <groupId>org.codehaus.groovy</groupId>
537                         <artifactId>groovy-all</artifactId>
538                         <version>2.4.8</version>
539                         <scope>compile</scope>
540                         <exclusions>
541                                 <exclusion>
542                                         <artifactId>jline</artifactId>
543                                         <groupId>jline</groupId>
544                                 </exclusion>
545                         </exclusions>
546                 </dependency>
547
548                 <dependency>
549                         <groupId>junit</groupId>
550                         <artifactId>junit</artifactId>
551                         <version>4.11</version>
552                         <scope>test</scope>
553                 </dependency>
554
555                 <dependency>
556                         <groupId>org.json</groupId>
557                         <artifactId>json</artifactId>
558                         <version>20131018</version>
559                 </dependency>
560
561                 <!-- CXF JAX-RS extension -->
562                 <dependency>
563                         <groupId>org.apache.cxf</groupId>
564                         <artifactId>cxf-rt-rs-extension-providers</artifactId>
565                         <version>3.2.2</version>
566                         <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> 
567                                 </exclusion> </exclusions> -->
568                         <exclusions>
569                                 <exclusion>
570                                         <groupId>org.apache.cxf</groupId>
571                                         <artifactId>cxf-core</artifactId>
572                                 </exclusion>
573                         </exclusions>
574                 </dependency>
575                 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> 
576                         <version>3.1.14</version> </dependency> -->
577                 <dependency>
578                         <groupId>org.codehaus.jettison</groupId>
579                         <artifactId>jettison</artifactId>
580                         <version>1.3.7</version>
581                 </dependency>
582
583                 <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId> 
584                         <version>1.6.1</version> <scope>provided</scope> </dependency> -->
585                 <dependency>
586                         <groupId>com.att.ajsc</groupId>
587                         <artifactId>ajsc-archetype-parent</artifactId>
588                         <version>3.0.11-oss</version>
589                         <type>pom</type>
590                 </dependency>
591
592         <dependency>
593                 <groupId>org.onap.aaf.authz</groupId>
594                 <artifactId>aaf-cadi-aaf</artifactId>
595                 <version>2.1.13</version>
596         </dependency>
597         <dependency>
598                 <groupId>backport-util-concurrent</groupId>
599                 <artifactId>backport-util-concurrent</artifactId>
600                 <version>3.1</version>
601         </dependency>
602                 <dependency>
603                         <groupId>org.apache.camel</groupId>
604                         <artifactId>camel-core</artifactId>
605                         <version>3.4.0</version>
606                 </dependency>
607                 <dependency>
608                         <groupId>org.apache.camel</groupId>
609                         <artifactId>camel-quartz</artifactId>
610                         <version>${camel.version}</version>
611                 </dependency>
612                 <dependency>
613                         <groupId>org.apache.camel</groupId>
614                         <artifactId>camel-spring</artifactId>
615                         <version>${camel.version.latest}</version>
616                 </dependency>
617                 <dependency>
618                         <groupId>org.apache.camel</groupId>
619                         <artifactId>camel-restlet</artifactId>
620                         <version>${camel.version}</version>
621                         <exclusions>
622                                 <exclusion>
623                                         <artifactId>org.restlet</artifactId>
624                                         <groupId>org.restlet.jse</groupId>
625                                 </exclusion>
626                         </exclusions>
627                 </dependency>
628                 <dependency>
629                         <groupId>org.apache.camel</groupId>
630                         <artifactId>camel-servlet</artifactId>
631                         <version>${camel.version}</version>
632                         <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> 
633                                 </exclusion> </exclusions> -->
634                 </dependency>
635                 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> 
636                         <version>4.0</version> </dependency> -->
637
638                 <dependency>
639                         <groupId>org.apache.camel</groupId>
640                         <artifactId>camel-http4</artifactId>
641                         <version>${camel.version}</version>
642                         <exclusions>
643                                 <exclusion>
644                                         <groupId>org.apache.geronimo.specs</groupId>
645                                         <artifactId>geronimo-servlet_2.5_spec</artifactId>
646                                 </exclusion>
647                         </exclusions>
648                 </dependency>
649                 <dependency>
650                         <groupId>org.apache.camel</groupId>
651                         <artifactId>camel-groovy</artifactId>
652                         <version>${camel.version.latest}</version>
653                 </dependency>
654                 <dependency>
655                         <groupId>org.apache.camel</groupId>
656                         <artifactId>camel-twitter</artifactId>
657                         <version>${camel.version}</version>
658                 </dependency>
659                 <dependency>
660                         <groupId>org.apache.camel</groupId>
661                         <artifactId>camel-mail</artifactId>
662                         <version>${camel.version}</version>
663                 </dependency>
664                 <dependency>
665                         <groupId>org.apache.camel</groupId>
666                         <artifactId>camel-smpp</artifactId>
667                         <version>${camel.version}</version>
668                 </dependency>
669                 <dependency>
670                         <groupId>org.apache.camel</groupId>
671                         <artifactId>camel-jms</artifactId>
672                         <version>${camel.version}</version>
673                 </dependency>
674                 <dependency>
675                         <groupId>org.apache.camel</groupId>
676                         <artifactId>camel-script</artifactId>
677                         <version>${camel.version}</version>
678                 </dependency>
679                 <dependency>
680                         <groupId>org.apache.camel</groupId>
681                         <artifactId>camel-xmpp</artifactId>
682                         <version>${camel.version}</version>
683                 </dependency>
684                 <dependency>
685                         <groupId>org.igniterealtime.smack</groupId>
686                         <artifactId>smack-tcp</artifactId>
687                         <version>4.1.0-rc1</version>
688                 </dependency>
689                 <dependency>
690                         <groupId>org.apache.camel</groupId>
691                         <artifactId>camel-velocity</artifactId>
692                         <version>${camel.version.latest}</version>
693                 </dependency>
694                 <dependency>
695                         <groupId>com.att.ajsc</groupId>
696                         <artifactId>ajsc-runner</artifactId>
697                         <version>3.0.11-oss</version>
698                         <scope>runtime</scope>
699                 </dependency>
700                 <dependency>
701                         <groupId>com.att.ajsc</groupId>
702                         <artifactId>ajsc-core</artifactId>
703                         <version>3.0.11-oss</version>
704                         <scope>provided</scope>
705                 </dependency>
706                 <dependency>
707                         <groupId>org.springframework</groupId>
708                         <artifactId>spring-test</artifactId>
709                         <version>3.2.12.RELEASE</version>
710                         <scope>test</scope>
711                 </dependency>
712         </dependencies>
713         <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory> 
714                 </resource> </resources> </build> -->
715         <profiles>
716                 <!-- Use this profile to run the AJSC locally. This profile can be successfully 
717                         shutdown WITHIN eclipse even in a Windows environment. Debugging is also 
718                         available with this profile. -->
719                 <profile>
720                         <id>docker</id>
721                         <properties>
722                                 <skip.docker.build>false</skip.docker.build>
723                                 <skip.docker.tag>false</skip.docker.tag>
724                                 <skip.docker.push>false</skip.docker.push>
725                         </properties>
726                         <build>
727                 <plugins>
728                     <plugin>
729                         <groupId>org.codehaus.groovy.maven</groupId>
730                         <artifactId>gmaven-plugin</artifactId>
731                         <executions>
732                             <execution>
733                                 <phase>validate</phase>
734                                 <goals>
735                                     <goal>execute</goal>
736                                 </goals>
737                                 <configuration>
738                                     <properties>
739                                         <ver>${project.version}</ver>
740                                         <timestamp>${maven.build.timestamp}</timestamp>
741                                     </properties>
742                                     <source>
743                                         println project.properties['ver'];
744                                         if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
745                                         project.properties['dockertag1']=project.properties['ver'] + "-latest";
746                                         project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
747                                         } else {
748                                         project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
749                                         project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
750                                         }
751                                         println 'docker tag 1: ' + project.properties['dockertag1'];
752                                         println 'docker tag 2: ' + project.properties['dockertag2'];
753                                     </source>
754                                 </configuration>
755                             </execution>
756                         </executions>
757                     </plugin>
758                    <plugin>
759                         <groupId>io.fabric8</groupId>
760                         <artifactId>docker-maven-plugin</artifactId>
761                         <version>0.28.0</version>  
762                         <configuration>
763                             <verbose>${docker.verbose}</verbose>
764                             <apiVersion>${docker.apiVersion}</apiVersion>
765                             <pullRegistry>${docker.pull.registry}</pullRegistry>
766                             <pushRegistry>${docker.push.registry}</pushRegistry>
767                             <images>
768                                 <image>                            
769                                     <name>onap/dmaap/dmaap-mr</name>
770                                     <build>
771                                         <cleanup>try</cleanup>
772                                         <dockerFileDir>${dockerLocation}</dockerFileDir>
773                                         <dockerFile>Dockerfile</dockerFile>
774                                         <tags>
775                                             <tag>${dockertag1}</tag>
776                                             <tag>${dockertag2}</tag>
777                                         </tags>
778                                     </build>
779                                 </image>
780                             </images>
781                         </configuration>
782                          <executions>
783                              <execution>
784                                  <id>generate-images</id>
785                                  <phase>install</phase>
786                                  <goals>
787                                      <goal>build</goal>
788                                  </goals>
789                              </execution>
790                              <execution>
791                                  <id>push-images</id>
792                                  <phase>deploy</phase>
793                                  <goals>
794                                      <goal>push</goal>
795                                  </goals>
796                              </execution>
797                          </executions>
798                     </plugin>
799                 </plugins>
800             </build>
801                 </profile>
802
803                 <profile>
804                         <id>runLocal</id>
805                         <build>
806                                 <defaultGoal>initialize</defaultGoal>
807                                 <plugins>
808                                         <plugin>
809                                                 <groupId>org.apache.maven.plugins</groupId>
810                                                 <artifactId>maven-antrun-plugin</artifactId>
811                                                 <executions>
812                                                         <execution>
813                                                                 <phase>initialize</phase>
814                                                                 <configuration>
815                                                                         <target name="runLocal">
816                                                                                 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
817                                                                         </target>
818                                                                 </configuration>
819                                                                 <goals>
820                                                                         <goal>run</goal>
821                                                                 </goals>
822                                                         </execution>
823                                                 </executions>
824                                         </plugin>
825                                 </plugins>
826                         </build>
827                 </profile>
828
829                 <profile>
830                         <id>runAjsc</id>
831                         <build>
832                                 <defaultGoal>initialize</defaultGoal>
833                                 <plugins>
834                                         <plugin>
835                                                 <groupId>org.codehaus.mojo</groupId>
836                                                 <artifactId>exec-maven-plugin</artifactId>
837                                                 <version>1.3.2</version>
838                                                 <executions>
839                                                         <execution>
840                                                                 <phase>initialize</phase>
841                                                                 <goals>
842                                                                         <goal>java</goal>
843                                                                 </goals>
844                                                                 <configuration>
845                                                                         <!-- In order to better mimic a SOA cloud installation of AJSC (and 
846                                                                                 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult 
847                                                                                 to diagnose), within this profile used to run locally, we are NOT including 
848                                                                                 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars. 
849                                                                                 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is 
850                                                                                 the only dependency required by this profile to run locally. -->
851                                                                         <includeProjectDependencies>false</includeProjectDependencies>
852                                                                         <includePluginDependencies>true</includePluginDependencies>
853                                                                         <executable>java</executable>
854                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
855                                                                         <executableDependency>
856                                                                                 <groupId>com.att.ajsc</groupId>
857                                                                                 <artifactId>ajsc-runner</artifactId>
858                                                                         </executableDependency>
859                                                                         <additionalClasspathElements>
860                                                                                 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
861                                                                         </additionalClasspathElements>
862
863                                                                         <environmentVariables>
864                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
865                                                                         </environmentVariables>
866
867                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
868                                                                         <systemProperties>
869                                                                                 <systemProperty>
870                                                                                         <key>AJSC_HOME</key>
871                                                                                         <value>${runAjscHome}</value>
872                                                                                 </systemProperty>
873                                                                                 <systemProperty>
874                                                                                         <key>AJSC_HOME</key>
875                                                                                         <value>${runAjscHome}</value>
876                                                                                 </systemProperty>
877                                                                                 <systemProperty>
878                                                                                         <key>AJSC_CONF_HOME</key>
879                                                                                         <value>${basedir}/bundleconfig-local</value>
880                                                                                 </systemProperty>
881                                                                                 <systemProperty>
882                                                                                         <key>logback.configurationFile</key>
883                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
884                                                                                 </systemProperty>
885                                                                                 <systemProperty>
886                                                                                         <key>com.att.eelf.logging.file</key>
887                                                                                         <value>logback.xml</value>
888                                                                                 </systemProperty>
889                                                                                 <systemProperty>
890                                                                                         <key>com.att.eelf.logging.path</key>
891                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
892                                                                                 </systemProperty>
893                                                                                 <systemProperty>
894                                                                                         <key>logging.config</key>
895                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
896                                                                                 </systemProperty>
897                                                                                 <systemProperty>
898                                                                                         <key>AJSC_SHARED_CONFIG</key>
899                                                                                         <value>${basedir}/ajsc-shared-config</value>
900                                                                                 </systemProperty>
901
902                                                                                 <!-- Please, NOTE: The following 2 system properties will normally 
903                                                                                         be set within the sys-props.properties file once deployed to a node. We are 
904                                                                                         setting them HERE to run locally to make more efficient use of maven variable 
905                                                                                         replacement for ${basedir} -->
906                                                                                 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that 
907                                                                                         will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
908                                                                                 <sysproperty>
909                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
910                                                                                         <value>${basedir}/target/commonLibs</value>
911                                                                                 </sysproperty>
912                                                                                 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular 
913                                                                                         files that may need to be added to the classpath. These files will be externalized 
914                                                                                         on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties). 
915                                                                                         Failure to have these files on the classpath may result in errors thrown 
916                                                                                         by csm framework. -->
917                                                                                 <sysproperty>
918                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
919                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
920                                                                                 </sysproperty>
921
922                                                                                 <systemProperty>
923                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
924                                                                                         <value>${module.ajsc.namespace.name}</value>
925                                                                                 </systemProperty>
926                                                                                 <systemProperty>
927                                                                                         <key>AJSC_SERVICE_VERSION</key>
928                                                                                         <value>${module.ajsc.namespace.version}</value>
929                                                                                 </systemProperty>
930                                                                                 <systemProperty>
931                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
932                                                                                         <value>${project.version}</value>
933                                                                                 </systemProperty>
934                                                                                 <systemProperty>
935                                                                                         <key>server.port</key>
936                                                                                         <value>${serverPort}</value>
937                                                                                 </systemProperty>
938                                                                         </systemProperties>
939
940                                                                         <!-- Command Line Arguments to add to the java command. Here, you 
941                                                                                 can specify the port as well as the Context you want your service to run 
942                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default 
943                                                                                 configuration of the AJSC is to run under the / Context. Setting the port 
944                                                                                 here can aid during the development phase of your service. However, you can 
945                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral 
946                                                                                 port. -->
947                                                                         <arguments>
948                                                                                 <argument>context=/</argument>
949                                                                                 <argument>port=${serverPort}</argument>
950                                                                                 <argument>sslport=${sslport}</argument>
951                                                                         </arguments>
952                                                                 </configuration>
953                                                         </execution>
954                                                 </executions>
955                                                 <configuration>
956                                                         <executable>java</executable>
957                                                 </configuration>
958                                                 <dependencies>
959                                                         <dependency>
960                                                                 <groupId>com.att.ajsc</groupId>
961                                                                 <artifactId>ajsc-runner</artifactId>
962                                                                 <version>${ajscRuntimeVersion}</version>
963                                                         </dependency>
964                                                 </dependencies>
965                                         </plugin>
966
967                                 </plugins>
968                         </build>
969                 </profile>
970                 <profile>
971                         <id>standardbuild</id>
972                         <activation>
973                                 <file>
974                                         <exists>src</exists>
975                                 </file>
976                         </activation>
977                         <build>
978                                 <resources>
979                                         <resource>
980                                                 <directory>src/main/resources</directory>
981                                                 <excludes>
982                                                         <exclude>extApps/*.*</exclude>
983                                                         <exclude>${module.ajsc.namespace.name}/**</exclude>
984                                                 </excludes>
985                                         </resource>
986                                         <resource>
987                                                 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
988                                                 <excludes>
989                                                         <exclude>**/*.route</exclude>
990                                                         <exclude>**/*.props</exclude>
991                                                         <exclude>**/*.xslt</exclude>
992                                                         <exclude>**/*.vm</exclude>
993                                                         <exclude>**/*.jar</exclude>
994                                                         <exclude>**/*.xml</exclude>
995                                                 </excludes>
996                                         </resource>
997                                 </resources>
998                                 <plugins>
999                                         <plugin>
1000                                                 <groupId>org.apache.maven.plugins</groupId>
1001                                                 <artifactId>maven-compiler-plugin</artifactId>
1002                                                 <version>3.1</version>
1003                                         </plugin>
1004                                         <plugin>
1005                                                 <groupId>org.codehaus.groovy</groupId>
1006                                                 <artifactId>groovy-eclipse-compiler</artifactId>
1007                                                 <version>2.8.0-01</version>
1008                                                 <extensions>true</extensions>
1009                                         </plugin>
1010
1011                                         <plugin>
1012                                                 <groupId>org.codehaus.mojo</groupId>
1013                                                 <artifactId>exec-maven-plugin</artifactId>
1014                                                 <version>1.2.1</version>
1015                                                 <executions>
1016                                                         <execution>
1017                                                                 <goals>
1018                                                                         <goal>exec</goal>
1019                                                                 </goals>
1020                                                         </execution>
1021                                                 </executions>
1022                                                 <configuration>
1023                                                         <executable>bash</executable>
1024                                                         <arguments>
1025                                                                 <argument>runServer.sh</argument>
1026                                                         </arguments>
1027                                                 </configuration>
1028                                         </plugin>
1029                                         <plugin>
1030                                                 <groupId>org.codehaus.mojo</groupId>
1031                                                 <artifactId>build-helper-maven-plugin</artifactId>
1032                                                 <version>1.9</version>
1033                                                 <executions>
1034                                                         <execution>
1035                                                                 <id>add-source-groovy-ajsc-arch-parent</id>
1036                                                                 <phase>generate-sources</phase>
1037                                                                 <goals>
1038                                                                         <goal>add-source</goal>
1039                                                                 </goals>
1040                                                                 <configuration>
1041                                                                         <sources>
1042                                                                                 <source>src/main/groovy</source>
1043                                                                         </sources>
1044                                                                 </configuration>
1045                                                         </execution>
1046                                                         <execution>
1047                                                                 <id>add-test-source-groovy-ajsc-arch-parent</id>
1048                                                                 <phase>generate-test-sources</phase>
1049                                                                 <goals>
1050                                                                         <goal>add-test-source</goal>
1051                                                                 </goals>
1052                                                                 <configuration>
1053                                                                         <sources>
1054                                                                                 <source>src/test/groovy</source>
1055                                                                         </sources>
1056                                                                 </configuration>
1057                                                         </execution>
1058                                                         <execution>
1059                                                                 <id>regex-properties-ajsc-arch-parent</id>
1060                                                                 <phase>initialize</phase>
1061                                                                 <goals>
1062                                                                         <goal>regex-properties</goal>
1063                                                                 </goals>
1064                                                                 <configuration>
1065                                                                         <regexPropertySettings>
1066                                                                                 <regexPropertySetting>
1067                                                                                         <name>replaceWinFilePath</name>
1068                                                                                         <value>${runAjscHome}</value>
1069                                                                                         <regex>\\</regex>
1070                                                                                         <replacement>/</replacement>
1071                                                                                         <failIfNoMatch>false</failIfNoMatch>
1072                                                                                 </regexPropertySetting>
1073                                                                                 <regexPropertySetting>
1074                                                                                         <name>replaceWinBasedirPath</name>
1075                                                                                         <value>${basedir}</value>
1076                                                                                         <regex>\\</regex>
1077                                                                                         <replacement>/</replacement>
1078                                                                                         <failIfNoMatch>false</failIfNoMatch>
1079                                                                                 </regexPropertySetting>
1080                                                                         </regexPropertySettings>
1081                                                                 </configuration>
1082                                                         </execution>
1083                                                 </executions>
1084                                         </plugin>
1085                                         <plugin>
1086                                                 <groupId>org.codehaus.mojo</groupId>
1087                                                 <artifactId>properties-maven-plugin</artifactId>
1088                                                 <version>1.0-alpha-2</version>
1089                                                 <executions>
1090                                                         <execution>
1091                                                                 <id>write-project-properties-ajsc-arch-parent</id>
1092                                                                 <phase>generate-resources</phase>
1093                                                                 <goals>
1094                                                                         <goal>write-project-properties</goal>
1095                                                                 </goals>
1096                                                                 <configuration>
1097                                                                         <outputFile>
1098                                                                                 ${project.build.outputDirectory}/build.properties
1099                                                                         </outputFile>
1100                                                                 </configuration>
1101                                                         </execution>
1102                                                 </executions>
1103                                         </plugin>
1104                                         <plugin>
1105                                                 <groupId>org.apache.maven.plugins</groupId>
1106                                                 <artifactId>maven-assembly-plugin</artifactId>
1107                                                 <version>2.4</version>
1108                                                 <executions>
1109                                                         <execution>
1110                                                                 <id>make-assembly-ajsc-arch-parent</id>
1111                                                                 <phase>package</phase>
1112                                                                 <goals>
1113                                                                         <goal>single</goal>
1114                                                                 </goals>
1115                                                         </execution>
1116                                                 </executions>
1117                                                 <configuration>
1118                                                         <finalName>${project.artifactId}</finalName>
1119                                                         <descriptors>
1120                                                                 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1121                                                         </descriptors>
1122                                                 </configuration>
1123                                         </plugin>
1124                                         <plugin>
1125                                                 <groupId>org.codehaus.groovy.maven</groupId>
1126                                                 <artifactId>gmaven-plugin</artifactId>
1127                                                 <version>1.0</version>
1128                                                 <executions>
1129                                                         <execution>
1130                                                                 <id>gmaven-ajsc-arch-parent</id>
1131                                                                 <phase>package</phase>
1132                                                                 <goals>
1133                                                                         <goal>execute</goal>
1134                                                                 </goals>
1135                                                                 <configuration>
1136                                                                         <sourcepath>src/main/groovy</sourcepath>
1137                                                                         <source>
1138                                                                                 import ajsc.AssemblyService;
1139                                                                                 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1140                                                                         </source>
1141                                                                 </configuration>
1142                                                         </execution>
1143                                                 </executions>
1144                                         </plugin>
1145                                         <plugin>
1146                                                 <groupId>org.apache.maven.plugins</groupId>
1147                                                 <artifactId>maven-antrun-plugin</artifactId>
1148                                                 <version>1.7</version>
1149                                                 <executions>
1150                                                         <execution>
1151                                                                 <id>prep_service_runtime-ajsc-arch-parent</id>
1152                                                                 <phase>generate-resources</phase>
1153                                                                 <configuration>
1154                                                                         <target name="prep_service_runtime">
1155                                                                                 <echo message="ENTERING 'copy_services_template' ant tasks" />
1156                                                                                 <!-- <filter token="basedir" value="${basedir}" /> -->
1157                                                                                 <!-- delete any prior stating stuff before package phase -->
1158                                                                                 <delete dir="target/versioned-ajsc" includes="**/*" />
1159                                                                                 <delete dir="target/versioned-runtime" includes="**/*" />
1160                                                                                 <delete dir="target/CDP" includes="**/*" />
1161
1162                                                                                 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__ 
1163                                                                                         is replaced by module.ajsc.namespace.name) -->
1164                                                                                 <copy todir="target/versioned-ajsc">
1165                                                                                         <fileset dir="src/main/ajsc" includes="**/*" />
1166                                                                                 </copy>
1167
1168                                                                                 <!-- Copying the CDP, bundleconfig, and StaticContent to the target 
1169                                                                                         directory for future use by replacer plugin -->
1170                                                                                 <copy todir="target/CDP" failonerror="false">
1171                                                                                         <fileset dir="CDP" includes="**/*.sh" />
1172                                                                                 </copy>
1173                                                                                 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1174                                                                                         failonerror="false"
1175                                                                                         tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1176                                                                                 <copy todir="target/staticContent" failonerror="false">
1177                                                                                         <fileset dir="staticContent" includes="**/*" />
1178                                                                                 </copy>
1179                                                                                 <copy todir="target/bundleconfig" failonerror="false">
1180                                                                                         <!-- filtering="true"> -->
1181                                                                                         <fileset dir="bundleconfig" />
1182                                                                                 </copy>
1183
1184                                                                                 <echo message="EXITING 'copy_services_template' ant tasks" />
1185                                                                                 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1186                                                                                 <copy todir="target/versioned-runtime">
1187                                                                                         <fileset dir="src/main/runtime" includes="**/*" />
1188                                                                                 </copy>
1189                                                                                 <delete
1190                                                                                         file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1191                                                                                 <copy flatten="true"
1192                                                                                         file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1193                                                                                         tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1194                                                                                 <delete
1195                                                                                         file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1196                                                                                 <copy flatten="true"
1197                                                                                         file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1198                                                                                         tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1199                                                                                 <delete
1200                                                                                         file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1201                                                                                 <copy flatten="true"
1202                                                                                         file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1203                                                                                         tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1204                                                                                 <delete
1205                                                                                         file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1206                                                                                 <copy flatten="true"
1207                                                                                         file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1208                                                                                         tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1209                                                                                 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1210                                                                         </target>
1211                                                                 </configuration>
1212                                                                 <goals>
1213                                                                         <goal>run</goal>
1214                                                                 </goals>
1215                                                         </execution>
1216                                                         <execution>
1217                                                                 <id>clrf</id>
1218                                                                 <phase>package</phase>
1219                                                                 <configuration>
1220                                                                         <tasks>
1221                                                                                 <fixcrlf
1222                                                                                         srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1223                                                                                         includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1224                                                                         </tasks>
1225                                                                 </configuration>
1226                                                                 <goals>
1227                                                                         <goal>run</goal>
1228                                                                 </goals>
1229                                                         </execution>
1230                                                         <execution>
1231                                                                 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1232                                                                 <phase>package</phase>
1233                                                                 <configuration>
1234                                                                         <target name="prep_home_directory_for_swm_pkgcreate">
1235                                                                                 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1236                                                                         </target>
1237                                                                 </configuration>
1238                                                                 <goals>
1239                                                                         <goal>run</goal>
1240                                                                 </goals>
1241                                                         </execution>
1242                                                 </executions>
1243                                         </plugin>
1244                                         <plugin>
1245                                                 <groupId>org.apache.maven.plugins</groupId>
1246                                                 <artifactId>maven-dependency-plugin</artifactId>
1247                                                 <version>2.8</version>
1248                                                 <executions>
1249                                                         <execution>
1250                                                                 <id>copy-dependencies-ajsc-arch-parent</id>
1251                                                                 <phase>prepare-package</phase>
1252                                                                 <goals>
1253                                                                         <goal>copy-dependencies</goal>
1254                                                                 </goals>
1255                                                                 <configuration>
1256                                                                         <includeScope>runtime</includeScope>
1257                                                                         <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1258                                                                         <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1259                                                                         <silent>true</silent>
1260                                                                 </configuration>
1261                                                         </execution>
1262                                                         <execution>
1263                                                                 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1264                                                                 <phase>prepare-package</phase>
1265                                                                 <goals>
1266                                                                         <goal>copy-dependencies</goal>
1267                                                                 </goals>
1268                                                                 <configuration>
1269                                                                         <includeScope>provided</includeScope>
1270                                                                         <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1271                                                                         <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1272                                                                         <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1273                                                                         <silent>true</silent>
1274                                                                 </configuration>
1275                                                         </execution>
1276                                                         <execution>
1277                                                                 <id>copyrunner</id>
1278                                                                 <phase>prepare-package</phase>
1279                                                                 <goals>
1280                                                                         <goal>copy-dependencies</goal>
1281                                                                 </goals>
1282                                                                 <configuration>
1283                                                                         <includeArtifactIds>ajsc-runner</includeArtifactIds>
1284                                                                         <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1285                                                                 </configuration>
1286                                                         </execution>
1287                                                 </executions>
1288                                         </plugin>
1289                                         <plugin>
1290                                                 <artifactId>maven-resources-plugin</artifactId>
1291                                                 <version>2.7</version>
1292                                                 <executions>
1293                                                         <execution>
1294                                                                 <id>copyconfig</id>
1295                                                                 <phase>package</phase>
1296                                                                 <goals>
1297                                                                         <goal>copy-resources</goal>
1298                                                                 </goals>
1299                                                                 <configuration>
1300                                                                         <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
1301                                                                         <resources>
1302                                                                                 <resource>
1303                                                                                         <directory>src/main/config</directory>
1304                                                                                 </resource>
1305                                                                         </resources>
1306                                                                 </configuration>
1307                                                         </execution>
1308                                                         <execution>
1309                                                                 <id>copyscript</id>
1310                                                                 <phase>package</phase>
1311                                                                 <goals>
1312                                                                         <goal>copy-resources</goal>
1313                                                                 </goals>
1314                                                                 <configuration>
1315                                                                         <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1316                                                                         <resources>
1317                                                                                 <resource>
1318                                                                                         <directory>src/main/scripts</directory>
1319                                                                                 </resource>
1320                                                                         </resources>
1321                                                                 </configuration>
1322                                                         </execution>
1323                                                         <execution>
1324                                                                 <id>copy-docker-file</id>
1325                                                                 <phase>prepare-package</phase>
1326                                                                 <goals>
1327                                                                         <goal>copy-resources</goal>
1328                                                                 </goals>
1329                                                                 <configuration>
1330                                                                         <outputDirectory>${dockerLocation}</outputDirectory>
1331                                                                         <overwrite>true</overwrite>
1332                                                                         <resources>
1333                                                                                 <resource>
1334                                                                                         <directory>${basedir}/src/main/resources/docker</directory>
1335                                                                                         <filtering>true</filtering>
1336                                                                                         <includes>
1337                                                                                                 <include>**/*</include>
1338                                                                                         </includes>
1339                                                                                 </resource>
1340                                                                         </resources>
1341                                                                 </configuration>
1342                                                         </execution>
1343
1344                                                 </executions>
1345                                         </plugin>
1346
1347                                         <plugin>
1348                                                 <groupId>com.google.code.maven-replacer-plugin</groupId>
1349                                                 <artifactId>replacer</artifactId>
1350                                                 <version>1.5.2</version>
1351                                                 <executions>
1352                                                         <execution>
1353                                                                 <id>google-replacer-ajsc-arch-parent</id>
1354                                                                 <phase>prepare-package</phase>
1355                                                                 <goals>
1356                                                                         <goal>replace</goal>
1357                                                                 </goals>
1358                                                                 <configuration>
1359                                                                         <basedir>${project.build.directory}</basedir>
1360                                                                         <includes>
1361                                                                                 <include>staticContent/**/*.html</include>
1362                                                                                 <include>CDP/**</include>
1363                                                                                 <include>bundleconfig/**</include>
1364                                                                                 <include>versioned-runtime/**/*.context</include>
1365                                                                                 <include>versioned-runtime/**/*.json</include>
1366                                                                                 <include>versioned-ajsc/**/*.route</include>
1367                                                                                 <include>versioned-ajsc/**/*.groovy</include>
1368                                                                                 <include>versioned-ajsc/**/*.xml</include>
1369                                                                                 <include>classes/*.properties</include>
1370                                                                                 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1371                                                                         </includes>
1372                                                                         <escape>true</escape>
1373                                                                         <replacements>
1374                                                                                 <replacement>
1375                                                                                         <token>__module_ajsc_namespace_name__</token>
1376                                                                                         <value>${module.ajsc.namespace.name}</value>
1377                                                                                 </replacement>
1378                                                                                 <replacement>
1379                                                                                         <token>__module_ajsc_namespace_version__</token>
1380                                                                                         <value>${module.ajsc.namespace.version}</value>
1381                                                                                 </replacement>
1382                                                                                 <replacement>
1383                                                                                         <token>__ajscHome__</token>
1384                                                                                         <value>${replaceWinFilePath}</value>
1385                                                                                 </replacement>
1386                                                                                 <replacement>
1387                                                                                         <token>__projectGroupId__</token>
1388                                                                                         <value>${project.groupId}</value>
1389                                                                                 </replacement>
1390                                                                                 <replacement>
1391                                                                                         <token>__projectArtifactId__</token>
1392                                                                                         <value>${project.artifactId}</value>
1393                                                                                 </replacement>
1394                                                                                 <replacement>
1395                                                                                         <token>__projectVersion__</token>
1396                                                                                         <value>${project.version}</value>
1397                                                                                 </replacement>
1398                                                                                 <replacement>
1399                                                                                         <token>__basedir__</token>
1400                                                                                         <value>${replaceWinBasedirPath}</value>
1401                                                                                 </replacement>
1402                                                                         </replacements>
1403                                                                 </configuration>
1404                                                         </execution>
1405                                                 </executions>
1406                                         </plugin>
1407                                 </plugins>
1408                                 <pluginManagement>
1409                                         <plugins>
1410                                                 <plugin>
1411                                                         <groupId>org.apache.maven.plugins</groupId>
1412                                                         <artifactId>maven-surefire-plugin</artifactId>
1413                                                         <version>2.14.1</version>
1414                                                         <configuration>
1415                                                                 <excludes>
1416                                                                         <exclude>**/AbstractTest.java</exclude>
1417                                                                 </excludes>
1418                                                         </configuration>
1419                                                 </plugin>
1420                                         </plugins>
1421                                 </pluginManagement>
1422                         </build>
1423                 </profile>
1424         </profiles>
1425
1426 </project>