Addition of Synapse readmes
[aai/data-router.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <artifactId>ajsc-archetype-parent</artifactId>
7         <groupId>com.att.ajsc</groupId>
8         <version>2.0.0</version>
9     </parent>
10     <groupId>org.onap.aai.data-router</groupId>
11     <artifactId>data-router</artifactId>
12     <version>1.1.0-SNAPSHOT</version>
13
14     <properties>
15         <docker.location>${basedir}/target</docker.location>
16         <module.ajsc.namespace.name>data-router</module.ajsc.namespace.name>
17         <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
18         <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
19         <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
20
21         <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
22             property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
23             version, THIS will be used as your directory structure. If you do NOT want
24             this, simply remove the "-SNAPSHOT" from your <version> declaration at the
25             top of pom.xml -->
26         <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
27         <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
28
29         <!-- For SOA Cloud Installation -->
30         <installOwnerUser>aaiadmin</installOwnerUser>
31         <installOwnerGroup>aaiadmin</installOwnerGroup>
32         <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
33
34         <!-- Port Selection. A value of 0 will allow for dynamic port selection.
35             For local testing, you may choose to hardcode this value to something like
36             8080 -->
37         <serverPort>0</serverPort>
38         <sslport>9502</sslport>
39
40         <testRouteOffer>workstation</testRouteOffer>
41         <testEnv>DEV</testEnv>
42         <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
43         <nexusproxy>https://nexus.onap.org</nexusproxy>
44     </properties>
45
46     <dependencies>
47
48         <dependency>
49             <groupId>dom4j</groupId>
50             <artifactId>dom4j</artifactId>
51             <version>1.6.1</version>
52             <scope>provided</scope>
53         </dependency>
54
55         <dependency>
56             <groupId>com.att.aft</groupId>
57             <artifactId>dme2</artifactId>
58             <version>3.1.200</version>
59             <scope>provided</scope>
60         </dependency>
61
62         <dependency>
63             <groupId>org.onap.aai.router-core</groupId>
64             <artifactId>router-core</artifactId>
65             <version>1.1.0-SNAPSHOT</version>
66         </dependency>
67
68         <dependency>
69             <groupId>org.json</groupId>
70             <artifactId>json</artifactId>
71         </dependency>
72
73         <dependency>
74             <groupId>com.google.code.gson</groupId>
75             <artifactId>gson</artifactId>
76             <version>2.6.2</version>
77         </dependency>
78
79         <dependency>
80             <groupId>org.eclipse.persistence</groupId>
81             <artifactId>eclipselink</artifactId>
82             <version>2.6.2</version>
83         </dependency>
84
85         <dependency>
86             <groupId>org.openecomp.aai.logging-service</groupId>
87             <artifactId>common-logging</artifactId>
88             <version>1.0.0</version>
89         </dependency>
90
91         <dependency>
92             <groupId>org.openecomp.aai</groupId>
93             <artifactId>rest-client</artifactId>
94             <version>1.1.0</version>
95         </dependency>
96
97         <dependency>
98             <groupId>ch.qos.logback</groupId>
99             <artifactId>logback-core</artifactId>
100             <version>1.1.7</version>
101         </dependency>
102
103     </dependencies>
104
105     <build>
106         <plugins>
107             <!-- Checkstyle plugin - used to report on compliance with -->
108             <!-- the Google style guide. -->
109             <plugin>
110                 <groupId>org.apache.maven.plugins</groupId>
111                 <artifactId>maven-site-plugin</artifactId>
112                 <version>3.3</version>
113                 <configuration>
114                     <reportPlugins>
115                         <plugin>
116                             <groupId>org.apache.maven.plugins</groupId>
117                             <artifactId>maven-checkstyle-plugin</artifactId>
118                             <version>2.17</version>
119                             <reportSets>
120                                 <reportSet>
121                                     <reports>
122                                         <report>checkstyle</report>
123                                     </reports>
124                                 </reportSet>
125                             </reportSets>
126                         </plugin>
127                     </reportPlugins>
128                 </configuration>
129             </plugin>
130             <plugin>
131                 <groupId>org.apache.maven.plugins</groupId>
132                 <artifactId>maven-resources-plugin</artifactId>
133                 <version>2.7</version>
134                 <executions>
135                     <execution>
136                         <id>copy-docker-file</id>
137                         <phase>package</phase>
138                         <goals>
139                             <goal>copy-resources</goal>
140                         </goals>
141                         <configuration>
142                             <outputDirectory>target</outputDirectory>
143                             <overwrite>true</overwrite>
144                             <resources>
145                                 <resource>
146                                     <directory>${basedir}/src/main/docker</directory>
147                                     <filtering>true</filtering>
148                                     <includes>
149                                         <include>**/*</include>
150                                     </includes>
151                                 </resource>
152                                 <resource>
153                                     <directory>${basedir}/src/main/bin/</directory>
154                                 </resource>
155                             </resources>
156                         </configuration>
157                     </execution>
158                 </executions>
159             </plugin>
160             <plugin>
161                 <groupId>com.spotify</groupId>
162                 <artifactId>docker-maven-plugin</artifactId>
163                 <version>0.4.11</version>
164                 <configuration>
165                     <verbose>true</verbose>
166                     <serverId>docker-hub</serverId>
167                     <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>                              
168                     <dockerDirectory>${docker.location}</dockerDirectory>
169                     <imageTags>
170                         <imageTag>latest</imageTag>
171                     </imageTags>
172                     <forceTags>true</forceTags>
173                 </configuration>
174             </plugin>
175             <!-- license plugin -->
176             <plugin>
177                 <groupId>com.mycila</groupId>
178                 <artifactId>license-maven-plugin</artifactId>
179                 <version>3.0</version>
180                 <configuration>
181                     <header>License.txt</header>
182                     <includes>
183                         <include>src/main/java/**</include>
184                     </includes>
185                 </configuration>
186                 <executions>
187                     <execution>
188                         <goals>
189                             <goal>format</goal>
190                         </goals>
191                         <phase>process-sources</phase>
192                     </execution>
193                 </executions>
194             </plugin>
195             <plugin>
196                 <groupId>org.sonatype.plugins</groupId>
197                 <artifactId>nexus-staging-maven-plugin</artifactId>
198                 <version>1.6.7</version>
199                 <extensions>true</extensions>
200                 <configuration>
201                     <nexusUrl>${nexusproxy}</nexusUrl>
202                     <stagingProfileId>176c31dfe190a</stagingProfileId>
203                     <serverId>ecomp-staging</serverId>
204                 </configuration>
205             </plugin>
206             <plugin>
207                 <groupId>org.apache.maven.plugins</groupId>
208                 <artifactId>maven-deploy-plugin</artifactId>
209                 <configuration>
210                     <skip>true</skip>
211                 </configuration>
212             </plugin>
213             <plugin>
214                 <groupId>org.codehaus.mojo</groupId>
215                 <artifactId>sonar-maven-plugin</artifactId>
216                 <version>3.2</version>
217             </plugin>
218             <plugin>
219                 <groupId>org.jacoco</groupId>
220                 <artifactId>jacoco-maven-plugin</artifactId>
221                 <version>0.7.7.201606060606</version>
222                 <configuration>
223                     <dumpOnExit>true</dumpOnExit>
224                 </configuration>
225                 <executions>
226                     <execution>
227                         <id>jacoco-initialize-unit-tests</id>
228                         <goals>
229                             <goal>prepare-agent</goal>
230                         </goals>
231                         <configuration>
232                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec
233                             </destFile>
234                         </configuration>
235                     </execution>
236                 </executions>
237             </plugin>
238         </plugins>
239     </build>
240
241     <profiles>
242         <profile>
243             <id>runAjsc</id>
244             <build>
245                 <defaultGoal>initialize</defaultGoal>
246                 <plugins>
247                     <plugin>
248                         <groupId>org.codehaus.mojo</groupId>
249                         <artifactId>exec-maven-plugin</artifactId>
250                         <version>1.3.2</version>
251                         <executions>
252                             <execution>
253                                 <phase>initialize</phase>
254                                 <goals>
255                                     <goal>java</goal>
256                                 </goals>
257                                 <configuration>
258                                     <includeProjectDependencies>false</includeProjectDependencies>
259                                     <includePluginDependencies>true</includePluginDependencies>
260                                     <executable>java</executable>
261                                     <mainClass>com.att.ajsc.runner.Runner</mainClass>
262                                     <executableDependency>
263                                         <groupId>com.att.ajsc</groupId>
264                                         <artifactId>ajsc-runner</artifactId>
265                                     </executableDependency>
266                                     <additionalClasspathElements>
267                                         <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
268                                     </additionalClasspathElements>
269
270                                     <environmentVariables>
271                                         <AJSC_HOME>${runAjscHome}</AJSC_HOME>
272                                     </environmentVariables>
273
274                                     <!-- Main AJSC System Properties below (necessary for proper startup) -->
275                                     <systemProperties>
276                                         <systemProperty>
277                                             <key>AJSC_HOME</key>
278                                             <value>${runAjscHome}</value>
279                                         </systemProperty>
280
281                                         <systemProperty>
282                                             <key>CONFIG_HOME</key>
283                                             <value>${basedir}/appconfig-local/</value>
284                                         </systemProperty>
285
286                                         <systemProperty>
287                                             <key>AJSC_CONF_HOME</key>
288                                             <value>${basedir}/bundleconfig-local</value>
289                                         </systemProperty>
290                                         <systemProperty>
291                                             <key>logback.configurationFile</key>
292                                             <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
293                                         </systemProperty>
294                                         <systemProperty>
295                                             <key>AJSC_SHARED_CONFIG</key>
296                                             <value>${basedir}/ajsc-shared-config</value>
297                                         </systemProperty>
298
299                                         <sysproperty>
300                                             <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
301                                             <value>${basedir}/target/commonLibs</value>
302                                         </sysproperty>
303                                         <sysproperty>
304                                             <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
305                                             <value>${basedir}/ajsc-shared-config/etc</value>
306                                         </sysproperty>
307
308                                         <systemProperty>
309                                             <key>AJSC_SERVICE_NAMESPACE</key>
310                                             <value>${module.ajsc.namespace.name}</value>
311                                         </systemProperty>
312                                         <systemProperty>
313                                             <key>AJSC_SERVICE_VERSION</key>
314                                             <value>${module.ajsc.namespace.version}</value>
315                                         </systemProperty>
316                                         <systemProperty>
317                                             <key>SOACLOUD_SERVICE_VERSION</key>
318                                             <value>${project.version}</value>
319                                         </systemProperty>
320                                         <systemProperty>
321                                             <key>server.port</key>
322                                             <value>${serverPort}</value>
323                                         </systemProperty>
324                                     </systemProperties>
325
326                                     <!-- Command Line Arguments to add to the java command. Here, you
327                                         can specify the port as well as the Context you want your service to run
328                                         in. Use context=/ to run in an unnamed Context (Root Context). The default
329                                         configuration of the AJSC is to run under the / Context. Setting the port
330                                         here can aid during the development phase of your service. However, you can
331                                         leave this argument out entirely, and the AJSC will default to using an Ephemeral
332                                         port. -->
333                                     <arguments>
334                                         <argument>context=/</argument>
335                                         <argument>port=${serverPort}</argument>
336                                         <argument>sslport=${sslport}</argument>
337                                     </arguments>
338                                 </configuration>
339                             </execution>
340                         </executions>
341                         <configuration>
342                             <executable>java</executable>
343                         </configuration>
344                         <dependencies>
345                             <dependency>
346                                 <groupId>com.att.ajsc</groupId>
347                                 <artifactId>ajsc-runner</artifactId>
348                                 <version>${ajscRuntimeVersion}</version>
349                             </dependency>
350                         </dependencies>
351                     </plugin>
352                 </plugins>
353             </build>
354         </profile>
355     </profiles>
356     <dependencyManagement>
357         <dependencies>
358             <dependency>
359                 <groupId>org.apache.httpcomponents</groupId>
360                 <artifactId>httpclient</artifactId>
361                 <version>4.5</version>
362             </dependency>
363             <dependency>
364                 <groupId>org.apache.httpcomponents</groupId>
365                 <artifactId>httpcore</artifactId>
366                 <version>4.4.1</version>
367             </dependency>
368             <dependency>
369                 <groupId>org.json</groupId>
370                 <artifactId>json</artifactId>
371                 <version>20131018</version>
372             </dependency>
373         </dependencies>
374     </dependencyManagement>
375     <distributionManagement>
376         <repository>
377             <id>ecomp-releases</id>
378             <name>ECOMP Release Repository</name>
379             <url>${nexusproxy}/content/repositories/releases/</url>
380         </repository>
381         <snapshotRepository>
382             <id>ecomp-snapshots</id>
383             <name>ECOMP Snapshot Repository</name>
384             <url>${nexusproxy}/content/repositories/snapshots/</url>
385         </snapshotRepository>
386     </distributionManagement>
387 </project>