Merge "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     <!-- testing dependencies -->
52     <dependency>
53       <groupId>junit</groupId>
54       <artifactId>junit</artifactId>
55       <scope>test</scope>
56     </dependency>
57     <dependency>
58       <groupId>org.mockito</groupId>
59       <artifactId>mockito-all</artifactId>
60       <scope>test</scope>
61     </dependency>
62     <dependency>
63       <groupId>org.opendaylight.controller</groupId>
64       <artifactId>sal-binding-broker-impl</artifactId>
65       <type>test-jar</type>
66       <scope>test</scope>
67     </dependency>
68     <!-- Sonar -->
69     <dependency>
70       <groupId>org.codehaus.sonar-plugins.java</groupId>
71       <artifactId>sonar-jacoco-listeners</artifactId>
72       <version>${sonar-jacoco-listeners.version}</version>
73       <scope>test</scope>
74     </dependency>
75   </dependencies>
76
77   <build>
78     <plugins>
79       <plugin>
80         <groupId>org.apache.felix</groupId>
81         <artifactId>maven-bundle-plugin</artifactId>
82         <configuration>
83           <instructions>
84             <Export-Package>
85               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.neutron.gbp.mapper.*,
86               org.opendaylight.groupbasedpolicy.neutron.gbp.util
87             </Export-Package>
88             <Import-Package>*</Import-Package>
89           </instructions>
90         </configuration>
91       </plugin>
92       <plugin>
93         <groupId>org.opendaylight.yangtools</groupId>
94         <artifactId>yang-maven-plugin</artifactId>
95       </plugin>
96     </plugins>
97     <pluginManagement>
98       <plugins>
99         <plugin>
100           <groupId>org.eclipse.m2e</groupId>
101           <artifactId>lifecycle-mapping</artifactId>
102           <version>1.0.0</version>
103           <configuration>
104             <lifecycleMappingMetadata>
105               <pluginExecutions>
106                 <pluginExecution>
107                   <pluginExecutionFilter>
108                     <groupId>org.jacoco</groupId>
109                     <artifactId>jacoco-maven-plugin</artifactId>
110                     <versionRange>[0.6,)</versionRange>
111                     <goals>
112                       <goal>prepare-agent</goal>
113                     </goals>
114                   </pluginExecutionFilter>
115                   <action>
116                     <ignore />
117                   </action>
118                 </pluginExecution>
119               </pluginExecutions>
120             </lifecycleMappingMetadata>
121           </configuration>
122         </plugin>
123       </plugins>
124     </pluginManagement>
125   </build>
126 </project>