Merge "Use odlparent configuration for jacoco"
[groupbasedpolicy.git] / groupbasedpolicy / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
3   This program and the accompanying materials are made available under the
4   terms of the Eclipse Public License v1.0 which accompanies this distribution,
5   and is available at http://www.eclipse.org/legal/epl-v10.html -->
6 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
8   <modelVersion>4.0.0</modelVersion>
9
10   <parent>
11     <groupId>org.opendaylight.groupbasedpolicy</groupId>
12     <artifactId>groupbasedpolicy.project</artifactId>
13     <version>0.3.0-SNAPSHOT</version>
14     <relativePath>../</relativePath>
15   </parent>
16
17   <artifactId>groupbasedpolicy</artifactId>
18   <packaging>bundle</packaging>
19   <name>groupbasedpolicy-base</name>
20
21   <dependencies>
22     <!-- model dependencies -->
23     <dependency>
24       <groupId>org.opendaylight.mdsal.model</groupId>
25       <artifactId>ietf-inet-types</artifactId>
26     </dependency>
27     <dependency>
28       <groupId>org.opendaylight.mdsal.model</groupId>
29       <artifactId>ietf-yang-types</artifactId>
30     </dependency>
31
32     <!-- controller dependencies -->
33     <dependency>
34       <groupId>org.opendaylight.controller</groupId>
35       <artifactId>config-api</artifactId>
36     </dependency>
37     <dependency>
38       <groupId>org.opendaylight.controller</groupId>
39       <artifactId>sal-binding-api</artifactId>
40     </dependency>
41
42     <!-- project specific dependencies -->
43     <dependency>
44       <groupId>com.google.guava</groupId>
45       <artifactId>guava</artifactId>
46     </dependency>
47
48     <!-- testing dependencies -->
49     <dependency>
50       <groupId>junit</groupId>
51       <artifactId>junit</artifactId>
52       <scope>test</scope>
53     </dependency>
54     <dependency>
55       <groupId>org.mockito</groupId>
56       <artifactId>mockito-all</artifactId>
57       <scope>test</scope>
58     </dependency>
59     <!-- Sonar -->
60     <dependency>
61       <groupId>org.codehaus.sonar-plugins.java</groupId>
62       <artifactId>sonar-jacoco-listeners</artifactId>
63       <version>${sonar-jacoco-listeners.version}</version>
64       <scope>test</scope>
65     </dependency>
66   </dependencies>
67
68   <!-- project build -->
69   <build>
70     <plugins>
71       <plugin>
72         <groupId>org.apache.felix</groupId>
73         <artifactId>maven-bundle-plugin</artifactId>
74         <extensions>true</extensions>
75         <configuration>
76           <instructions>
77             <Export-Package>
78               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.*,
79               org.opendaylight.controller.config.yang.config.endpoint_provider,
80               org.opendaylight.groupbasedpolicy.endpoint,
81               org.opendaylight.groupbasedpolicy.resolver.*,
82               org.opendaylight.groupbasedpolicy.util,
83             </Export-Package>
84           </instructions>
85           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
86         </configuration>
87       </plugin>
88       <plugin>
89         <groupId>org.opendaylight.yangtools</groupId>
90         <artifactId>yang-maven-plugin</artifactId>
91       </plugin>
92       <plugin>
93         <groupId>org.apache.maven.plugins</groupId>
94         <artifactId>maven-surefire-plugin</artifactId>
95         <configuration>
96           <redirectTestOutputToFile>true</redirectTestOutputToFile>
97         </configuration>
98       </plugin>
99     </plugins>
100     <pluginManagement>
101       <plugins>
102         <plugin>
103           <groupId>org.eclipse.m2e</groupId>
104           <artifactId>lifecycle-mapping</artifactId>
105           <version>1.0.0</version>
106           <configuration>
107             <lifecycleMappingMetadata>
108               <pluginExecutions>
109                 <pluginExecution>
110                   <pluginExecutionFilter>
111                     <groupId>org.jacoco</groupId>
112                     <artifactId>jacoco-maven-plugin</artifactId>
113                     <versionRange>[0.6,)</versionRange>
114                     <goals>
115                       <goal>prepare-agent</goal>
116                     </goals>
117                   </pluginExecutionFilter>
118                   <action>
119                     <ignore />
120                   </action>
121                 </pluginExecution>
122               </pluginExecutions>
123             </lifecycleMappingMetadata>
124           </configuration>
125         </plugin>
126       </plugins>
127     </pluginManagement>
128   </build>
129 </project>
130