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