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>
6 <groupId>org.opendaylight.odlparent</groupId>
7 <artifactId>odlparent</artifactId>
8 <version>1.4.2-SNAPSHOT</version>
10 <groupId>org.opendaylight.l2switch</groupId>
11 <artifactId>l2switch-parent</artifactId>
12 <version>0.1.0-SNAPSHOT</version>
13 <packaging>pom</packaging>
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>
37 <dependencyManagement>
41 <groupId>org.opendaylight.controller</groupId>
42 <artifactId>sal-binding-api</artifactId>
43 <version>${mdsal.version}</version>
46 <groupId>org.opendaylight.controller</groupId>
47 <artifactId>sal-binding-config</artifactId>
48 <version>${mdsal.version}</version>
51 <groupId>org.opendaylight.controller.model</groupId>
52 <artifactId>model-inventory</artifactId>
53 <version>${mdsal.version}</version>
56 <groupId>org.opendaylight.controller.model</groupId>
57 <artifactId>model-topology</artifactId>
58 <version>${mdsal.version}</version>
61 <groupId>org.opendaylight.yangtools</groupId>
62 <artifactId>yang-binding</artifactId>
63 <version>${yangtools.version}</version>
66 <groupId>org.opendaylight.yangtools</groupId>
67 <artifactId>yang-common</artifactId>
68 <version>${yangtools.version}</version>
71 <groupId>org.opendaylight.yangtools.model</groupId>
72 <artifactId>ietf-yang-types</artifactId>
73 <version>${ietf-yang-types.version}</version>
76 <groupId>org.opendaylight.controller.model</groupId>
77 <artifactId>model-flow-service</artifactId>
78 <version>${mdsal.version}</version>
81 <groupId>org.opendaylight.controller.thirdparty</groupId>
82 <artifactId>net.sf.jung2</artifactId>
83 <version>${jung2.version}</version>
86 <groupId>org.opendaylight.controller</groupId>
87 <artifactId>config-api</artifactId>
88 <version>${config.version}</version>
91 </dependencyManagement>
94 <!-- OpenDayLight Repo Mirror -->
96 <id>opendaylight-mirror</id>
97 <name>opendaylight-mirror</name>
98 <url>http://nexus.opendaylight.org/content/groups/public/</url>
100 <enabled>false</enabled>
103 <enabled>true</enabled>
104 <updatePolicy>never</updatePolicy>
108 <!-- OpenDayLight Snapshot artifact -->
110 <id>opendaylight-snapshot</id>
111 <name>opendaylight-snapshot</name>
112 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
114 <enabled>true</enabled>
117 <enabled>false</enabled>
123 <distributionManagement>
124 <!-- OpenDayLight Released artifact -->
126 <id>opendaylight-release</id>
127 <url>${nexusproxy}/repositories/opendaylight.release/</url>
129 <!-- OpenDayLight Snapshot artifact -->
131 <id>opendaylight-snapshot</id>
132 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
133 </snapshotRepository>
135 <id>${project.artifactId}-site</id>
138 </distributionManagement>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-compiler-plugin</artifactId>
146 <version>${maven.compile.plugin.version}</version>
148 <source>${java.version.source}</source>
149 <target>${java.version.target}</target>
154 <groupId>org.apache.maven.plugins</groupId>
155 <artifactId>maven-checkstyle-plugin</artifactId>
156 <version>${checkstyle.version}</version>
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>
168 <groupId>org.opendaylight.controller</groupId>
169 <artifactId>checkstyle</artifactId>
170 <version>0.0.3-SNAPSHOT</version>
179 <phase>process-sources</phase>
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 -->
187 <groupId>org.codehaus.mojo</groupId>
188 <artifactId>build-helper-maven-plugin</artifactId>
189 <version>1.8</version>
194 <goal>add-source</goal>
196 <phase>generate-sources</phase>
199 <source>src/main/yang</source>
200 <source>${codeGeneratorPath}</source>
206 <!-- cleans up auto generated code -->
208 <artifactId>maven-clean-plugin</artifactId>
212 <directory>${codeGeneratorPath}</directory>
214 <include>**</include>
221 <!-- Ignore/Execute plugin execution -->
223 <groupId>org.eclipse.m2e</groupId>
224 <artifactId>lifecycle-mapping</artifactId>
225 <version>1.0.0</version>
227 <lifecycleMappingMetadata>
230 <pluginExecutionFilter>
231 <groupId>org.codehaus.mojo</groupId>
232 <artifactId>properties-maven-plugin</artifactId>
233 <versionRange>[0.0,)</versionRange>
235 <goal>set-system-properties</goal>
237 </pluginExecutionFilter>
243 <pluginExecutionFilter>
244 <groupId>org.codehaus.enunciate</groupId>
245 <artifactId>maven-enunciate-plugin</artifactId>
246 <versionRange>[0.0,)</versionRange>
250 </pluginExecutionFilter>
256 <pluginExecutionFilter>
257 <groupId>org.jacoco</groupId>
258 <artifactId>jacoco-maven-plugin</artifactId>
259 <versionRange>[0.0,)</versionRange>
261 <goal>prepare-agent</goal>
262 <goal>pre-test</goal>
263 <goal>post-test</goal>
265 </pluginExecutionFilter>
271 <pluginExecutionFilter>
272 <groupId>org.ops4j.pax.exam</groupId>
273 <artifactId>maven-paxexam-plugin</artifactId>
274 <versionRange>[1.2.4,)</versionRange>
276 <goal>generate-depends-file</goal>
278 </pluginExecutionFilter>
281 <runOnIncremental>false</runOnIncremental>
286 <pluginExecutionFilter>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-checkstyle-plugin</artifactId>
289 <versionRange>[2.0,)</versionRange>
293 </pluginExecutionFilter>
299 <pluginExecutionFilter>
300 <groupId>org.opendaylight.yangtools</groupId>
301 <artifactId>yang-maven-plugin</artifactId>
302 <versionRange>[0.5,)</versionRange>
304 <goal>generate-sources</goal>
306 </pluginExecutionFilter>
312 <pluginExecutionFilter>
313 <groupId>org.codehaus.groovy.maven</groupId>
314 <artifactId>gmaven-plugin</artifactId>
315 <versionRange>1.0</versionRange>
319 </pluginExecutionFilter>
325 <pluginExecutionFilter>
326 <groupId>org.apache.maven.plugins</groupId>
327 <artifactId>maven-enforcer-plugin</artifactId>
328 <versionRange>${enforcer.version}</versionRange>
332 </pluginExecutionFilter>
338 </lifecycleMappingMetadata>
342 <groupId>org.apache.felix</groupId>
343 <artifactId>maven-bundle-plugin</artifactId>
344 <version>${bundle.plugin.version}</version>
350 <groupId>org.codehaus.mojo</groupId>
351 <artifactId>build-helper-maven-plugin</artifactId>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-checkstyle-plugin</artifactId>