blob: 2a2956eccb7b018d3a039e5e4f0daae8502dad76 [file] [log] [blame]
Sunil Unnavafbe26a22018-02-28 14:21:40 -05001<!-- ============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. -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050012<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>
Varun Gudisenaacf4d3a2017-09-07 22:33:17 -050017 <groupId>org.onap.oparent</groupId>
18 <artifactId>oparent</artifactId>
sunil unnava33cda002018-10-26 12:09:10 -040019 <version>1.2.1</version>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050020 </parent>
Sunil Unnavafbe26a22018-02-28 14:21:40 -050021
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050022 <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
23 <artifactId>dmaapMR1</artifactId>
sunil unnava74702202018-12-14 11:12:21 -050024 <version>1.1.11-SNAPSHOT</version>
Jessica Wagantall279c5cd2017-09-08 14:57:48 -070025 <name>dmaap-messagerouter-messageservice</name>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050026 <description>Message Router - Restful interface built for kafka</description>
Sunil Unnavafbe26a22018-02-28 14:21:40 -050027 <licenses>
28 <license>
29 <name>Apache License Version 2.0</name>
30 </license>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050031 </licenses>
32
33 <developers>
Sunil Unnavafbe26a22018-02-28 14:21:40 -050034 <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
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050048 <build>
49 <plugins>
Sunil Unnavafbe26a22018-02-28 14:21:40 -050050 <plugin>
Varun Gudisenad6608842017-09-21 23:37:18 -050051 <groupId>org.apache.maven.plugins</groupId>
52 <artifactId>maven-site-plugin</artifactId>
53 <version>3.6</version>
54 <dependencies>
55 <dependency>
56 <groupId>org.apache.maven.wagon</groupId>
57 <artifactId>wagon-webdav-jackrabbit</artifactId>
58 <version>2.10</version>
59 </dependency>
60 </dependencies>
61 </plugin>
Sunil Unnavafbe26a22018-02-28 14:21:40 -050062
63 <plugin>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050064 <groupId>org.apache.maven.plugins</groupId>
Sunil Unnavafbe26a22018-02-28 14:21:40 -050065 <artifactId>maven-jar-plugin</artifactId>
66 <version>3.0.2</version>
67 </plugin>
68
69 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId>
70 <version>2.10.4</version> <configuration> <additionalparam>-Xdoclint:none</additionalparam>
71 </configuration> <executions> <execution> <id>attach-javadocs</id> <goals>
72 <goal>jar</goal> </goals> </execution> </executions> </plugin> -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050073 <plugin>
74 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-source-plugin</artifactId>
76 <version>3.0.0</version>
77 <executions>
78 <execution>
79 <id>attach-sources</id>
80 <goals>
81 <goal>jar-no-fork</goal>
82 </goals>
83 </execution>
84 </executions>
Sunil Unnavafbe26a22018-02-28 14:21:40 -050085 </plugin>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -050086 <plugin>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-release-plugin</artifactId>
89 <version>2.5.3</version>
90 <configuration>
91 <autoVersionSubmodules>true</autoVersionSubmodules>
92 <checkModificationExcludes>
93 </checkModificationExcludes>
94 </configuration>
95 <dependencies>
96 <dependency>
97 <groupId>org.apache.maven.scm</groupId>
98 <artifactId>maven-scm-provider-gitexe</artifactId>
99 <version>1.9.4</version>
100 </dependency>
101 </dependencies>
102 </plugin>
Varun Gudisenad5f58d22017-09-30 18:23:58 -0500103
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500104 <plugin>
105 <groupId>com.spotify</groupId>
106 <artifactId>docker-maven-plugin</artifactId>
Varun Gudisena5c0bfb22017-09-26 11:57:49 -0500107 <version>1.0.0</version>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500108 <configuration>
Varun Gudisena9a7fb8f2017-09-25 11:07:20 -0500109 <imageName>onap/dmaap/dmaap-mr</imageName>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500110 <dockerDirectory>${dockerLocation}</dockerDirectory>
Varun Gudisenac9b1f052017-09-25 15:28:55 -0500111 <serverId>docker-hub</serverId>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500112 <imageTags>
sunil unnavabd440652019-02-13 17:52:37 -0500113 <imageTag>${dockertag1}</imageTag>
114 <imageTag>${dockertag2}</imageTag>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500115 </imageTags>
116 <forceTags>true</forceTags>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500117 <resources>
118 <resource>
119 <targetPath>/</targetPath>
120 <directory>${dockerLocation}</directory>
121 <include>${project.build.finalName}.jar</include>
122 </resource>
123 <resource>
124 <targetPath>/</targetPath>
125 <directory>${project.build.directory}</directory>
126 <include>**/**</include>
127 </resource>
128 </resources>
129 </configuration>
Varun Gudisena9a7fb8f2017-09-25 11:07:20 -0500130 <executions>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500131 <execution>
132 <id>build-image</id>
su622be11c1702018-03-26 23:42:36 -0400133 <phase>install</phase>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500134 <goals>
135 <goal>build</goal>
136 </goals>
137 <configuration>
138 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
139 </configuration>
140 </execution>
Varun Gudisena9a7fb8f2017-09-25 11:07:20 -0500141
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500142 <execution>
143 <id>tag-image-project-version</id>
su622be11c1702018-03-26 23:42:36 -0400144 <phase>install</phase>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500145 <goals>
146 <goal>tag</goal>
147 </goals>
148 <configuration>
149 <image>onap/dmaap/dmaap-mr</image>
sunil unnavabd440652019-02-13 17:52:37 -0500150 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${dockertag2}</newName>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500151 <skipDockerTag>${skip.docker.push}</skipDockerTag>
152 </configuration>
153 </execution>
154
155 <execution>
156 <id>tag-image-latest</id>
su622be11c1702018-03-26 23:42:36 -0400157 <phase>install</phase>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500158 <goals>
159 <goal>tag</goal>
160 </goals>
161 <configuration>
162 <image>onap/dmaap/dmaap-mr</image>
sunil unnavabd440652019-02-13 17:52:37 -0500163 <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${dockertag1}</newName>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500164 <skipDockerTag>${skip.docker.push}</skipDockerTag>
165 </configuration>
166 </execution>
167
168 <execution>
169 <id>push-image-latest</id>
170 <phase>deploy</phase>
171 <goals>
172 <goal>push</goal>
173 </goals>
174 <configuration>
sunil unnavabd440652019-02-13 17:52:37 -0500175 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${dockertag2}</imageName>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500176 <skipDockerPush>${skip.docker.push}</skipDockerPush>
177 </configuration>
178 </execution>
179
180 <execution>
181 <id>push-image</id>
182 <phase>deploy</phase>
183 <goals>
184 <goal>push</goal>
185 </goals>
186 <configuration>
sunil unnavabd440652019-02-13 17:52:37 -0500187 <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${dockertag1}</imageName>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500188 <skipDockerPush>${skip.docker.push}</skipDockerPush>
189 </configuration>
190 </execution>
Varun Gudisena9a7fb8f2017-09-25 11:07:20 -0500191 </executions>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500192 </plugin>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500193 <plugin>
194 <groupId>com.blackducksoftware.integration</groupId>
195 <artifactId>hub-maven-plugin</artifactId>
196 <version>1.0.4</version>
197 <inherited>false</inherited>
198 <configuration>
199 <target>${project.basedir}</target>
200 </configuration>
201 <executions>
202 <execution>
203 <id>create-bdio-file</id>
204 <phase>package</phase>
205 <goals>
206 <goal>createHubOutput</goal>
207 </goals>
208 </execution>
209 </executions>
210 </plugin>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500211
sunil unnava3b894ee2018-09-06 20:37:53 -0400212 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
213 <version>3.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId>
214 <verbose>true</verbose> <source>1.7</source> <target>1.7</target> </configuration>
215 <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId>
216 <version>2.8.0-01</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId>
217 <artifactId>groovy-eclipse-batch</artifactId> <version>2.1.5-03</version>
218 </dependency> </dependencies> </plugin> -->
Varun Gudisenad5f58d22017-09-30 18:23:58 -0500219 <plugin>
220 <groupId>org.codehaus.groovy</groupId>
221 <artifactId>groovy-eclipse-compiler</artifactId>
222 <version>2.8.0-01</version>
223 <extensions>true</extensions>
224 </plugin>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500225
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500226 </plugins>
227 </build>
228
229 <properties>
230 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
231 <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
Varun Gudisenaacf4d3a2017-09-07 22:33:17 -0500232 <docker.image.prefix>simpledemo</docker.image.prefix>
sunil unnava3b894ee2018-09-06 20:37:53 -0400233 <!-- <javax-mail-version>1.5.0</javax-mail-version> -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500234 <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
235 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
sunil unnava3817e082018-09-11 19:18:13 -0400236 <ajscRuntimeVersion>3.0.10-oss</ajscRuntimeVersion>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500237
238 <!-- This will be the Absolute Root of the Project and should contain NO
239 Versioning -->
240 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
241 <!-- <absoluteDistFilesRoot>/opt/app/dmaap/${project.artifactId}</absoluteDistFilesRoot> -->
242 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
243 For NO Versioning, leave as is -->
244 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
245 ${project.version} to ${runAjscHome} for running locally. -->
246 <distFilesRoot>/appl/${project.artifactId}</distFilesRoot>
247 <!-- <distFilesRoot>/opt/app/dmaap/${project.artifactId}</distFilesRoot> -->
248 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
249
250 <!-- For SOA Cloud Installation <installOwnerUser>aft</installOwnerUser>
251 <installOwnerGroup>aft</installOwnerGroup> <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup> -->
252 <!-- For SOA Cloud Installation -->
253 <installOwnerUser>msgrtr</installOwnerUser>
254 <installOwnerGroup>dmaap</installOwnerGroup>
255 <ownerManagementGroup>com.att.acsi.saat.dt.dmaap.dev</ownerManagementGroup>
256 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
257 For local testing, you may choose to hardcode this value to something like
258 8080 -->
259 <serverPort>3904</serverPort>
260 <sslport>3905</sslport>
sunil unnava33cda002018-10-26 12:09:10 -0400261 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500262 <testRouteOffer>workstation</testRouteOffer>
263 <testEnv>DEV</testEnv>
sunil unnava82b1b7c2018-08-14 16:11:21 -0400264 <!-- <dmaapImg>${project.version}</dmaapImg> -->
sunil unnavabd440652019-02-13 17:52:37 -0500265 <timestamp>${maven.build.timestamp}</timestamp>
266 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
sunil unnava3b894ee2018-09-06 20:37:53 -0400267 <camel.version>2.21.1</camel.version>
Varun Gudisenaf7369462017-09-25 17:41:32 -0500268 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
Varun Gudisena9a7fb8f2017-09-25 11:07:20 -0500269 <skip.docker.build>true</skip.docker.build>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500270 <skip.docker.push>true</skip.docker.push>
Varun Gudisena9a7fb8f2017-09-25 11:07:20 -0500271 <nexusproxy>https://nexus.onap.org</nexusproxy>
Varun Gudisenae6329b72017-09-25 16:13:47 -0500272 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
su622bec0caef2018-04-06 14:38:59 -0400273 <spring.version>3.2.18.RELEASE</spring.version>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500274 </properties>
275
276 <!-- Distribution management -->
Varun Gudisenad6608842017-09-21 23:37:18 -0500277 <distributionManagement>
278 <site>
279 <id>ecomp-site</id>
280 <url>dav:${nexusproxy}${sitePath}</url>
281 </site>
282 </distributionManagement>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500283
284 <!-- End Distribution management -->
285
286 <!-- The standard build tasks for this project are inherited from the parent.
287 Please do not override the build tasks. However tasks and/or profiles can
288 be included here as well as additional dependencies for your service. Any
289 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
290 folder and will be made available on the AJSC classpath for your service.
291 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
292 CSI environment. Therefore, they are provided within this project as "provided"
293 dependencies. In order for the AJSC to run properly, locally, the CSM and
294 DME2 dependencies will be copied into the target/commonLibs folder and will
295 be made available to the classpath of the AJSC through the use of the system
296 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
297 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
298 so). If you have a startup failure related to a missing dme2 class not found
299 exception, please contact the AJSC team for assistance. You can email support
300 at ajsc-Support <DL-ajsc-Support@att.com>. For more information regarding
sunil unnava3b894ee2018-09-06 20:37:53 -0400301 the usage of the AJSC service pom.xml and management of dependencies, -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500302 <dependencies>
303
304 <!-- cmn-CommonDataModel dependency added to resolve build issue not finding
305 version 100.0.64 -->
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500306
307 <!-- <dependency> <groupId>csi-schemas-source</groupId> <artifactId>cmn-CommonDataModel</artifactId>
308 <version>112.0.50</version> </dependency> -->
309 <!-- TODO: add open source version here -->
sunil unnava3817e082018-09-11 19:18:13 -0400310
311
312 <dependency>
313 <groupId>com.sun.mail</groupId>
314 <artifactId>javax.mail</artifactId>
315 <version>1.6.0</version>
316 <exclusions>
317 <!-- javax activation is part of the JDK now -->
318 <exclusion>
319 <groupId>javax.activation</groupId>
320 <artifactId>activation</artifactId>
321 </exclusion>
322 </exclusions>
323 </dependency>
324 <dependency>
325 <groupId>com.sun.xml.bind</groupId>
326 <artifactId>jaxb-core</artifactId>
327 <version>2.3.0.1</version>
328 <scope>compile</scope>
329 </dependency>
330 <dependency>
331 <groupId>com.sun.xml.bind</groupId>
332 <artifactId>jaxb-impl</artifactId>
333 <version>2.3.0.1</version>
334 <scope>compile</scope>
335 <exclusions>
336 <exclusion>
337 <artifactId>jsr181-api</artifactId>
338 <groupId>javax.jws</groupId>
339 </exclusion>
340 </exclusions>
341 </dependency>
342
sunil unnavad3756f72018-09-06 21:12:32 -0400343 <dependency>
344 <groupId>org.apache.cxf</groupId>
345 <artifactId>cxf-rt-transports-http</artifactId>
346 <version>3.2.5</version>
347 </dependency>
su622bec0caef2018-04-06 14:38:59 -0400348
sunil unnava97334212018-09-13 17:42:03 -0400349 <!-- <dependency>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500350 <groupId>com.att.cadi</groupId>
351 <artifactId>cadi-core</artifactId>
352 <version>1.3.0</version>
353 </dependency>
354 <dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500355 <groupId>com.att.aft</groupId>
356 <artifactId>dme2</artifactId>
357 <version>3.1.200-oss</version>
sunil unnava97334212018-09-13 17:42:03 -0400358 </dependency> -->
su622b49b147f2018-04-17 18:35:35 -0400359 <dependency>
360 <groupId>org.springframework</groupId>
361 <artifactId>spring-expression</artifactId>
sunil unnava3b894ee2018-09-06 20:37:53 -0400362 <version>4.3.18.RELEASE</version>
su622b49b147f2018-04-17 18:35:35 -0400363 </dependency>
364 <dependency>
365 <groupId>org.springframework</groupId>
366 <artifactId>spring-messaging</artifactId>
367 <version>4.1.9.RELEASE</version>
368 </dependency>
sunil unnava3b894ee2018-09-06 20:37:53 -0400369 <!-- <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId>
370 <version>${javax-mail-version}</version> <exclusions> javax activation is
371 part of the JDK now <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId>
372 </exclusion> </exclusions> </dependency> -->
373
su622b80e8d782018-04-06 15:36:43 -0400374 <dependency>
su622bec0caef2018-04-06 14:38:59 -0400375 <groupId>org.apache.zookeeper</groupId>
376 <artifactId>zookeeper</artifactId>
377 <version>3.4.10</version>
378 </dependency>
379 <dependency>
sunil unnava3b894ee2018-09-06 20:37:53 -0400380 <groupId>org.grails</groupId>
381 <artifactId>grails-bootstrap</artifactId>
382 <version>2.5.4</version>
383 <scope>compile</scope>
384 <exclusions>
385 <exclusion>
386 <artifactId>ant</artifactId>
387 <groupId>org.apache.ant</groupId>
388 </exclusion>
389 <exclusion>
390 <artifactId>jna</artifactId>
391 <groupId>net.java.dev.jna</groupId>
392 </exclusion>
393 <exclusion>
394 <artifactId>ant-trax</artifactId>
395 <groupId>org.apache.ant</groupId>
396 </exclusion>
397 <exclusion>
398 <artifactId>gant_groovy1.8</artifactId>
399 <groupId>org.codehaus.gant</groupId>
400 </exclusion>
401 <exclusion>
402 <artifactId>ant-launcher</artifactId>
403 <groupId>org.apache.ant</groupId>
404 </exclusion>
405 <exclusion>
406 <artifactId>jline</artifactId>
407 <groupId>jline</groupId>
408 </exclusion>
409 <exclusion>
410 <artifactId>ivy</artifactId>
411 <groupId>org.apache.ivy</groupId>
412 </exclusion>
413 <exclusion>
414 <artifactId>jansi</artifactId>
415 <groupId>org.fusesource.jansi</groupId>
416 </exclusion>
417 <exclusion>
418 <artifactId>commons-logging</artifactId>
419 <groupId>commons-logging</groupId>
420 </exclusion>
421 <exclusion>
422 <artifactId>ant-junit</artifactId>
423 <groupId>org.apache.ant</groupId>
424 </exclusion>
425 </exclusions>
426 </dependency>
427 <dependency>
su622b80e8d782018-04-06 15:36:43 -0400428 <groupId>org.springframework</groupId>
429 <artifactId>spring-webmvc</artifactId>
sunil unnava3b894ee2018-09-06 20:37:53 -0400430 <version>4.3.18.RELEASE</version>
su622b49b147f2018-04-17 18:35:35 -0400431 </dependency>
sunil unnava3b894ee2018-09-06 20:37:53 -0400432 <dependency>
su622b49b147f2018-04-17 18:35:35 -0400433 <groupId>org.springframework</groupId>
434 <artifactId>spring-core</artifactId>
sunil unnava3b894ee2018-09-06 20:37:53 -0400435 <version>4.3.18.RELEASE</version>
su622b49b147f2018-04-17 18:35:35 -0400436 </dependency>
sunil unnava3b894ee2018-09-06 20:37:53 -0400437 <dependency>
su622b49b147f2018-04-17 18:35:35 -0400438 <groupId>org.springframework</groupId>
439 <artifactId>spring-beans</artifactId>
sunil unnava3b894ee2018-09-06 20:37:53 -0400440 <version>4.3.18.RELEASE</version>
su622b49b147f2018-04-17 18:35:35 -0400441 </dependency>
sunil unnava3b894ee2018-09-06 20:37:53 -0400442
su622b49b147f2018-04-17 18:35:35 -0400443 <dependency>
444 <groupId>org.springframework</groupId>
445 <artifactId>spring-context</artifactId>
sunil unnava3b894ee2018-09-06 20:37:53 -0400446 <version>4.3.18.RELEASE</version>
su622b80e8d782018-04-06 15:36:43 -0400447 </dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500448 <dependency>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500449 <groupId>commons-io</groupId>
450 <artifactId>commons-io</artifactId>
451 <version>2.4</version>
452 </dependency>
453 <dependency>
454 <groupId>org.apache.commons</groupId>
455 <artifactId>commons-io</artifactId>
456 <version>1.3.2</version>
457 </dependency>
458 <dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500459 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
460 <artifactId>msgrtr</artifactId>
sunil unnava72a5f072018-12-11 17:42:49 -0500461 <version>1.1.15</version>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500462 <exclusions>
463 <exclusion>
464 <groupId>org.slf4j</groupId>
465 <artifactId>slf4j-log4j12</artifactId>
466 </exclusion>
467 <exclusion>
468 <groupId>com.att.ajsc</groupId>
469 <artifactId>ajsc-core</artifactId>
470 </exclusion>
471 <exclusion>
472 <groupId>org.apache.tomcat</groupId>
473 <artifactId>tomcat-catalina</artifactId>
474 </exclusion>
475
476 <exclusion>
477 <groupId>org.apache.tomcat.embed</groupId>
478 <artifactId>tomcat-embed-core</artifactId>
479 </exclusion>
480 <exclusion>
481 <groupId>org.apache.tomcat</groupId>
482 <artifactId>tomcat-util</artifactId>
483 </exclusion>
484 <!-- <exclusion> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId>
485 </exclusion> -->
486 <exclusion>
487 <groupId>com.att.nsa</groupId>
488 <artifactId>tomcat-util</artifactId>
489 </exclusion>
490
Sunil Unnava1d88b1d2018-03-08 16:37:10 -0500491 <exclusion>
492 <groupId>commons-beanutils</groupId>
493 <artifactId>commons-beanutils</artifactId>
494 </exclusion>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500495 </exclusions>
496 </dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500497 <dependency>
498 <groupId>org.mockito</groupId>
499 <artifactId>mockito-core</artifactId>
500 <version>1.10.19</version>
501 <scope>test</scope>
502 </dependency>
503 <dependency>
504 <groupId>org.powermock</groupId>
505 <artifactId>powermock-module-junit4</artifactId>
506 <version>1.6.4</version>
507 <scope>test</scope>
508 </dependency>
509 <dependency>
510 <groupId>org.powermock</groupId>
511 <artifactId>powermock-api-mockito</artifactId>
512 <version>1.6.4</version>
513 <scope>test</scope>
514 </dependency>
Sunil Unnava1d88b1d2018-03-08 16:37:10 -0500515 <!-- <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-jaxrs</artifactId>
516 <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId>
517 <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
518 <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId>
519 <version>1.9.13</version> </dependency> -->
sunil unnava3b894ee2018-09-06 20:37:53 -0400520
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500521 <dependency>
Sunil Unnava1d88b1d2018-03-08 16:37:10 -0500522 <groupId>com.fasterxml.jackson.jaxrs</groupId>
523 <artifactId>jackson-jaxrs-json-provider</artifactId>
524 <version>2.2.3</version>
Varun Gudisenaacf4d3a2017-09-07 22:33:17 -0500525 </dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500526
Varun Gudisenaacf4d3a2017-09-07 22:33:17 -0500527 <dependency>
528 <groupId>com.fasterxml.jackson.core</groupId>
529 <artifactId>jackson-core</artifactId>
Sunil Unnava1d88b1d2018-03-08 16:37:10 -0500530 <version>2.8.11</version>
Varun Gudisenaacf4d3a2017-09-07 22:33:17 -0500531 </dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500532
Varun Gudisenaacf4d3a2017-09-07 22:33:17 -0500533 <dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500534 <groupId>com.fasterxml.jackson.core</groupId>
535 <artifactId>jackson-databind</artifactId>
Sunil Unnava1d88b1d2018-03-08 16:37:10 -0500536 <version>2.8.11.1</version>
Varun Gudisenaacf4d3a2017-09-07 22:33:17 -0500537 </dependency>
Sunil Unnava1d88b1d2018-03-08 16:37:10 -0500538 <dependency>
su622bb8183982018-03-13 15:26:19 -0400539 <groupId>org.grails</groupId>
sunil unnava3b894ee2018-09-06 20:37:53 -0400540 <artifactId>grails-web</artifactId>
541 <version>2.5.4</version>
542 <exclusions>
543 <exclusion>
544 <groupId>org.grails</groupId>
545 <artifactId>grails-web-jsp</artifactId>
546 </exclusion>
547 </exclusions>
su622bb8183982018-03-13 15:26:19 -0400548 </dependency>
sunil unnava3b894ee2018-09-06 20:37:53 -0400549 <dependency>
550 <groupId>org.codehaus.groovy</groupId>
551 <artifactId>groovy-all</artifactId>
552 <version>2.4.8</version>
553 <scope>compile</scope>
554 <exclusions>
555 <exclusion>
556 <artifactId>jline</artifactId>
557 <groupId>jline</groupId>
558 </exclusion>
559 </exclusions>
560 </dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500561
Varun Gudisenaacf4d3a2017-09-07 22:33:17 -0500562 <dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500563 <groupId>junit</groupId>
564 <artifactId>junit</artifactId>
565 <version>4.11</version>
566 <scope>test</scope>
567 </dependency>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500568
569 <dependency>
570 <groupId>org.json</groupId>
571 <artifactId>json</artifactId>
572 <version>20131018</version>
573 </dependency>
574
575 <!-- CXF JAX-RS extension -->
576 <dependency>
577 <groupId>org.apache.cxf</groupId>
578 <artifactId>cxf-rt-rs-extension-providers</artifactId>
sunil unnava3b894ee2018-09-06 20:37:53 -0400579 <version>3.2.2</version>
580 <!-- <exclusions> <exclusion> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
581 </exclusion> </exclusions> -->
sunil unnavad3756f72018-09-06 21:12:32 -0400582 <exclusions>
583 <exclusion>
584 <groupId>org.apache.cxf</groupId>
585 <artifactId>cxf-core</artifactId>
586 </exclusion>
587 </exclusions>
sunil unnava82b1b7c2018-08-14 16:11:21 -0400588 </dependency>
sunil unnava3b894ee2018-09-06 20:37:53 -0400589 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
590 <version>3.1.14</version> </dependency> -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500591 <dependency>
592 <groupId>org.codehaus.jettison</groupId>
593 <artifactId>jettison</artifactId>
594 <version>1.3.7</version>
595 </dependency>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500596
sunil unnava3b894ee2018-09-06 20:37:53 -0400597 <!-- <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId>
598 <version>1.6.1</version> <scope>provided</scope> </dependency> -->
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500599 <dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500600 <groupId>com.att.ajsc</groupId>
601 <artifactId>ajsc-archetype-parent</artifactId>
sunil unnava3817e082018-09-11 19:18:13 -0400602 <version>3.0.10-oss</version>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500603 <type>pom</type>
604 </dependency>
605
sunil unnava97334212018-09-13 17:42:03 -0400606 <dependency>
607 <groupId>org.onap.aaf.authz</groupId>
608 <artifactId>aaf-cadi-aaf</artifactId>
sunil unnava6f31d8d2018-10-24 19:53:56 -0400609 <version>2.1.5</version>
sunil unnava97334212018-09-13 17:42:03 -0400610 </dependency>
611 <dependency>
612 <groupId>backport-util-concurrent</groupId>
613 <artifactId>backport-util-concurrent</artifactId>
614 <version>3.1</version>
615 </dependency>
Varun Gudisenaacf4d3a2017-09-07 22:33:17 -0500616 <dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500617 <groupId>org.apache.camel</groupId>
618 <artifactId>camel-core</artifactId>
619 <version>${camel.version}</version>
620 </dependency>
621 <dependency>
622 <groupId>org.apache.camel</groupId>
623 <artifactId>camel-quartz</artifactId>
624 <version>${camel.version}</version>
625 </dependency>
626 <dependency>
627 <groupId>org.apache.camel</groupId>
628 <artifactId>camel-spring</artifactId>
629 <version>${camel.version}</version>
630 </dependency>
631 <dependency>
632 <groupId>org.apache.camel</groupId>
633 <artifactId>camel-restlet</artifactId>
634 <version>${camel.version}</version>
635 <exclusions>
636 <exclusion>
637 <artifactId>org.restlet</artifactId>
638 <groupId>org.restlet.jse</groupId>
639 </exclusion>
640 </exclusions>
641 </dependency>
642 <dependency>
643 <groupId>org.apache.camel</groupId>
644 <artifactId>camel-servlet</artifactId>
645 <version>${camel.version}</version>
sunil unnava3b894ee2018-09-06 20:37:53 -0400646 <!-- <exclusions> <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
647 </exclusion> </exclusions> -->
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500648 </dependency>
sunil unnava3b894ee2018-09-06 20:37:53 -0400649 <!-- <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId>
650 <version>4.0</version> </dependency> -->
Sunil Unnava1d88b1d2018-03-08 16:37:10 -0500651
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500652 <dependency>
653 <groupId>org.apache.camel</groupId>
654 <artifactId>camel-http4</artifactId>
655 <version>${camel.version}</version>
656 <exclusions>
657 <exclusion>
658 <groupId>org.apache.geronimo.specs</groupId>
659 <artifactId>geronimo-servlet_2.5_spec</artifactId>
660 </exclusion>
661 </exclusions>
662 </dependency>
663 <dependency>
664 <groupId>org.apache.camel</groupId>
665 <artifactId>camel-groovy</artifactId>
666 <version>${camel.version}</version>
667 </dependency>
668 <dependency>
669 <groupId>org.apache.camel</groupId>
670 <artifactId>camel-twitter</artifactId>
671 <version>${camel.version}</version>
672 </dependency>
673 <dependency>
674 <groupId>org.apache.camel</groupId>
675 <artifactId>camel-mail</artifactId>
676 <version>${camel.version}</version>
677 </dependency>
678 <dependency>
679 <groupId>org.apache.camel</groupId>
680 <artifactId>camel-smpp</artifactId>
681 <version>${camel.version}</version>
682 </dependency>
683 <dependency>
684 <groupId>org.apache.camel</groupId>
685 <artifactId>camel-jms</artifactId>
686 <version>${camel.version}</version>
687 </dependency>
688 <dependency>
689 <groupId>org.apache.camel</groupId>
690 <artifactId>camel-script</artifactId>
691 <version>${camel.version}</version>
692 </dependency>
693 <dependency>
694 <groupId>org.apache.camel</groupId>
695 <artifactId>camel-xmpp</artifactId>
696 <version>${camel.version}</version>
697 </dependency>
698 <dependency>
sunil unnava3b894ee2018-09-06 20:37:53 -0400699 <groupId>org.igniterealtime.smack</groupId>
700 <artifactId>smack-tcp</artifactId>
701 <version>4.1.0-rc1</version>
702 </dependency>
703 <dependency>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500704 <groupId>org.apache.camel</groupId>
705 <artifactId>camel-velocity</artifactId>
706 <version>${camel.version}</version>
707 </dependency>
708 <dependency>
709 <groupId>com.att.ajsc</groupId>
710 <artifactId>ajsc-runner</artifactId>
sunil unnava3817e082018-09-11 19:18:13 -0400711 <version>3.0.10-oss</version>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500712 <scope>runtime</scope>
713 </dependency>
714 <dependency>
715 <groupId>com.att.ajsc</groupId>
716 <artifactId>ajsc-core</artifactId>
sunil unnava3817e082018-09-11 19:18:13 -0400717 <version>3.0.10-oss</version>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500718 <scope>provided</scope>
719 </dependency>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500720 </dependencies>
721 <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory>
722 </resource> </resources> </build> -->
723 <profiles>
724 <!-- Use this profile to run the AJSC locally. This profile can be successfully
725 shutdown WITHIN eclipse even in a Windows environment. Debugging is also
726 available with this profile. -->
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500727 <profile>
728 <id>docker</id>
729 <properties>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500730 <skip.docker.build>false</skip.docker.build>
731 <skip.docker.tag>false</skip.docker.tag>
732 <skip.docker.push>false</skip.docker.push>
733 </properties>
sunil unnavabd440652019-02-13 17:52:37 -0500734 <build>
735 <plugins>
736 <plugin>
737 <groupId>org.codehaus.groovy.maven</groupId>
738 <artifactId>gmaven-plugin</artifactId>
739 <executions>
740 <execution>
741 <phase>validate</phase>
742 <goals>
743 <goal>execute</goal>
744 </goals>
745 <configuration>
746 <properties>
747 <ver>${project.version}</ver>
748 <timestamp>${maven.build.timestamp}</timestamp>
749 </properties>
750 <source>
751 println project.properties['ver'];
sunil unnavabd440652019-02-13 17:52:37 -0500752 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
753 project.properties['dockertag1']=project.properties['ver'] + "-latest";
754 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
755 } else {
sunil unnavacca85ab2019-02-21 09:55:58 -0500756 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
sunil unnavabd440652019-02-13 17:52:37 -0500757 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
758 }
759 println 'docker tag 1: ' + project.properties['dockertag1'];
760 println 'docker tag 2: ' + project.properties['dockertag2'];
761 </source>
762 </configuration>
763 </execution>
764 </executions>
765 </plugin>
766 </plugins>
767 </build>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500768 </profile>
769
770 <profile>
Varun Gudisenad5f58d22017-09-30 18:23:58 -0500771 <id>runLocal</id>
772 <build>
773 <defaultGoal>initialize</defaultGoal>
774 <plugins>
775 <plugin>
776 <groupId>org.apache.maven.plugins</groupId>
777 <artifactId>maven-antrun-plugin</artifactId>
778 <executions>
779 <execution>
780 <phase>initialize</phase>
781 <configuration>
782 <target name="runLocal">
783 <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
784 </target>
785 </configuration>
786 <goals>
787 <goal>run</goal>
788 </goals>
789 </execution>
790 </executions>
791 </plugin>
792 </plugins>
793 </build>
794 </profile>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500795
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500796 <profile>
797 <id>runAjsc</id>
798 <build>
799 <defaultGoal>initialize</defaultGoal>
800 <plugins>
801 <plugin>
802 <groupId>org.codehaus.mojo</groupId>
803 <artifactId>exec-maven-plugin</artifactId>
804 <version>1.3.2</version>
805 <executions>
806 <execution>
807 <phase>initialize</phase>
808 <goals>
809 <goal>java</goal>
810 </goals>
811 <configuration>
812 <!-- In order to better mimic a SOA cloud installation of AJSC (and
813 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
814 to diagnose), within this profile used to run locally, we are NOT including
815 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
816 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
817 the only dependency required by this profile to run locally. -->
818 <includeProjectDependencies>false</includeProjectDependencies>
819 <includePluginDependencies>true</includePluginDependencies>
820 <executable>java</executable>
821 <mainClass>com.att.ajsc.runner.Runner</mainClass>
822 <executableDependency>
823 <groupId>com.att.ajsc</groupId>
824 <artifactId>ajsc-runner</artifactId>
sunil unnava3b894ee2018-09-06 20:37:53 -0400825 </executableDependency>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500826 <additionalClasspathElements>
827 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
828 </additionalClasspathElements>
829
830 <environmentVariables>
831 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
832 </environmentVariables>
833
834 <!-- Main AJSC System Properties below (necessary for proper startup) -->
835 <systemProperties>
836 <systemProperty>
837 <key>AJSC_HOME</key>
838 <value>${runAjscHome}</value>
839 </systemProperty>
840 <systemProperty>
841 <key>AJSC_HOME</key>
842 <value>${runAjscHome}</value>
843 </systemProperty>
844 <systemProperty>
845 <key>AJSC_CONF_HOME</key>
846 <value>${basedir}/bundleconfig-local</value>
847 </systemProperty>
848 <systemProperty>
849 <key>logback.configurationFile</key>
850 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
851 </systemProperty>
852 <systemProperty>
su622b4e794ec2018-05-03 13:29:09 -0400853 <key>com.att.eelf.logging.file</key>
854 <value>logback.xml</value>
855 </systemProperty>
856 <systemProperty>
857 <key>com.att.eelf.logging.path</key>
858 <value>${basedir}/ajsc-shared-config/etc</value>
859 </systemProperty>
860 <systemProperty>
861 <key>logging.config</key>
862 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
863 </systemProperty>
864 <systemProperty>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500865 <key>AJSC_SHARED_CONFIG</key>
866 <value>${basedir}/ajsc-shared-config</value>
867 </systemProperty>
868
869 <!-- Please, NOTE: The following 2 system properties will normally
870 be set within the sys-props.properties file once deployed to a node. We are
871 setting them HERE to run locally to make more efficient use of maven variable
872 replacement for ${basedir} -->
873 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
874 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
875 <sysproperty>
876 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
877 <value>${basedir}/target/commonLibs</value>
878 </sysproperty>
879 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
880 files that may need to be added to the classpath. These files will be externalized
881 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
882 Failure to have these files on the classpath may result in errors thrown
883 by csm framework. -->
884 <sysproperty>
885 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
886 <value>${basedir}/ajsc-shared-config/etc</value>
887 </sysproperty>
888
889 <systemProperty>
890 <key>AJSC_SERVICE_NAMESPACE</key>
891 <value>${module.ajsc.namespace.name}</value>
892 </systemProperty>
893 <systemProperty>
894 <key>AJSC_SERVICE_VERSION</key>
895 <value>${module.ajsc.namespace.version}</value>
896 </systemProperty>
897 <systemProperty>
898 <key>SOACLOUD_SERVICE_VERSION</key>
899 <value>${project.version}</value>
900 </systemProperty>
901 <systemProperty>
902 <key>server.port</key>
903 <value>${serverPort}</value>
904 </systemProperty>
905 </systemProperties>
906
907 <!-- Command Line Arguments to add to the java command. Here, you
908 can specify the port as well as the Context you want your service to run
909 in. Use context=/ to run in an unnamed Context (Root Context). The default
910 configuration of the AJSC is to run under the / Context. Setting the port
911 here can aid during the development phase of your service. However, you can
912 leave this argument out entirely, and the AJSC will default to using an Ephemeral
913 port. -->
914 <arguments>
915 <argument>context=/</argument>
916 <argument>port=${serverPort}</argument>
917 <argument>sslport=${sslport}</argument>
918 </arguments>
919 </configuration>
920 </execution>
921 </executions>
922 <configuration>
923 <executable>java</executable>
924 </configuration>
925 <dependencies>
926 <dependency>
927 <groupId>com.att.ajsc</groupId>
928 <artifactId>ajsc-runner</artifactId>
929 <version>${ajscRuntimeVersion}</version>
930 </dependency>
931 </dependencies>
932 </plugin>
933
Varun Gudisenad5f58d22017-09-30 18:23:58 -0500934 </plugins>
935 </build>
936 </profile>
937 <profile>
938 <id>standardbuild</id>
939 <activation>
940 <file>
941 <exists>src</exists>
942 </file>
943 </activation>
944 <build>
945 <resources>
946 <resource>
947 <directory>src/main/resources</directory>
948 <excludes>
949 <exclude>extApps/*.*</exclude>
950 <exclude>${module.ajsc.namespace.name}/**</exclude>
951 </excludes>
952 </resource>
953 <resource>
954 <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
955 <excludes>
956 <exclude>**/*.route</exclude>
957 <exclude>**/*.props</exclude>
958 <exclude>**/*.xslt</exclude>
959 <exclude>**/*.vm</exclude>
960 <exclude>**/*.jar</exclude>
961 <exclude>**/*.xml</exclude>
962 </excludes>
963 </resource>
964 </resources>
965 <plugins>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -0500966 <plugin>
967 <groupId>org.apache.maven.plugins</groupId>
Varun Gudisenad5f58d22017-09-30 18:23:58 -0500968 <artifactId>maven-compiler-plugin</artifactId>
969 <version>3.1</version>
970 </plugin>
971 <plugin>
972 <groupId>org.codehaus.groovy</groupId>
973 <artifactId>groovy-eclipse-compiler</artifactId>
974 <version>2.8.0-01</version>
975 <extensions>true</extensions>
976 </plugin>
Sunil Unnavafbe26a22018-02-28 14:21:40 -0500977
Varun Gudisenad5f58d22017-09-30 18:23:58 -0500978 <plugin>
979 <groupId>org.codehaus.mojo</groupId>
980 <artifactId>exec-maven-plugin</artifactId>
981 <version>1.2.1</version>
982 <executions>
983 <execution>
984 <goals>
985 <goal>exec</goal>
986 </goals>
987 </execution>
988 </executions>
989 <configuration>
990 <executable>bash</executable>
991 <arguments>
992 <argument>runServer.sh</argument>
993 </arguments>
994 </configuration>
995 </plugin>
996 <plugin>
997 <groupId>org.codehaus.mojo</groupId>
998 <artifactId>build-helper-maven-plugin</artifactId>
999 <version>1.9</version>
1000 <executions>
1001 <execution>
1002 <id>add-source-groovy-ajsc-arch-parent</id>
1003 <phase>generate-sources</phase>
1004 <goals>
1005 <goal>add-source</goal>
1006 </goals>
1007 <configuration>
1008 <sources>
1009 <source>src/main/groovy</source>
1010 </sources>
1011 </configuration>
1012 </execution>
1013 <execution>
1014 <id>add-test-source-groovy-ajsc-arch-parent</id>
1015 <phase>generate-test-sources</phase>
1016 <goals>
1017 <goal>add-test-source</goal>
1018 </goals>
1019 <configuration>
1020 <sources>
1021 <source>src/test/groovy</source>
1022 </sources>
1023 </configuration>
1024 </execution>
1025 <execution>
1026 <id>regex-properties-ajsc-arch-parent</id>
1027 <phase>initialize</phase>
1028 <goals>
1029 <goal>regex-properties</goal>
1030 </goals>
1031 <configuration>
1032 <regexPropertySettings>
1033 <regexPropertySetting>
1034 <name>replaceWinFilePath</name>
1035 <value>${runAjscHome}</value>
1036 <regex>\\</regex>
1037 <replacement>/</replacement>
1038 <failIfNoMatch>false</failIfNoMatch>
1039 </regexPropertySetting>
1040 <regexPropertySetting>
1041 <name>replaceWinBasedirPath</name>
1042 <value>${basedir}</value>
1043 <regex>\\</regex>
1044 <replacement>/</replacement>
1045 <failIfNoMatch>false</failIfNoMatch>
1046 </regexPropertySetting>
1047 </regexPropertySettings>
1048 </configuration>
1049 </execution>
1050 </executions>
1051 </plugin>
1052 <plugin>
1053 <groupId>org.codehaus.mojo</groupId>
1054 <artifactId>properties-maven-plugin</artifactId>
1055 <version>1.0-alpha-2</version>
1056 <executions>
1057 <execution>
1058 <id>write-project-properties-ajsc-arch-parent</id>
1059 <phase>generate-resources</phase>
1060 <goals>
1061 <goal>write-project-properties</goal>
1062 </goals>
1063 <configuration>
1064 <outputFile>
1065 ${project.build.outputDirectory}/build.properties
1066 </outputFile>
1067 </configuration>
1068 </execution>
1069 </executions>
1070 </plugin>
1071 <plugin>
1072 <groupId>org.apache.maven.plugins</groupId>
1073 <artifactId>maven-assembly-plugin</artifactId>
1074 <version>2.4</version>
1075 <executions>
1076 <execution>
1077 <id>make-assembly-ajsc-arch-parent</id>
1078 <phase>package</phase>
1079 <goals>
1080 <goal>single</goal>
1081 </goals>
1082 </execution>
1083 </executions>
1084 <configuration>
1085 <finalName>${project.artifactId}</finalName>
1086 <descriptors>
1087 <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
1088 </descriptors>
1089 </configuration>
1090 </plugin>
1091 <plugin>
1092 <groupId>org.codehaus.groovy.maven</groupId>
1093 <artifactId>gmaven-plugin</artifactId>
1094 <version>1.0</version>
1095 <executions>
1096 <execution>
1097 <id>gmaven-ajsc-arch-parent</id>
1098 <phase>package</phase>
1099 <goals>
1100 <goal>execute</goal>
1101 </goals>
1102 <configuration>
1103 <sourcepath>src/main/groovy</sourcepath>
1104 <source>
1105 import ajsc.AssemblyService;
1106 ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
1107 </source>
1108 </configuration>
1109 </execution>
1110 </executions>
1111 </plugin>
1112 <plugin>
1113 <groupId>org.apache.maven.plugins</groupId>
1114 <artifactId>maven-antrun-plugin</artifactId>
1115 <version>1.7</version>
1116 <executions>
1117 <execution>
1118 <id>prep_service_runtime-ajsc-arch-parent</id>
1119 <phase>generate-resources</phase>
1120 <configuration>
1121 <target name="prep_service_runtime">
1122 <echo message="ENTERING 'copy_services_template' ant tasks" />
1123 <!-- <filter token="basedir" value="${basedir}" /> -->
1124 <!-- delete any prior stating stuff before package phase -->
1125 <delete dir="target/versioned-ajsc" includes="**/*" />
1126 <delete dir="target/versioned-runtime" includes="**/*" />
1127 <delete dir="target/CDP" includes="**/*" />
1128
1129 <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
1130 is replaced by module.ajsc.namespace.name) -->
1131 <copy todir="target/versioned-ajsc">
1132 <fileset dir="src/main/ajsc" includes="**/*" />
1133 </copy>
1134
1135 <!-- Copying the CDP, bundleconfig, and StaticContent to the target
1136 directory for future use by replacer plugin -->
1137 <copy todir="target/CDP" failonerror="false">
1138 <fileset dir="CDP" includes="**/*.sh" />
1139 </copy>
1140 <copy flatten="true" file="CDP/SampleBlueprint.xml"
1141 failonerror="false"
1142 tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
1143 <copy todir="target/staticContent" failonerror="false">
1144 <fileset dir="staticContent" includes="**/*" />
1145 </copy>
1146 <copy todir="target/bundleconfig" failonerror="false">
1147 <!-- filtering="true"> -->
1148 <fileset dir="bundleconfig" />
1149 </copy>
1150
1151 <echo message="EXITING 'copy_services_template' ant tasks" />
1152 <echo message="ENTERING 'copy_runtime_template' ant tasks" />
1153 <copy todir="target/versioned-runtime">
1154 <fileset dir="src/main/runtime" includes="**/*" />
1155 </copy>
1156 <delete
1157 file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
1158 <copy flatten="true"
1159 file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
1160 tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
1161 <delete
1162 file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
1163 <copy flatten="true"
1164 file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
1165 tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
1166 <delete
1167 file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
1168 <copy flatten="true"
1169 file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
1170 tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
1171 <delete
1172 file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
1173 <copy flatten="true"
1174 file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
1175 tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
1176 <echo message="EXITING 'copy_runtime_template' ant tasks" />
1177 </target>
1178 </configuration>
1179 <goals>
1180 <goal>run</goal>
1181 </goals>
1182 </execution>
1183 <execution>
1184 <id>clrf</id>
1185 <phase>package</phase>
1186 <configuration>
1187 <tasks>
1188 <fixcrlf
1189 srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
1190 includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
1191 </tasks>
1192 </configuration>
1193 <goals>
1194 <goal>run</goal>
1195 </goals>
1196 </execution>
1197 <execution>
1198 <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
1199 <phase>package</phase>
1200 <configuration>
1201 <target name="prep_home_directory_for_swm_pkgcreate">
1202 <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
1203 </target>
1204 </configuration>
1205 <goals>
1206 <goal>run</goal>
1207 </goals>
1208 </execution>
1209 </executions>
1210 </plugin>
1211 <plugin>
1212 <groupId>org.apache.maven.plugins</groupId>
1213 <artifactId>maven-dependency-plugin</artifactId>
1214 <version>2.8</version>
1215 <executions>
1216 <execution>
1217 <id>copy-dependencies-ajsc-arch-parent</id>
1218 <phase>prepare-package</phase>
1219 <goals>
1220 <goal>copy-dependencies</goal>
1221 </goals>
1222 <configuration>
1223 <includeScope>runtime</includeScope>
1224 <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
1225 <outputDirectory>${project.build.directory}/userjars</outputDirectory>
1226 <silent>true</silent>
1227 </configuration>
1228 </execution>
1229 <execution>
1230 <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
1231 <phase>prepare-package</phase>
1232 <goals>
1233 <goal>copy-dependencies</goal>
1234 </goals>
1235 <configuration>
1236 <includeScope>provided</includeScope>
1237 <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
1238 <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
1239 <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
1240 <silent>true</silent>
1241 </configuration>
1242 </execution>
1243 <execution>
1244 <id>copyrunner</id>
1245 <phase>prepare-package</phase>
1246 <goals>
1247 <goal>copy-dependencies</goal>
1248 </goals>
1249 <configuration>
1250 <includeArtifactIds>ajsc-runner</includeArtifactIds>
1251 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
1252 </configuration>
1253 </execution>
1254 </executions>
1255 </plugin>
1256 <plugin>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -05001257 <artifactId>maven-resources-plugin</artifactId>
1258 <version>2.7</version>
1259 <executions>
1260 <execution>
Varun Gudisenad5f58d22017-09-30 18:23:58 -05001261 <id>copyconfig</id>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -05001262 <phase>package</phase>
1263 <goals>
1264 <goal>copy-resources</goal>
1265 </goals>
1266 <configuration>
Varun Gudisenad5f58d22017-09-30 18:23:58 -05001267 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -05001268 <resources>
1269 <resource>
Varun Gudisenad5f58d22017-09-30 18:23:58 -05001270 <directory>src/main/config</directory>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -05001271 </resource>
1272 </resources>
1273 </configuration>
1274 </execution>
Varun Gudisenad5f58d22017-09-30 18:23:58 -05001275 <execution>
1276 <id>copyscript</id>
1277 <phase>package</phase>
1278 <goals>
1279 <goal>copy-resources</goal>
1280 </goals>
1281 <configuration>
1282 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
1283 <resources>
1284 <resource>
1285 <directory>src/main/scripts</directory>
1286 </resource>
1287 </resources>
1288 </configuration>
1289 </execution>
Sunil Unnavafbe26a22018-02-28 14:21:40 -05001290 <execution>
1291 <id>copy-docker-file</id>
1292 <phase>prepare-package</phase>
1293 <goals>
1294 <goal>copy-resources</goal>
1295 </goals>
1296 <configuration>
1297 <outputDirectory>${dockerLocation}</outputDirectory>
1298 <overwrite>true</overwrite>
1299 <resources>
1300 <resource>
1301 <directory>${basedir}/src/main/resources/docker</directory>
1302 <filtering>true</filtering>
1303 <includes>
1304 <include>**/*</include>
1305 </includes>
1306 </resource>
1307 </resources>
1308 </configuration>
1309 </execution>
Varun Gudisenad5f58d22017-09-30 18:23:58 -05001310
1311 </executions>
1312 </plugin>
1313
1314 <plugin>
1315 <groupId>com.google.code.maven-replacer-plugin</groupId>
1316 <artifactId>replacer</artifactId>
1317 <version>1.5.2</version>
1318 <executions>
1319 <execution>
1320 <id>google-replacer-ajsc-arch-parent</id>
1321 <phase>prepare-package</phase>
1322 <goals>
1323 <goal>replace</goal>
1324 </goals>
1325 <configuration>
1326 <basedir>${project.build.directory}</basedir>
1327 <includes>
1328 <include>staticContent/**/*.html</include>
1329 <include>CDP/**</include>
1330 <include>bundleconfig/**</include>
1331 <include>versioned-runtime/**/*.context</include>
1332 <include>versioned-runtime/**/*.json</include>
1333 <include>versioned-ajsc/**/*.route</include>
1334 <include>versioned-ajsc/**/*.groovy</include>
1335 <include>versioned-ajsc/**/*.xml</include>
1336 <include>classes/*.properties</include>
1337 <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
1338 </includes>
1339 <escape>true</escape>
1340 <replacements>
1341 <replacement>
1342 <token>__module_ajsc_namespace_name__</token>
1343 <value>${module.ajsc.namespace.name}</value>
1344 </replacement>
1345 <replacement>
1346 <token>__module_ajsc_namespace_version__</token>
1347 <value>${module.ajsc.namespace.version}</value>
1348 </replacement>
1349 <replacement>
1350 <token>__ajscHome__</token>
1351 <value>${replaceWinFilePath}</value>
1352 </replacement>
1353 <replacement>
1354 <token>__projectGroupId__</token>
1355 <value>${project.groupId}</value>
1356 </replacement>
1357 <replacement>
1358 <token>__projectArtifactId__</token>
1359 <value>${project.artifactId}</value>
1360 </replacement>
1361 <replacement>
1362 <token>__projectVersion__</token>
1363 <value>${project.version}</value>
1364 </replacement>
1365 <replacement>
1366 <token>__basedir__</token>
1367 <value>${replaceWinBasedirPath}</value>
1368 </replacement>
1369 </replacements>
1370 </configuration>
1371 </execution>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -05001372 </executions>
1373 </plugin>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -05001374 </plugins>
Varun Gudisenad5f58d22017-09-30 18:23:58 -05001375 <pluginManagement>
1376 <plugins>
1377 <plugin>
1378 <groupId>org.apache.maven.plugins</groupId>
1379 <artifactId>maven-surefire-plugin</artifactId>
1380 <version>2.14.1</version>
1381 <configuration>
1382 <excludes>
1383 <exclude>**/AbstractTest.java</exclude>
1384 </excludes>
1385 </configuration>
1386 </plugin>
1387 </plugins>
1388 </pluginManagement>
Varun Gudisenaacc3ce02017-08-31 10:56:56 -05001389 </build>
1390 </profile>
1391 </profiles>
Sunil Unnavafbe26a22018-02-28 14:21:40 -05001392
Varun Gudisenaacc3ce02017-08-31 10:56:56 -05001393</project>