51abcbce4f07b1661b6ca20e172aeed84a95a109
[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-management</artifactId>
90     </dependency>
91     <dependency>
92       <groupId>org.opendaylight.controller.model</groupId>
93       <artifactId>model-inventory</artifactId>
94     </dependency>
95     <dependency>
96       <groupId>org.osgi</groupId>
97       <artifactId>org.osgi.core</artifactId>
98     </dependency>
99
100     <dependency>
101       <groupId>junit</groupId>
102       <artifactId>junit</artifactId>
103       <scope>test</scope>
104     </dependency>
105     <dependency>
106       <groupId>org.mockito</groupId>
107       <artifactId>mockito-all</artifactId>
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>*</Import-Package>
122             <Export-Package>org.opendaylight.controller.config.yang.config.endpoint_provider</Export-Package>
123           </instructions>
124           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
125         </configuration>
126       </plugin>
127       <plugin>
128         <groupId>org.apache.maven.plugins</groupId>
129         <artifactId>maven-surefire-plugin</artifactId>
130         <configuration>
131           <redirectTestOutputToFile>true</redirectTestOutputToFile>
132           <!-- needed for cobertura -->
133           <argLine>-XX:-UseSplitVerifier</argLine>
134         </configuration>
135       </plugin>
136       <plugin>
137         <groupId>org.codehaus.mojo</groupId>
138         <artifactId>build-helper-maven-plugin</artifactId>
139         <executions>
140           <execution>
141             <goals>
142               <goal>add-source</goal>
143             </goals>
144             <phase>generate-sources</phase>
145             <configuration>
146               <sources>
147                 <source>target/generated-sources/sal</source>
148                 <source>target/generated-sources/config</source>
149                 <source>target/generated-resources/</source>
150               </sources>
151             </configuration>
152           </execution>
153         </executions>
154       </plugin>
155       <!-- Code coverage analysis -->
156       <plugin>
157         <groupId>org.codehaus.mojo</groupId>
158         <artifactId>cobertura-maven-plugin</artifactId>
159         <version>2.6</version>
160         <configuration>
161           <instrumentation>
162             <excludes>
163               <exclude>org/opendaylight/yang/**/*.class</exclude>
164               <exclude>org/opendaylight/controller/config/yang/**/*.class</exclude>
165             </excludes>
166           </instrumentation>
167         </configuration>
168       </plugin>
169       <plugin>
170         <groupId>org.opendaylight.yangtools</groupId>
171         <artifactId>yang-maven-plugin</artifactId>
172         <dependencies>
173           <dependency>
174             <groupId>org.opendaylight.controller</groupId>
175             <artifactId>yang-jmx-generator-plugin</artifactId>
176             <version>0.2.5-SNAPSHOT</version>
177           </dependency>
178           <dependency>
179             <groupId>org.opendaylight.yangtools</groupId>
180             <artifactId>maven-sal-api-gen-plugin</artifactId>
181             <version>${yangtools.version}</version>
182             <type>jar</type>
183           </dependency>
184         </dependencies>
185         <executions>
186           <execution>
187             <goals>
188               <goal>generate-sources</goal>
189             </goals>
190             <configuration>
191               <codeGenerators>
192                 <generator>
193                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
194                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
195                   <additionalConfiguration>
196                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
197                   </additionalConfiguration>
198                 </generator>
199                 <generator>
200                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
201                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
202                 </generator>
203                 <generator>
204                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
205                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
206                 </generator>
207               </codeGenerators>
208               <inspectDependencies>true</inspectDependencies>
209             </configuration>
210           </execution>
211         </executions>
212       </plugin>
213     </plugins>
214   </build>
215
216   <!-- Project reporting -->
217   <reporting>
218     <plugins>
219       <!-- Code coverage analysis -->
220       <plugin>
221         <groupId>org.codehaus.mojo</groupId>
222         <artifactId>cobertura-maven-plugin</artifactId>
223         <version>2.6</version>
224         <configuration>
225           <formats>
226             <format>html</format>
227             <format>xml</format>
228           </formats>
229         </configuration>
230       </plugin>
231     </plugins>
232   </reporting>
233 </project>