Merge "Copy oparent sonar setup"
[aai/aai-common.git] / aai-core / pom.xml
1 <?xml version="1.0"?>
2 <!--
3
4     ============LICENSE_START=======================================================
5     org.onap.aai
6     ================================================================================
7     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13        http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21
22 -->
23 <project
24         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
25         xmlns="http://maven.apache.org/POM/4.0.0"
26         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
27         <modelVersion>4.0.0</modelVersion>
28         <parent>
29                 <groupId>org.onap.aai.aai-common</groupId>
30                 <artifactId>aai-parent</artifactId>
31                 <version>1.6.5-SNAPSHOT</version>
32                 <relativePath>../aai-parent/pom.xml</relativePath>
33         </parent>
34         <artifactId>aai-core</artifactId>
35         <name>aai-core</name>
36         <packaging>jar</packaging>
37         <properties>
38                 <springframework.version>4.3.24.RELEASE</springframework.version>
39
40                 <httpclient.version>4.5.5</httpclient.version>
41                 <jackson.version>2.2.3</jackson.version>
42                 <eelf.core.version>1.0.1-oss</eelf.core.version>
43                 <logback.version>1.2.3</logback.version>
44                 <freemarker.version>2.3.21</freemarker.version>
45
46                 <jacoco.line.coverage.limit>0.50</jacoco.line.coverage.limit>
47                 <gremlin.version>3.2.2</gremlin.version>
48                 <groovy.version>2.4.15</groovy.version>
49                 <jetty.version>9.4.11.v20180605</jetty.version>
50
51                 <!-- Start of Default ONAP Schema Properties -->
52                 <aai.wiki.link>https://wiki.onap.org/</aai.wiki.link>
53                 <gendoc.version>v15</gendoc.version>
54                 <aai.release>onap</aai.release>
55                 <schema.uri.base.path>/aai</schema.uri.base.path>
56                 <schema.configuration.location>N/A</schema.configuration.location>
57                 <schema.nodes.location>aai-schema/src/main/resources/${aai.release}/oxm</schema.nodes.location>
58                 <schema.edges.location>aai-schema/src/main/resources/${aai.release}/dbedgerules</schema.edges.location>
59                 <schema.version.depth.start>v10</schema.version.depth.start>
60                 <schema.version.related.link.start>v10</schema.version.related.link.start>
61                 <schema.version.app.root.start>v11</schema.version.app.root.start>
62                 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
63                 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
64                 <schema.version.api.default>v15</schema.version.api.default>
65                 <schema.version.list>v10,v11,v12,v13,v14,v15</schema.version.list>
66                 <schema.translator.list>config</schema.translator.list>
67                 <!-- End of Default ONAP Schema Properties -->
68         </properties>
69         <profiles>
70                 <!-- Start of ONAP profile -->
71                 <profile>
72                         <id>onap</id>
73                         <properties>
74                                 <springframework.version>4.3.24.RELEASE</springframework.version>
75                                 <aai.release>onap</aai.release>
76                                 <schema.configuration.location>N/A</schema.configuration.location>
77                                 <schema.nodes.location>aai-schema/src/main/resources/${aai.release}/oxm</schema.nodes.location>
78                                 <schema.edges.location>aai-schema/src/main/resources/${aai.release}/dbedgerules</schema.edges.location>
79                                 <schema.version.depth.start>v10</schema.version.depth.start>
80                                 <schema.version.related.link.start>v10</schema.version.related.link.start>
81                                 <schema.version.app.root.start>v11</schema.version.app.root.start>
82                                 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
83                                 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
84                                 <schema.version.api.default>v15</schema.version.api.default>
85                                 <schema.version.list>v10,v11,v12,v13,v14,v15</schema.version.list>
86                                 <gendoc.version>v15</gendoc.version>
87                         </properties>
88                 </profile>
89                 <!-- End of ONAP profile -->
90         </profiles>
91         <build>
92                 <plugins>
93                         <plugin>
94                                 <groupId>org.apache.maven.plugins</groupId>
95                                 <artifactId>maven-surefire-plugin</artifactId>
96                                 <version>2.12.4</version>
97                                 <configuration>
98                                         <argLine>-noverify ${argLine}</argLine>
99                                         <systemPropertyVariables>
100                                                 <AJSC_HOME>.</AJSC_HOME>
101                                                 <BUNDLECONFIG_DIR>bundleconfig-local</BUNDLECONFIG_DIR>
102                                         </systemPropertyVariables>
103                                 </configuration>
104                         </plugin>
105                         <plugin>
106                                 <groupId>org.apache.maven.plugins</groupId>
107                                 <artifactId>maven-dependency-plugin</artifactId>
108                                 <version>2.8</version>
109                         </plugin>
110                         <plugin>
111                           <groupId>org.sonarsource.scanner.maven</groupId>
112                           <artifactId>sonar-maven-plugin</artifactId>
113                         </plugin>
114                         <plugin>
115                           <groupId>org.jacoco</groupId>
116                           <artifactId>jacoco-maven-plugin</artifactId>
117                           <configuration>
118                             <dumpOnExit>true</dumpOnExit>
119                           </configuration>
120                           <executions>
121                             <execution>
122                               <id>default-prepare-agent</id>
123                               <goals>
124                                 <goal>prepare-agent</goal>
125                               </goals>
126                             </execution>
127                             <execution>
128                               <id>default-report</id>
129                               <goals>
130                                 <goal>report</goal>
131                               </goals>
132                             </execution>
133                             <execution>
134                               <id>default-check</id>
135                               <goals>
136                                 <goal>check</goal>
137                               </goals>
138                               <configuration>
139                                 <dataFile>${project.build.directory}/coverage-reports/jacoco.xml</dataFile>
140                                 <rules>
141                                   <rule implementation="org.jacoco.maven.RuleConfiguration">
142                                     <element>BUNDLE</element>
143                                     <limits>
144                                       <limit implementation="org.jacoco.report.check.Limit">
145                                         <counter>LINE</counter>
146                                         <value>COVEREDRATIO</value>
147                                         <minimum>${jacoco.line.coverage.limit}</minimum>
148                                       </limit>
149                                     </limits>
150                                   </rule>
151                                 </rules>
152                               </configuration>
153                             </execution>
154                           </executions>
155                         </plugin>
156                         <plugin>
157                           <!-- explicitly define maven-deploy-plugin after other to force exec 
158                                order -->
159                           <groupId>org.apache.maven.plugins</groupId>
160                           <artifactId>maven-deploy-plugin</artifactId>
161                         </plugin>
162                         <plugin>
163                                 <groupId>org.apache.maven.plugins</groupId>
164                                 <artifactId>maven-site-plugin</artifactId>
165                         </plugin>
166                 </plugins>
167         </build>
168
169         <dependencies>
170                 <dependency>
171                         <groupId>org.onap.aai.aai-common</groupId>
172                         <artifactId>aai-schema-ingest</artifactId>
173                 </dependency>
174                 <dependency>
175                         <groupId>org.onap.aai.aai-common</groupId>
176                         <artifactId>aai-annotations</artifactId>
177                 </dependency>
178                 <dependency>
179                         <groupId>commons-lang</groupId>
180                         <artifactId>commons-lang</artifactId>
181                 </dependency>
182                 <dependency>
183                         <groupId>org.apache.commons</groupId>
184                         <artifactId>commons-text</artifactId>
185                         <scope>compile</scope>
186                 </dependency>
187                 <dependency>
188                         <groupId>com.att.eelf</groupId>
189                         <artifactId>eelf-core</artifactId>
190                 </dependency>
191                 <dependency>
192                         <groupId>org.codehaus.jackson</groupId>
193                         <artifactId>jackson-core-asl</artifactId>
194                 </dependency>
195                 <dependency>
196                         <groupId>org.codehaus.jackson</groupId>
197                         <artifactId>jackson-mapper-asl</artifactId>
198                 </dependency>
199                 <dependency>
200                         <groupId>junit</groupId>
201                         <artifactId>junit</artifactId>
202                         <scope>test</scope>
203                 </dependency>
204                 <dependency>
205                         <groupId>org.hamcrest</groupId>
206                         <artifactId>hamcrest-junit</artifactId>
207                         <scope>test</scope>
208                 </dependency>
209                 <dependency>
210                         <groupId>org.hamcrest</groupId>
211                         <artifactId>hamcrest-core</artifactId>
212                         <scope>test</scope>
213                 </dependency>
214                 <dependency>
215                         <groupId>org.mockito</groupId>
216                         <artifactId>mockito-all</artifactId>
217                         <scope>test</scope>
218                 </dependency>
219                 <dependency>
220                         <groupId>org.powermock</groupId>
221                         <artifactId>powermock-module-junit4</artifactId>
222                         <scope>test</scope>
223                 </dependency>
224                 <dependency>
225                         <groupId>org.powermock</groupId>
226                         <artifactId>powermock-api-mockito</artifactId>
227                         <scope>test</scope>
228                 </dependency>
229                 <dependency>
230                         <groupId>com.google.guava</groupId>
231                         <artifactId>guava</artifactId>
232                 </dependency>
233                 <dependency>
234                         <groupId>org.janusgraph</groupId>
235                         <artifactId>janusgraph-core</artifactId>
236                         <exclusions>
237                                 <exclusion>
238                                         <groupId>org.slf4j</groupId>
239                                         <artifactId>slf4j-log4j12</artifactId>
240                                 </exclusion>
241                                 <exclusion>
242                                         <groupId>dom4j</groupId>
243                                         <artifactId>dom4j</artifactId>
244                                 </exclusion>
245                         </exclusions>
246                 </dependency>
247                 <dependency>
248                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
249                         <artifactId>jackson-jaxrs-json-provider</artifactId>
250                 </dependency>
251                 <dependency>
252                         <groupId>com.googlecode.json-simple</groupId>
253                         <artifactId>json-simple</artifactId>
254                 </dependency>
255                 <dependency>
256                         <groupId>javax.xml.bind</groupId>
257                         <artifactId>jaxb-api</artifactId>
258                 </dependency>
259                 <dependency>
260                         <groupId>org.eclipse.persistence</groupId>
261                         <artifactId>eclipselink</artifactId>
262                 </dependency>
263                 <dependency>
264                         <groupId>com.google.code.gson</groupId>
265                         <artifactId>gson</artifactId>
266                 </dependency>
267                 <dependency>
268                         <groupId>com.jayway.jsonpath</groupId>
269                         <artifactId>json-path</artifactId>
270                 </dependency>
271                 <dependency>
272                         <groupId>org.eclipse.jetty</groupId>
273                         <artifactId>jetty-util</artifactId>
274                 </dependency>
275                 <dependency>
276                         <groupId>com.fasterxml.jackson.module</groupId>
277                         <artifactId>jackson-module-jaxb-annotations</artifactId>
278                 </dependency>
279                 <dependency>
280                         <groupId>com.sun.jersey</groupId>
281                         <artifactId>jersey-core</artifactId>
282                 </dependency>
283                 <dependency>
284                         <groupId>com.sun.jersey</groupId>
285                         <artifactId>jersey-client</artifactId>
286                 </dependency>
287                 <dependency>
288                         <groupId>com.sun.jersey</groupId>
289                         <artifactId>jersey-json</artifactId>
290                 </dependency>
291                 <dependency>
292                         <groupId>javax.ws.rs</groupId>
293                         <artifactId>javax.ws.rs-api</artifactId>
294                 </dependency>
295                 <dependency>
296                         <groupId>org.apache.tinkerpop</groupId>
297                         <artifactId>gremlin-core</artifactId>
298                 </dependency>
299                 <dependency>
300                         <groupId>org.apache.tinkerpop</groupId>
301                         <artifactId>tinkergraph-gremlin</artifactId>
302                 </dependency>
303                 <dependency>
304                         <groupId>org.slf4j</groupId>
305                         <artifactId>slf4j-api</artifactId>
306                 </dependency>
307                 <dependency>
308                         <groupId>com.fasterxml.jackson.core</groupId>
309                         <artifactId>jackson-annotations</artifactId>
310
311                 </dependency>
312                 <dependency>
313                         <groupId>com.fasterxml.jackson.dataformat</groupId>
314                         <artifactId>jackson-dataformat-yaml</artifactId>
315                 </dependency>
316                 <dependency>
317                         <groupId>xml-apis</groupId>
318                         <artifactId>xml-apis</artifactId>
319                 </dependency>
320                 <dependency>
321                         <groupId>commons-cli</groupId>
322                         <artifactId>commons-cli</artifactId>
323                 </dependency>
324                 <dependency>
325                         <groupId>com.beust</groupId>
326                         <artifactId>jcommander</artifactId>
327                 </dependency>
328                 <dependency>
329                         <groupId>org.json</groupId>
330                         <artifactId>json</artifactId>
331
332                 </dependency>
333                 <dependency>
334                         <groupId>javax.servlet</groupId>
335                         <artifactId>javax.servlet-api</artifactId>
336                 </dependency>
337                 <dependency>
338                         <groupId>com.bazaarvoice.jolt</groupId>
339                         <artifactId>jolt-complete</artifactId>
340                 </dependency>
341                 <dependency>
342                         <groupId>ch.qos.logback</groupId>
343                         <artifactId>logback-core</artifactId>
344                 </dependency>
345                 <dependency>
346                         <groupId>ch.qos.logback</groupId>
347                         <artifactId>logback-classic</artifactId>
348                 </dependency>
349                 <dependency>
350                         <groupId>ch.qos.logback</groupId>
351                         <artifactId>logback-access</artifactId>
352                 </dependency>
353                 <dependency>
354                         <groupId>org.apache.activemq</groupId>
355                         <artifactId>activemq-broker</artifactId>
356                 </dependency>
357                 <dependency>
358                         <groupId>org.apache.activemq</groupId>
359                         <artifactId>activemq-openwire-legacy</artifactId>
360                 </dependency>
361                 <dependency>
362                         <groupId>com.opencsv</groupId>
363                         <artifactId>opencsv</artifactId>
364                 </dependency>
365                 <dependency>
366                         <groupId>org.freemarker</groupId>
367                         <artifactId>freemarker</artifactId>
368                 </dependency>
369                 <dependency>
370                         <groupId>com.github.fge</groupId>
371                         <artifactId>json-patch</artifactId>
372                 </dependency>
373                 <dependency>
374                         <groupId>org.codehaus.groovy</groupId>
375                         <artifactId>groovy</artifactId>
376                         <classifier>indy</classifier>
377                 </dependency>
378                 <dependency>
379                         <groupId>org.springframework</groupId>
380                         <artifactId>spring-context</artifactId>
381                 </dependency>
382                 <dependency>
383                         <groupId>org.springframework</groupId>
384                         <artifactId>spring-web</artifactId>
385                 </dependency>
386                 <dependency>
387                         <groupId>org.springframework</groupId>
388                         <artifactId>spring-core</artifactId>
389                 </dependency>
390                 <dependency>
391                         <groupId>org.springframework</groupId>
392                         <artifactId>spring-expression</artifactId>
393                 </dependency>
394                 <dependency>
395                         <groupId>org.springframework</groupId>
396                         <artifactId>spring-webmvc</artifactId>
397                 </dependency>
398                 <dependency>
399                         <groupId>org.springframework</groupId>
400                         <artifactId>spring-test</artifactId>
401                         <scope>test</scope>
402                 </dependency>
403                 <dependency>
404                         <groupId>org.springframework.boot</groupId>
405                         <artifactId>spring-boot-test</artifactId>
406                         <scope>test</scope>
407                 </dependency>
408                 <dependency>
409                         <groupId>org.powermock</groupId>
410                         <artifactId>powermock-module-javaagent</artifactId>
411                         <scope>test</scope>
412                 </dependency>
413                 <dependency>
414                         <groupId>org.skyscreamer</groupId>
415                         <artifactId>jsonassert</artifactId>
416                         <scope>test</scope>
417                 </dependency>
418                 <dependency>
419                         <groupId>org.apache.httpcomponents</groupId>
420                         <artifactId>httpclient</artifactId>
421                 </dependency>
422                 <dependency>
423                         <groupId>org.apache.tinkerpop</groupId>
424                         <artifactId>gremlin-groovy</artifactId>
425                         <exclusions>
426                                 <exclusion>
427                                         <groupId>org.codehaus.groovy</groupId>
428                                         <artifactId>groovy</artifactId>
429                                 </exclusion>
430                         </exclusions>
431                 </dependency>
432                 <dependency>
433                         <groupId>org.springframework</groupId>
434                         <artifactId>spring-jms</artifactId>
435                 </dependency>
436                 <dependency>
437                         <groupId>com.fasterxml.jackson.core</groupId>
438                         <artifactId>jackson-core</artifactId>
439                 </dependency>
440                 <dependency>
441                         <groupId>com.fasterxml.jackson.core</groupId>
442                         <artifactId>jackson-databind</artifactId>
443                 </dependency>
444                 <dependency>
445                         <groupId>com.fasterxml.jackson.core</groupId>
446                         <artifactId>jackson-annotations</artifactId>
447                 </dependency>
448                 <dependency>
449                         <groupId>log4j</groupId>
450                         <artifactId>log4j</artifactId>
451                 </dependency>
452         </dependencies>
453
454         <!-- Plugins and repositories -->
455         <pluginRepositories>
456                 <pluginRepository>
457                         <id>central</id>
458                         <url>http://repo1.maven.org/maven2</url>
459                 </pluginRepository>
460                 <pluginRepository>
461                         <id>EvoSuite</id>
462                         <name>EvoSuite Repository</name>
463                         <url>http://www.evosuite.org/m2</url>
464                 </pluginRepository>
465         </pluginRepositories>
466
467         <reporting>
468                 <plugins>
469                         <plugin>
470                                 <groupId>org.apache.maven.plugins</groupId>
471                                 <artifactId>maven-javadoc-plugin</artifactId>
472                                 <version>2.10.4</version>
473                                 <configuration>
474                                         <failOnError>false</failOnError>
475                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
476                                         <docletArtifact>
477                                                 <groupId>org.umlgraph</groupId>
478                                                 <artifactId>umlgraph</artifactId>
479                                                 <version>5.6</version>
480                                         </docletArtifact>
481                                         <additionalparam>-views</additionalparam>
482                                         <useStandardDocletOptions>true</useStandardDocletOptions>
483                                 </configuration>
484                         </plugin>
485                 </plugins>
486         </reporting>
487 </project>