Fix Sonar integration
[yangtools.git] / common / util / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>bundle-parent</artifactId>
15         <version>4.0.0-SNAPSHOT</version>
16         <relativePath/>
17     </parent>
18     <packaging>bundle</packaging>
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.yangtools</groupId>
21     <artifactId>util</artifactId>
22     <version>2.1.0-SNAPSHOT</version>
23
24     <properties>
25         <sonar.jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</sonar.jacoco.reportPath>
26     </properties>
27
28     <dependencyManagement>
29         <dependencies>
30             <dependency>
31                 <groupId>org.opendaylight.yangtools</groupId>
32                 <artifactId>yangtools-artifacts</artifactId>
33                 <version>${project.version}</version>
34                 <scope>import</scope>
35                 <type>pom</type>
36             </dependency>
37         </dependencies>
38     </dependencyManagement>
39
40     <dependencies>
41         <dependency>
42             <groupId>org.opendaylight.yangtools</groupId>
43             <artifactId>concepts</artifactId>
44         </dependency>
45         <dependency>
46             <groupId>org.opendaylight.yangtools</groupId>
47             <artifactId>triemap</artifactId>
48         </dependency>
49         <dependency>
50             <groupId>com.google.guava</groupId>
51             <artifactId>guava</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>org.immutables</groupId>
55             <artifactId>value</artifactId>
56         </dependency>
57
58         <dependency>
59             <groupId>org.opendaylight.yangtools</groupId>
60             <artifactId>mockito-configuration</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>com.google.guava</groupId>
64             <artifactId>guava-testlib</artifactId>
65             <scope>test</scope>
66         </dependency>
67     </dependencies>
68
69     <build>
70         <plugins>
71             <plugin>
72                 <groupId>org.apache.maven.plugins</groupId>
73                 <artifactId>maven-checkstyle-plugin</artifactId>
74                 <configuration>
75                     <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
76                 </configuration>
77             </plugin>
78             <plugin>
79                 <groupId>org.codehaus.mojo</groupId>
80                 <artifactId>findbugs-maven-plugin</artifactId>
81                 <configuration>
82                     <failOnError>true</failOnError>
83                 </configuration>
84             </plugin>
85             <plugin>
86                 <groupId>org.jacoco</groupId>
87                 <artifactId>jacoco-maven-plugin</artifactId>
88                 <executions>
89                     <execution>
90                         <id>pre-unit-test</id>
91                         <goals>
92                             <goal>prepare-agent</goal>
93                         </goals>
94                         <configuration>
95                             <destFile>${project.build.directory}/code-coverage/jacoco.exec</destFile>
96                         </configuration>
97                     </execution>
98                 </executions>
99             </plugin>
100         </plugins>
101     </build>
102
103 </project>