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