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