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