This commit includes OpenContrail OC Renderer support.
[groupbasedpolicy.git] / groupbasedpolicy / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.groupbasedpolicy</groupId>
6     <artifactId>groupbasedpolicy.project</artifactId>
7     <version>0.2.0-SNAPSHOT</version>
8     <relativePath>../</relativePath>
9   </parent>
10
11   <artifactId>groupbasedpolicy</artifactId>
12   <packaging>bundle</packaging>
13   <repositories>
14   <repository>
15     <id>juniper-contrail</id>
16     <url>https://github.com/Juniper/contrail-maven/raw/master/releases</url>
17    </repository>
18   </repositories>
19
20   <properties>
21     <openflowplugin-nicira.version>0.1.0-SNAPSHOT</openflowplugin-nicira.version>
22   </properties>
23
24   <dependencies>
25    <dependency>
26     <groupId>net.juniper.contrail</groupId>
27     <artifactId>juniper-contrail-api</artifactId>
28     <version>1.2</version>
29     </dependency>
30     <dependency>
31      <groupId>org.apache.httpcomponents</groupId>
32       <artifactId>httpcore</artifactId>
33        <version>4.3.2</version>
34       </dependency>
35       <dependency>
36      <groupId>org.apache.httpcomponents</groupId>
37       <artifactId>httpclient</artifactId>
38       <version>4.3.2</version>
39      </dependency>
40     <dependency>
41       <groupId>ch.qos.logback</groupId>
42       <artifactId>logback-classic</artifactId>
43     </dependency>
44     <dependency>
45       <groupId>ch.qos.logback</groupId>
46       <artifactId>logback-core</artifactId>
47     </dependency>
48     <dependency>
49       <groupId>com.fasterxml.jackson.core</groupId>
50       <artifactId>jackson-core</artifactId>
51     </dependency>
52     <dependency>
53       <groupId>com.fasterxml.jackson.core</groupId>
54       <artifactId>jackson-databind</artifactId>
55     </dependency>
56     <dependency>
57       <groupId>com.fasterxml.jackson.core</groupId>
58       <artifactId>jackson-annotations</artifactId>
59     </dependency>
60     <dependency>
61       <groupId>com.google.guava</groupId>
62       <artifactId>guava</artifactId>
63     </dependency>
64     <dependency>
65       <groupId>io.netty</groupId>
66       <artifactId>netty-all</artifactId>
67       <version>4.0.10.Final</version>
68     </dependency>
69     <dependency>
70       <groupId>org.opendaylight.controller</groupId>
71       <artifactId>config-api</artifactId>
72     </dependency>
73     <dependency>
74       <groupId>org.opendaylight.controller</groupId>
75       <artifactId>sal-binding-api</artifactId>
76     </dependency>
77     <dependency>
78       <groupId>org.opendaylight.controller</groupId>
79       <artifactId>sal-binding-config</artifactId>
80     </dependency>
81     <dependency>
82       <groupId>org.opendaylight.controller</groupId>
83       <artifactId>sal-common-util</artifactId>
84     </dependency>
85     <dependency>
86       <groupId>org.opendaylight.controller.model</groupId>
87       <artifactId>model-inventory</artifactId>
88     </dependency>
89     <dependency>
90       <groupId>org.opendaylight.yangtools</groupId>
91       <artifactId>yang-binding</artifactId>
92     </dependency>
93     <dependency>
94       <groupId>org.opendaylight.yangtools</groupId>
95       <artifactId>yang-common</artifactId>
96     </dependency>
97     <dependency>
98       <groupId>org.opendaylight.controller.model</groupId>
99       <artifactId>model-flow-base</artifactId>
100     </dependency>
101     <dependency>
102       <groupId>org.opendaylight.controller.model</groupId>
103       <artifactId>model-flow-service</artifactId>
104     </dependency>
105     <dependency>
106       <groupId>org.opendaylight.openflowplugin</groupId>
107       <artifactId>openflowplugin-extension-nicira</artifactId>
108       <version>${openflowplugin-nicira.version}</version>
109     </dependency>
110     <dependency>
111       <groupId>org.osgi</groupId>
112       <artifactId>org.osgi.core</artifactId>
113     </dependency>
114     <dependency>
115       <groupId>commons-lang</groupId>
116       <artifactId>commons-lang</artifactId>
117       <version>2.6</version>
118     </dependency>
119     <dependency>
120       <groupId>org.apache.commons</groupId>
121       <artifactId>commons-exec</artifactId>
122       <version>1.1</version>
123     </dependency>
124     <dependency>
125       <groupId>junit</groupId>
126       <artifactId>junit</artifactId>
127       <scope>test</scope>
128     </dependency>
129     <dependency>
130       <groupId>org.mockito</groupId>
131       <artifactId>mockito-all</artifactId>
132       <version>1.9.5</version>
133       <scope>test</scope>
134     </dependency>
135     <dependency>
136       <groupId>org.powermock</groupId>
137       <artifactId>powermock-module-junit4</artifactId>
138       <version>1.5.6</version>
139       <scope>test</scope>
140     </dependency>
141     <dependency>
142       <groupId>org.powermock</groupId>
143       <artifactId>powermock-api-mockito</artifactId>
144       <version>1.5.6</version>
145       <scope>test</scope>
146     </dependency>
147   </dependencies>
148
149   <!-- project build -->
150   <build>
151     <plugins>
152       <plugin>
153         <groupId>org.apache.felix</groupId>
154         <artifactId>maven-bundle-plugin</artifactId>
155         <extensions>true</extensions>
156         <configuration>
157           <instructions>
158             <Import-Package>
159              org.apache.http.*;version="4.3.2",
160              *;resolution:=optional</Import-Package>
161              <Embed-Dependency>httpclient,httpcore,commons-lang,commons-exec;type=!pom;inline=false</Embed-Dependency>
162             <Export-Package>
163               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.*,
164               org.opendaylight.controller.config.yang.config.endpoint_provider,
165               org.opendaylight.groupbasedpolicy.endpoint,
166               org.opendaylight.groupbasedpolicy.resolver,
167               net.juniper.contrail.api.*;version="1.2"
168             </Export-Package>
169           </instructions>
170           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
171         </configuration>
172       </plugin>
173       <plugin>
174         <groupId>org.codehaus.mojo</groupId>
175         <artifactId>build-helper-maven-plugin</artifactId>
176         <executions>
177           <execution>
178             <goals>
179               <goal>add-source</goal>
180             </goals>
181             <phase>generate-sources</phase>
182             <configuration>
183               <sources>
184                 <source>target/generated-sources/sal</source>
185                 <source>target/generated-sources/config</source>
186                 <source>target/generated-resources/</source>
187               </sources>
188             </configuration>
189           </execution>
190         </executions>
191       </plugin>
192       <plugin>
193         <groupId>org.opendaylight.yangtools</groupId>
194         <artifactId>yang-maven-plugin</artifactId>
195         <dependencies>
196           <dependency>
197             <groupId>org.opendaylight.controller</groupId>
198             <artifactId>yang-jmx-generator-plugin</artifactId>
199             <version>0.3.0-SNAPSHOT</version>
200           </dependency>
201           <dependency>
202             <groupId>org.opendaylight.yangtools</groupId>
203             <artifactId>maven-sal-api-gen-plugin</artifactId>
204             <version>${yangtools.version}</version>
205             <type>jar</type>
206           </dependency>
207         </dependencies>
208         <executions>
209           <execution>
210             <goals>
211               <goal>generate-sources</goal>
212             </goals>
213             <configuration>
214               <codeGenerators>
215                 <generator>
216                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
217                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
218                   <additionalConfiguration>
219                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
220                   </additionalConfiguration>
221                 </generator>
222                 <generator>
223                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
224                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
225                 </generator>
226                 <generator>
227                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
228                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
229                 </generator>
230               </codeGenerators>
231               <inspectDependencies>true</inspectDependencies>
232             </configuration>
233           </execution>
234         </executions>
235       </plugin>
236       <plugin>
237         <groupId>org.apache.maven.plugins</groupId>
238         <artifactId>maven-surefire-plugin</artifactId>
239         <configuration>
240           <redirectTestOutputToFile>true</redirectTestOutputToFile>
241         </configuration>
242       </plugin>
243       <plugin>
244         <groupId>org.jacoco</groupId>
245         <artifactId>jacoco-maven-plugin</artifactId>
246         <executions>
247           <execution>
248             <id>pre-unit-test</id>
249             <goals>
250               <goal>prepare-agent</goal>
251             </goals>
252           </execution>
253           <execution>
254             <id>post-unit-test</id>
255             <phase>test</phase>
256             <goals>
257               <goal>report</goal>
258             </goals>
259             <configuration>
260               <dataFile>${sonar.jacoco.reportPath}</dataFile>
261               <includes>
262                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
263               </includes>
264             </configuration>
265           </execution>
266         </executions>
267       </plugin>
268     </plugins>
269   </build>
270 </project>
271