SFC+GBP Integration
[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     <dependency>
140       <groupId>org.opendaylight.sfc</groupId>
141       <artifactId>sfc-model</artifactId>
142       <version>${sfc.version}</version>
143     </dependency>
144     <dependency>
145       <groupId>org.opendaylight.sfc</groupId>
146       <artifactId>sfc-provider</artifactId>
147       <version>${sfc.version}</version>
148     </dependency>
149   </dependencies>
150
151   <!-- project build -->
152   <build>
153     <plugins>
154       <plugin>
155         <groupId>org.apache.felix</groupId>
156         <artifactId>maven-bundle-plugin</artifactId>
157         <extensions>true</extensions>
158         <configuration>
159           <instructions>
160             <Import-Package>
161              org.apache.http.*;version="4.3.2",
162              *;resolution:=optional</Import-Package>
163              <Embed-Dependency>httpclient,httpcore,commons-lang,commons-exec;type=!pom;inline=false</Embed-Dependency>
164             <Export-Package>
165               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.*,
166               org.opendaylight.controller.config.yang.config.endpoint_provider,
167               org.opendaylight.groupbasedpolicy.endpoint,
168               org.opendaylight.groupbasedpolicy.resolver,
169               net.juniper.contrail.api.*;version="1.2"
170             </Export-Package>
171           </instructions>
172           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
173         </configuration>
174       </plugin>
175       <plugin>
176         <groupId>org.codehaus.mojo</groupId>
177         <artifactId>build-helper-maven-plugin</artifactId>
178         <executions>
179           <execution>
180             <goals>
181               <goal>add-source</goal>
182             </goals>
183             <phase>generate-sources</phase>
184             <configuration>
185               <sources>
186                 <source>target/generated-sources/sal</source>
187                 <source>target/generated-sources/config</source>
188                 <source>target/generated-resources/</source>
189               </sources>
190             </configuration>
191           </execution>
192         </executions>
193       </plugin>
194       <plugin>
195         <groupId>org.opendaylight.yangtools</groupId>
196         <artifactId>yang-maven-plugin</artifactId>
197         <dependencies>
198           <dependency>
199             <groupId>org.opendaylight.controller</groupId>
200             <artifactId>yang-jmx-generator-plugin</artifactId>
201             <version>0.3.0-SNAPSHOT</version>
202           </dependency>
203           <dependency>
204             <groupId>org.opendaylight.yangtools</groupId>
205             <artifactId>maven-sal-api-gen-plugin</artifactId>
206             <version>${yangtools.version}</version>
207             <type>jar</type>
208           </dependency>
209         </dependencies>
210         <executions>
211           <execution>
212             <goals>
213               <goal>generate-sources</goal>
214             </goals>
215             <configuration>
216               <codeGenerators>
217                 <generator>
218                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
219                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
220                   <additionalConfiguration>
221                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
222                   </additionalConfiguration>
223                 </generator>
224                 <generator>
225                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
226                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
227                 </generator>
228                 <generator>
229                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
230                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
231                 </generator>
232               </codeGenerators>
233               <inspectDependencies>true</inspectDependencies>
234             </configuration>
235           </execution>
236         </executions>
237       </plugin>
238       <plugin>
239         <groupId>org.apache.maven.plugins</groupId>
240         <artifactId>maven-surefire-plugin</artifactId>
241         <configuration>
242           <redirectTestOutputToFile>true</redirectTestOutputToFile>
243         </configuration>
244       </plugin>
245       <plugin>
246         <groupId>org.jacoco</groupId>
247         <artifactId>jacoco-maven-plugin</artifactId>
248         <executions>
249           <execution>
250             <id>pre-unit-test</id>
251             <goals>
252               <goal>prepare-agent</goal>
253             </goals>
254           </execution>
255           <execution>
256             <id>post-unit-test</id>
257             <phase>test</phase>
258             <goals>
259               <goal>report</goal>
260             </goals>
261             <configuration>
262               <dataFile>${sonar.jacoco.reportPath}</dataFile>
263               <includes>
264                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
265               </includes>
266             </configuration>
267           </execution>
268         </executions>
269       </plugin>
270     </plugins>
271   </build>
272 </project>
273