Fixed ClassCastException during decode.
[l2switch.git] / parent / 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"
3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4   <modelVersion>4.0.0</modelVersion>
5   <parent>
6     <groupId>org.opendaylight.odlparent</groupId>
7     <artifactId>odlparent</artifactId>
8     <version>1.4.2-SNAPSHOT</version>
9   </parent>
10   <groupId>org.opendaylight.l2switch</groupId>
11   <artifactId>l2switch-parent</artifactId>
12   <version>0.1.0-SNAPSHOT</version>
13   <packaging>pom</packaging>
14
15   <properties>
16     <codeGeneratorPath>src/main/yang-gen-code</codeGeneratorPath>
17     <configCodeGeneratorPath>src/main/yang-gen-config</configCodeGeneratorPath>
18     <nexus_proxy>http://nexus.opendaylight.org/content</nexus_proxy>
19     <mdsal.version>1.1-SNAPSHOT</mdsal.version>
20     <yangtools.version>0.6.2-SNAPSHOT</yangtools.version>
21     <ietf-yang-types.version>2010.09.24.4-SNAPSHOT</ietf-yang-types.version>
22     <sal.version>0.8.1-SNAPSHOT</sal.version>
23     <jung2.version>2.0.1</jung2.version>
24     <config.version>0.2.5-SNAPSHOT</config.version>
25     <openflow.plugin.version>0.0.3-SNAPSHOT</openflow.plugin.version>
26     <dlux.version>0.1.0-SNAPSHOT</dlux.version>
27   </properties>
28
29   <dependencyManagement>
30     <dependencies>
31       <!-- SAL bundles -->
32       <dependency>
33         <groupId>org.opendaylight.controller</groupId>
34         <artifactId>sal</artifactId>
35         <version>${sal.version}</version>
36       </dependency>
37       <dependency>
38         <groupId>org.opendaylight.controller</groupId>
39         <artifactId>sal-binding-api</artifactId>
40         <version>${mdsal.version}</version>
41       </dependency>
42       <dependency>
43         <groupId>org.opendaylight.controller</groupId>
44         <artifactId>sal-binding-config</artifactId>
45         <version>${mdsal.version}</version>
46       </dependency>
47       <dependency>
48         <groupId>org.opendaylight.controller.model</groupId>
49         <artifactId>model-inventory</artifactId>
50         <version>${mdsal.version}</version>
51       </dependency>
52       <dependency>
53         <groupId>org.opendaylight.controller.model</groupId>
54         <artifactId>model-topology</artifactId>
55         <version>${mdsal.version}</version>
56       </dependency>
57       <dependency>
58         <groupId>org.opendaylight.yangtools</groupId>
59         <artifactId>yang-binding</artifactId>
60         <version>${yangtools.version}</version>
61       </dependency>
62       <dependency>
63         <groupId>org.opendaylight.yangtools</groupId>
64         <artifactId>yang-common</artifactId>
65         <version>${yangtools.version}</version>
66       </dependency>
67       <dependency>
68         <groupId>org.opendaylight.yangtools.model</groupId>
69         <artifactId>ietf-yang-types</artifactId>
70         <version>${ietf-yang-types.version}</version>
71       </dependency>
72       <dependency>
73         <groupId>org.opendaylight.controller.model</groupId>
74         <artifactId>model-flow-service</artifactId>
75         <version>${mdsal.version}</version>
76       </dependency>
77       <dependency>
78         <groupId>org.opendaylight.controller.thirdparty</groupId>
79         <artifactId>net.sf.jung2</artifactId>
80         <version>${jung2.version}</version>
81       </dependency>
82     </dependencies>
83   </dependencyManagement>
84
85   <repositories>
86     <!-- OpenDayLight Repo Mirror -->
87     <repository>
88       <id>opendaylight-mirror</id>
89       <name>opendaylight-mirror</name>
90       <url>http://nexus.opendaylight.org/content/groups/public/</url>
91       <snapshots>
92         <enabled>false</enabled>
93       </snapshots>
94       <releases>
95         <enabled>true</enabled>
96         <updatePolicy>never</updatePolicy>
97       </releases>
98     </repository>
99
100     <!-- OpenDayLight Snapshot artifact -->
101     <repository>
102       <id>opendaylight-snapshot</id>
103       <name>opendaylight-snapshot</name>
104       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
105       <snapshots>
106         <enabled>true</enabled>
107       </snapshots>
108       <releases>
109         <enabled>false</enabled>
110       </releases>
111     </repository>
112
113   </repositories>
114
115   <distributionManagement>
116     <!-- OpenDayLight Released artifact -->
117     <repository>
118       <id>opendaylight-release</id>
119       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release/</url>
120     </repository>
121     <!-- OpenDayLight Snapshot artifact -->
122     <snapshotRepository>
123       <id>opendaylight-snapshot</id>
124       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
125     </snapshotRepository>
126     <site>
127       <id>${project.artifactId}-site</id>
128       <url>./</url>
129     </site>
130   </distributionManagement>
131
132   <build>
133       <pluginManagement>
134           <plugins>
135               <plugin>
136                   <groupId>org.apache.maven.plugins</groupId>
137                   <artifactId>maven-compiler-plugin</artifactId>
138                   <version>${maven.compile.plugin.version}</version>
139                   <configuration>
140                       <source>${java.version.source}</source>
141                       <target>${java.version.target}</target>
142                   </configuration>
143               </plugin>
144
145               <plugin>
146                 <groupId>org.apache.maven.plugins</groupId>
147                 <artifactId>maven-checkstyle-plugin</artifactId>
148                 <version>${checkstyle.version}</version>
149                 <configuration>
150                   <failsOnError>true</failsOnError>
151                   <configLocation>controller/checkstyle.xml</configLocation>
152                   <consoleOutput>true</consoleOutput>
153                   <includeTestSourceDirectory>true</includeTestSourceDirectory>
154                   <sourceDirectory>${project.basedir}</sourceDirectory>
155                   <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
156                   <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,\/,**\/xtend-gen\/,**\/yang-gen-code\/</excludes>
157                 </configuration>
158                 <dependencies>
159                   <dependency>
160                     <groupId>org.opendaylight.controller</groupId>
161                     <artifactId>checkstyle</artifactId>
162                     <version>0.0.3-SNAPSHOT</version>
163                   </dependency>
164                 </dependencies>
165                 <executions>
166                   <execution>
167                     <id>check</id>
168                     <goals>
169                       <goal>check</goal>
170                     </goals>
171                     <phase>process-sources</phase>
172                   </execution>
173                 </executions>
174               </plugin>
175
176               <!--  tells eclipse to import these folders into the package explorer as "source" folders
177                     which allows eclipse to resolve the classes correctly during an eclipse build -->
178               <plugin>
179                   <groupId>org.codehaus.mojo</groupId>
180                   <artifactId>build-helper-maven-plugin</artifactId>
181                   <version>1.8</version>
182                   <executions>
183                       <execution>
184                           <id>add-source</id>
185                           <goals>
186                               <goal>add-source</goal>
187                           </goals>
188                           <phase>generate-sources</phase>
189                           <configuration>
190                               <sources>
191                                   <source>src/main/yang</source>
192                                   <source>${codeGeneratorPath}</source>
193                               </sources>
194                           </configuration>
195                       </execution>
196                   </executions>
197               </plugin>
198               <!--  cleans up auto generated code  -->
199               <plugin>
200                   <artifactId>maven-clean-plugin</artifactId>
201                   <configuration>
202                       <filesets>
203                           <fileset>
204                               <directory>${codeGeneratorPath}</directory>
205                               <includes>
206                                   <include>**</include>
207                               </includes>
208                           </fileset>
209                       </filesets>
210                   </configuration>
211               </plugin>
212
213               <!-- Ignore/Execute plugin execution -->
214               <plugin>
215                   <groupId>org.eclipse.m2e</groupId>
216                   <artifactId>lifecycle-mapping</artifactId>
217                   <version>1.0.0</version>
218                   <configuration>
219                       <lifecycleMappingMetadata>
220                           <pluginExecutions>
221                               <pluginExecution>
222                                   <pluginExecutionFilter>
223                                       <groupId>org.codehaus.mojo</groupId>
224                                       <artifactId>properties-maven-plugin</artifactId>
225                                       <versionRange>[0.0,)</versionRange>
226                                       <goals>
227                                           <goal>set-system-properties</goal>
228                                       </goals>
229                                   </pluginExecutionFilter>
230                                   <action>
231                                       <ignore />
232                                   </action>
233                               </pluginExecution>
234                               <pluginExecution>
235                                   <pluginExecutionFilter>
236                                       <groupId>org.codehaus.enunciate</groupId>
237                                       <artifactId>maven-enunciate-plugin</artifactId>
238                                       <versionRange>[0.0,)</versionRange>
239                                       <goals>
240                                           <goal>docs</goal>
241                                       </goals>
242                                   </pluginExecutionFilter>
243                                   <action>
244                                       <ignore />
245                                   </action>
246                               </pluginExecution>
247                               <pluginExecution>
248                                   <pluginExecutionFilter>
249                                       <groupId>org.jacoco</groupId>
250                                       <artifactId>jacoco-maven-plugin</artifactId>
251                                       <versionRange>[0.0,)</versionRange>
252                                       <goals>
253                                           <goal>prepare-agent</goal>
254                                           <goal>pre-test</goal>
255                                           <goal>post-test</goal>
256                                       </goals>
257                                   </pluginExecutionFilter>
258                                   <action>
259                                       <ignore />
260                                   </action>
261                               </pluginExecution>
262                               <pluginExecution>
263                                   <pluginExecutionFilter>
264                                       <groupId>org.ops4j.pax.exam</groupId>
265                                       <artifactId>maven-paxexam-plugin</artifactId>
266                                       <versionRange>[1.2.4,)</versionRange>
267                                       <goals>
268                                           <goal>generate-depends-file</goal>
269                                       </goals>
270                                   </pluginExecutionFilter>
271                                   <action>
272                                       <execute>
273                                           <runOnIncremental>false</runOnIncremental>
274                                       </execute>
275                                   </action>
276                               </pluginExecution>
277                               <pluginExecution>
278                                   <pluginExecutionFilter>
279                                       <groupId>org.apache.maven.plugins</groupId>
280                                       <artifactId>maven-checkstyle-plugin</artifactId>
281                                       <versionRange>[2.0,)</versionRange>
282                                       <goals>
283                                           <goal>check</goal>
284                                       </goals>
285                                   </pluginExecutionFilter>
286                                   <action>
287                                       <ignore />
288                                   </action>
289                               </pluginExecution>
290                               <pluginExecution>
291                                   <pluginExecutionFilter>
292                                       <groupId>org.opendaylight.yangtools</groupId>
293                                       <artifactId>yang-maven-plugin</artifactId>
294                                       <versionRange>[0.5,)</versionRange>
295                                       <goals>
296                                           <goal>generate-sources</goal>
297                                       </goals>
298                                   </pluginExecutionFilter>
299                                   <action>
300                                       <execute />
301                                   </action>
302                               </pluginExecution>
303                               <pluginExecution>
304                                   <pluginExecutionFilter>
305                                       <groupId>org.codehaus.groovy.maven</groupId>
306                                       <artifactId>gmaven-plugin</artifactId>
307                                       <versionRange>1.0</versionRange>
308                                       <goals>
309                                           <goal>execute</goal>
310                                       </goals>
311                                   </pluginExecutionFilter>
312                                   <action>
313                                       <ignore />
314                                   </action>
315                               </pluginExecution>
316                               <pluginExecution>
317                                   <pluginExecutionFilter>
318                                       <groupId>org.apache.maven.plugins</groupId>
319                                       <artifactId>maven-enforcer-plugin</artifactId>
320                                       <versionRange>${enforcer.version}</versionRange>
321                                       <goals>
322                                           <goal>enforce</goal>
323                                       </goals>
324                                   </pluginExecutionFilter>
325                                   <action>
326                                       <ignore />
327                                   </action>
328                               </pluginExecution>
329                           </pluginExecutions>
330                       </lifecycleMappingMetadata>
331                   </configuration>
332               </plugin>
333           </plugins>
334       </pluginManagement>
335       <plugins>
336           <plugin>
337             <groupId>org.codehaus.mojo</groupId>
338             <artifactId>build-helper-maven-plugin</artifactId>
339           </plugin>
340           <plugin>
341               <groupId>org.apache.maven.plugins</groupId>
342               <artifactId>maven-checkstyle-plugin</artifactId>
343           </plugin>
344       </plugins>
345   </build>
346
347
348 </project>