Update license files, sonar plugin and fix tests
[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         <groupId>org.openecomp.aai</groupId>
7         <artifactId>aai-core</artifactId>
8         <version>1.1.0-SNAPSHOT</version>
9         <name>aai-core</name>
10         <packaging>jar</packaging>
11         <properties>
12                 <maven.compiler.target>1.8</maven.compiler.target>
13                 <maven.compiler.source>1.8</maven.compiler.source>
14                 <aai-schema.version>1.1.0-SNAPSHOT</aai-schema.version>
15                 <nexusproxy>https://nexus.onap.org</nexusproxy>
16                 <sitePath>/content/sites/site/${project.artifactId}/${project.version}</sitePath>
17                 <sonar.language>java</sonar.language>
18                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
19                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
20                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
21                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
22                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
23         </properties>
24         <dependencies>
25                 <dependency>
26                         <groupId>org.openecomp.aai</groupId>
27                         <artifactId>aai-schema</artifactId>
28                         <version>${aai-schema.version}</version>
29                 </dependency>
30                 <dependency>
31                         <groupId>commons-lang</groupId>
32                         <artifactId>commons-lang</artifactId>
33                         <version>2.6</version>
34                 </dependency>
35                 <dependency>
36                         <groupId>com.att.eelf</groupId>
37                         <artifactId>eelf-core</artifactId>
38                         <version>1.0.0</version>
39                 </dependency>
40                 <dependency>
41                         <groupId>jdk.tools</groupId>
42                         <artifactId>jdk.tools</artifactId>
43                         <version>1.8.0_101</version>
44                         <scope>system</scope>
45                         <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
46                 </dependency>
47                 <dependency>
48                         <groupId>org.codehaus.jackson</groupId>
49                         <artifactId>jackson-core-asl</artifactId>
50                         <version>1.9.13</version>
51                 </dependency>
52
53                 <dependency>
54                         <groupId>org.codehaus.jackson</groupId>
55                         <artifactId>jackson-mapper-asl</artifactId>
56                         <version>1.9.13</version>
57                 </dependency>
58                 <dependency>
59                         <groupId>junit</groupId>
60                         <artifactId>junit</artifactId>
61                         <version>4.12</version>
62                         <scope>test</scope>
63                 </dependency>
64                 <dependency>
65                         <groupId>org.hamcrest</groupId>
66                         <artifactId>hamcrest-junit</artifactId>
67                         <version>2.0.0.0</version>
68                         <scope>test</scope>
69                 </dependency>
70                 <dependency>
71                         <groupId>org.hamcrest</groupId>
72                         <artifactId>hamcrest-core</artifactId>
73                         <version>1.3</version>
74                         <scope>test</scope>
75                 </dependency>
76                 <dependency>
77                         <groupId>org.mockito</groupId>
78                         <artifactId>mockito-all</artifactId>
79                         <version>1.10.19</version>
80                         <scope>test</scope>
81                 </dependency>
82                 <dependency>
83                         <groupId>org.powermock</groupId>
84                         <artifactId>powermock-module-junit4</artifactId>
85                         <version>1.6.2</version>
86                         <scope>test</scope>
87                 </dependency>
88                 <dependency>
89                         <groupId>org.powermock</groupId>
90                         <artifactId>powermock-api-mockito</artifactId>
91                         <version>1.6.2</version>
92                         <scope>test</scope>
93                 </dependency>
94                 <dependency>
95                         <groupId>com.google.guava</groupId>
96                         <artifactId>guava</artifactId>
97                         <version>16.0</version>
98                 </dependency>
99                 <dependency>
100                         <groupId>com.thinkaurelius.titan</groupId>
101                         <artifactId>titan-core</artifactId>
102                         <version>1.0.0</version>
103                         <exclusions>
104                                 <exclusion>
105                                         <groupId>org.slf4j</groupId>
106                                         <artifactId>slf4j-log4j12</artifactId>
107                                 </exclusion>
108                         </exclusions>
109                 </dependency>
110                 <dependency>
111                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
112                         <artifactId>jackson-jaxrs-json-provider</artifactId>
113                         <version>2.1.4</version>
114                 </dependency>
115                 <dependency>
116                         <groupId>com.googlecode.json-simple</groupId>
117                         <artifactId>json-simple</artifactId>
118                         <version>1.1.1</version>
119                 </dependency>
120                 <dependency>
121                         <groupId>org.springframework</groupId>
122                         <artifactId>spring-web</artifactId>
123                         <version>4.2.5.RELEASE</version>
124                 </dependency>
125                 <dependency>
126                         <groupId>javax.xml.bind</groupId>
127                         <artifactId>jaxb-api</artifactId>
128                         <version>2.2.11</version>
129                 </dependency>
130                 <dependency>
131                         <groupId>org.eclipse.persistence</groupId>
132                         <artifactId>eclipselink</artifactId>
133                         <version>2.6.2</version>
134                 </dependency>
135                 <dependency>
136                         <groupId>com.google.code.gson</groupId>
137                         <artifactId>gson</artifactId>
138                         <version>2.7</version>
139                 </dependency>
140                 <dependency>
141                         <groupId>org.eclipse.jetty</groupId>
142                         <artifactId>jetty-util</artifactId>
143                         <version>9.4.2.v20170220</version>
144                 </dependency>
145                 <dependency>
146                         <groupId>org.apache.cxf</groupId>
147                         <artifactId>cxf-core</artifactId>
148                         <version>3.0.6</version>
149                 </dependency>
150                 <dependency>
151                         <groupId>com.fasterxml.jackson.module</groupId>
152                         <artifactId>jackson-module-jaxb-annotations</artifactId>
153                         <version>2.1.4</version>
154                 </dependency>
155                 <dependency>
156                         <groupId>com.sun.jersey</groupId>
157                         <artifactId>jersey-core</artifactId>
158                         <version>1.18</version>
159                 </dependency>
160                 <dependency>
161                         <groupId>com.sun.jersey</groupId>
162                         <artifactId>jersey-client</artifactId>
163                         <version>1.18</version>
164                 </dependency>
165                 <dependency>
166                         <groupId>javax.ws.rs</groupId>
167                         <artifactId>javax.ws.rs-api</artifactId>
168                         <version>2.0.1</version>
169                 </dependency>
170                 <dependency>
171                         <groupId>org.apache.tinkerpop</groupId>
172                         <artifactId>gremlin-core</artifactId>
173                         <version>3.0.1-incubating</version>
174                 </dependency>
175                 <dependency>
176                         <groupId>org.slf4j</groupId>
177                         <artifactId>slf4j-api</artifactId>
178                         <version>1.7.5</version>
179                 </dependency>
180                 <dependency>
181                         <groupId>com.fasterxml.jackson.core</groupId>
182                         <artifactId>jackson-databind</artifactId>
183                         <version>2.1.4</version>
184                 </dependency>
185                 <dependency>
186                         <groupId>com.fasterxml.jackson.core</groupId>
187                         <artifactId>jackson-annotations</artifactId>
188                         <version>2.1.4</version>
189                 </dependency>
190                 <dependency>
191                         <groupId>xml-apis</groupId>
192                         <artifactId>xml-apis</artifactId>
193                         <version>1.0.b2</version>
194                 </dependency>
195                 <dependency>
196                         <groupId>commons-lang</groupId>
197                         <artifactId>commons-lang</artifactId>
198                         <version>2.6</version>
199                 </dependency>
200                 <dependency>
201                         <groupId>commons-cli</groupId>
202                         <artifactId>commons-cli</artifactId>
203                         <version>1.3</version>
204                 </dependency>
205                 <dependency>
206                         <groupId>com.beust</groupId>
207                         <artifactId>jcommander</artifactId>
208                         <version>1.48</version>
209                 </dependency>
210                 <dependency>
211                         <groupId>org.json</groupId>
212                         <artifactId>json</artifactId>
213                         <version>20160810</version>
214                 </dependency>
215                 <dependency>
216                         <groupId>javax.servlet</groupId>
217                         <artifactId>javax.servlet-api</artifactId>
218                         <version>3.1.0</version>
219                 </dependency>
220                 <dependency>
221                         <groupId>com.bazaarvoice.jolt</groupId>
222                         <artifactId>jolt-complete</artifactId>
223                         <version>0.0.24</version>
224                 </dependency>
225                 <dependency>
226                         <groupId>ch.qos.logback</groupId>
227                         <artifactId>logback-core</artifactId>
228                         <version>1.1.7</version>
229                 </dependency>
230                 <dependency>
231                         <groupId>ch.qos.logback</groupId>
232                         <artifactId>logback-classic</artifactId>
233                         <version>1.1.7</version>
234                 </dependency>
235                 <dependency>
236                         <groupId>ch.qos.logback</groupId>
237                         <artifactId>logback-access</artifactId>
238                         <version>1.1.7</version>
239                 </dependency>
240                 <dependency>
241                         <groupId>org.apache.hbase</groupId>
242                         <artifactId>hbase-client</artifactId>
243                         <version>0.98.4-hadoop2</version>
244                         <exclusions>
245                                 <exclusion>
246                                         <groupId>org.slf4j</groupId>
247                                         <artifactId>slf4j-log4j12</artifactId>
248                                 </exclusion>
249                                 <exclusion>
250                                         <artifactId>log4j</artifactId>
251                                         <groupId>log4j</groupId>
252                                 </exclusion>
253                         </exclusions>
254                 </dependency>
255                 <dependency>
256                         <groupId>org.apache.hbase</groupId>
257                         <artifactId>hbase-protocol</artifactId>
258                         <version>0.98.4-hadoop2</version>
259                         <exclusions>
260                                 <exclusion>
261                                         <artifactId>log4j</artifactId>
262                                         <groupId>log4j</groupId>
263                                 </exclusion>
264                         </exclusions>
265                 </dependency>
266                 <dependency>
267                         <groupId>org.apache.hbase</groupId>
268                         <artifactId>hbase-common</artifactId>
269                         <version>0.98.4-hadoop2</version>
270                         <exclusions>
271                                 <exclusion>
272                                         <artifactId>log4j</artifactId>
273                                         <groupId>log4j</groupId>
274                                 </exclusion>
275                         </exclusions>
276                 </dependency>
277                 <dependency>
278                         <groupId>org.apache.activemq</groupId>
279                         <artifactId>activemq-broker</artifactId>
280                         <version>5.14.4</version>
281                 </dependency>
282
283                 <dependency>
284                         <groupId>com.opencsv</groupId>
285                         <artifactId>opencsv</artifactId>
286                         <version>3.1</version>
287                 </dependency>
288                 <dependency>
289                         <groupId>org.freemarker</groupId>
290                         <artifactId>freemarker</artifactId>
291                         <version>2.3.14</version>
292                 </dependency>
293                 <dependency>
294                         <groupId>com.bazaarvoice.jolt</groupId>
295                         <artifactId>jolt-complete</artifactId>
296                         <version>0.0.24</version>
297                 </dependency>
298                 <dependency>
299                         <groupId>org.mockito</groupId>
300                         <artifactId>mockito-all</artifactId>
301                         <version>1.10.19</version>
302                         <scope>test</scope>
303                 </dependency>
304                 <dependency>
305                         <groupId>org.powermock</groupId>
306                         <artifactId>powermock-module-junit4</artifactId>
307                         <version>1.6.2</version>
308                         <scope>test</scope>
309                 </dependency>
310                 <dependency>
311                         <groupId>org.powermock</groupId>
312                         <artifactId>powermock-api-mockito</artifactId>
313                         <version>1.6.2</version>
314                         <scope>test</scope>
315                 </dependency>
316                 <dependency>
317                         <groupId>org.powermock</groupId>
318                         <artifactId>powermock-module-javaagent</artifactId>
319                         <version>1.6.2</version>
320                         <scope>test</scope>
321                 </dependency>
322         </dependencies>
323         
324         <build>
325                 <plugins>
326                         <plugin>
327                                 <groupId>org.codehaus.mojo</groupId>
328                                 <artifactId>sonar-maven-plugin</artifactId>
329                                 <version>3.2</version>
330                         </plugin>
331                         <plugin>
332                                 <groupId>org.jacoco</groupId>
333                                 <artifactId>jacoco-maven-plugin</artifactId>
334                                 <version>0.7.7.201606060606</version>
335                                 <configuration>
336                                         <dumpOnExit>true</dumpOnExit>
337                                 </configuration>
338                                 <executions>
339                                         <execution>
340                                                 <id>jacoco-initialize-unit-tests</id>
341                                                 <goals>
342                                                         <goal>prepare-agent</goal>
343                                                 </goals>
344                                                 <configuration>
345                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
346                                                         <!-- <append>true</append> -->
347                                                 </configuration>
348                                         </execution>
349                                 </executions>
350                         </plugin>
351                         <plugin>
352                           <groupId>org.apache.maven.plugins</groupId>
353                           <artifactId>maven-site-plugin</artifactId>
354                           <version>3.6</version>
355                           <dependencies>
356                             <dependency>
357                               <groupId>org.apache.maven.wagon</groupId>
358                               <artifactId>wagon-webdav-jackrabbit</artifactId>
359                               <version>2.10</version>
360                             </dependency>
361                           </dependencies>
362                         </plugin>
363                         <plugin>
364                                         <groupId>org.codehaus.mojo</groupId>
365                                         <artifactId>license-maven-plugin</artifactId>
366                                         <version>1.12</version>
367                                         <configuration>
368                                                 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
369                                                 <licenseName>apache_v2</licenseName>
370                                                 <inceptionYear>2017</inceptionYear>
371                                                 <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
372                                                 <projectName>org.openecomp.aai</projectName>
373                                                 <canUpdateCopyright>true</canUpdateCopyright>
374                                                 <canUpdateDescription>true</canUpdateDescription>
375                                                 <canUpdateLicense>true</canUpdateLicense>
376                                                 <emptyLineAfterHeader>true</emptyLineAfterHeader>
377                                                 <processStartTag>============LICENSE_START=======================================================</processStartTag>
378                                                 <processEndTag>============LICENSE_END=========================================================</processEndTag>
379                                                 <sectionDelimiter>================================================================================</sectionDelimiter>
380                                                 <includes>
381                                                         <include>**/*.java</include>
382                                                         <include>**/*.ksh</include>
383                                                         <include>**/*.sh</include>
384                                                         <include>**/*.ftl</include>
385                                                         <include>**/*.xsd</include>
386                                                         <include>**/*.xjb</include>
387                                                         <include>**/aai*.xml</include>
388                                                         <include>**/*logback*.xml</include>
389                                                         <include>**/*aaiconfig*.properties</include>
390                                                         <include>**/*titan*.properties</include>
391                                                 </includes>
392                                         </configuration>
393                                         <executions>
394                                                 <execution>
395                                                         <id>first</id>
396                                                         <goals>
397                                                                 <goal>update-file-header</goal>
398                                                         </goals>
399                                                         <phase>process-sources</phase>
400                                                 </execution>
401                                         </executions>
402                                 </plugin>
403                 </plugins>
404         </build>
405         
406         <distributionManagement>
407                 <repository>
408                         <id>ecomp-releases</id>
409                         <name>ECOMP Release Repository</name>
410                         <url>${nexusproxy}/content/repositories/releases/</url>
411                 </repository>
412                 <snapshotRepository>
413                         <id>ecomp-snapshots</id>
414                         <name>ECOMP Snapshot Repository</name>
415                         <url>${nexusproxy}/content/repositories/snapshots/</url>
416                 </snapshotRepository>
417                 <site>
418                         <id>ecomp-site</id>
419                         <url>dav:${nexusproxy}${sitePath}</url>
420                 </site>
421         </distributionManagement>
422
423         <!-- Plugins and repositories -->
424         <pluginRepositories>
425                 <pluginRepository>
426                         <id>central</id>
427                         <url>http://repo1.maven.org/maven2</url>
428                 </pluginRepository>
429                 <pluginRepository>
430                         <id>EvoSuite</id>
431                         <name>EvoSuite Repository</name>
432                         <url>http://www.evosuite.org/m2</url>
433                 </pluginRepository>
434         </pluginRepositories>
435         
436         <repositories>
437                 <repository>
438                         <id>AJSC</id>
439                         <name>AJSC repository</name>
440                         <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
441                 </repository>
442                 <repository>
443                         <id>restlet</id>
444                         <name>maven reslet</name>
445                         <url>https://maven.restlet.com/</url>
446                 </repository>
447                 
448                 <repository>
449                         <id>central</id>
450                         <name>Maven 2 repository 2</name>
451                         <url>http://repo2.maven.org/maven2/</url>
452                 </repository>
453                 <repository>
454                         <id>ecomp-releases</id>
455                         <name>ECOMP Release Repository</name>
456                         <url>${nexusproxy}/content/repositories/releases/</url>
457                 </repository>
458                 <repository>
459                         <id>ecomp-staging</id>
460                         <name>ECOMP Staging Repository</name>
461                         <url>${nexusproxy}/content/repositories/staging/</url>
462                 </repository>
463                 <repository>
464                         <id>ecomp-snapshots</id>
465                         <name>ECOMP Snapshot Repository</name>
466                         <url>${nexusproxy}/content/repositories/snapshots/</url>
467                 </repository>
468         </repositories>
469
470         <reporting>
471           <plugins>
472             <plugin>
473               <groupId>org.apache.maven.plugins</groupId>
474               <artifactId>maven-javadoc-plugin</artifactId>
475               <version>2.10.4</version>
476               <configuration>
477                 <failOnError>false</failOnError>
478                 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
479                 <docletArtifact>
480                   <groupId>org.umlgraph</groupId>
481                   <artifactId>umlgraph</artifactId>
482                   <version>5.6</version>
483                 </docletArtifact>
484                 <additionalparam>-views</additionalparam>
485                 <useStandardDocletOptions>true</useStandardDocletOptions>
486               </configuration>
487             </plugin>
488           </plugins>
489         </reporting>
490 </project>