Merge "Bug 4284 - PolicyEnforcer could not find CI"
[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       <plugin>
100         <groupId>org.jacoco</groupId>
101         <artifactId>jacoco-maven-plugin</artifactId>
102         <executions>
103           <execution>
104             <id>prepare-ut-agent</id>
105             <phase>process-test-classes</phase>
106             <goals>
107               <goal>prepare-agent</goal>
108             </goals>
109             <configuration>
110               <destFile>${sonar.jacoco.reportPath}</destFile>
111             </configuration>
112           </execution>
113           <execution>
114             <id>prepare-it-agent</id>
115             <phase>pre-integration-test</phase>
116             <goals>
117               <goal>prepare-agent</goal>
118             </goals>
119             <configuration>
120               <destFile>${sonar.jacoco.itReportPath}</destFile>
121             </configuration>
122           </execution>
123         </executions>
124       </plugin>
125     </plugins>
126     <pluginManagement>
127       <plugins>
128         <plugin>
129           <groupId>org.eclipse.m2e</groupId>
130           <artifactId>lifecycle-mapping</artifactId>
131           <version>1.0.0</version>
132           <configuration>
133             <lifecycleMappingMetadata>
134               <pluginExecutions>
135                 <pluginExecution>
136                   <pluginExecutionFilter>
137                     <groupId>org.jacoco</groupId>
138                     <artifactId>jacoco-maven-plugin</artifactId>
139                     <versionRange>[0.6,)</versionRange>
140                     <goals>
141                       <goal>prepare-agent</goal>
142                     </goals>
143                   </pluginExecutionFilter>
144                   <action>
145                     <ignore />
146                   </action>
147                 </pluginExecution>
148               </pluginExecutions>
149             </lifecycleMappingMetadata>
150           </configuration>
151         </plugin>
152       </plugins>
153     </pluginManagement>
154   </build>
155 </project>
156