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