Merge "Adding neutron-ovsdb."
[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.2.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.yangtools.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     <!-- SFC -->
37     <dependency>
38       <groupId>org.opendaylight.sfc</groupId>
39       <artifactId>sfc-model</artifactId>
40       <version>${sfc.version}</version>
41     </dependency>
42     <dependency>
43       <groupId>org.opendaylight.sfc</groupId>
44       <artifactId>sfc-provider</artifactId>
45       <version>${sfc.version}</version>
46     </dependency>
47     <!-- testing dependencies -->
48     <dependency>
49       <groupId>junit</groupId>
50       <artifactId>junit</artifactId>
51       <scope>test</scope>
52     </dependency>
53     <dependency>
54       <groupId>org.mockito</groupId>
55       <artifactId>mockito-all</artifactId>
56       <scope>test</scope>
57     </dependency>
58   </dependencies>
59
60   <!-- project build -->
61   <build>
62     <!-- We use the maven-resources-plugin to copy a class from the groupbasepolicy 
63       bundle that we need in order to run some unit tests in the renderer (classes 
64       in the test directory aren't packaged in bundles, and instead of keeping 
65       separate copies, we just copy the file(s) needed in order to run the test). -->
66     <plugins>
67       <plugin>
68         <artifactId>maven-resources-plugin</artifactId>
69         <executions>
70           <execution>
71             <id>copy-resources</id>
72             <!-- here the phase you need -->
73             <phase>validate</phase>
74             <goals>
75               <goal>copy-resources</goal>
76             </goals>
77             <configuration>
78               <outputDirectory>src/test/java/org/opendaylight/groupbasedpolicy/resolver</outputDirectory>
79               <resources>
80                 <resource>
81                   <directory>../../groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/resolver</directory>
82                   <filtering>true</filtering>
83                 </resource>
84               </resources>
85             </configuration>
86           </execution>
87         </executions>
88       </plugin>
89       <plugin>
90         <groupId>org.apache.felix</groupId>
91         <artifactId>maven-bundle-plugin</artifactId>
92         <extensions>true</extensions>
93         <configuration>
94           <instructions>
95             <Export-Package>
96               org.opendaylight.groupbasedpolicy.renderer.ofoverlay.sf,
97               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.ofoverlay.rev140528.*
98             </Export-Package>
99           </instructions>
100           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
101         </configuration>
102       </plugin>
103       <plugin>
104         <groupId>org.opendaylight.yangtools</groupId>
105         <artifactId>yang-maven-plugin</artifactId>
106       </plugin>
107       <plugin>
108         <groupId>org.apache.maven.plugins</groupId>
109         <artifactId>maven-surefire-plugin</artifactId>
110         <configuration>
111           <redirectTestOutputToFile>true</redirectTestOutputToFile>
112         </configuration>
113       </plugin>
114     </plugins>
115   </build>
116 </project>
117