Separating renderers into features.
[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             </Export-Package>
122           </instructions>
123           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
124         </configuration>
125       </plugin>
126       <plugin>
127         <groupId>org.codehaus.mojo</groupId>
128         <artifactId>build-helper-maven-plugin</artifactId>
129         <executions>
130           <execution>
131             <goals>
132               <goal>add-source</goal>
133             </goals>
134             <phase>generate-sources</phase>
135             <configuration>
136               <sources>
137                 <source>target/generated-sources/sal</source>
138                 <source>target/generated-sources/config</source>
139                 <source>target/generated-resources/</source>
140               </sources>
141             </configuration>
142           </execution>
143         </executions>
144       </plugin>
145       <plugin>
146         <groupId>org.opendaylight.yangtools</groupId>
147         <artifactId>yang-maven-plugin</artifactId>
148         <dependencies>
149           <dependency>
150             <groupId>org.opendaylight.controller</groupId>
151             <artifactId>yang-jmx-generator-plugin</artifactId>
152             <version>0.3.0-SNAPSHOT</version>
153           </dependency>
154           <dependency>
155             <groupId>org.opendaylight.yangtools</groupId>
156             <artifactId>maven-sal-api-gen-plugin</artifactId>
157             <version>${yangtools.version}</version>
158             <type>jar</type>
159           </dependency>
160         </dependencies>
161         <executions>
162           <execution>
163             <goals>
164               <goal>generate-sources</goal>
165             </goals>
166             <configuration>
167               <codeGenerators>
168                 <generator>
169                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
170                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
171                   <additionalConfiguration>
172                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
173                   </additionalConfiguration>
174                 </generator>
175                 <generator>
176                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
177                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
178                 </generator>
179                 <generator>
180                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
181                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
182                 </generator>
183               </codeGenerators>
184               <inspectDependencies>true</inspectDependencies>
185             </configuration>
186           </execution>
187         </executions>
188       </plugin>
189       <plugin>
190         <groupId>org.apache.maven.plugins</groupId>
191         <artifactId>maven-surefire-plugin</artifactId>
192         <configuration>
193           <redirectTestOutputToFile>true</redirectTestOutputToFile>
194         </configuration>
195       </plugin>
196       <plugin>
197         <groupId>org.jacoco</groupId>
198         <artifactId>jacoco-maven-plugin</artifactId>
199         <executions>
200           <execution>
201             <id>pre-unit-test</id>
202             <goals>
203               <goal>prepare-agent</goal>
204             </goals>
205           </execution>
206           <execution>
207             <id>post-unit-test</id>
208             <phase>test</phase>
209             <goals>
210               <goal>report</goal>
211             </goals>
212             <configuration>
213               <dataFile>${sonar.jacoco.reportPath}</dataFile>
214               <includes>
215                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
216               </includes>
217             </configuration>
218           </execution>
219         </executions>
220       </plugin>
221     </plugins>
222   </build>
223 </project>
224