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