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