d6ab74ab37cfbc6171030284591d7d9521730775
[groupbasedpolicy.git] / renderers / ofoverlay / 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-renderers</artifactId>
13     <version>0.3.0-SNAPSHOT</version>
14     <relativePath>../</relativePath>
15   </parent>
16
17   <artifactId>ofoverlay-renderer</artifactId>
18   <packaging>bundle</packaging>
19
20   <dependencies>
21     <!-- model dependencies -->
22     <dependency>
23       <groupId>org.opendaylight.mdsal.model</groupId>
24       <artifactId>yang-ext</artifactId>
25     </dependency>
26   <dependency>
27     <groupId>org.opendaylight.ovsdb</groupId>
28     <artifactId>southbound-api</artifactId>
29   </dependency>
30
31     <!-- project specific dependencies -->
32     <dependency>
33       <groupId>org.opendaylight.openflowplugin</groupId>
34       <artifactId>openflowplugin-extension-nicira</artifactId>
35     </dependency>
36     <dependency>
37       <groupId>org.opendaylight.controller</groupId>
38       <artifactId>liblldp</artifactId>
39     </dependency>
40     <dependency>
41       <groupId>commons-net</groupId>
42       <artifactId>commons-net</artifactId>
43     </dependency>
44     <!-- SFC -->
45     <dependency>
46       <groupId>org.opendaylight.sfc</groupId>
47       <artifactId>sfc-model</artifactId>
48       <version>${sfc.version}</version>
49     </dependency>
50     <dependency>
51       <groupId>org.opendaylight.sfc</groupId>
52       <artifactId>sfc-provider</artifactId>
53       <version>${sfc.version}</version>
54     </dependency>
55     <!-- testing dependencies -->
56     <dependency>
57       <groupId>junit</groupId>
58       <artifactId>junit</artifactId>
59       <scope>test</scope>
60     </dependency>
61     <dependency>
62       <groupId>org.mockito</groupId>
63       <artifactId>mockito-all</artifactId>
64       <scope>test</scope>
65     </dependency>
66     <!-- Sonar -->
67     <dependency>
68       <groupId>org.codehaus.sonar-plugins.java</groupId>
69       <artifactId>sonar-jacoco-listeners</artifactId>
70       <version>${sonar-jacoco-listeners.version}</version>
71       <scope>test</scope>
72     </dependency>
73   </dependencies>
74
75   <!-- project build -->
76   <build>
77     <!-- We use the maven-resources-plugin to copy a class from the groupbasepolicy 
78       bundle that we need in order to run some unit tests in the renderer (classes 
79       in the test directory aren't packaged in bundles, and instead of keeping 
80       separate copies, we just copy the file(s) needed in order to run the test). -->
81     <plugins>
82       <plugin>
83         <artifactId>maven-resources-plugin</artifactId>
84         <executions>
85           <execution>
86             <id>copy-resources</id>
87             <!-- here the phase you need -->
88             <phase>validate</phase>
89             <goals>
90               <goal>copy-resources</goal>
91             </goals>
92             <configuration>
93               <outputDirectory>src/test/java/org/opendaylight/groupbasedpolicy/resolver</outputDirectory>
94               <resources>
95                 <resource>
96                   <directory>../../groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/resolver</directory>
97                   <filtering>true</filtering>
98                 </resource>
99               </resources>
100             </configuration>
101           </execution>
102         </executions>
103       </plugin>
104       <plugin>
105         <groupId>org.apache.felix</groupId>
106         <artifactId>maven-bundle-plugin</artifactId>
107         <extensions>true</extensions>
108         <configuration>
109           <instructions>
110             <Export-Package>
111               org.opendaylight.groupbasedpolicy.renderer.ofoverlay.sf,
112               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.ofoverlay.rev140528.*
113             </Export-Package>
114           </instructions>
115           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
116         </configuration>
117       </plugin>
118       <plugin>
119         <groupId>org.opendaylight.yangtools</groupId>
120         <artifactId>yang-maven-plugin</artifactId>
121       </plugin>
122       <plugin>
123         <groupId>org.apache.maven.plugins</groupId>
124         <artifactId>maven-surefire-plugin</artifactId>
125         <configuration>
126           <redirectTestOutputToFile>true</redirectTestOutputToFile>
127         </configuration>
128       </plugin>
129       <plugin>
130         <groupId>org.jacoco</groupId>
131         <artifactId>jacoco-maven-plugin</artifactId>
132         <executions>
133           <execution>
134             <id>prepare-ut-agent</id>
135             <phase>process-test-classes</phase>
136             <goals>
137               <goal>prepare-agent</goal>
138             </goals>
139             <configuration>
140               <destFile>${sonar.jacoco.reportPath}</destFile>
141             </configuration>
142           </execution>
143           <execution>
144             <id>prepare-it-agent</id>
145             <phase>pre-integration-test</phase>
146             <goals>
147               <goal>prepare-agent</goal>
148             </goals>
149             <configuration>
150               <destFile>${sonar.jacoco.itReportPath}</destFile>
151             </configuration>
152           </execution>
153         </executions>
154       </plugin>
155     </plugins>
156     <pluginManagement>
157       <plugins>
158         <plugin>
159           <groupId>org.eclipse.m2e</groupId>
160           <artifactId>lifecycle-mapping</artifactId>
161           <version>1.0.0</version>
162           <configuration>
163             <lifecycleMappingMetadata>
164               <pluginExecutions>
165                 <pluginExecution>
166                   <pluginExecutionFilter>
167                     <groupId>org.jacoco</groupId>
168                     <artifactId>jacoco-maven-plugin</artifactId>
169                     <versionRange>[0.6,)</versionRange>
170                     <goals>
171                       <goal>prepare-agent</goal>
172                     </goals>
173                   </pluginExecutionFilter>
174                   <action>
175                     <ignore />
176                   </action>
177                 </pluginExecution>
178               </pluginExecutions>
179             </lifecycleMappingMetadata>
180           </configuration>
181         </plugin>
182       </plugins>
183     </pluginManagement>
184   </build>
185 </project>
186