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.osgi</groupId>
77       <artifactId>org.osgi.core</artifactId>
78     </dependency>
79     <dependency>
80       <groupId>commons-lang</groupId>
81       <artifactId>commons-lang</artifactId>
82       <version>2.6</version>
83     </dependency>
84     <dependency>
85       <groupId>org.apache.commons</groupId>
86       <artifactId>commons-exec</artifactId>
87       <version>1.1</version>
88     </dependency>
89     <dependency>
90       <groupId>junit</groupId>
91       <artifactId>junit</artifactId>
92       <scope>test</scope>
93     </dependency>
94     <dependency>
95       <groupId>org.mockito</groupId>
96       <artifactId>mockito-all</artifactId>
97       <version>1.9.5</version>
98       <scope>test</scope>
99     </dependency>
100   </dependencies>
101
102   <!-- project build -->
103   <build>
104     <plugins>
105       <plugin>
106         <groupId>org.apache.felix</groupId>
107         <artifactId>maven-bundle-plugin</artifactId>
108         <extensions>true</extensions>
109         <configuration>
110           <instructions>
111             <Import-Package>
112              org.apache.http.*;version="4.3.2",
113              *;resolution:=optional</Import-Package>
114              <Embed-Dependency>httpclient,httpcore,commons-lang,commons-exec;type=!pom;inline=false</Embed-Dependency>
115             <Export-Package>
116               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.*,
117               org.opendaylight.controller.config.yang.config.endpoint_provider,
118               org.opendaylight.groupbasedpolicy.endpoint,
119               org.opendaylight.groupbasedpolicy.resolver,
120               org.opendaylight.groupbasedpolicy.util,
121               org.opendaylight.groupbasedpolicy.jsonrpc,
122             </Export-Package>
123           </instructions>
124           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
125         </configuration>
126       </plugin>
127       <plugin>
128         <groupId>org.codehaus.mojo</groupId>
129         <artifactId>build-helper-maven-plugin</artifactId>
130         <executions>
131           <execution>
132             <goals>
133               <goal>add-source</goal>
134             </goals>
135             <phase>generate-sources</phase>
136             <configuration>
137               <sources>
138                 <source>target/generated-sources/sal</source>
139                 <source>target/generated-sources/config</source>
140                 <source>target/generated-resources/</source>
141               </sources>
142             </configuration>
143           </execution>
144         </executions>
145       </plugin>
146       <plugin>
147         <groupId>org.opendaylight.yangtools</groupId>
148         <artifactId>yang-maven-plugin</artifactId>
149         <dependencies>
150           <dependency>
151             <groupId>org.opendaylight.controller</groupId>
152             <artifactId>yang-jmx-generator-plugin</artifactId>
153             <version>0.3.0-SNAPSHOT</version>
154           </dependency>
155           <dependency>
156             <groupId>org.opendaylight.yangtools</groupId>
157             <artifactId>maven-sal-api-gen-plugin</artifactId>
158             <version>${yangtools.version}</version>
159             <type>jar</type>
160           </dependency>
161         </dependencies>
162         <executions>
163           <execution>
164             <goals>
165               <goal>generate-sources</goal>
166             </goals>
167             <configuration>
168               <codeGenerators>
169                 <generator>
170                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
171                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
172                   <additionalConfiguration>
173                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
174                   </additionalConfiguration>
175                 </generator>
176                 <generator>
177                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
178                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
179                 </generator>
180                 <generator>
181                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
182                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
183                 </generator>
184               </codeGenerators>
185               <inspectDependencies>true</inspectDependencies>
186             </configuration>
187           </execution>
188         </executions>
189       </plugin>
190       <plugin>
191         <groupId>org.apache.maven.plugins</groupId>
192         <artifactId>maven-surefire-plugin</artifactId>
193         <configuration>
194           <redirectTestOutputToFile>true</redirectTestOutputToFile>
195         </configuration>
196       </plugin>
197       <plugin>
198         <groupId>org.jacoco</groupId>
199         <artifactId>jacoco-maven-plugin</artifactId>
200         <executions>
201           <execution>
202             <id>pre-unit-test</id>
203             <goals>
204               <goal>prepare-agent</goal>
205             </goals>
206           </execution>
207           <execution>
208             <id>post-unit-test</id>
209             <phase>test</phase>
210             <goals>
211               <goal>report</goal>
212             </goals>
213             <configuration>
214               <dataFile>${sonar.jacoco.reportPath}</dataFile>
215               <includes>
216                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
217               </includes>
218             </configuration>
219           </execution>
220         </executions>
221       </plugin>
222     </plugins>
223   </build>
224 </project>
225