[AAI-26] Adding gizmo data to the repository.
[aai/gizmo.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5
6     <parent>
7         <artifactId>ajsc-archetype-parent</artifactId>
8         <groupId>com.att.ajsc</groupId>
9         <version>2.0.0</version>
10     </parent>
11     <groupId>org.onap.aai.gizmo</groupId>
12     <artifactId>gizmo</artifactId>
13     <version>1.1.0-SNAPSHOT</version>
14
15     <properties>
16         <module.ajsc.namespace.name>crud-api</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         <nexusproxy>https://nexus.onap.org</nexusproxy>
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         <!-- Port Selection. A value of 0 will allow for dynamic port selection.
31             For local testing, you may choose to hardcode this value to something like
32             8080 -->
33         <serverPort>0</serverPort>
34         <sslport>9520</sslport>
35
36         <testRouteOffer>workstation</testRouteOffer>
37         <testEnv>DEV</testEnv>
38         <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
39
40         <sonar.language>java</sonar.language>
41         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
42         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
43         </sonar.surefire.reportsPath>
44         <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
45         </sonar.jacoco.reportPath>
46         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
47         <sonar.projectVersion>${project.version}</sonar.projectVersion>
48     </properties>
49
50     <dependencies>
51
52         <dependency>
53             <groupId>dom4j</groupId>
54             <artifactId>dom4j</artifactId>
55             <version>1.6.1</version>
56             <scope>provided</scope>
57         </dependency>
58
59         <dependency>
60             <groupId>com.att.aft</groupId>
61             <artifactId>dme2</artifactId>
62             <version>3.1.200</version>
63             <scope>provided</scope>
64         </dependency>
65         <dependency>
66             <groupId>commons-io</groupId>
67             <artifactId>commons-io</artifactId>
68             <version>2.4</version>
69         </dependency>
70
71         <dependency>
72             <groupId>com.google.code.gson</groupId>
73             <artifactId>gson</artifactId>
74             <version>2.6.2</version>
75         </dependency>
76
77         <dependency>
78             <groupId>com.thinkaurelius.titan</groupId>
79             <artifactId>titan-cassandra</artifactId>
80             <version>1.0.0</version>
81             <exclusions>
82                 <exclusion>
83                     <groupId>org.apache.tinkerpop</groupId>
84                     <artifactId>gremlin-groovy</artifactId>
85                 </exclusion>
86                 <exclusion>
87                     <groupId>org.slf4j</groupId>
88                     <artifactId>slf4j-log4j12</artifactId>
89                 </exclusion>
90                 <exclusion>
91                     <groupId>ch.qos.logback</groupId>
92                     <artifactId>logback-classic</artifactId>
93                 </exclusion>
94                 <exclusion>
95                     <groupId>org.apache.tinkerpop</groupId>
96                     <artifactId>gremlin-core</artifactId>
97                 </exclusion>
98             </exclusions>
99         </dependency>
100
101         <dependency>
102             <groupId>com.thinkaurelius.titan</groupId>
103             <artifactId>titan-hbase</artifactId>
104             <version>1.0.0</version>
105             <exclusions>
106                 <exclusion>
107                     <groupId>org.apache.tinkerpop</groupId>
108                     <artifactId>gremlin-groovy</artifactId>
109                 </exclusion>
110                 <exclusion>
111                     <groupId>org.slf4j</groupId>
112                     <artifactId>slf4j-log4j12</artifactId>
113                 </exclusion>
114                 <exclusion>
115                     <groupId>ch.qos.logback</groupId>
116                     <artifactId>logback-classic</artifactId>
117                 </exclusion>
118                 <exclusion>
119                     <groupId>org.apache.tinkerpop</groupId>
120                     <artifactId>gremlin-core</artifactId>
121                 </exclusion>
122             </exclusions>
123         </dependency>
124
125         <dependency>
126             <groupId>org.apache.hbase</groupId>
127             <artifactId>hbase-client</artifactId>
128             <version>1.0.2</version>
129             <exclusions>
130                 <exclusion>
131                     <groupId>org.slf4j</groupId>
132                     <artifactId>slf4j-log4j12</artifactId>
133                 </exclusion>
134                 <exclusion>
135                     <groupId>com.google.guava</groupId>
136                     <artifactId>guava</artifactId>
137                 </exclusion>
138             </exclusions>
139         </dependency>
140
141         <!-- Common logging framework -->
142         <dependency>
143           <groupId>org.openecomp.aai.logging-service</groupId>
144           <artifactId>common-logging</artifactId>
145           <version>1.0.0</version>
146         </dependency>
147
148         <dependency>
149           <groupId>ch.qos.logback</groupId>
150           <artifactId>logback-core</artifactId>
151           <version>1.1.7</version>
152         </dependency>
153
154         <dependency>
155           <groupId>org.onap.aai.aai-common</groupId>
156           <artifactId>aai-schema</artifactId>
157           <version>1.1.0-SNAPSHOT</version>
158         </dependency>
159
160         <dependency>
161           <groupId>org.onap.aai.aai-common</groupId>
162           <artifactId>aai-auth</artifactId>
163           <version>1.1.0-SNAPSHOT</version>
164         </dependency>
165
166         <dependency>
167           <groupId>org.eclipse.persistence</groupId>
168             <artifactId>eclipselink</artifactId>
169             <version>2.6.2</version>
170         </dependency>
171
172         <!-- Champ graph database library. -->
173         <dependency>
174             <groupId>org.openecomp.aai</groupId>
175             <artifactId>champ</artifactId>
176             <version>1.1.0-SNAPSHOT</version>
177             <scope>compile</scope>
178             <exclusions>
179                 <exclusion>
180                     <groupId>org.apache.hbase</groupId>
181                     <artifactId>hbase-client</artifactId>
182                 </exclusion>
183             </exclusions>
184         </dependency>
185
186         <!-- Since for some reason the Champ library marks this artifact as an
187             'optional' dependency, we don't get it as a transitive dependency, even though
188             we are guaranteed No-Clas-Def errors if we don't have it on the class path,
189             so... we need to explicitly include it ourselves... -->
190         <dependency>
191             <groupId>com.thinkaurelius.titan</groupId>
192             <artifactId>titan-cassandra</artifactId>
193             <version>1.0.0</version>
194             <exclusions>
195               <exclusion>
196                     <groupId>org.slf4j</groupId>
197                     <artifactId>slf4j-log4j12</artifactId>
198                 </exclusion>
199             </exclusions>
200         </dependency>
201
202         <dependency>
203             <groupId>org.json</groupId>
204             <artifactId>json</artifactId>
205             <version>20131018</version>
206         </dependency>
207
208     </dependencies>
209
210
211     <repositories>
212       <repository>
213         <id>central</id>
214         <name>Maven 2 repository 2</name>
215         <url>http://repo2.maven.org/maven2/</url>
216       </repository>
217       <repository>
218         <id>ecomp-releases</id>
219         <name>ECOMP Release Repository</name>
220         <url>${nexusproxy}/content/repositories/releases/</url>
221       </repository>
222       <repository>
223         <id>ecomp-snapshots</id>
224         <name>ECOMP Snapshot Repository</name>
225         <url>${nexusproxy}/content/repositories/snapshots/</url>
226       </repository>
227       <repository>
228         <id>ecomp-staging</id>
229         <name>ECOMP Staging Repository</name>
230         <url>${nexusproxy}/content/repositories/staging/</url>
231       </repository>
232
233     </repositories>
234
235     <build>
236         <plugins>
237             <plugin>
238                 <groupId>org.apache.maven.plugins</groupId>
239                 <artifactId>maven-resources-plugin</artifactId>
240                 <version>2.7</version>
241                 <executions>
242                     <execution>
243                         <id>copy-docker-file</id>
244                         <phase>package</phase>
245                         <goals>
246                             <goal>copy-resources</goal>
247                         </goals>
248                         <configuration>
249                             <outputDirectory>target</outputDirectory>
250                             <overwrite>true</overwrite>
251                             <resources>
252                                 <resource>
253                                     <directory>${basedir}/src/main/docker</directory>
254                                     <filtering>true</filtering>
255                                     <includes>
256                                         <include>**/*</include>
257                                     </includes>
258                                 </resource>
259                                 <resource>
260                                   <directory>${basedir}/src/main/bin/</directory>
261                                 </resource>
262                             </resources>
263                         </configuration>
264                     </execution>
265                 </executions>
266             </plugin>
267
268             <plugin>
269               <groupId>com.spotify</groupId>
270               <artifactId>docker-maven-plugin</artifactId>
271               <version>0.4.11</version>
272               <configuration>
273                 <verbose>true</verbose>
274                 <serverId>docker-hub</serverId>
275                 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
276                 <dockerDirectory>${docker.location}</dockerDirectory>
277                 <imageTags>
278                   <imageTag>latest</imageTag>
279                 </imageTags>
280                 <forceTags>true</forceTags>
281               </configuration>
282             </plugin>
283
284             <!-- license plugin -->
285             <plugin>
286                 <groupId>com.mycila</groupId>
287                 <artifactId>license-maven-plugin</artifactId>
288                 <version>3.0</version>
289                 <configuration>
290                     <header>License.txt</header>
291                     <includes>
292                         <include>src/main/java/**</include>
293                     </includes>
294                 </configuration>
295                 <executions>
296                     <execution>
297                         <goals>
298                             <goal>format</goal>
299                         </goals>
300                         <phase>process-sources</phase>
301                     </execution>
302                 </executions>
303             </plugin>
304
305             <plugin>
306                 <groupId>org.apache.maven.plugins</groupId>
307                 <artifactId>maven-site-plugin</artifactId>
308                 <version>3.3</version>
309                 <configuration>
310                     <reportPlugins>
311                         <plugin>
312                             <groupId>org.apache.maven.plugins</groupId>
313                             <artifactId>maven-checkstyle-plugin</artifactId>
314                             <version>2.17</version>
315                             <reportSets>
316                                 <reportSet>
317                                     <reports>
318                                       <report>checkstyle</report>
319                                     </reports>
320                                 </reportSet>
321                             </reportSets>
322                         </plugin>
323                     </reportPlugins>
324                 </configuration>
325             </plugin>
326
327             <plugin>
328               <groupId>org.apache.maven.plugins</groupId>
329               <artifactId>maven-deploy-plugin</artifactId>
330               <configuration>
331                 <skip>true</skip>
332               </configuration>
333             </plugin>
334
335             <plugin>
336               <groupId>org.codehaus.mojo</groupId>
337               <artifactId>sonar-maven-plugin</artifactId>
338               <version>3.2</version>
339             </plugin>
340
341             <plugin>
342               <groupId>org.jacoco</groupId>
343               <artifactId>jacoco-maven-plugin</artifactId>
344               <version>0.7.7.201606060606</version>
345               <configuration>
346                 <dumpOnExit>true</dumpOnExit>
347               </configuration>
348               <executions>
349                 <execution>
350                   <id>jacoco-initialize-unit-tests</id>
351                   <goals>
352                     <goal>prepare-agent</goal>
353                   </goals>
354                   <configuration>
355                     <destFile>${project.build.directory}/coverage-reports/jacoco.exec
356                     </destFile>
357                     <!-- <append>true</append> -->
358                   </configuration>
359                 </execution>
360               </executions>
361             </plugin>
362         </plugins>
363     </build>
364
365     <profiles>
366         <profile>
367             <id>runAjsc</id>
368             <build>
369                 <defaultGoal>initialize</defaultGoal>
370                 <plugins>
371                     <plugin>
372                         <groupId>org.codehaus.mojo</groupId>
373                         <artifactId>exec-maven-plugin</artifactId>
374                         <version>1.3.2</version>
375                         <executions>
376                             <execution>
377                                 <phase>initialize</phase>
378                                 <goals>
379                                     <goal>java</goal>
380                                 </goals>
381                                 <configuration>
382                                     <includeProjectDependencies>false</includeProjectDependencies>
383                                     <includePluginDependencies>true</includePluginDependencies>
384                                     <executable>java</executable>
385                                     <mainClass>com.att.ajsc.runner.Runner</mainClass>
386                                     <executableDependency>
387                                         <groupId>com.att.ajsc</groupId>
388                                         <artifactId>ajsc-runner</artifactId>
389                                     </executableDependency>
390                                     <additionalClasspathElements>
391                                         <additionalClasspathElement>
392                                             ${basedir}/ajsc-shared-config/etc
393                                         </additionalClasspathElement>
394                                     </additionalClasspathElements>
395
396                                     <environmentVariables>
397                                         <AJSC_HOME>${runAjscHome}</AJSC_HOME>
398                                     </environmentVariables>
399
400                                     <!-- Main AJSC System Properties below (necessary for proper startup) -->
401                                     <systemProperties>
402                                         <systemProperty>
403                                             <key>AJSC_HOME</key>
404                                             <value>${runAjscHome}</value>
405                                         </systemProperty>
406                                         <systemProperty>
407                                             <key>CONFIG_HOME</key>
408                                             <value>${basedir}/appconfig-local/</value>
409                                         </systemProperty>
410                                         <systemProperty>
411                                             <key>AJSC_CONF_HOME</key>
412                                             <value>${basedir}/bundleconfig-local</value>
413                                         </systemProperty>
414                                         <systemProperty>
415                                             <key>logback.configurationFile</key>
416                                             <value>${basedir}/ajsc-shared-config/etc/logback.xml
417                                             </value>
418                                         </systemProperty>
419                                         <systemProperty>
420                                             <key>AJSC_SHARED_CONFIG</key>
421                                             <value>${basedir}/ajsc-shared-config</value>
422                                         </systemProperty>
423
424                                         <sysproperty>
425                                             <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
426                                             <value>${basedir}/target/commonLibs</value>
427                                         </sysproperty>
428                                         <sysproperty>
429                                             <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
430                                             <value>${basedir}/ajsc-shared-config/etc</value>
431                                         </sysproperty>
432
433                                         <systemProperty>
434                                             <key>AJSC_SERVICE_NAMESPACE</key>
435                                             <value>${module.ajsc.namespace.name}</value>
436                                         </systemProperty>
437                                         <systemProperty>
438                                             <key>AJSC_SERVICE_VERSION</key>
439                                             <value>${module.ajsc.namespace.version}</value>
440                                         </systemProperty>
441                                         <systemProperty>
442                                             <key>SOACLOUD_SERVICE_VERSION</key>
443                                             <value>${project.version}</value>
444                                         </systemProperty>
445                                         <systemProperty>
446                                             <key>server.port</key>
447                                             <value>${serverPort}</value>
448                                         </systemProperty>
449                                     </systemProperties>
450
451                                     <!-- Command Line Arguments to add to the java command. Here, you
452                                         can specify the port as well as the Context you want your service to run
453                                         in. Use context=/ to run in an unnamed Context (Root Context). The default
454                                         configuration of the AJSC is to run under the / Context. Setting the port
455                                         here can aid during the development phase of your service. However, you can
456                                         leave this argument out entirely, and the AJSC will default to using an Ephemeral
457                                         port. -->
458                                     <arguments>
459                                         <argument>context=/</argument>
460                                         <argument>port=${serverPort}</argument>
461                                         <argument>sslport=${sslport}</argument>
462                                     </arguments>
463                                 </configuration>
464                             </execution>
465                         </executions>
466                         <configuration>
467                             <executable>java</executable>
468                         </configuration>
469                         <dependencies>
470                             <dependency>
471                                 <groupId>com.att.ajsc</groupId>
472                                 <artifactId>ajsc-runner</artifactId>
473                                 <version>${ajscRuntimeVersion}</version>
474                             </dependency>
475                         </dependencies>
476                     </plugin>
477                 </plugins>
478             </build>
479         </profile>
480     </profiles>
481
482     <dependencyManagement>
483         <dependencies>
484             <dependency>
485                 <groupId>org.apache.httpcomponents</groupId>
486                 <artifactId>httpclient</artifactId>
487                 <version>4.5</version>
488             </dependency>
489             <dependency>
490                 <groupId>org.apache.httpcomponents</groupId>
491                 <artifactId>httpcore</artifactId>
492                 <version>4.4.1</version>
493             </dependency>
494             <dependency>
495                 <groupId>org.json</groupId>
496                 <artifactId>json</artifactId>
497                 <version>20131018</version>
498             </dependency>
499         </dependencies>
500     </dependencyManagement>
501
502     <distributionManagement>
503       <repository>
504         <id>ecomp-releases</id>
505         <name>ECOMP Release Repository</name>
506         <url>${nexusproxy}/content/repositories/releases/</url>
507       </repository>
508       <snapshotRepository>
509         <id>ecomp-snapshots</id>
510         <name>ECOMP Snapshot Repository</name>
511         <url>${nexusproxy}/content/repositories/snapshots/</url>
512       </snapshotRepository>
513       <site>
514         <id>ecomp-javadoc</id>
515         <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
516       </site>
517     </distributionManagement>
518 </project>