Fix broken pom file.
[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         <!-- Common logging framework -->
78         <dependency>
79           <groupId>org.openecomp.aai.logging-service</groupId>
80           <artifactId>common-logging</artifactId>
81           <version>1.0.0</version>
82         </dependency>
83
84         <dependency>
85           <groupId>ch.qos.logback</groupId>
86           <artifactId>logback-core</artifactId>
87           <version>1.1.7</version>
88         </dependency>
89
90         <dependency>
91           <groupId>org.onap.aai.aai-common</groupId>
92           <artifactId>aai-schema</artifactId>
93           <version>1.1.0-SNAPSHOT</version>
94         </dependency>
95         <dependency>
96             <groupId>org.onap.aai.aai-common</groupId>
97             <artifactId>aai-utils</artifactId>
98             <version>1.1.0-SNAPSHOT</version>
99         </dependency>
100         <dependency>
101             <groupId>org.onap.aai.aai-common</groupId>
102             <artifactId>aai-core</artifactId>
103             <version>1.1.0-SNAPSHOT</version>
104             <exclusions>
105                 <exclusion>
106                     <groupId>*</groupId>
107                     <artifactId>*</artifactId>
108                 </exclusion>
109             </exclusions>
110         </dependency>
111
112         <dependency>
113           <groupId>org.onap.aai.aai-common</groupId>
114           <artifactId>aai-auth</artifactId>
115           <version>1.1.0-SNAPSHOT</version>
116         </dependency>
117
118         <dependency>
119           <groupId>org.eclipse.persistence</groupId>
120             <artifactId>eclipselink</artifactId>
121             <version>2.6.2</version>
122         </dependency>
123
124         <!-- Champ graph database library. -->
125         <dependency>
126             <groupId>org.openecomp.aai</groupId>
127             <artifactId>champ</artifactId> 
128             <version>1.1.0-SNAPSHOT</version>
129             <scope>compile</scope>
130             <exclusions>
131                 <exclusion>
132                     <groupId>org.apache.hbase</groupId>
133                     <artifactId>hbase-client</artifactId>
134                 </exclusion>
135             </exclusions>
136         </dependency>
137
138         <dependency>
139             <groupId>com.jayway.jsonpath</groupId>
140             <artifactId>json-path</artifactId>
141             <version>2.2.0</version>
142         </dependency>
143                 
144                 <dependency>
145                 <groupId>org.apache.tinkerpop</groupId>
146             <artifactId>gremlin-core</artifactId> 
147             <version>3.1.0-incubating</version>
148             <exclusions>
149               <exclusion>
150                     <groupId>org.slf4j</groupId>
151                     <artifactId>slf4j-log4j12</artifactId>
152                 </exclusion>
153                 <exclusion>
154                     <groupId>org.slf4j</groupId>
155                     <artifactId>jcl-over-slf4j</artifactId>
156                 </exclusion>
157             </exclusions>
158         </dependency>
159                 
160         <!-- TEST Dependencies -->
161                 
162                 <dependency>
163             <groupId>org.apache.tinkerpop</groupId>
164             <artifactId>tinkergraph-gremlin</artifactId>
165             <version>3.2.3</version>
166             <scope>test</scope>
167         </dependency>
168
169
170
171         <dependency>
172             <groupId>org.json</groupId>
173             <artifactId>json</artifactId>
174             <version>20131018</version>
175         </dependency>
176         <dependency>
177             <groupId>junit</groupId>
178             <artifactId>junit</artifactId>
179         </dependency>
180
181     </dependencies>
182
183
184     <repositories>
185       <repository>
186         <id>central</id>
187         <name>Maven 2 repository 2</name>
188         <url>http://repo2.maven.org/maven2/</url>
189       </repository>
190       <repository>
191         <id>ecomp-releases</id>
192         <name>ECOMP Release Repository</name>
193         <url>${nexusproxy}/content/repositories/releases/</url>
194       </repository>
195       <repository>
196         <id>ecomp-snapshots</id>
197         <name>ECOMP Snapshot Repository</name>
198         <url>${nexusproxy}/content/repositories/snapshots/</url>
199       </repository>
200       <repository>
201         <id>ecomp-staging</id>
202         <name>ECOMP Staging Repository</name>
203         <url>${nexusproxy}/content/repositories/staging/</url>
204       </repository>
205
206     </repositories>
207
208     <build>
209         <plugins>
210             <plugin>
211                 <groupId>org.apache.maven.plugins</groupId>
212                 <artifactId>maven-resources-plugin</artifactId>
213                 <version>2.7</version>
214                 <executions>
215                     <execution>
216                         <id>copy-docker-file</id>
217                         <phase>package</phase>
218                         <goals>
219                             <goal>copy-resources</goal>
220                         </goals>
221                         <configuration>
222                             <outputDirectory>target</outputDirectory>
223                             <overwrite>true</overwrite>
224                             <resources>
225                                 <resource>
226                                     <directory>${basedir}/src/main/docker</directory>
227                                     <filtering>true</filtering>
228                                     <includes>
229                                         <include>**/*</include>
230                                     </includes>
231                                 </resource>
232                                 <resource>
233                                   <directory>${basedir}/src/main/bin/</directory>
234                                 </resource>
235                             </resources>
236                         </configuration>
237                     </execution>
238                 </executions>
239             </plugin>
240
241             <plugin>
242               <groupId>com.spotify</groupId>
243               <artifactId>docker-maven-plugin</artifactId>
244               <version>0.4.11</version>
245               <configuration>
246                 <verbose>true</verbose>
247                 <serverId>docker-hub</serverId>
248                 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
249                 <dockerDirectory>${docker.location}</dockerDirectory>
250                 <imageTags>
251                   <imageTag>latest</imageTag>
252                 </imageTags>
253                 <forceTags>true</forceTags>
254               </configuration>
255             </plugin>
256
257             <!-- license plugin -->
258             <plugin>
259                 <groupId>com.mycila</groupId>
260                 <artifactId>license-maven-plugin</artifactId>
261                 <version>3.0</version>
262                 <configuration>
263                     <header>License.txt</header>
264                     <includes>
265                         <include>src/main/java/**</include>
266                     </includes>
267                 </configuration>
268                 <executions>
269                     <execution>
270                         <goals>
271                             <goal>format</goal>
272                         </goals>
273                         <phase>process-sources</phase>
274                     </execution>
275                 </executions>
276             </plugin>
277
278             <plugin>
279                 <groupId>org.apache.maven.plugins</groupId>
280                 <artifactId>maven-site-plugin</artifactId>
281                 <version>3.3</version>
282                 <configuration>
283                     <reportPlugins>
284                         <plugin>
285                             <groupId>org.apache.maven.plugins</groupId>
286                             <artifactId>maven-checkstyle-plugin</artifactId>
287                             <version>2.17</version>
288                             <reportSets>
289                                 <reportSet>
290                                     <reports>
291                                       <report>checkstyle</report>
292                                     </reports>
293                                 </reportSet>
294                             </reportSets>
295                         </plugin>
296                     </reportPlugins>
297                 </configuration>
298             </plugin>
299
300             <plugin>
301               <groupId>org.apache.maven.plugins</groupId>
302               <artifactId>maven-deploy-plugin</artifactId>
303               <configuration>
304                 <skip>true</skip>
305               </configuration>
306             </plugin>
307
308             <plugin>
309               <groupId>org.codehaus.mojo</groupId>
310               <artifactId>sonar-maven-plugin</artifactId>
311               <version>3.2</version>
312             </plugin>
313
314             <plugin>
315               <groupId>org.jacoco</groupId>
316               <artifactId>jacoco-maven-plugin</artifactId>
317               <version>0.7.7.201606060606</version>
318               <configuration>
319                 <dumpOnExit>true</dumpOnExit>
320               </configuration>
321               <executions>
322                 <execution>
323                   <id>jacoco-initialize-unit-tests</id>
324                   <goals>
325                     <goal>prepare-agent</goal>
326                   </goals>
327                   <configuration>
328                     <destFile>${project.build.directory}/coverage-reports/jacoco.exec
329                     </destFile>
330                     <!-- <append>true</append> -->
331                   </configuration>
332                 </execution>
333               </executions>
334             </plugin>
335         </plugins>
336     </build>
337
338     <profiles>
339         <profile>
340             <id>runAjsc</id>
341             <build>
342                 <defaultGoal>initialize</defaultGoal>
343                 <plugins>
344                     <plugin>
345                         <groupId>org.codehaus.mojo</groupId>
346                         <artifactId>exec-maven-plugin</artifactId>
347                         <version>1.3.2</version>
348                         <executions>
349                             <execution>
350                                 <phase>initialize</phase>
351                                 <goals>
352                                     <goal>java</goal>
353                                 </goals>
354                                 <configuration>
355                                     <includeProjectDependencies>false</includeProjectDependencies>
356                                     <includePluginDependencies>true</includePluginDependencies>
357                                     <executable>java</executable>
358                                     <mainClass>com.att.ajsc.runner.Runner</mainClass>
359                                     <executableDependency>
360                                         <groupId>com.att.ajsc</groupId>
361                                         <artifactId>ajsc-runner</artifactId>
362                                     </executableDependency>
363                                     <additionalClasspathElements>
364                                         <additionalClasspathElement>
365                                             ${basedir}/ajsc-shared-config/etc
366                                         </additionalClasspathElement>
367                                     </additionalClasspathElements>
368
369                                     <environmentVariables>
370                                         <AJSC_HOME>${runAjscHome}</AJSC_HOME>
371                                     </environmentVariables>
372
373                                     <!-- Main AJSC System Properties below (necessary for proper startup) -->
374                                     <systemProperties>
375                                         <systemProperty>
376                                             <key>AJSC_HOME</key>
377                                             <value>${runAjscHome}</value>
378                                         </systemProperty>
379                                         <systemProperty>
380                                             <key>CONFIG_HOME</key>
381                                             <value>${basedir}/appconfig-local/</value>
382                                         </systemProperty>
383                                         <systemProperty>
384                                             <key>AJSC_CONF_HOME</key>
385                                             <value>${basedir}/bundleconfig-local</value>
386                                         </systemProperty>
387                                         <systemProperty>
388                                             <key>logback.configurationFile</key>
389                                             <value>${basedir}/ajsc-shared-config/etc/logback.xml
390                                             </value>
391                                         </systemProperty>
392                                         <systemProperty>
393                                             <key>AJSC_SHARED_CONFIG</key>
394                                             <value>${basedir}/ajsc-shared-config</value>
395                                         </systemProperty>
396
397                                         <sysproperty>
398                                             <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
399                                             <value>${basedir}/target/commonLibs</value>
400                                         </sysproperty>
401                                         <sysproperty>
402                                             <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
403                                             <value>${basedir}/ajsc-shared-config/etc</value>
404                                         </sysproperty>
405
406                                         <systemProperty>
407                                             <key>AJSC_SERVICE_NAMESPACE</key>
408                                             <value>${module.ajsc.namespace.name}</value>
409                                         </systemProperty>
410                                         <systemProperty>
411                                             <key>AJSC_SERVICE_VERSION</key>
412                                             <value>${module.ajsc.namespace.version}</value>
413                                         </systemProperty>
414                                         <systemProperty>
415                                             <key>SOACLOUD_SERVICE_VERSION</key>
416                                             <value>${project.version}</value>
417                                         </systemProperty>
418                                         <systemProperty>
419                                             <key>server.port</key>
420                                             <value>${serverPort}</value>
421                                         </systemProperty>
422                                     </systemProperties>
423
424                                     <!-- Command Line Arguments to add to the java command. Here, you
425                                         can specify the port as well as the Context you want your service to run
426                                         in. Use context=/ to run in an unnamed Context (Root Context). The default
427                                         configuration of the AJSC is to run under the / Context. Setting the port
428                                         here can aid during the development phase of your service. However, you can
429                                         leave this argument out entirely, and the AJSC will default to using an Ephemeral
430                                         port. -->
431                                     <arguments>
432                                         <argument>context=/</argument>
433                                         <argument>port=${serverPort}</argument>
434                                         <argument>sslport=${sslport}</argument>
435                                     </arguments>
436                                 </configuration>
437                             </execution>
438                         </executions>
439                         <configuration>
440                             <executable>java</executable>
441                         </configuration>
442                         <dependencies>
443                             <dependency>
444                                 <groupId>com.att.ajsc</groupId>
445                                 <artifactId>ajsc-runner</artifactId>
446                                 <version>${ajscRuntimeVersion}</version>
447                             </dependency>
448                         </dependencies>
449                     </plugin>
450                 </plugins>
451             </build>
452         </profile>
453     </profiles>
454
455     <dependencyManagement>
456         <dependencies>
457             <dependency>
458                 <groupId>org.apache.httpcomponents</groupId>
459                 <artifactId>httpclient</artifactId>
460                 <version>4.5</version>
461             </dependency>
462             <dependency>
463                 <groupId>org.apache.httpcomponents</groupId>
464                 <artifactId>httpcore</artifactId>
465                 <version>4.4.1</version>
466             </dependency>
467             <dependency>
468                 <groupId>org.json</groupId>
469                 <artifactId>json</artifactId>
470                 <version>20131018</version>
471             </dependency>
472         </dependencies>
473     </dependencyManagement>
474
475     <distributionManagement>
476       <repository>
477         <id>ecomp-releases</id>
478         <name>ECOMP Release Repository</name>
479         <url>${nexusproxy}/content/repositories/releases/</url>
480       </repository>
481       <snapshotRepository>
482         <id>ecomp-snapshots</id>
483         <name>ECOMP Snapshot Repository</name>
484         <url>${nexusproxy}/content/repositories/snapshots/</url>
485       </snapshotRepository>
486       <site>
487         <id>ecomp-javadoc</id>
488         <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
489       </site>
490     </distributionManagement>
491 </project>