Add parent and update modules to use it
[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.0-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                 <sonar.language>java</sonar.language>
40                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
41                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
42                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
43                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
44                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
45                 <httpclient.version>4.5.5</httpclient.version>
46                 <jackson.version>2.2.3</jackson.version>
47                 <eelf.core.version>1.0.1-oss</eelf.core.version>
48                 <logback.version>1.2.3</logback.version>
49                 <freemarker.version>2.3.21</freemarker.version>
50                 <activemq.version>5.15.6</activemq.version>
51                 <jacoco.line.coverage.limit>0.50</jacoco.line.coverage.limit>
52                 <gremlin.version>3.2.2</gremlin.version>
53                 <groovy.version>2.4.15</groovy.version>
54                 <jetty.version>9.4.11.v20180605</jetty.version>
55
56                 <!-- Start of Default ONAP Schema Properties -->
57                 <aai.wiki.link>https://wiki.onap.org/</aai.wiki.link>
58                 <gendoc.version>v15</gendoc.version>
59                 <aai.release>onap</aai.release>
60                 <schema.uri.base.path>/aai</schema.uri.base.path>
61                 <schema.configuration.location>N/A</schema.configuration.location>
62                 <schema.nodes.location>aai-schema/src/main/resources/${aai.release}/oxm</schema.nodes.location>
63                 <schema.edges.location>aai-schema/src/main/resources/${aai.release}/dbedgerules</schema.edges.location>
64                 <schema.version.depth.start>v10</schema.version.depth.start>
65                 <schema.version.related.link.start>v10</schema.version.related.link.start>
66                 <schema.version.app.root.start>v11</schema.version.app.root.start>
67                 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
68                 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
69                 <schema.version.api.default>v15</schema.version.api.default>
70                 <schema.version.list>v10,v11,v12,v13,v14,v15</schema.version.list>
71                 <schema.translator.list>config</schema.translator.list>
72                 <!-- End of Default ONAP Schema Properties -->
73         </properties>
74         <profiles>
75                 <!-- Start of ONAP profile -->
76                 <profile>
77                         <id>onap</id>
78                         <properties>
79                                 <springframework.version>4.3.24.RELEASE</springframework.version>
80                                 <aai.release>onap</aai.release>
81                                 <schema.configuration.location>N/A</schema.configuration.location>
82                                 <schema.nodes.location>aai-schema/src/main/resources/${aai.release}/oxm</schema.nodes.location>
83                                 <schema.edges.location>aai-schema/src/main/resources/${aai.release}/dbedgerules</schema.edges.location>
84                                 <schema.version.depth.start>v10</schema.version.depth.start>
85                                 <schema.version.related.link.start>v10</schema.version.related.link.start>
86                                 <schema.version.app.root.start>v11</schema.version.app.root.start>
87                                 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
88                                 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
89                                 <schema.version.api.default>v15</schema.version.api.default>
90                                 <schema.version.list>v10,v11,v12,v13,v14,v15</schema.version.list>
91                                 <gendoc.version>v15</gendoc.version>
92                         </properties>
93                 </profile>
94                 <!-- End of ONAP profile -->
95         </profiles>
96         <build>
97                 <plugins>
98                         <plugin>
99                                 <groupId>org.apache.maven.plugins</groupId>
100                                 <artifactId>maven-surefire-plugin</artifactId>
101                                 <version>2.12.4</version>
102                                 <configuration>
103                                         <argLine>-noverify ${argLine}</argLine>
104                                         <systemPropertyVariables>
105                                                 <AJSC_HOME>.</AJSC_HOME>
106                                                 <BUNDLECONFIG_DIR>bundleconfig-local</BUNDLECONFIG_DIR>
107                                         </systemPropertyVariables>
108                                 </configuration>
109                         </plugin>
110                         <plugin>
111                                 <groupId>org.apache.maven.plugins</groupId>
112                                 <artifactId>maven-dependency-plugin</artifactId>
113                                 <version>2.8</version>
114                         </plugin>
115                         <plugin>
116                                 <groupId>org.codehaus.mojo</groupId>
117                                 <artifactId>sonar-maven-plugin</artifactId>
118                                 <version>3.2</version>
119                         </plugin>
120                         <plugin>
121                                 <groupId>org.jacoco</groupId>
122                                 <artifactId>jacoco-maven-plugin</artifactId>
123                                 <version>0.7.7.201606060606</version>
124                                 <configuration>
125                                         <dumpOnExit>true</dumpOnExit>
126                                 </configuration>
127                                 <executions>
128                                         <execution>
129                                                 <id>jacoco-initialize-unit-tests</id>
130                                                 <goals>
131                                                         <goal>prepare-agent</goal>
132                                                 </goals>
133                                                 <configuration>
134                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
135                                                         <!-- <append>true</append> -->
136                                                 </configuration>
137                                         </execution>
138                                         <execution>
139                                                 <id>post-unit-test</id>
140                                                 <phase>test</phase>
141                                                 <goals>
142                                                         <goal>report</goal>
143                                                 </goals>
144                                                 <configuration>
145                                                         <!-- Sets the path to the file which contains the execution data. -->
146                                                         <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
147                                                         <!-- Sets the output directory for the code coverage report. -->
148                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
149                                                 </configuration>
150                                         </execution>
151                                         <execution>
152                                                 <id>default-check</id>
153                                                 <goals>
154                                                         <goal>check</goal>
155                                                 </goals>
156                                                 <configuration>
157                                                         <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
158                                                         <rules>
159                                                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
160                                                                         <element>BUNDLE</element>
161                                                                         <limits>
162                                                                                 <limit implementation="org.jacoco.report.check.Limit">
163                                                                                         <counter>LINE</counter>
164                                                                                         <value>COVEREDRATIO</value>
165                                                                                         <minimum>${jacoco.line.coverage.limit}</minimum>
166                                                                                 </limit>
167                                                                         </limits>
168                                                                 </rule>
169                                                         </rules>
170                                                 </configuration>
171                                         </execution>
172                                 </executions>
173                         </plugin>
174                         <plugin>
175                                 <!-- explicitly define maven-deploy-plugin after other to force exec 
176                                         order -->
177                                 <groupId>org.apache.maven.plugins</groupId>
178                                 <artifactId>maven-deploy-plugin</artifactId>
179                         </plugin>
180                         <plugin>
181                                 <groupId>org.apache.maven.plugins</groupId>
182                                 <artifactId>maven-site-plugin</artifactId>
183                         </plugin>
184                 </plugins>
185         </build>
186
187         <dependencies>
188                 <dependency>
189                         <groupId>org.onap.aai.aai-common</groupId>
190                         <artifactId>aai-schema-ingest</artifactId>
191                 </dependency>
192                 <dependency>
193                         <groupId>org.onap.aai.aai-common</groupId>
194                         <artifactId>aai-annotations</artifactId>
195                 </dependency>
196                 <dependency>
197                         <groupId>commons-lang</groupId>
198                         <artifactId>commons-lang</artifactId>
199                 </dependency>
200                 <dependency>
201                         <groupId>org.apache.commons</groupId>
202                         <artifactId>commons-text</artifactId>
203                         <scope>compile</scope>
204                 </dependency>
205                 <dependency>
206                         <groupId>com.att.eelf</groupId>
207                         <artifactId>eelf-core</artifactId>
208                 </dependency>
209                 <dependency>
210                         <groupId>org.codehaus.jackson</groupId>
211                         <artifactId>jackson-core-asl</artifactId>
212                 </dependency>
213                 <dependency>
214                         <groupId>org.codehaus.jackson</groupId>
215                         <artifactId>jackson-mapper-asl</artifactId>
216                 </dependency>
217                 <dependency>
218                         <groupId>junit</groupId>
219                         <artifactId>junit</artifactId>
220                         <scope>test</scope>
221                 </dependency>
222                 <dependency>
223                         <groupId>org.hamcrest</groupId>
224                         <artifactId>hamcrest-junit</artifactId>
225                         <scope>test</scope>
226                 </dependency>
227                 <dependency>
228                         <groupId>org.hamcrest</groupId>
229                         <artifactId>hamcrest-core</artifactId>
230                         <scope>test</scope>
231                 </dependency>
232                 <dependency>
233                         <groupId>org.mockito</groupId>
234                         <artifactId>mockito-all</artifactId>
235                         <scope>test</scope>
236                 </dependency>
237                 <dependency>
238                         <groupId>org.powermock</groupId>
239                         <artifactId>powermock-module-junit4</artifactId>
240                         <scope>test</scope>
241                 </dependency>
242                 <dependency>
243                         <groupId>org.powermock</groupId>
244                         <artifactId>powermock-api-mockito</artifactId>
245                         <scope>test</scope>
246                 </dependency>
247                 <dependency>
248                         <groupId>com.google.guava</groupId>
249                         <artifactId>guava</artifactId>
250                 </dependency>
251                 <dependency>
252                         <groupId>org.janusgraph</groupId>
253                         <artifactId>janusgraph-core</artifactId>
254                         <exclusions>
255                                 <exclusion>
256                                         <groupId>org.slf4j</groupId>
257                                         <artifactId>slf4j-log4j12</artifactId>
258                                 </exclusion>
259                                 <exclusion>
260                                         <groupId>dom4j</groupId>
261                                         <artifactId>dom4j</artifactId>
262                                 </exclusion>
263                         </exclusions>
264                 </dependency>
265                 <dependency>
266                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
267                         <artifactId>jackson-jaxrs-json-provider</artifactId>
268                 </dependency>
269                 <dependency>
270                         <groupId>com.googlecode.json-simple</groupId>
271                         <artifactId>json-simple</artifactId>
272                 </dependency>
273                 <dependency>
274                         <groupId>javax.xml.bind</groupId>
275                         <artifactId>jaxb-api</artifactId>
276                 </dependency>
277                 <dependency>
278                         <groupId>org.eclipse.persistence</groupId>
279                         <artifactId>eclipselink</artifactId>
280                 </dependency>
281                 <dependency>
282                         <groupId>com.google.code.gson</groupId>
283                         <artifactId>gson</artifactId>
284                 </dependency>
285                 <dependency>
286                         <groupId>com.jayway.jsonpath</groupId>
287                         <artifactId>json-path</artifactId>
288                 </dependency>
289                 <dependency>
290                         <groupId>org.eclipse.jetty</groupId>
291                         <artifactId>jetty-util</artifactId>
292                 </dependency>
293                 <dependency>
294                         <groupId>com.fasterxml.jackson.module</groupId>
295                         <artifactId>jackson-module-jaxb-annotations</artifactId>
296                 </dependency>
297                 <dependency>
298                         <groupId>com.sun.jersey</groupId>
299                         <artifactId>jersey-core</artifactId>
300                 </dependency>
301                 <dependency>
302                         <groupId>com.sun.jersey</groupId>
303                         <artifactId>jersey-client</artifactId>
304                 </dependency>
305                 <dependency>
306                         <groupId>com.sun.jersey</groupId>
307                         <artifactId>jersey-json</artifactId>
308                 </dependency>
309                 <dependency>
310                         <groupId>javax.ws.rs</groupId>
311                         <artifactId>javax.ws.rs-api</artifactId>
312                 </dependency>
313                 <dependency>
314                         <groupId>org.apache.tinkerpop</groupId>
315                         <artifactId>gremlin-core</artifactId>
316                 </dependency>
317                 <dependency>
318                         <groupId>org.apache.tinkerpop</groupId>
319                         <artifactId>tinkergraph-gremlin</artifactId>
320                 </dependency>
321                 <dependency>
322                         <groupId>org.slf4j</groupId>
323                         <artifactId>slf4j-api</artifactId>
324                 </dependency>
325                 <dependency>
326                         <groupId>com.fasterxml.jackson.core</groupId>
327                         <artifactId>jackson-annotations</artifactId>
328
329                 </dependency>
330                 <dependency>
331                         <groupId>com.fasterxml.jackson.dataformat</groupId>
332                         <artifactId>jackson-dataformat-yaml</artifactId>
333                 </dependency>
334                 <dependency>
335                         <groupId>xml-apis</groupId>
336                         <artifactId>xml-apis</artifactId>
337                 </dependency>
338                 <dependency>
339                         <groupId>commons-cli</groupId>
340                         <artifactId>commons-cli</artifactId>
341                 </dependency>
342                 <dependency>
343                         <groupId>com.beust</groupId>
344                         <artifactId>jcommander</artifactId>
345                 </dependency>
346                 <dependency>
347                         <groupId>org.json</groupId>
348                         <artifactId>json</artifactId>
349
350                 </dependency>
351                 <dependency>
352                         <groupId>javax.servlet</groupId>
353                         <artifactId>javax.servlet-api</artifactId>
354                 </dependency>
355                 <dependency>
356                         <groupId>com.bazaarvoice.jolt</groupId>
357                         <artifactId>jolt-complete</artifactId>
358                 </dependency>
359                 <dependency>
360                         <groupId>ch.qos.logback</groupId>
361                         <artifactId>logback-core</artifactId>
362                 </dependency>
363                 <dependency>
364                         <groupId>ch.qos.logback</groupId>
365                         <artifactId>logback-classic</artifactId>
366                 </dependency>
367                 <dependency>
368                         <groupId>ch.qos.logback</groupId>
369                         <artifactId>logback-access</artifactId>
370                 </dependency>
371                 <dependency>
372                         <groupId>org.apache.activemq</groupId>
373                         <artifactId>activemq-broker</artifactId>
374                 </dependency>
375                 <dependency>
376                         <groupId>com.opencsv</groupId>
377                         <artifactId>opencsv</artifactId>
378                 </dependency>
379                 <dependency>
380                         <groupId>org.freemarker</groupId>
381                         <artifactId>freemarker</artifactId>
382                 </dependency>
383                 <dependency>
384                         <groupId>com.github.fge</groupId>
385                         <artifactId>json-patch</artifactId>
386                 </dependency>
387                 <dependency>
388                         <groupId>org.codehaus.groovy</groupId>
389                         <artifactId>groovy</artifactId>
390                         <classifier>indy</classifier>
391                 </dependency>
392                 <dependency>
393                         <groupId>org.springframework</groupId>
394                         <artifactId>spring-context</artifactId>
395                 </dependency>
396                 <dependency>
397                         <groupId>org.springframework</groupId>
398                         <artifactId>spring-web</artifactId>
399                 </dependency>
400                 <dependency>
401                         <groupId>org.springframework</groupId>
402                         <artifactId>spring-core</artifactId>
403                 </dependency>
404                 <dependency>
405                         <groupId>org.springframework</groupId>
406                         <artifactId>spring-expression</artifactId>
407                 </dependency>
408                 <dependency>
409                         <groupId>org.springframework</groupId>
410                         <artifactId>spring-webmvc</artifactId>
411                 </dependency>
412                 <dependency>
413                         <groupId>org.springframework</groupId>
414                         <artifactId>spring-test</artifactId>
415                         <scope>test</scope>
416                 </dependency>
417                 <dependency>
418                         <groupId>org.springframework.boot</groupId>
419                         <artifactId>spring-boot-test</artifactId>
420                         <scope>test</scope>
421                 </dependency>
422                 <dependency>
423                         <groupId>org.powermock</groupId>
424                         <artifactId>powermock-module-javaagent</artifactId>
425                         <scope>test</scope>
426                 </dependency>
427                 <dependency>
428                         <groupId>org.skyscreamer</groupId>
429                         <artifactId>jsonassert</artifactId>
430                         <scope>test</scope>
431                 </dependency>
432                 <dependency>
433                         <groupId>org.apache.httpcomponents</groupId>
434                         <artifactId>httpclient</artifactId>
435                 </dependency>
436                 <dependency>
437                         <groupId>org.apache.tinkerpop</groupId>
438                         <artifactId>gremlin-groovy</artifactId>
439                         <exclusions>
440                                 <exclusion>
441                                         <groupId>org.codehaus.groovy</groupId>
442                                         <artifactId>groovy</artifactId>
443                                 </exclusion>
444                         </exclusions>
445                 </dependency>
446                 <dependency>
447                         <groupId>org.springframework</groupId>
448                         <artifactId>spring-jms</artifactId>
449                 </dependency>
450                 <dependency>
451                         <groupId>com.fasterxml.jackson.core</groupId>
452                         <artifactId>jackson-core</artifactId>
453                 </dependency>
454                 <dependency>
455                         <groupId>com.fasterxml.jackson.core</groupId>
456                         <artifactId>jackson-databind</artifactId>
457                 </dependency>
458                 <dependency>
459                         <groupId>com.fasterxml.jackson.core</groupId>
460                         <artifactId>jackson-annotations</artifactId>
461                 </dependency>
462                 <dependency>
463                         <groupId>log4j</groupId>
464                         <artifactId>log4j</artifactId>
465                 </dependency>
466         </dependencies>
467
468         <!-- Plugins and repositories -->
469         <pluginRepositories>
470                 <pluginRepository>
471                         <id>central</id>
472                         <url>http://repo1.maven.org/maven2</url>
473                 </pluginRepository>
474                 <pluginRepository>
475                         <id>EvoSuite</id>
476                         <name>EvoSuite Repository</name>
477                         <url>http://www.evosuite.org/m2</url>
478                 </pluginRepository>
479         </pluginRepositories>
480
481         <reporting>
482                 <plugins>
483                         <plugin>
484                                 <groupId>org.apache.maven.plugins</groupId>
485                                 <artifactId>maven-javadoc-plugin</artifactId>
486                                 <version>2.10.4</version>
487                                 <configuration>
488                                         <failOnError>false</failOnError>
489                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
490                                         <docletArtifact>
491                                                 <groupId>org.umlgraph</groupId>
492                                                 <artifactId>umlgraph</artifactId>
493                                                 <version>5.6</version>
494                                         </docletArtifact>
495                                         <additionalparam>-views</additionalparam>
496                                         <useStandardDocletOptions>true</useStandardDocletOptions>
497                                 </configuration>
498                         </plugin>
499                 </plugins>
500         </reporting>
501 </project>