Update POM to inherit from oparent
[aai/champ.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2         <modelVersion>4.0.0</modelVersion>
3         <parent>
4                 <groupId>org.onap.oparent</groupId>
5                 <artifactId>oparent</artifactId>
6                 <version>1.0.0-SNAPSHOT</version>
7         </parent>
8
9         <groupId>org.openecomp.aai</groupId>
10         <artifactId>champ</artifactId>
11         <version>1.1.0-SNAPSHOT</version>
12         <properties>
13                 <tinkerpop.version>3.0.1-incubating</tinkerpop.version>
14                 <sitePath>/content/sites/site/org/onap/aai/${project.artifactId}/${project.version}</sitePath>
15                 <sonar.language>java</sonar.language>
16                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
17                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
18                 <sonar.jacoco.reportPath>${project.build.directory}/jacoco.exec</sonar.jacoco.reportPath>
19                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
20                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
21         </properties>
22         <distributionManagement>
23                 <site>
24                         <id>ecomp-site</id>
25                         <url>dav:${onap.nexus.url}${sitePath}</url>
26                 </site>
27         </distributionManagement>
28         <dependencies>
29                 <dependency>
30                         <groupId>junit</groupId>
31                         <artifactId>junit</artifactId>
32                         <version>4.12</version>
33                         <scope>test</scope>
34                 </dependency>
35                 <dependency>
36                         <groupId>ch.qos.logback</groupId>
37                         <artifactId>logback-classic</artifactId>
38                         <version>1.2.1</version>
39                         <optional>true</optional>
40                 </dependency>
41                 <dependency>
42                         <groupId>org.apache.tinkerpop</groupId>
43                         <artifactId>tinkergraph-gremlin</artifactId> 
44                         <version>${tinkerpop.version}</version>
45                 </dependency>
46                 <dependency>
47                         <groupId>org.apache.tinkerpop</groupId>
48                         <artifactId>gremlin-core</artifactId> 
49                         <version>${tinkerpop.version}</version>
50                         <exclusions>
51                                 <exclusion>
52                                         <groupId>org.slf4j</groupId>
53                                         <artifactId>slf4j-log4j12</artifactId>
54                                 </exclusion>
55                                 <exclusion>
56                                         <groupId>org.slf4j</groupId>
57                                         <artifactId>jcl-over-slf4j</artifactId>
58                                 </exclusion>
59                         </exclusions>
60                 </dependency>
61                 <dependency>
62                         <groupId>com.thinkaurelius.titan</groupId>
63                         <artifactId>titan-cassandra</artifactId>
64                         <version>1.0.0</version>
65                         <optional>true</optional>
66                         <exclusions>
67                                 <exclusion>
68                                         <groupId>org.apache.tinkerpop</groupId>
69                                         <artifactId>gremlin-groovy</artifactId>
70                                 </exclusion>
71                                 <exclusion>
72                                         <groupId>org.slf4j</groupId>
73                                         <artifactId>slf4j-log4j12</artifactId>
74                                 </exclusion>
75                                 <exclusion>
76                                         <groupId>ch.qos.logback</groupId>
77                                         <artifactId>logback-classic</artifactId>
78                                 </exclusion>
79                                 <exclusion>
80                                         <groupId>org.apache.tinkerpop</groupId>
81                                         <artifactId>gremlin-core</artifactId>
82                                 </exclusion>
83                         </exclusions>
84                 </dependency>
85                 <dependency>
86                         <groupId>com.thinkaurelius.titan</groupId>
87                         <artifactId>titan-hbase</artifactId>
88                         <version>1.0.0</version>
89                         <optional>true</optional>
90                         <exclusions>
91                                 <exclusion>
92                                         <groupId>org.apache.tinkerpop</groupId>
93                                         <artifactId>gremlin-groovy</artifactId>
94                                 </exclusion>
95                                 <exclusion>
96                                         <groupId>org.slf4j</groupId>
97                                         <artifactId>slf4j-log4j12</artifactId>
98                                 </exclusion>
99                                 <exclusion>
100                                         <groupId>ch.qos.logback</groupId>
101                                         <artifactId>logback-classic</artifactId>
102                                 </exclusion>
103                                 <exclusion>
104                                         <groupId>org.apache.tinkerpop</groupId>
105                                         <artifactId>gremlin-core</artifactId>
106                                 </exclusion>
107                         </exclusions>
108                 </dependency>
109                 <dependency>
110                         <groupId>org.apache.hbase</groupId>
111                         <artifactId>hbase-client</artifactId>
112                         <version>0.98.4-hadoop2</version>
113                         <exclusions>
114                                 <exclusion>
115                                         <groupId>org.slf4j</groupId>
116                                         <artifactId>slf4j-log4j12</artifactId>
117                                 </exclusion>
118                                 <exclusion>
119                                         <groupId>com.google.guava</groupId>
120                                         <artifactId>guava</artifactId>
121                                 </exclusion>
122                         </exclusions>
123                 </dependency>
124                 <dependency>
125                         <groupId>jdk.tools</groupId>
126                         <artifactId>jdk.tools</artifactId>
127                         <version>1.8</version>
128                         <scope>system</scope>
129                         <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
130                 </dependency>
131                 <dependency>
132                         <groupId>org.jacoco</groupId>
133                         <artifactId>org.jacoco.agent</artifactId>
134                         <version>0.7.9</version>
135                         <classifier>runtime</classifier>
136                         <scope>test</scope>
137                 </dependency>
138
139         <!-- Event Bus Client. -->
140         <dependency>
141             <groupId>com.att.nsa</groupId>
142             <artifactId>cambriaClient</artifactId>
143             <version>0.0.1</version>
144         </dependency>
145         
146         <dependency>
147             <groupId>org.apache.httpcomponents</groupId>
148             <artifactId>httpclient</artifactId>
149             <version>4.5</version>
150         </dependency>
151         
152         </dependencies>
153         <build>
154                 <plugins>
155                         <plugin>
156                                 <groupId>org.codehaus.mojo</groupId>
157                                 <artifactId>sonar-maven-plugin</artifactId>
158                                 <version>3.2</version>
159                         </plugin>
160                         <plugin>
161                                 <groupId>org.jacoco</groupId>
162                                 <artifactId>jacoco-maven-plugin</artifactId>
163                                 <version>0.7.9</version>
164                                 <configuration>
165                                         <excludes>
166                                                 <!-- These three need to be included again at some point -->
167                                                 <exclude>**/AbstractGremlinChampGraph*</exclude>
168                                                 <exclude>**/DseChampGraphImpl*</exclude>
169                                                 <exclude>**/DseChampformer*</exclude>
170                                                 <!-- Permanently excluded, not worth testing -->
171                                                 <exclude>**/ChampAPIPerformanceTest*</exclude>
172                                         </excludes>
173                                 </configuration>
174                                 <executions>
175                                         <execution>
176                                                 <id>default-prepare-agent</id>
177                                                 <goals>
178                                                         <goal>prepare-agent</goal>
179                                                 </goals>
180                                         </execution>
181                                         <execution>
182                                                 <id>default-report</id>
183                                                 <phase>prepare-package</phase>
184                                                 <goals>
185                                                         <goal>report</goal>
186                                                 </goals>
187                                         </execution>
188                                         <execution>
189                                                 <id>default-check</id>
190                                                 <goals>
191                                                         <goal>check</goal>
192                                                 </goals>
193                                                 <configuration>
194                                                         <rules>
195                                                                 <!--  implementation is needed only for Maven 2  -->
196                                                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
197                                                                         <element>BUNDLE</element>
198                                                                         <limits>
199                                                                                 <!--  implementation is needed only for Maven 2  -->
200                                                                                 <limit implementation="org.jacoco.report.check.Limit">
201                                                                                         <counter>INSTRUCTION</counter>
202                                                                                         <value>COVEREDRATIO</value>
203                                                                                         <minimum>.75</minimum>
204                                                                                 </limit>
205                                                                                 <limit implementation="org.jacoco.report.check.Limit">
206                                                                                         <counter>BRANCH</counter>
207                                                                                         <value>COVEREDRATIO</value>
208                                                                                         <minimum>.74</minimum>
209                                                                                 </limit>
210                                                                                 <limit implementation="org.jacoco.report.check.Limit">
211                                                                                         <counter>COMPLEXITY</counter>
212                                                                                         <value>COVEREDRATIO</value>
213                                                                                         <minimum>.75</minimum>
214                                                                                 </limit>
215                                                                                 <limit implementation="org.jacoco.report.check.Limit">
216                                                                                         <counter>LINE</counter>
217                                                                                         <value>COVEREDRATIO</value>
218                                                                                         <minimum>.80</minimum>
219                                                                                 </limit>
220                                                                                 <limit implementation="org.jacoco.report.check.Limit">
221                                                                                         <counter>METHOD</counter>
222                                                                                         <value>COVEREDRATIO</value>
223                                                                                         <minimum>.90</minimum>
224                                                                                 </limit>
225                                                                                 <limit implementation="org.jacoco.report.check.Limit">
226                                                                                         <counter>CLASS</counter>
227                                                                                         <value>MISSEDCOUNT</value>
228                                                                                         <maximum>0</maximum>
229                                                                                 </limit>
230                                                                         </limits>
231                                                                 </rule>
232                                                         </rules>
233                                                 </configuration>
234                                         </execution>
235                                 </executions>
236                         </plugin>
237                         <plugin>
238                                 <groupId>org.apache.maven.plugins</groupId>
239                                 <artifactId>maven-assembly-plugin</artifactId>
240                                 <version>3.0.0</version>
241                                 <configuration>
242                                         <descriptorRefs>
243                                                 <descriptorRef>jar-with-dependencies</descriptorRef>
244                                         </descriptorRefs>
245                                 </configuration>
246                                 <executions>
247                                         <execution>
248                                                 <id>make-jar-with-dependencies</id>
249                                                 <phase>package</phase>
250                                                 <goals>
251                                                         <goal>single</goal>
252                                                 </goals>
253                                         </execution>
254                                 </executions>
255                         </plugin>
256                         <plugin>
257                                 <groupId>org.apache.maven.plugins</groupId>
258                                 <artifactId>maven-compiler-plugin</artifactId>
259                                 <version>3.6.1</version>
260                                 <configuration>
261                                         <source>1.8</source>
262                                         <target>1.8</target>
263                                 </configuration>
264                         </plugin>
265                         <plugin>
266                                 <artifactId>maven-release-plugin</artifactId>
267                                 <version>2.4.2</version>
268                                 <dependencies>
269                                         <dependency>
270                                                 <groupId>org.apache.maven.scm</groupId>
271                                                 <artifactId>maven-scm-provider-gitexe</artifactId>
272                                                 <version>1.8.1</version>
273                                         </dependency>
274                                 </dependencies>
275                         </plugin>
276                         <plugin>
277                                 <groupId>org.apache.maven.plugins</groupId>
278                                 <artifactId>maven-source-plugin</artifactId>
279                                 <version>3.0.1</version>
280                                 <executions>
281                                         <execution>
282                                                 <id>attach-sources</id>
283                                                 <goals>
284                                                         <goal>jar</goal>
285                                                 </goals>
286                                         </execution>
287                                 </executions>
288                         </plugin>
289                         <plugin>
290                                 <groupId>org.apache.maven.plugins</groupId>
291                                 <artifactId>maven-javadoc-plugin</artifactId>
292                                 <version>2.9.1</version>
293                                 <executions>
294                                         <execution>
295                                                 <id>attach-javadocs</id>
296                                                 <goals>
297                                                         <goal>jar</goal>
298                                                 </goals>
299                                         </execution>
300                                 </executions>
301                         </plugin>
302                         <plugin>
303                                 <groupId>org.apache.maven.plugins</groupId>
304                                 <artifactId>maven-surefire-plugin</artifactId>
305                                 <configuration>
306                                         <systemPropertyVariables>
307                                                 <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
308                                         </systemPropertyVariables>
309                                 </configuration>
310                         </plugin>
311                         <plugin>
312                                 <groupId>org.apache.maven.plugins</groupId>
313                                 <artifactId>maven-deploy-plugin</artifactId>
314                                 <version>2.8.2</version>
315                                 <executions>
316                                         <execution>
317                                                 <id>default-deploy</id>
318                                                 <phase>none</phase>
319                                         </execution>
320                                 </executions>
321                         </plugin>
322                         <plugin>
323                                 <groupId>org.sonatype.plugins</groupId>
324                                 <artifactId>nexus-staging-maven-plugin</artifactId>
325                                 <version>1.6.7</version>
326                                 <extensions>true</extensions>
327                                 <configuration>
328                                         <nexusUrl>${onap.nexus.url}</nexusUrl>
329                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
330                                         <serverId>ecomp-staging</serverId>
331                                 </configuration>
332                         </plugin>
333                         <plugin>
334                                 <groupId>org.apache.maven.plugins</groupId>
335                                 <artifactId>maven-site-plugin</artifactId>
336                                 <version>3.6</version>
337                                 <dependencies>
338                                         <dependency>
339                                                 <groupId>org.apache.maven.wagon</groupId>
340                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
341                                                 <version>2.10</version>
342                                         </dependency>
343                                 </dependencies>
344                         </plugin>
345                             <plugin>
346                                 <groupId>com.mycila</groupId>
347                                 <artifactId>license-maven-plugin</artifactId>
348                                 <version>3.0</version>
349                                 <configuration>
350                                     <header>License.txt</header>
351                                     <includes>
352                                         <include>**/*.java</include>
353                                         <include>**/*.ksh</include>
354                                         <include>**/*.sh</include>
355                                         <include>**/*.ftl</include>
356                                         <include>**/*.xsd</include>
357                                         <include>**/*.xjb</include>
358                                         <include>**/*.yml</include>
359                                         <include>**/*.yaml</include>
360                                         <include>**/aai*.xml</include>
361                                         <include>**/*logback*.xml</include>
362                                         <include>**/*aaiconfig*.properties</include>
363                                         <include>**/*titan*.properties</include>
364                                     </includes>
365                                 </configuration>
366                                 <executions>
367                                     <execution>
368                                         <goals>
369                                             <goal>format</goal>
370                                         </goals>
371                                         <phase>process-sources</phase>
372                                     </execution>
373                                 </executions>
374                             </plugin>
375                 </plugins>
376         </build>
377         <reporting>
378                 <plugins>
379                         <plugin>
380                                 <groupId>org.apache.maven.plugins</groupId>
381                                 <artifactId>maven-javadoc-plugin</artifactId>
382                                 <version>2.10.4</version>
383                                 <configuration>
384                                         <failOnError>false</failOnError>
385                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
386                                         <docletArtifact>
387                                                 <groupId>org.umlgraph</groupId>
388                                                 <artifactId>umlgraph</artifactId>
389                                                 <version>5.6</version>
390                                         </docletArtifact>
391                                         <additionalparam>-views</additionalparam>
392                                         <useStandardDocletOptions>true</useStandardDocletOptions>
393                                 </configuration>
394                         </plugin>
395                 </plugins>
396         </reporting>
397 </project>