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