Port of JSONRPC lib and Server from OVSDB project. Changes include:
[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       <version>${jackson.version}</version>
34     </dependency>
35     <dependency>
36       <groupId>com.fasterxml.jackson.core</groupId>
37       <artifactId>jackson-databind</artifactId>
38       <version>${jackson.version}</version>
39     </dependency>
40     <dependency>
41       <groupId>com.google.guava</groupId>
42       <artifactId>guava</artifactId>
43     </dependency>
44     <dependency>
45       <groupId>io.netty</groupId>
46       <artifactId>netty-all</artifactId>
47       <version>4.0.10.Final</version>
48     </dependency>
49     <dependency>
50       <groupId>org.opendaylight.controller</groupId>
51       <artifactId>config-api</artifactId>
52     </dependency>
53     <dependency>
54       <groupId>org.opendaylight.controller</groupId>
55       <artifactId>sal-binding-api</artifactId>
56     </dependency>
57     <dependency>
58       <groupId>org.opendaylight.controller</groupId>
59       <artifactId>sal-binding-config</artifactId>
60     </dependency>
61     <dependency>
62       <groupId>org.opendaylight.controller</groupId>
63       <artifactId>sal-common-util</artifactId>
64     </dependency>
65     <dependency>
66       <groupId>org.opendaylight.controller.model</groupId>
67       <artifactId>model-inventory</artifactId>
68     </dependency>
69     <dependency>
70       <groupId>org.opendaylight.yangtools</groupId>
71       <artifactId>yang-binding</artifactId>
72     </dependency>
73     <dependency>
74       <groupId>org.opendaylight.yangtools</groupId>
75       <artifactId>yang-common</artifactId>
76     </dependency>
77     <dependency>
78       <groupId>org.osgi</groupId>
79       <artifactId>org.osgi.core</artifactId>
80     </dependency>
81
82     <dependency>
83       <groupId>com.fasterxml.jackson.core</groupId>
84       <artifactId>jackson-annotations</artifactId>
85       <version>${jackson.version}</version>
86       <scope>test</scope>
87     </dependency>
88
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       <scope>test</scope>
98     </dependency>
99   </dependencies>
100
101   <!-- Project reporting -->
102   <reporting>
103     <plugins>
104       <!-- Code coverage analysis -->
105       <plugin>
106         <groupId>org.codehaus.mojo</groupId>
107         <artifactId>cobertura-maven-plugin</artifactId>
108         <version>2.6</version>
109       </plugin>
110     </plugins>
111   </reporting>
112
113   <!-- project build -->
114   <build>
115     <plugins>
116       <plugin>
117         <groupId>org.apache.felix</groupId>
118         <artifactId>maven-bundle-plugin</artifactId>
119         <extensions>true</extensions>
120         <configuration>
121           <instructions>
122             <Import-Package>*</Import-Package>
123             <Export-Package>org.opendaylight.controller.config.yang.config.endpoint_provider</Export-Package>
124           </instructions>
125           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
126         </configuration>
127       </plugin>
128       <!-- Code coverage analysis -->
129       <plugin>
130         <groupId>org.codehaus.mojo</groupId>
131         <artifactId>cobertura-maven-plugin</artifactId>
132         <version>2.6</version>
133         <configuration>
134           <instrumentation>
135             <excludes>
136               <exclude>org/opendaylight/yang/**/*.class</exclude>
137               <exclude>org/opendaylight/controller/config/yang/**/*.class</exclude>
138             </excludes>
139           </instrumentation>
140         </configuration>
141       </plugin>
142       <plugin>
143         <groupId>org.apache.maven.plugins</groupId>
144         <artifactId>maven-surefire-plugin</artifactId>
145         <configuration>
146           <redirectTestOutputToFile>true</redirectTestOutputToFile>
147           <!-- needed for cobertura -->
148           <argLine>-XX:-UseSplitVerifier</argLine>
149         </configuration>
150       </plugin>
151       <plugin>
152         <groupId>org.codehaus.mojo</groupId>
153         <artifactId>build-helper-maven-plugin</artifactId>
154         <executions>
155           <execution>
156             <goals>
157               <goal>add-source</goal>
158             </goals>
159             <phase>generate-sources</phase>
160             <configuration>
161               <sources>
162                 <source>target/generated-sources/sal</source>
163                 <source>target/generated-sources/config</source>
164                 <source>target/generated-resources/</source>
165               </sources>
166             </configuration>
167           </execution>
168         </executions>
169       </plugin>
170       <plugin>
171         <groupId>org.opendaylight.yangtools</groupId>
172         <artifactId>yang-maven-plugin</artifactId>
173         <dependencies>
174           <dependency>
175             <groupId>org.opendaylight.controller</groupId>
176             <artifactId>yang-jmx-generator-plugin</artifactId>
177             <version>0.2.5-SNAPSHOT</version>
178           </dependency>
179           <dependency>
180             <groupId>org.opendaylight.yangtools</groupId>
181             <artifactId>maven-sal-api-gen-plugin</artifactId>
182             <version>${yangtools.version}</version>
183             <type>jar</type>
184           </dependency>
185         </dependencies>
186         <executions>
187           <execution>
188             <goals>
189               <goal>generate-sources</goal>
190             </goals>
191             <configuration>
192               <codeGenerators>
193                 <generator>
194                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
195                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
196                   <additionalConfiguration>
197                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
198                   </additionalConfiguration>
199                 </generator>
200                 <generator>
201                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
202                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
203                 </generator>
204                 <generator>
205                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
206                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
207                 </generator>
208               </codeGenerators>
209               <inspectDependencies>true</inspectDependencies>
210             </configuration>
211           </execution>
212         </executions>
213       </plugin>
214     </plugins>
215   </build>
216 </project>