Merge "Fix Blocker and Critical Sonar issues/bugs."
[aai/aai-common.git] / aai-core / pom.xml
1 <?xml version="1.0"?>
2 <project
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4         xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5     <modelVersion>4.0.0</modelVersion>
6     <parent>
7         <groupId>org.onap.aai.aai-common</groupId>
8         <artifactId>aai-common</artifactId>
9         <version>1.1.0-SNAPSHOT</version>
10     </parent>
11     <artifactId>aai-core</artifactId>
12     <name>aai-core</name>
13     <packaging>jar</packaging>
14     <properties>
15         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
16         <sonar.language>java</sonar.language>
17         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
18         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
19         <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
20         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
21         <sonar.projectVersion>${project.version}</sonar.projectVersion>
22         <gendoc.version>v11</gendoc.version>
23         <aai.wiki.link>https://wiki.onap.org/</aai.wiki.link>
24         <hbase.version>1.0.2</hbase.version>
25     </properties>
26     <profiles>
27         <profile>
28             <id>generateXsd</id>
29             <build>
30                 <plugins>
31                     <plugin>
32                         <groupId>org.codehaus.mojo</groupId>
33                         <artifactId>exec-maven-plugin</artifactId>
34                         <version>1.1.1</version>
35                         <executions>
36                             <execution>
37                                 <phase>process-classes</phase>
38                                 <goals>
39                                     <goal>java</goal>
40                                 </goals>
41                                 <configuration>
42                                     <mainClass>org.openecomp.aai.util.GenerateXsd</mainClass>
43                                     <systemProperties>
44                                         <systemProperty>
45                                             <key>gen_version</key>
46                                             <value>${gendoc.version}</value>
47                                         </systemProperty>
48                                         <systemProperty>
49                                             <key>gen_type</key>
50                                             <value>XSD</value>
51                                         </systemProperty>
52                                         <systemProperty>
53                                             <key>yamlresponses_url</key>
54                                             <value></value>
55                                         </systemProperty>
56                                         <systemProperty>
57                                             <key>yamlresponses_label</key>
58                                             <value></value>
59                                         </systemProperty>
60                                     </systemProperties>
61                                 </configuration>
62                             </execution>
63                         </executions>
64                     </plugin>
65                 </plugins>
66             </build>
67         </profile>
68         <profile>
69             <id>generateYaml</id>
70             <build>
71                 <plugins>
72                     <plugin>
73                         <groupId>org.codehaus.mojo</groupId>
74                         <artifactId>exec-maven-plugin</artifactId>
75                         <version>1.1.1</version>
76                         <executions>
77                             <execution>
78                                 <phase>process-classes</phase>
79                                 <goals>
80                                     <goal>java</goal>
81                                 </goals>
82                                 <configuration>
83                                     <mainClass>org.openecomp.aai.util.GenerateXsd</mainClass>
84                                     <systemProperties>
85                                         <systemProperty>
86                                             <key>gen_version</key>
87                                             <value>${gendoc.version}</value>
88                                         </systemProperty>
89                                         <systemProperty>
90                                             <key>gen_type</key>
91                                             <value>YAML</value>
92                                         </systemProperty>
93                                         <systemProperty>
94                                             <key>yamlresponses_url</key>
95                                             <value>${aai.wiki.link}</value>
96                                         </systemProperty>
97                                         <systemProperty>
98                                             <key>yamlresponses_label</key>
99                                             <value>Response codes found in [response codes]</value>
100                                         </systemProperty>
101                                     </systemProperties>
102                                 </configuration>
103                             </execution>
104                         </executions>
105                     </plugin>
106                 </plugins>
107             </build>
108         </profile>
109         <profile>
110             <id>generateHtml</id>
111             <build>
112                 <plugins>
113                     <plugin>
114                         <groupId>org.codehaus.mojo</groupId>
115                         <artifactId>exec-maven-plugin</artifactId>
116                         <version>1.1.1</version>
117                         <executions>
118                             <execution>
119                                 <phase>process-classes</phase>
120                                 <goals>
121                                     <goal>java</goal>
122                                 </goals>
123                                 <configuration>
124                                     <mainClass>org.openecomp.aai.util.swagger.GenerateSwagger</mainClass>
125                                     <systemProperties>
126                                         <property>
127                                             <key>aai.generate.version</key>
128                                             <value>${gendoc.version}</value>
129                                         </property>
130                                         <property>
131                                             <key>aai.wiki.link</key>
132                                             <value>${aai.wiki.link}</value>
133                                         </property>
134                                     </systemProperties>
135                                 </configuration>
136                             </execution>
137                         </executions>
138                     </plugin>
139                 </plugins>
140             </build>
141         </profile>
142     </profiles>
143     <dependencies>
144         <dependency>
145             <groupId>org.onap.aai.aai-common</groupId>
146             <artifactId>aai-schema</artifactId>
147             <version>${aai.schema.version}</version>
148         </dependency>
149         <dependency>
150             <groupId>commons-lang</groupId>
151             <artifactId>commons-lang</artifactId>
152             <version>2.6</version>
153         </dependency>
154         <dependency>
155             <groupId>com.att.eelf</groupId>
156             <artifactId>eelf-core</artifactId>
157             <version>1.0.0</version>
158         </dependency>
159         <dependency>
160             <groupId>jdk.tools</groupId>
161             <artifactId>jdk.tools</artifactId>
162             <version>1.8.0_101</version>
163             <scope>system</scope>
164             <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
165         </dependency>
166         <dependency>
167             <groupId>org.codehaus.jackson</groupId>
168             <artifactId>jackson-core-asl</artifactId>
169             <version>1.9.13</version>
170         </dependency>
171
172         <dependency>
173             <groupId>org.codehaus.jackson</groupId>
174             <artifactId>jackson-mapper-asl</artifactId>
175             <version>1.9.13</version>
176         </dependency>
177         <dependency>
178             <groupId>junit</groupId>
179             <artifactId>junit</artifactId>
180             <version>4.12</version>
181             <scope>test</scope>
182         </dependency>
183         <dependency>
184             <groupId>org.hamcrest</groupId>
185             <artifactId>hamcrest-junit</artifactId>
186             <version>2.0.0.0</version>
187             <scope>test</scope>
188         </dependency>
189         <dependency>
190             <groupId>org.hamcrest</groupId>
191             <artifactId>hamcrest-core</artifactId>
192             <version>1.3</version>
193             <scope>test</scope>
194         </dependency>
195         <dependency>
196             <groupId>org.mockito</groupId>
197             <artifactId>mockito-all</artifactId>
198             <version>1.10.19</version>
199             <scope>test</scope>
200         </dependency>
201         <dependency>
202             <groupId>org.powermock</groupId>
203             <artifactId>powermock-module-junit4</artifactId>
204             <version>1.6.2</version>
205             <scope>test</scope>
206         </dependency>
207         <dependency>
208             <groupId>org.powermock</groupId>
209             <artifactId>powermock-api-mockito</artifactId>
210             <version>1.6.2</version>
211             <scope>test</scope>
212         </dependency>
213         <dependency>
214             <groupId>com.google.guava</groupId>
215             <artifactId>guava</artifactId>
216             <version>16.0</version>
217         </dependency>
218         <dependency>
219             <groupId>com.thinkaurelius.titan</groupId>
220             <artifactId>titan-core</artifactId>
221             <version>1.0.0</version>
222             <exclusions>
223                 <exclusion>
224                     <groupId>org.slf4j</groupId>
225                     <artifactId>slf4j-log4j12</artifactId>
226                 </exclusion>
227             </exclusions>
228         </dependency>
229         <dependency>
230             <groupId>com.fasterxml.jackson.jaxrs</groupId>
231             <artifactId>jackson-jaxrs-json-provider</artifactId>
232             <version>2.1.4</version>
233         </dependency>
234         <dependency>
235             <groupId>com.googlecode.json-simple</groupId>
236             <artifactId>json-simple</artifactId>
237             <version>1.1.1</version>
238         </dependency>
239         <dependency>
240             <groupId>org.springframework</groupId>
241             <artifactId>spring-web</artifactId>
242             <version>4.2.5.RELEASE</version>
243         </dependency>
244         <dependency>
245             <groupId>javax.xml.bind</groupId>
246             <artifactId>jaxb-api</artifactId>
247             <version>2.2.11</version>
248         </dependency>
249         <dependency>
250             <groupId>org.eclipse.persistence</groupId>
251             <artifactId>eclipselink</artifactId>
252             <version>2.6.2</version>
253         </dependency>
254         <dependency>
255             <groupId>com.google.code.gson</groupId>
256             <artifactId>gson</artifactId>
257             <version>2.7</version>
258         </dependency>
259         <dependency>
260             <groupId>com.jayway.jsonpath</groupId>
261             <artifactId>json-path</artifactId>
262             <version>2.2.0</version>
263         </dependency>
264         <dependency>
265             <groupId>org.eclipse.jetty</groupId>
266             <artifactId>jetty-util</artifactId>
267             <version>9.4.2.v20170220</version>
268         </dependency>
269         <dependency>
270             <groupId>org.apache.cxf</groupId>
271             <artifactId>cxf-core</artifactId>
272             <version>3.0.6</version>
273         </dependency>
274         <dependency>
275             <groupId>com.fasterxml.jackson.module</groupId>
276             <artifactId>jackson-module-jaxb-annotations</artifactId>
277             <version>2.1.4</version>
278         </dependency>
279         <dependency>
280             <groupId>com.sun.jersey</groupId>
281             <artifactId>jersey-core</artifactId>
282             <version>1.18</version>
283         </dependency>
284         <dependency>
285             <groupId>com.sun.jersey</groupId>
286             <artifactId>jersey-client</artifactId>
287             <version>1.18</version>
288         </dependency>
289         <dependency>
290             <groupId>com.sun.jersey</groupId>
291             <artifactId>jersey-json</artifactId>
292             <version>1.18</version>
293         </dependency>
294         <dependency>
295             <groupId>javax.ws.rs</groupId>
296             <artifactId>javax.ws.rs-api</artifactId>
297             <version>2.0.1</version>
298         </dependency>
299         <dependency>
300             <groupId>org.apache.tinkerpop</groupId>
301             <artifactId>gremlin-core</artifactId>
302             <version>3.0.1-incubating</version>
303         </dependency>
304         <dependency>
305             <groupId>org.slf4j</groupId>
306             <artifactId>slf4j-api</artifactId>
307             <version>1.7.5</version>
308         </dependency>
309         <dependency>
310             <groupId>com.fasterxml.jackson.core</groupId>
311             <artifactId>jackson-databind</artifactId>
312             <version>2.1.4</version>
313         </dependency>
314         <dependency>
315             <groupId>com.fasterxml.jackson.core</groupId>
316             <artifactId>jackson-annotations</artifactId>
317             <version>2.1.4</version>
318         </dependency>
319         <dependency>
320             <groupId>com.fasterxml.jackson.dataformat</groupId>
321             <artifactId>jackson-dataformat-yaml</artifactId>
322             <version>2.1.4</version>
323         </dependency>
324         <dependency>
325             <groupId>xml-apis</groupId>
326             <artifactId>xml-apis</artifactId>
327             <version>1.0.b2</version>
328         </dependency>
329         <dependency>
330             <groupId>commons-cli</groupId>
331             <artifactId>commons-cli</artifactId>
332             <version>1.3</version>
333         </dependency>
334         <dependency>
335             <groupId>com.beust</groupId>
336             <artifactId>jcommander</artifactId>
337             <version>1.48</version>
338         </dependency>
339         <dependency>
340             <groupId>org.json</groupId>
341             <artifactId>json</artifactId>
342             <version>20160810</version>
343         </dependency>
344         <dependency>
345             <groupId>javax.servlet</groupId>
346             <artifactId>javax.servlet-api</artifactId>
347             <version>3.1.0</version>
348         </dependency>
349         <dependency>
350             <groupId>com.bazaarvoice.jolt</groupId>
351             <artifactId>jolt-complete</artifactId>
352             <version>0.0.24</version>
353         </dependency>
354         <dependency>
355             <groupId>ch.qos.logback</groupId>
356             <artifactId>logback-core</artifactId>
357             <version>1.1.7</version>
358         </dependency>
359         <dependency>
360             <groupId>ch.qos.logback</groupId>
361             <artifactId>logback-classic</artifactId>
362             <version>1.1.7</version>
363         </dependency>
364         <dependency>
365             <groupId>ch.qos.logback</groupId>
366             <artifactId>logback-access</artifactId>
367             <version>1.1.7</version>
368         </dependency>
369         <dependency>
370             <groupId>org.apache.hbase</groupId>
371             <artifactId>hbase-client</artifactId>
372             <version>${hbase.version}</version>
373             <exclusions>
374                 <exclusion>
375                     <groupId>org.slf4j</groupId>
376                     <artifactId>slf4j-log4j12</artifactId>
377                 </exclusion>
378                 <exclusion>
379                     <artifactId>log4j</artifactId>
380                     <groupId>log4j</groupId>
381                 </exclusion>
382             </exclusions>
383         </dependency>
384         <dependency>
385             <groupId>org.apache.hbase</groupId>
386             <artifactId>hbase-protocol</artifactId>
387             <version>${hbase.version}</version>
388             <exclusions>
389                 <exclusion>
390                     <artifactId>log4j</artifactId>
391                     <groupId>log4j</groupId>
392                 </exclusion>
393             </exclusions>
394         </dependency>
395         <dependency>
396             <groupId>org.apache.hbase</groupId>
397             <artifactId>hbase-common</artifactId>
398             <version>${hbase.version}</version>
399             <exclusions>
400                 <exclusion>
401                     <artifactId>log4j</artifactId>
402                     <groupId>log4j</groupId>
403                 </exclusion>
404             </exclusions>
405         </dependency>
406         <dependency>
407             <groupId>org.apache.activemq</groupId>
408             <artifactId>activemq-broker</artifactId>
409             <version>5.14.4</version>
410         </dependency>
411         <dependency>
412             <groupId>com.opencsv</groupId>
413             <artifactId>opencsv</artifactId>
414             <version>3.1</version>
415         </dependency>
416         <dependency>
417             <groupId>org.freemarker</groupId>
418             <artifactId>freemarker</artifactId>
419             <version>2.3.14</version>
420         </dependency>
421         <dependency>
422             <groupId>com.github.fge</groupId>
423             <artifactId>json-patch</artifactId>
424             <version>1.9</version>
425         </dependency>
426         <dependency>
427             <groupId>com.att.nsa</groupId>
428             <artifactId>dmaapClient</artifactId>
429             <version>0.2.12</version>
430         </dependency>
431         <dependency>
432             <groupId>org.apache.camel</groupId>
433             <artifactId>camel-jms</artifactId>
434             <version>2.15.5</version>
435         </dependency>
436         <dependency>
437             <groupId>org.powermock</groupId>
438             <artifactId>powermock-module-javaagent</artifactId>
439             <version>1.6.2</version>
440             <scope>test</scope>
441         </dependency>
442     </dependencies>
443
444     <build>
445         <plugins>
446             <plugin>
447                 <groupId>org.codehaus.mojo</groupId>
448                 <artifactId>sonar-maven-plugin</artifactId>
449                 <version>3.2</version>
450             </plugin>
451             <plugin>
452                 <groupId>org.jacoco</groupId>
453                 <artifactId>jacoco-maven-plugin</artifactId>
454                 <version>0.7.7.201606060606</version>
455                 <configuration>
456                     <dumpOnExit>true</dumpOnExit>
457                 </configuration>
458                 <executions>
459                     <execution>
460                         <id>jacoco-initialize-unit-tests</id>
461                         <goals>
462                             <goal>prepare-agent</goal>
463                         </goals>
464                         <configuration>
465                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
466                             <!-- <append>true</append> -->
467                         </configuration>
468                     </execution>
469                 </executions>
470             </plugin>
471             <plugin>
472                 <groupId>org.apache.maven.plugins</groupId>
473                 <artifactId>maven-site-plugin</artifactId>
474             </plugin>
475             <plugin>
476                 <groupId>org.apache.maven.plugins</groupId>
477                 <artifactId>maven-surefire-plugin</artifactId>
478                 <version>2.12.4</version>
479                 <configuration>
480                     <argLine>-noverify ${argLine}</argLine>
481                     <systemPropertyVariables>
482                         <AJSC_HOME>.</AJSC_HOME>
483                         <BUNDLECONFIG_DIR>bundleconfig-local</BUNDLECONFIG_DIR>
484                     </systemPropertyVariables>
485                 </configuration>
486             </plugin>
487             <plugin>
488                 <groupId>org.apache.maven.plugins</groupId>
489                 <artifactId>maven-deploy-plugin</artifactId>
490             </plugin>
491             <plugin>
492                 <groupId>org.sonatype.plugins</groupId>
493                 <artifactId>nexus-staging-maven-plugin</artifactId>
494             </plugin>
495         </plugins>
496     </build>
497
498     <distributionManagement>
499         <site>
500             <id>ecomp-site</id>
501             <url>dav:${onap.nexus.url}${sitePath}</url>
502         </site>
503     </distributionManagement>
504
505     <!-- Plugins and repositories -->
506     <pluginRepositories>
507         <pluginRepository>
508             <id>central</id>
509             <url>http://repo1.maven.org/maven2</url>
510         </pluginRepository>
511         <pluginRepository>
512             <id>EvoSuite</id>
513             <name>EvoSuite Repository</name>
514             <url>http://www.evosuite.org/m2</url>
515         </pluginRepository>
516     </pluginRepositories>
517
518     <reporting>
519         <plugins>
520             <plugin>
521                 <groupId>org.apache.maven.plugins</groupId>
522                 <artifactId>maven-javadoc-plugin</artifactId>
523                 <version>2.10.4</version>
524                 <configuration>
525                     <failOnError>false</failOnError>
526                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
527                     <docletArtifact>
528                         <groupId>org.umlgraph</groupId>
529                         <artifactId>umlgraph</artifactId>
530                         <version>5.6</version>
531                     </docletArtifact>
532                     <additionalparam>-views</additionalparam>
533                     <useStandardDocletOptions>true</useStandardDocletOptions>
534                 </configuration>
535             </plugin>
536         </plugins>
537     </reporting>
538 </project>