Fix build after openflowplugin merge.
[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>${netty.version}</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.openflowplugin</groupId>
99       <artifactId>openflowplugin-extension-nicira</artifactId>
100       <version>${openflowplugin-nicira.version}</version>
101     </dependency>
102     <dependency>
103       <groupId>org.osgi</groupId>
104       <artifactId>org.osgi.core</artifactId>
105     </dependency>
106     <dependency>
107       <groupId>commons-lang</groupId>
108       <artifactId>commons-lang</artifactId>
109       <version>2.6</version>
110     </dependency>
111     <dependency>
112       <groupId>org.apache.commons</groupId>
113       <artifactId>commons-exec</artifactId>
114       <version>1.1</version>
115     </dependency>
116     <dependency>
117       <groupId>junit</groupId>
118       <artifactId>junit</artifactId>
119       <scope>test</scope>
120     </dependency>
121     <dependency>
122       <groupId>org.mockito</groupId>
123       <artifactId>mockito-all</artifactId>
124       <version>1.9.5</version>
125       <scope>test</scope>
126     </dependency>
127     <dependency>
128       <groupId>org.powermock</groupId>
129       <artifactId>powermock-module-junit4</artifactId>
130       <version>1.5.6</version>
131       <scope>test</scope>
132     </dependency>
133     <dependency>
134       <groupId>org.powermock</groupId>
135       <artifactId>powermock-api-mockito</artifactId>
136       <version>1.5.6</version>
137       <scope>test</scope>
138     </dependency>
139   </dependencies>
140
141   <!-- project build -->
142   <build>
143     <plugins>
144       <plugin>
145         <groupId>org.apache.felix</groupId>
146         <artifactId>maven-bundle-plugin</artifactId>
147         <extensions>true</extensions>
148         <configuration>
149           <instructions>
150             <Import-Package>
151              org.apache.http.*;version="4.3.2",
152              *;resolution:=optional</Import-Package>
153              <Embed-Dependency>httpclient,httpcore,commons-lang,commons-exec;type=!pom;inline=false</Embed-Dependency>
154             <Export-Package>
155               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.*,
156               org.opendaylight.controller.config.yang.config.endpoint_provider,
157               org.opendaylight.groupbasedpolicy.endpoint,
158               org.opendaylight.groupbasedpolicy.resolver,
159               net.juniper.contrail.api.*;version="1.2"
160             </Export-Package>
161           </instructions>
162           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
163         </configuration>
164       </plugin>
165       <plugin>
166         <groupId>org.codehaus.mojo</groupId>
167         <artifactId>build-helper-maven-plugin</artifactId>
168         <executions>
169           <execution>
170             <goals>
171               <goal>add-source</goal>
172             </goals>
173             <phase>generate-sources</phase>
174             <configuration>
175               <sources>
176                 <source>target/generated-sources/sal</source>
177                 <source>target/generated-sources/config</source>
178                 <source>target/generated-resources/</source>
179               </sources>
180             </configuration>
181           </execution>
182         </executions>
183       </plugin>
184       <plugin>
185         <groupId>org.opendaylight.yangtools</groupId>
186         <artifactId>yang-maven-plugin</artifactId>
187         <dependencies>
188           <dependency>
189             <groupId>org.opendaylight.controller</groupId>
190             <artifactId>yang-jmx-generator-plugin</artifactId>
191             <version>0.3.0-SNAPSHOT</version>
192           </dependency>
193           <dependency>
194             <groupId>org.opendaylight.yangtools</groupId>
195             <artifactId>maven-sal-api-gen-plugin</artifactId>
196             <version>${yangtools.version}</version>
197             <type>jar</type>
198           </dependency>
199         </dependencies>
200         <executions>
201           <execution>
202             <goals>
203               <goal>generate-sources</goal>
204             </goals>
205             <configuration>
206               <codeGenerators>
207                 <generator>
208                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
209                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
210                   <additionalConfiguration>
211                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
212                   </additionalConfiguration>
213                 </generator>
214                 <generator>
215                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
216                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
217                 </generator>
218                 <generator>
219                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
220                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
221                 </generator>
222               </codeGenerators>
223               <inspectDependencies>true</inspectDependencies>
224             </configuration>
225           </execution>
226         </executions>
227       </plugin>
228       <plugin>
229         <groupId>org.apache.maven.plugins</groupId>
230         <artifactId>maven-surefire-plugin</artifactId>
231         <configuration>
232           <redirectTestOutputToFile>true</redirectTestOutputToFile>
233         </configuration>
234       </plugin>
235       <plugin>
236         <groupId>org.jacoco</groupId>
237         <artifactId>jacoco-maven-plugin</artifactId>
238         <executions>
239           <execution>
240             <id>pre-unit-test</id>
241             <goals>
242               <goal>prepare-agent</goal>
243             </goals>
244           </execution>
245           <execution>
246             <id>post-unit-test</id>
247             <phase>test</phase>
248             <goals>
249               <goal>report</goal>
250             </goals>
251             <configuration>
252               <dataFile>${sonar.jacoco.reportPath}</dataFile>
253               <includes>
254                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
255               </includes>
256             </configuration>
257           </execution>
258         </executions>
259       </plugin>
260     </plugins>
261   </build>
262 </project>
263