Enable Jacoco plugin for code coverage
[vpnservice.git] / commons / config-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: --><!--
3 Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <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">
10
11   <parent>
12     <groupId>org.opendaylight.controller</groupId>
13     <artifactId>config-parent</artifactId>
14     <version>0.3.0-SNAPSHOT</version>
15     <relativePath/>
16   </parent>
17
18   <modelVersion>4.0.0</modelVersion>
19   <groupId>org.opendaylight.vpnservice</groupId>
20   <artifactId>config-parent</artifactId>
21   <version>0.1.0-SNAPSHOT</version>
22   <packaging>pom</packaging>
23
24   <properties>
25     <!-- ODL -->
26     <vpnservices.version>0.1.0-SNAPSHOT</vpnservices.version>
27     <jacoco.version>0.7.2.201409121644</jacoco.version>
28     <ietf.inet.types.version>2010.09.24.7-SNAPSHOT</ietf.inet.types.version>
29     <ietf.yang.types.version>2010.09.24.7-SNAPSHOT</ietf.yang.types.version>
30     <ietf.interfaces.version>2014.05.08.7-SNAPSHOT</ietf.interfaces.version>
31     <iana.if.type.version>2014.05.08.7-SNAPSHOT</iana.if.type.version>
32     <yang.ext.version>2013.09.07.7-SNAPSHOT</yang.ext.version>
33     <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
34     <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
35     <vpns.mdsalutil.version>0.1.0-SNAPSHOT</vpns.mdsalutil.version>
36     <model.bgp.version>2013.07.15.7-SNAPSHOT</model.bgp.version>
37   </properties>
38
39   <dependencies>
40     <!-- Testing Dependencies -->
41     <dependency>
42       <groupId>junit</groupId>
43       <artifactId>junit</artifactId>
44       <scope>test</scope>
45     </dependency>
46
47     <dependency>
48       <groupId>org.mockito</groupId>
49       <artifactId>mockito-all</artifactId>
50       <scope>test</scope>
51     </dependency>
52   </dependencies>
53
54   <build>
55     <plugins>
56       <plugin>
57         <groupId>org.apache.maven.plugins</groupId>
58         <artifactId>maven-checkstyle-plugin</artifactId>
59           <executions>
60             <execution>
61               <phase>process-sources</phase>
62               <goals>
63                 <goal>check</goal>
64               </goals>
65             </execution>
66           </executions>
67         <configuration>
68           <configLocation>
69             ${project.basedir}/../../commons/src/main/resources/vpns_checks.xml
70           </configLocation>
71           <failsOnError>true</failsOnError>
72           <includes>**/*.java,**/*.xml,**/*.ini,**/*.sh,**/*.bat</includes>
73           <excludes>**\/target\/,**\/bin\/,**\/third-party,**\/yang-gen-sal</excludes>
74         </configuration>
75       </plugin>
76      <plugin>
77        <groupId>org.jacoco</groupId>
78        <artifactId>jacoco-maven-plugin</artifactId>
79        <configuration>
80          <includes>
81            <include>org.opendaylight.vpnservice.*</include>
82          </includes>
83        </configuration>
84        <executions>
85          <execution>
86            <id>pre-test</id>
87            <goals>
88              <goal>prepare-agent</goal>
89            </goals>
90          </execution>
91          <execution>
92            <id>post-test</id>
93            <goals>
94              <goal>report</goal>
95            </goals>
96            <phase>test</phase>
97          </execution>
98        </executions>
99      </plugin>
100     </plugins>
101   </build>
102
103 </project>