Use odlparent configuration for jacoco
[groupbasedpolicy.git] / neutron-mapper / pom.xml
1 <?xml version="1.0"?>
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
7   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
8   xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
9   <modelVersion>4.0.0</modelVersion>
10
11   <parent>
12     <groupId>org.opendaylight.groupbasedpolicy</groupId>
13     <artifactId>groupbasedpolicy.project</artifactId>
14     <version>0.3.0-SNAPSHOT</version>
15     <relativePath>../</relativePath>
16   </parent>
17
18   <artifactId>neutron-mapper</artifactId>
19   <packaging>bundle</packaging>
20
21   <dependencies>
22     <dependency>
23       <groupId>${project.groupId}</groupId>
24       <artifactId>groupbasedpolicy</artifactId>
25     </dependency>
26     <dependency>
27       <groupId>${project.groupId}</groupId>
28       <artifactId>ofoverlay-renderer</artifactId>
29     </dependency>
30     <dependency>
31       <groupId>org.opendaylight.neutron</groupId>
32       <artifactId>neutron-spi</artifactId>
33       <version>${neutron.version}</version>
34     </dependency>
35     <dependency>
36       <groupId>org.opendaylight.controller</groupId>
37       <artifactId>config-api</artifactId>
38     </dependency>
39     <dependency>
40       <groupId>org.opendaylight.controller</groupId>
41       <artifactId>sal-binding-api</artifactId>
42     </dependency>
43     <dependency>
44       <groupId>org.opendaylight.controller</groupId>
45       <artifactId>sal-binding-config</artifactId>
46     </dependency>
47     <dependency>
48       <groupId>org.osgi</groupId>
49       <artifactId>org.osgi.core</artifactId>
50     </dependency>
51     <!-- Sonar -->
52     <dependency>
53       <groupId>org.codehaus.sonar-plugins.java</groupId>
54       <artifactId>sonar-jacoco-listeners</artifactId>
55       <version>${sonar-jacoco-listeners.version}</version>
56       <scope>test</scope>
57     </dependency>
58   </dependencies>
59
60   <build>
61     <plugins>
62       <plugin>
63         <groupId>org.apache.felix</groupId>
64         <artifactId>maven-bundle-plugin</artifactId>
65         <configuration>
66           <instructions>
67             <Export-Package>
68               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.neutron.gbp.mapper.*,
69               org.opendaylight.groupbasedpolicy.neutron.gbp.util
70             </Export-Package>
71             <Import-Package>*</Import-Package>
72           </instructions>
73         </configuration>
74       </plugin>
75       <plugin>
76         <groupId>org.opendaylight.yangtools</groupId>
77         <artifactId>yang-maven-plugin</artifactId>
78       </plugin>
79     </plugins>
80     <pluginManagement>
81       <plugins>
82         <plugin>
83           <groupId>org.eclipse.m2e</groupId>
84           <artifactId>lifecycle-mapping</artifactId>
85           <version>1.0.0</version>
86           <configuration>
87             <lifecycleMappingMetadata>
88               <pluginExecutions>
89                 <pluginExecution>
90                   <pluginExecutionFilter>
91                     <groupId>org.jacoco</groupId>
92                     <artifactId>jacoco-maven-plugin</artifactId>
93                     <versionRange>[0.6,)</versionRange>
94                     <goals>
95                       <goal>prepare-agent</goal>
96                     </goals>
97                   </pluginExecutionFilter>
98                   <action>
99                     <ignore />
100                   </action>
101                 </pluginExecution>
102               </pluginExecutions>
103             </lifecycleMappingMetadata>
104           </configuration>
105         </plugin>
106       </plugins>
107     </pluginManagement>
108   </build>
109 </project>