Experiment: aggregate jacoco for sonar
[yangtools.git] / yang / yang-data-impl / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!-- Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4     This program and the accompanying materials are made available under the
5     terms of the Eclipse Public License v1.0 which accompanies this distribution,
6     and is available at http://www.eclipse.org/legal/epl-v10.html -->
7 <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">
8
9     <parent>
10         <groupId>org.opendaylight.odlparent</groupId>
11         <artifactId>bundle-parent</artifactId>
12         <version>4.0.0-SNAPSHOT</version>
13         <relativePath/>
14     </parent>
15
16     <modelVersion>4.0.0</modelVersion>
17     <groupId>org.opendaylight.yangtools</groupId>
18     <artifactId>yang-data-impl</artifactId>
19     <version>2.1.0-SNAPSHOT</version>
20     <packaging>bundle</packaging>
21     <name>${project.artifactId}</name>
22     <description>${project.artifactId}</description>
23
24     <properties>
25         <sonar.jacoco.reportPath>${project.base.directory}/../../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>2.1.0-SNAPSHOT</version>
34                 <scope>import</scope>
35                 <type>pom</type>
36             </dependency>
37         </dependencies>
38     </dependencyManagement>
39
40     <build>
41         <plugins>
42             <plugin>
43                 <groupId>org.antlr</groupId>
44                 <artifactId>antlr4-maven-plugin</artifactId>
45                 <executions>
46                     <execution>
47                         <goals>
48                             <goal>antlr4</goal>
49                         </goals>
50                     </execution>
51                 </executions>
52                 <configuration>
53                     <sourceDirectory>src/main/antlr</sourceDirectory>
54                     <outputDirectory>target/generated-sources/parser/org/opendaylight/yangtools/yang/data/impl/leafref</outputDirectory>
55                     <visitor>true</visitor>
56                     <listener>true</listener>
57                 </configuration>
58             </plugin>
59             <plugin>
60                 <groupId>org.apache.maven.plugins</groupId>
61                 <artifactId>maven-surefire-plugin</artifactId>
62                 <configuration>
63                 <argLine>-Dlog4j.configuration=log4j-test.xml
64                     -Xmx1500m ${jacoco.agent.ut.arg}</argLine>
65                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
66                 </configuration>
67             </plugin>
68             <plugin>
69                 <groupId>org.apache.felix</groupId>
70                 <artifactId>maven-bundle-plugin</artifactId>
71                 <extensions>true</extensions>
72                 <configuration>
73                     <instructions>
74                         <Export-Package>
75                             {local-packages},
76                             org.opendaylight.yangtools.yang.data.impl.*,
77                             ;-split-package:=error
78                         </Export-Package>
79                         <Include-Resource>{META-INF/services=${project.build.directory}/classes/META-INF/services}</Include-Resource>
80                         <Bundle-Activator>org.opendaylight.yangtools.yang.data.impl.osgi.Activator</Bundle-Activator>
81                     </instructions>
82                 </configuration>
83             </plugin>
84             <plugin>
85                 <groupId>org.jacoco</groupId>
86                 <artifactId>jacoco-maven-plugin</artifactId>
87                 <executions>
88                     <execution>
89                         <id>pre-unit-test</id>
90                         <goals>
91                             <goal>prepare-agent</goal>
92                         </goals>
93                         <configuration>
94                             <destFile>${project.build.directory}/code-coverage/jacoco.exec</destFile>
95                             <propertyName>jacoco.agent.ut.arg</propertyName>
96                         </configuration>
97                     </execution>
98                     <execution>
99                         <id>post-unit-test</id>
100                         <goals>
101                             <goal>report</goal>
102                         </goals>
103                         <configuration>
104                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
105                         </configuration>
106                     </execution>
107                     <execution>
108                         <id>prepare-it-agent</id>
109                         <phase>pre-integration-test</phase>
110                         <goals>
111                             <goal>prepare-agent</goal>
112                         </goals>
113                         <configuration>
114                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
115                             <propertyName>jacoco.agent.it.arg</propertyName>
116                         </configuration>
117                     </execution>
118                 </executions>
119             </plugin>
120             <plugin>
121                 <groupId>org.apache.maven.plugins</groupId>
122                 <artifactId>maven-checkstyle-plugin</artifactId>
123                 <configuration>
124                     <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
125                 </configuration>
126             </plugin>
127         </plugins>
128     </build>
129
130     <dependencies>
131         <dependency>
132             <groupId>${project.groupId}</groupId>
133             <artifactId>util</artifactId>
134         </dependency>
135         <dependency>
136             <groupId>${project.groupId}</groupId>
137             <artifactId>yang-common</artifactId>
138         </dependency>
139         <dependency>
140             <groupId>${project.groupId}</groupId>
141             <artifactId>yang-data-api</artifactId>
142         </dependency>
143         <dependency>
144             <groupId>${project.groupId}</groupId>
145             <artifactId>yang-data-util</artifactId>
146         </dependency>
147         <dependency>
148             <groupId>${project.groupId}</groupId>
149             <artifactId>yang-model-api</artifactId>
150         </dependency>
151         <dependency>
152             <groupId>${project.groupId}</groupId>
153             <artifactId>yang-model-util</artifactId>
154         </dependency>
155         <dependency>
156             <groupId>com.google.guava</groupId>
157             <artifactId>guava</artifactId>
158         </dependency>
159         <dependency>
160             <groupId>org.antlr</groupId>
161             <artifactId>antlr4-runtime</artifactId>
162         </dependency>
163
164         <dependency>
165             <groupId>org.kohsuke.metainf-services</groupId>
166             <artifactId>metainf-services</artifactId>
167         </dependency>
168         <dependency>
169             <groupId>org.osgi</groupId>
170             <artifactId>org.osgi.core</artifactId>
171         </dependency>
172
173         <dependency>
174             <groupId>org.slf4j</groupId>
175             <artifactId>slf4j-log4j12</artifactId>
176             <scope>test</scope>
177         </dependency>
178         <dependency>
179             <groupId>org.xmlunit</groupId>
180             <artifactId>xmlunit-legacy</artifactId>
181         </dependency>
182         <dependency>
183             <groupId>${project.groupId}</groupId>
184             <artifactId>yang-parser-impl</artifactId>
185             <scope>test</scope>
186         </dependency>
187         <dependency>
188             <groupId>${project.groupId}</groupId>
189             <artifactId>yang-test-util</artifactId>
190             <scope>test</scope>
191         </dependency>
192     </dependencies>
193
194 </project>