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