a75f1a3acc532cf5ff542f7b26b26d26dcde4e4f
[dmaap/messagerouter/messageservice.git] / pom.xml
1 <!--
2      ============LICENSE_START=======================================================
3      org.onap.dmaap
4      ================================================================================
5      Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6      ================================================================================
7      Licensed under the Apache License, Version 2.0 (the "License");
8      you may not use this file except in compliance with the License.
9      You may obtain a copy of the License at
10            http://www.apache.org/licenses/LICENSE-2.0
11      
12      Unless required by applicable law or agreed to in writing, software
13      distributed under the License is distributed on an "AS IS" BASIS,
14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15      See the License for the specific language governing permissions and
16      limitations under the License.
17      ============LICENSE_END=========================================================
18    
19      ECOMP is a trademark and service mark of AT&T Intellectual Property.
20      
21  -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25
26         <parent>
27                 <groupId>org.onap.oparent</groupId>
28                 <artifactId>oparent</artifactId>
29                 <version>0.1.1</version>
30         </parent>
31         
32         <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
33         <artifactId>dmaapMR1</artifactId>
34         <version>1.0.2-SNAPSHOT</version>
35         <name>dmaap-messagerouter-messageservice</name>
36         <description>Message Router - Restful interface built for kafka</description>
37          <licenses>
38           <license>
39             <name>Apache License Version 2.0</name>
40           </license>
41         </licenses>
42
43         <developers>
44            <developer>
45              <name>Rajashree</name>
46              <email></email>
47              <organization>ATT</organization>
48              <organizationUrl>www.att.com</organizationUrl>
49            </developer>
50            <developer>
51              <name>Ramkumar</name>
52              <email></email>
53              <organization>ATT</organization>
54              <organizationUrl>www.att.com</organizationUrl>
55            </developer>
56          </developers>
57         
58         <build>
59                 <plugins>
60                 <plugin>
61                                 <groupId>org.apache.maven.plugins</groupId>
62                                 <artifactId>maven-site-plugin</artifactId>
63                                 <version>3.6</version>
64                                 <dependencies>
65                                         <dependency>
66                                                 <groupId>org.apache.maven.wagon</groupId>
67                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
68                                                 <version>2.10</version>
69                                         </dependency>
70                                 </dependencies>
71                         </plugin>
72                         <plugin>
73                                                 <groupId>org.apache.maven.plugins</groupId>
74                                                 <artifactId>maven-antrun-plugin</artifactId>
75                                                 <version>1.7</version>
76                                                 <executions>
77                                                         <execution>
78                                                                 <id>prep_service_runtime-ajsc-arch-parent</id>
79                                                                 <phase>generate-resources</phase>
80                                                                 <configuration>
81                                                                         <target name="prep_service_runtime">
82                                                                                 <echo message="ENTERING 'copy_services_template' ant tasks" />
83                                                                                 <!-- <filter token="basedir" value="${basedir}" /> -->
84                                                                                 <!-- delete any prior stating stuff before package phase -->
85                                                                                 <delete dir="target/versioned-ajsc" includes="**/*" />
86                                                                                 <delete dir="target/versioned-runtime" includes="**/*" />
87                                                                                 <delete dir="target/CDP" includes="**/*" />
88
89                                                                                 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__ 
90                                                                                         is replaced by module.ajsc.namespace.name) -->
91                                                                                 <copy todir="target/versioned-ajsc">
92                                                                                         <fileset dir="src/main/ajsc" includes="**/*" />
93                                                                                 </copy>
94
95                                                                                 <!-- Copying the CDP, bundleconfig, and StaticContent to the target 
96                                                                                         directory for future use by replacer plugin -->
97                                                                                 <copy todir="target/CDP" failonerror="false">
98                                                                                         <fileset dir="CDP" includes="**/*.sh" />
99                                                                                 </copy>
100                                                                                 <copy flatten="true" file="CDP/SampleBlueprint.xml"
101                                                                                         failonerror="false"
102                                                                                         tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
103                                                                                 <copy todir="target/staticContent" failonerror="false">
104                                                                                         <fileset dir="staticContent" includes="**/*" />
105                                                                                 </copy>
106                                                                                 <copy todir="target/bundleconfig" failonerror="false">
107                                                                                         <!-- filtering="true"> -->
108                                                                                         <fileset dir="bundleconfig" />
109                                                                                 </copy>
110
111                                                                                 <echo message="EXITING 'copy_services_template' ant tasks" />
112                                                                                 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
113                                                                                 <copy todir="target/versioned-runtime">
114                                                                                         <fileset dir="src/main/runtime" includes="**/*" />
115                                                                                 </copy>
116                                                                                 <delete
117                                                                                         file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
118                                                                                 <copy flatten="true"
119                                                                                         file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
120                                                                                         tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
121                                                                                 <delete
122                                                                                         file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
123                                                                                 <copy flatten="true"
124                                                                                         file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
125                                                                                         tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
126                                                                                 <delete
127                                                                                         file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
128                                                                                 <copy flatten="true"
129                                                                                         file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
130                                                                                         tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
131                                                                                 <delete
132                                                                                         file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
133                                                                                 <copy flatten="true"
134                                                                                         file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
135                                                                                         tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
136                                                                                 <echo message="EXITING 'copy_runtime_template' ant tasks" />
137                                                                         </target>
138                                                                 </configuration>
139                                                                 <goals>
140                                                                         <goal>run</goal>
141                                                                 </goals>
142                                                         </execution>
143                                                         <execution>
144                                                                 <id>clrf</id>
145                                                                 <phase>package</phase>
146                                                                 <configuration>
147                                                                         <tasks>
148                                                                                 <fixcrlf
149                                                                                         srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
150                                                                                         includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
151                                                                         </tasks>
152                                                                 </configuration>
153                                                                 <goals>
154                                                                         <goal>run</goal>
155                                                                 </goals>
156                                                         </execution>
157                                                         <execution>
158                                                                 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
159                                                                 <phase>package</phase>
160                                                                 <configuration>
161                                                                         <target name="prep_home_directory_for_swm_pkgcreate">
162                                                                                 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
163                                                                         </target>
164                                                                 </configuration>
165                                                                 <goals>
166                                                                         <goal>run</goal>
167                                                                 </goals>
168                                                         </execution>
169                                                 </executions>
170                                         </plugin>
171                                         
172                                         <plugin>
173                                                 <groupId>org.codehaus.groovy.maven</groupId>
174                                                 <artifactId>gmaven-plugin</artifactId>
175                                                 <version>1.0</version>
176                                                 <executions>
177                                                         <execution>
178                                                                 <id>gmaven-ajsc-arch-parent</id>
179                                                                 <phase>package</phase>
180                                                                 <goals>
181                                                                         <goal>execute</goal>
182                                                                 </goals>
183                                                                 <configuration>
184                                                                         <sourcepath>src/main/groovy</sourcepath>
185                                                                         <source>
186                                                                                 import ajsc.AssemblyService;
187                                                                                 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
188                                                                         </source>
189                                                                 </configuration>
190                                                         </execution>
191                                                 </executions>
192                                         </plugin>
193                                         
194                                         <plugin>
195                                                 <groupId>com.google.code.maven-replacer-plugin</groupId>
196                                                 <artifactId>replacer</artifactId>
197                                                 <version>1.5.2</version>
198                                                 <executions>
199                                                         <execution>
200                                                                 <id>google-replacer-ajsc-arch-parent</id>
201                                                                 <phase>prepare-package</phase>
202                                                                 <goals>
203                                                                         <goal>replace</goal>
204                                                                 </goals>
205                                                                 <configuration>
206                                                                         <basedir>${project.build.directory}</basedir>
207                                                                         <includes>
208                                                                                 <include>staticContent/**/*.html</include>
209                                                                                 <include>CDP/**</include>
210                                                                                 <include>bundleconfig/**</include>
211                                                                                 <include>versioned-runtime/**/*.context</include>
212                                                                                 <include>versioned-runtime/**/*.json</include>
213                                                                                 <include>versioned-ajsc/**/*.route</include>
214                                                                                 <include>versioned-ajsc/**/*.groovy</include>
215                                                                                 <include>versioned-ajsc/**/*.xml</include>
216                                                                                 <include>classes/*.properties</include>
217                                                                                 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
218                                                                         </includes>
219                                                                         <escape>true</escape>
220                                                                         <replacements>
221                                                                                 <replacement>
222                                                                                         <token>__module_ajsc_namespace_name__</token>
223                                                                                         <value>${module.ajsc.namespace.name}</value>
224                                                                                 </replacement>
225                                                                                 <replacement>
226                                                                                         <token>__module_ajsc_namespace_version__</token>
227                                                                                         <value>${module.ajsc.namespace.version}</value>
228                                                                                 </replacement>
229                                                                                 <replacement>
230                                                                                         <token>__ajscHome__</token>
231                                                                                         <value>${replaceWinFilePath}</value>
232                                                                                 </replacement>
233                                                                                 <replacement>
234                                                                                         <token>__projectGroupId__</token>
235                                                                                         <value>${project.groupId}</value>
236                                                                                 </replacement>
237                                                                                 <replacement>
238                                                                                         <token>__projectArtifactId__</token>
239                                                                                         <value>${project.artifactId}</value>
240                                                                                 </replacement>
241                                                                                 <replacement>
242                                                                                         <token>__projectVersion__</token>
243                                                                                         <value>${project.version}</value>
244                                                                                 </replacement>
245                                                                                 <replacement>
246                                                                                         <token>__basedir__</token>
247                                                                                         <value>${replaceWinBasedirPath}</value>
248                                                                                 </replacement>
249                                                                         </replacements>
250                                                                 </configuration>
251                                                         </execution>
252                                                 </executions>
253                                         </plugin>
254                                         
255                                         <plugin>
256                                                 <groupId>org.apache.maven.plugins</groupId>
257                                                 <artifactId>maven-dependency-plugin</artifactId>
258                                                 <version>2.8</version>
259                                                 <executions>
260                                                         <execution>
261                                                                 <id>copy-dependencies-ajsc-arch-parent</id>
262                                                                 <phase>prepare-package</phase>
263                                                                 <goals>
264                                                                         <goal>copy-dependencies</goal>
265                                                                 </goals>
266                                                                 <configuration>
267                                                                         <includeScope>runtime</includeScope>
268                                                                         <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
269                                                                         <outputDirectory>${project.build.directory}/userjars</outputDirectory>
270                                                                         <silent>true</silent>
271                                                                 </configuration>
272                                                         </execution>
273                                                         <execution>
274                                                                 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
275                                                                 <phase>prepare-package</phase>
276                                                                 <goals>
277                                                                         <goal>copy-dependencies</goal>
278                                                                 </goals>
279                                                                 <configuration>
280                                                                         <includeScope>provided</includeScope>
281                                                                         <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
282                                                                         <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
283                                                                         <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
284                                                                         <silent>true</silent>
285                                                                 </configuration>
286                                                         </execution>
287                                                         <execution>
288                                                                 <id>copyrunner</id>
289                                                                 <phase>prepare-package</phase>
290                                                                 <goals>
291                                                                         <goal>copy-dependencies</goal>
292                                                                 </goals>
293                                                                 <configuration>
294                                                                         <includeArtifactIds>ajsc-runner</includeArtifactIds>
295                                                                         <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
296                                                                 </configuration>
297                                                         </execution>
298                                                 </executions>
299                                         </plugin>
300                                         
301                                         
302                 <!--    <plugin>
303                                 <groupId>org.apache.maven.plugins</groupId>
304                                 <artifactId>maven-javadoc-plugin</artifactId>
305                                 <version>2.10.4</version>
306                                 <configuration>
307                                         <additionalparam>-Xdoclint:none</additionalparam>
308                                 </configuration>
309                                 <executions>
310                                         <execution>
311                                                 <id>attach-javadocs</id>
312                                                 <goals>
313                                                         <goal>jar</goal>
314                                                 </goals>
315                                         </execution>
316                                 </executions>
317                         </plugin> -->
318                         <plugin>
319                                 <groupId>org.apache.maven.plugins</groupId>
320                                 <artifactId>maven-source-plugin</artifactId>
321                                 <version>3.0.0</version>
322                                 <executions>
323                                         <execution>
324                                                 <id>attach-sources</id>
325                                                 <goals>
326                                                         <goal>jar-no-fork</goal>
327                                                 </goals>
328                                         </execution>
329                                 </executions>
330                         </plugin>               
331                         <plugin>
332                                 <groupId>org.apache.maven.plugins</groupId>
333                                 <artifactId>maven-release-plugin</artifactId>
334                                 <version>2.5.3</version>
335                                 <configuration>
336                                         <autoVersionSubmodules>true</autoVersionSubmodules>
337                                         <checkModificationExcludes>
338                                         </checkModificationExcludes>
339                                 </configuration>
340                                 <dependencies>
341                                         <dependency>
342                                                 <groupId>org.apache.maven.scm</groupId>
343                                                 <artifactId>maven-scm-provider-gitexe</artifactId>
344                                                 <version>1.9.4</version>
345                                         </dependency>
346                                 </dependencies>
347                         </plugin>
348                         <plugin>
349                                 <groupId>org.apache.maven.plugins</groupId>
350                                 <artifactId>maven-resources-plugin</artifactId>
351                                 <version>2.7</version>
352                                 <executions>
353                                         <execution>
354                                                 <id>copy-docker-file</id>
355                                                 <phase>package</phase>
356                                                 <goals>
357                                                         <goal>copy-resources</goal>
358                                                 </goals>
359                                                 <configuration>
360                                                         <outputDirectory>${dockerLocation}</outputDirectory>
361                                                         <overwrite>true</overwrite>
362                                                         <resources>
363                                                                 <resource>
364                                                                         <directory>${basedir}/src/main/resources/docker</directory>
365                                                                         <filtering>true</filtering>
366                                                                         <includes>
367                                                                                 <include>**/*</include>
368                                                                         </includes>
369                                                                 </resource>
370                                                         </resources>
371                                                 </configuration>
372                                         </execution>
373                                 </executions>
374                         </plugin>
375                         <plugin>
376                                 <groupId>com.spotify</groupId>
377                                 <artifactId>docker-maven-plugin</artifactId>
378                                 <version>1.0.0</version>
379                                 <configuration>
380                                         <imageName>onap/dmaap/dmaap-mr</imageName>
381                                         <dockerDirectory>${dockerLocation}</dockerDirectory> 
382                                         <serverId>docker-hub</serverId>
383                                         <imageTags>
384                                                 <imageTag>${dmaapImg}</imageTag>
385                                                 <imageTag>latest</imageTag>
386                                         </imageTags>
387                                         <forceTags>true</forceTags>
388                                 <resources>
389                                         <resource>
390                                           <targetPath>/</targetPath>
391                                           <directory>${dockerLocation}</directory>
392                                           <include>${project.build.finalName}.jar</include>
393                                         </resource>
394                                         <resource>
395                                           <targetPath>/</targetPath>
396                                           <directory>${project.build.directory}</directory>
397                                           <include>**/**</include>
398                                         </resource>
399                                   </resources>
400                                  </configuration>
401                                 <executions>
402                            <execution>
403                                         <id>build-image</id>
404                                         <phase>package</phase>
405                                         <goals>
406                                           <goal>build</goal>
407                                         </goals>
408                                         <configuration>
409                                           <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
410                                         </configuration>
411                                   </execution> 
412
413                                   <execution>
414                                         <id>tag-image-project-version</id>
415                                         <phase>package</phase>
416                                         <goals>
417                                           <goal>tag</goal>
418                                         </goals>
419                                         <configuration>
420                                           <image>onap/dmaap/dmaap-mr</image>
421                                           <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</newName>
422                                           <skipDockerTag>${skip.docker.push}</skipDockerTag>
423                                         </configuration>
424                                   </execution>
425                                   
426                                   <execution>
427                                         <id>tag-image-latest</id>
428                                         <phase>package</phase>
429                                         <goals>
430                                           <goal>tag</goal>
431                                         </goals>
432                                         <configuration>
433                                           <image>onap/dmaap/dmaap-mr</image>
434                                           <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</newName>
435                                           <skipDockerTag>${skip.docker.push}</skipDockerTag>
436                                         </configuration>
437                                   </execution>
438                                   
439                                  <execution>
440                                         <id>push-image-latest</id>
441                                         <phase>deploy</phase>
442                                         <goals>
443                                           <goal>push</goal>
444                                         </goals>
445                                         <configuration>
446                                           <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</imageName>
447                                           <skipDockerPush>${skip.docker.push}</skipDockerPush>
448                                         </configuration>
449                                   </execution>
450                                   
451                                   <execution>
452                                         <id>push-image</id>
453                                         <phase>deploy</phase>
454                                         <goals>
455                                           <goal>push</goal>
456                                         </goals>
457                                         <configuration>
458                                           <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</imageName>
459                                           <skipDockerPush>${skip.docker.push}</skipDockerPush>
460                                         </configuration>
461                                   </execution>
462                                 </executions>
463                         </plugin>                                                                                                                                                                                                                                                                                                        
464                         <plugin>
465                                 <groupId>com.blackducksoftware.integration</groupId>
466                                 <artifactId>hub-maven-plugin</artifactId>
467                                 <version>1.0.4</version>
468                                 <inherited>false</inherited>
469                                 <configuration>
470                                         <target>${project.basedir}</target>
471                                 </configuration>
472                                 <executions>
473                                         <execution>
474                                                 <id>create-bdio-file</id>
475                                                 <phase>package</phase>
476                                                 <goals>
477                                                         <goal>createHubOutput</goal>
478                                                 </goals>
479                                         </execution>
480                                 </executions>
481                         </plugin>
482                                         
483                 </plugins>
484         </build>
485
486         <properties>
487                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
488                 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
489                 <docker.image.prefix>simpledemo</docker.image.prefix>
490
491                 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
492                 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
493                 <ajscRuntimeVersion>1.0.0</ajscRuntimeVersion>
494
495                 <!-- This will be the Absolute Root of the Project and should contain NO 
496                         Versioning -->
497                 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
498                 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
499                 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot. 
500                         For NO Versioning, leave as is -->
501                 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add 
502                         ${project.version} to ${runAjscHome} for running locally. -->
503                 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
504                 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
505                 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
506
507                 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser> 
508                         <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
509                 <!-- For SOA Cloud Installation -->
510                 <installOwnerUser>msgrtr</installOwnerUser>
511                 <installOwnerGroup>dmaap</installOwnerGroup>
512                 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
513                 <!-- Port Selection. A value of 0 will allow for dynamic port selection. 
514                         For local testing, you may choose to hardcode this value to something like 
515                         8080 -->
516                 <serverPort>3904</serverPort>
517                 <sslport>3905</sslport>
518         
519                 <testRouteOffer>workstation</testRouteOffer>
520                 <testEnv>DEV</testEnv>
521                 <dmaapImg>1.0.2-SNAPSHOT</dmaapImg>
522                 <camel.version>2.15.5</camel.version>
523                 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
524                 <skip.docker.build>true</skip.docker.build>
525         <skip.docker.push>true</skip.docker.push>
526                 <nexusproxy>https://nexus.onap.org</nexusproxy>
527                 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
528         </properties>
529
530         <!-- Distribution management -->
531         <distributionManagement>
532                 <site>
533                         <id>ecomp-site</id>
534                         <url>dav:${nexusproxy}${sitePath}</url>
535                 </site>
536         </distributionManagement>
537
538         <!-- End Distribution management -->
539
540         <!-- The standard build tasks for this project are inherited from the parent. 
541                 Please do not override the build tasks. However tasks and/or profiles can 
542                 be included here as well as additional dependencies for your service. Any 
543                 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars 
544                 folder and will be made available on the AJSC classpath for your service. 
545                 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the 
546                 CSI environment. Therefore, they are provided within this project as "provided" 
547                 dependencies. In order for the AJSC to run properly, locally, the CSM and 
548                 DME2 dependencies will be copied into the target/commonLibs folder and will 
549                 be made available to the classpath of the AJSC through the use of the system 
550                 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set 
551                 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do 
552                 so). If you have a startup failure related to a missing dme2 class not found 
553                 exception, please contact the AJSC team for assistance. You can email support 
554                 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding 
555                 the usage of the AJSC service pom.xml and management of dependencies, please 
556                 goto wiki link:http://wiki.web.att.com/display/ajsc/pom.xml -->
557         <dependencies>
558
559                 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding 
560                         version 100.0.64 -->
561                 
562                 <!-- <dependency>
563                         <groupId>csi-schemas-source</groupId>
564                         <artifactId>cmn-CommonDataModel</artifactId>
565                         <version>112.0.50</version>
566                 </dependency> -->
567         <!-- TODO: add open source version here -->
568                 <dependency>
569                         <groupId>com.att.cadi</groupId>
570                         <artifactId>cadi-core</artifactId>
571                         <version>1.3.0</version>
572                 </dependency>
573                 <dependency>
574                         <groupId>commons-io</groupId>
575                         <artifactId>commons-io</artifactId>
576                         <version>2.4</version>
577                 </dependency>
578                 <dependency>
579                         <groupId>org.apache.commons</groupId>
580                         <artifactId>commons-io</artifactId>
581                         <version>1.3.2</version>
582                 </dependency>
583                 <dependency>
584                           <groupId>com.att.nsa</groupId>
585                           <artifactId>msgrtr</artifactId>
586                           <version>0.0.5</version>
587                         <exclusions>
588                                 <exclusion>
589                                         <groupId>org.slf4j</groupId>
590                                         <artifactId>slf4j-log4j12</artifactId>
591                                 </exclusion>
592                                 <exclusion>
593                                         <groupId>com.att.ajsc</groupId>
594                                         <artifactId>ajsc-core</artifactId>
595                                 </exclusion>
596                                 <exclusion>
597                                         <groupId>org.apache.tomcat</groupId>
598                                         <artifactId>tomcat-catalina</artifactId>
599                                 </exclusion>
600
601                                 <exclusion>
602                                         <groupId>org.apache.tomcat.embed</groupId>
603                                         <artifactId>tomcat-embed-core</artifactId>
604                                 </exclusion>
605                                 <exclusion>
606                                         <groupId>org.apache.tomcat</groupId>
607                                         <artifactId>tomcat-util</artifactId>
608                                 </exclusion>
609                                 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId> 
610                                         </exclusion> -->
611                                 <exclusion>
612                                         <groupId>com.att.nsa</groupId>
613                                         <artifactId>tomcat-util</artifactId>
614                                 </exclusion>
615
616                         </exclusions>
617                 </dependency>
618
619                 <dependency>
620                         <groupId>org.codehaus.jackson</groupId>
621                         <artifactId>jackson-jaxrs</artifactId>
622                         <version>1.9.13</version>
623                 </dependency>
624                 
625                 <dependency>
626                         <groupId>org.codehaus.jackson</groupId>
627                         <artifactId>jackson-mapper-asl</artifactId>
628                         <version>1.9.13</version>
629                 </dependency>
630                 <dependency>
631                         <groupId>org.codehaus.jackson</groupId>
632                         <artifactId>jackson-core-asl</artifactId>
633                         <version>1.9.13</version>
634                 </dependency>
635                 
636                 <dependency>
637                         <groupId>com.fasterxml.jackson.core</groupId>
638                         <artifactId>jackson-core</artifactId>
639                         <version>2.4.3</version>
640                 </dependency>
641                 
642                 <dependency>
643                     <groupId>com.fasterxml.jackson.core</groupId>
644                     <artifactId>jackson-databind</artifactId>
645                     <version>2.3.3</version>
646                 </dependency>
647                 
648                 <dependency>
649                 <groupId>junit</groupId>
650                 <artifactId>junit</artifactId>
651                 <version>4.11</version>
652                 <scope>test</scope>
653       </dependency>
654
655                 <dependency>
656                         <groupId>org.json</groupId>
657                         <artifactId>json</artifactId>
658                         <version>20131018</version>
659                 </dependency>
660
661                 <!-- CXF JAX-RS extension -->
662                 <dependency>
663                         <groupId>org.apache.cxf</groupId>
664                         <artifactId>cxf-rt-rs-extension-providers</artifactId>
665                         <version>3.0.4</version>
666                 </dependency>
667                 <dependency>
668                         <groupId>org.codehaus.jettison</groupId>
669                         <artifactId>jettison</artifactId>
670                         <version>1.3.7</version>
671                 </dependency>
672
673                 <dependency>
674                         <groupId>dom4j</groupId>
675                         <artifactId>dom4j</artifactId>
676                         <version>1.6.1</version>
677                         <scope>provided</scope>
678                 </dependency>
679                 <dependency>
680                         <groupId>com.att.aft</groupId>
681                         <artifactId>dme2</artifactId>
682                         <version>3.1.200</version>
683                         <!-- <scope>provided</scope> -->
684                 </dependency>
685                 <dependency>
686                   <groupId>com.att.ajsc</groupId>
687                   <artifactId>ajsc-archetype-parent</artifactId>
688                   <version>1.0.0</version>
689                   <type>pom</type>
690                 </dependency>           
691                 
692                 <dependency>
693                         <groupId>com.att.cadi</groupId>
694                         <artifactId>cadi-aaf</artifactId>
695                         <version>1.3.0</version>
696                 </dependency>   
697                 
698                 <dependency>
699                         <groupId>com.att.inno</groupId>
700                         <artifactId>rosetta</artifactId>
701                         <version>1.2.11</version>
702                 </dependency>   
703                 <dependency>
704                         <groupId>com.att.inno</groupId>
705                         <artifactId>env</artifactId>
706                         <version>1.2.11</version>
707                 </dependency>           
708                 <dependency>
709                         <groupId>com.att.inno</groupId>
710                         <artifactId>xgen</artifactId>
711                         <version>1.2.11</version>
712                 </dependency>                           
713                 <dependency>
714                         <groupId>com.att.inno</groupId>
715                         <artifactId>rosetta</artifactId>
716                         <version>1.2.11</version>
717                 </dependency>                   
718                 <dependency>
719                         <groupId>backport-util-concurrent</groupId>
720                         <artifactId>backport-util-concurrent</artifactId>
721                         <version>3.1</version>
722                 </dependency>
723                 <dependency>
724                                 <groupId>org.apache.camel</groupId>
725                                 <artifactId>camel-core</artifactId>
726                                 <version>${camel.version}</version>
727                         </dependency>
728                         <dependency>
729                                 <groupId>org.apache.camel</groupId>
730                                 <artifactId>camel-quartz</artifactId>
731                                 <version>${camel.version}</version>
732                         </dependency>
733                         <dependency>
734                                 <groupId>org.apache.camel</groupId>
735                                 <artifactId>camel-spring</artifactId>
736                                 <version>${camel.version}</version>
737                         </dependency>
738                         <dependency>
739                                 <groupId>org.apache.camel</groupId>
740                                 <artifactId>camel-restlet</artifactId>
741                                 <version>${camel.version}</version>
742                                 <exclusions>
743                                         <exclusion>
744                                                 <artifactId>org.restlet</artifactId>
745                                                 <groupId>org.restlet.jse</groupId>
746                                         </exclusion>
747                                 </exclusions>
748                         </dependency>
749                         <dependency>
750                                 <groupId>org.apache.camel</groupId>
751                                 <artifactId>camel-servlet</artifactId>
752                                 <version>${camel.version}</version>
753                         </dependency>
754                         <dependency>
755                                 <groupId>org.apache.camel</groupId>
756                                 <artifactId>camel-http4</artifactId>
757                                 <version>${camel.version}</version>
758                                 <exclusions>
759                                         <exclusion>
760                                                 <groupId>org.apache.geronimo.specs</groupId>
761                                                 <artifactId>geronimo-servlet_2.5_spec</artifactId>
762                                         </exclusion>
763                                 </exclusions>
764                         </dependency>
765                         <dependency>
766                                 <groupId>org.apache.camel</groupId>
767                                 <artifactId>camel-groovy</artifactId>
768                                 <version>${camel.version}</version>
769                         </dependency>
770                         <dependency>
771                                 <groupId>org.apache.camel</groupId>
772                                 <artifactId>camel-twitter</artifactId>
773                                 <version>${camel.version}</version>
774                         </dependency>
775                         <dependency>
776                                 <groupId>org.apache.camel</groupId>
777                                 <artifactId>camel-mail</artifactId>
778                                 <version>${camel.version}</version>
779                         </dependency>
780                         <dependency>
781                                 <groupId>org.apache.camel</groupId>
782                                 <artifactId>camel-smpp</artifactId>
783                                 <version>${camel.version}</version>
784                         </dependency>
785                         <dependency>
786                                 <groupId>org.apache.camel</groupId>
787                                 <artifactId>camel-jms</artifactId>
788                                 <version>${camel.version}</version>
789                         </dependency>
790                         <dependency>
791                                 <groupId>org.apache.camel</groupId>
792                                 <artifactId>camel-script</artifactId>
793                                 <version>${camel.version}</version>
794                         </dependency>
795                         <dependency>
796                                 <groupId>org.apache.camel</groupId>
797                                 <artifactId>camel-xmpp</artifactId>
798                                 <version>${camel.version}</version>
799                         </dependency>
800                         <dependency>
801                                 <groupId>org.apache.camel</groupId>
802                                 <artifactId>camel-velocity</artifactId>
803                                 <version>${camel.version}</version>
804                         </dependency>
805                         <dependency>
806                                 <groupId>com.att.ajsc</groupId>
807                                 <artifactId>ajsc-runner</artifactId>
808                                 <version>1.0.0</version>
809                                 <scope>runtime</scope>
810                         </dependency>
811                         <dependency>
812                                 <groupId>com.att.ajsc</groupId>
813                                 <artifactId>ajsc-core</artifactId>
814                                 <version>1.0.0</version>
815                                 <scope>provided</scope>
816                         </dependency>
817         </dependencies>
818         <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory> 
819                 </resource> </resources> </build> -->
820         <profiles>
821                 <!-- Use this profile to run the AJSC locally. This profile can be successfully 
822                         shutdown WITHIN eclipse even in a Windows environment. Debugging is also 
823                         available with this profile. -->
824         <profile>
825       <id>docker</id>
826       <properties>
827         
828         <skip.docker.build>false</skip.docker.build>
829         <skip.docker.tag>false</skip.docker.tag>
830         <skip.docker.push>false</skip.docker.push>
831       </properties>
832     </profile>
833         
834                 <profile>
835                         <id>runAjsc</id>
836                         <build>
837                                 <defaultGoal>initialize</defaultGoal>
838                                 <plugins>
839                                         <plugin>
840                                                 <groupId>org.codehaus.mojo</groupId>
841                                                 <artifactId>exec-maven-plugin</artifactId>
842                                                 <version>1.3.2</version>
843                                                 <executions>
844                                                         <execution>
845                                                                 <phase>initialize</phase>
846                                                                 <goals>
847                                                                         <goal>java</goal>
848                                                                 </goals>
849                                                                 <configuration>
850                                                                         <!-- In order to better mimic a SOA cloud installation of AJSC (and 
851                                                                                 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult 
852                                                                                 to diagnose), within this profile used to run locally, we are NOT including 
853                                                                                 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars. 
854                                                                                 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is 
855                                                                                 the only dependency required by this profile to run locally. -->
856                                                                         <includeProjectDependencies>false</includeProjectDependencies>
857                                                                         <includePluginDependencies>true</includePluginDependencies>
858                                                                         <executable>java</executable>
859                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
860                                                                         <executableDependency>
861                                                                                 <groupId>com.att.ajsc</groupId>
862                                                                                 <artifactId>ajsc-runner</artifactId>
863                                                                         </executableDependency>
864                                                                         <additionalClasspathElements>
865                                                                                 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
866                                                                         </additionalClasspathElements>
867
868                                                                         <environmentVariables>
869                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
870                                                                         </environmentVariables>
871
872                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
873                                                                         <systemProperties>
874                                                                                 <systemProperty>
875                                                                                         <key>AJSC_HOME</key>
876                                                                                         <value>${runAjscHome}</value>
877                                                                                 </systemProperty>
878                                                                                 <systemProperty>
879                                                                                         <key>AJSC_HOME</key>
880                                                                                         <value>${runAjscHome}</value>
881                                                                                 </systemProperty>
882                                                                                 <systemProperty>
883                                                                                         <key>AJSC_CONF_HOME</key>
884                                                                                         <value>${basedir}/bundleconfig-local</value>
885                                                                                 </systemProperty>
886                                                                                 <systemProperty>
887                                                                                         <key>logback.configurationFile</key>
888                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
889                                                                                 </systemProperty>
890                                                                                 <systemProperty>
891                                                                                         <key>AJSC_SHARED_CONFIG</key>
892                                                                                         <value>${basedir}/ajsc-shared-config</value>
893                                                                                 </systemProperty>
894
895                                                                                 <!-- Please, NOTE: The following 2 system properties will normally 
896                                                                                         be set within the sys-props.properties file once deployed to a node. We are 
897                                                                                         setting them HERE to run locally to make more efficient use of maven variable 
898                                                                                         replacement for ${basedir} -->
899                                                                                 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that 
900                                                                                         will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
901                                                                                 <sysproperty>
902                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
903                                                                                         <value>${basedir}/target/commonLibs</value>
904                                                                                 </sysproperty>
905                                                                                 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular 
906                                                                                         files that may need to be added to the classpath. These files will be externalized 
907                                                                                         on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties). 
908                                                                                         Failure to have these files on the classpath may result in errors thrown 
909                                                                                         by csm framework. -->
910                                                                                 <sysproperty>
911                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
912                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
913                                                                                 </sysproperty>
914
915                                                                                 <systemProperty>
916                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
917                                                                                         <value>${module.ajsc.namespace.name}</value>
918                                                                                 </systemProperty>
919                                                                                 <systemProperty>
920                                                                                         <key>AJSC_SERVICE_VERSION</key>
921                                                                                         <value>${module.ajsc.namespace.version}</value>
922                                                                                 </systemProperty>
923                                                                                 <systemProperty>
924                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
925                                                                                         <value>${project.version}</value>
926                                                                                 </systemProperty>
927                                                                                 <systemProperty>
928                                                                                         <key>server.port</key>
929                                                                                         <value>${serverPort}</value>
930                                                                                 </systemProperty>
931                                                                         </systemProperties>
932
933                                                                         <!-- Command Line Arguments to add to the java command. Here, you 
934                                                                                 can specify the port as well as the Context you want your service to run 
935                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default 
936                                                                                 configuration of the AJSC is to run under the / Context. Setting the port 
937                                                                                 here can aid during the development phase of your service. However, you can 
938                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral 
939                                                                                 port. -->
940                                                                         <arguments>
941                                                                                 <argument>context=/</argument>
942                                                                                 <argument>port=${serverPort}</argument>
943                                                                                 <argument>sslport=${sslport}</argument>
944                                                                         </arguments>
945                                                                 </configuration>
946                                                         </execution>
947                                                 </executions>
948                                                 <configuration>
949                                                         <executable>java</executable>
950                                                 </configuration>
951                                                 <dependencies>
952                                                         <dependency>
953                                                                 <groupId>com.att.ajsc</groupId>
954                                                                 <artifactId>ajsc-runner</artifactId>
955                                                                 <version>${ajscRuntimeVersion}</version>
956                                                         </dependency>
957                                                 </dependencies>
958                                         </plugin>
959
960                                         <plugin>
961                                                 <groupId>org.apache.maven.plugins</groupId>
962                                                 <artifactId>maven-resources-plugin</artifactId>
963                                                 <version>2.7</version>
964                                                 <executions>
965                                                         <execution>
966                                                                 <id>copy-docker-file</id>
967                                                                 <phase>package</phase>
968                                                                 <goals>
969                                                                         <goal>copy-resources</goal>
970                                                                 </goals>
971                                                                 <configuration>
972                                                                         <outputDirectory>${dockerLocation}</outputDirectory>
973                                                                         <overwrite>true</overwrite>
974                                                                         <resources>
975                                                                                 <resource>
976                                                                                         <directory>${basedir}/src/main/resources/docker</directory>
977                                                                                         <filtering>true</filtering>
978                                                                                         <includes>
979                                                                                                 <include>**/*</include>
980                                                                                         </includes>
981                                                                                 </resource>
982                                                                         </resources>
983                                                                 </configuration>
984                                                         </execution>
985                                                 </executions>
986                                         </plugin>
987                                 </plugins>
988                         </build>
989                 </profile>
990         </profiles>
991         
992 </project>