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.l2switchmain.configfile>58-l2switchmain.xml</config.l2switchmain.configfile>
36 <dependencyManagement>
40 <groupId>org.opendaylight.controller</groupId>
41 <artifactId>sal-binding-api</artifactId>
42 <version>${mdsal.version}</version>
45 <groupId>org.opendaylight.controller</groupId>
46 <artifactId>sal-binding-config</artifactId>
47 <version>${mdsal.version}</version>
50 <groupId>org.opendaylight.controller.model</groupId>
51 <artifactId>model-inventory</artifactId>
52 <version>${mdsal.version}</version>
55 <groupId>org.opendaylight.controller.model</groupId>
56 <artifactId>model-topology</artifactId>
57 <version>${mdsal.version}</version>
60 <groupId>org.opendaylight.yangtools</groupId>
61 <artifactId>yang-binding</artifactId>
62 <version>${yangtools.version}</version>
65 <groupId>org.opendaylight.yangtools</groupId>
66 <artifactId>yang-common</artifactId>
67 <version>${yangtools.version}</version>
70 <groupId>org.opendaylight.yangtools.model</groupId>
71 <artifactId>ietf-yang-types</artifactId>
72 <version>${ietf-yang-types.version}</version>
75 <groupId>org.opendaylight.controller.model</groupId>
76 <artifactId>model-flow-service</artifactId>
77 <version>${mdsal.version}</version>
80 <groupId>org.opendaylight.controller.thirdparty</groupId>
81 <artifactId>net.sf.jung2</artifactId>
82 <version>${jung2.version}</version>
85 </dependencyManagement>
88 <!-- OpenDayLight Repo Mirror -->
90 <id>opendaylight-mirror</id>
91 <name>opendaylight-mirror</name>
92 <url>http://nexus.opendaylight.org/content/groups/public/</url>
94 <enabled>false</enabled>
97 <enabled>true</enabled>
98 <updatePolicy>never</updatePolicy>
102 <!-- OpenDayLight Snapshot artifact -->
104 <id>opendaylight-snapshot</id>
105 <name>opendaylight-snapshot</name>
106 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
108 <enabled>true</enabled>
111 <enabled>false</enabled>
117 <distributionManagement>
118 <!-- OpenDayLight Released artifact -->
120 <id>opendaylight-release</id>
121 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release/</url>
123 <!-- OpenDayLight Snapshot artifact -->
125 <id>opendaylight-snapshot</id>
126 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
127 </snapshotRepository>
129 <id>${project.artifactId}-site</id>
132 </distributionManagement>
138 <groupId>org.apache.maven.plugins</groupId>
139 <artifactId>maven-compiler-plugin</artifactId>
140 <version>${maven.compile.plugin.version}</version>
142 <source>${java.version.source}</source>
143 <target>${java.version.target}</target>
148 <groupId>org.apache.maven.plugins</groupId>
149 <artifactId>maven-checkstyle-plugin</artifactId>
150 <version>${checkstyle.version}</version>
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>
162 <groupId>org.opendaylight.controller</groupId>
163 <artifactId>checkstyle</artifactId>
164 <version>0.0.3-SNAPSHOT</version>
173 <phase>process-sources</phase>
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 -->
181 <groupId>org.codehaus.mojo</groupId>
182 <artifactId>build-helper-maven-plugin</artifactId>
183 <version>1.8</version>
188 <goal>add-source</goal>
190 <phase>generate-sources</phase>
193 <source>src/main/yang</source>
194 <source>${codeGeneratorPath}</source>
200 <!-- cleans up auto generated code -->
202 <artifactId>maven-clean-plugin</artifactId>
206 <directory>${codeGeneratorPath}</directory>
208 <include>**</include>
215 <!-- Ignore/Execute plugin execution -->
217 <groupId>org.eclipse.m2e</groupId>
218 <artifactId>lifecycle-mapping</artifactId>
219 <version>1.0.0</version>
221 <lifecycleMappingMetadata>
224 <pluginExecutionFilter>
225 <groupId>org.codehaus.mojo</groupId>
226 <artifactId>properties-maven-plugin</artifactId>
227 <versionRange>[0.0,)</versionRange>
229 <goal>set-system-properties</goal>
231 </pluginExecutionFilter>
237 <pluginExecutionFilter>
238 <groupId>org.codehaus.enunciate</groupId>
239 <artifactId>maven-enunciate-plugin</artifactId>
240 <versionRange>[0.0,)</versionRange>
244 </pluginExecutionFilter>
250 <pluginExecutionFilter>
251 <groupId>org.jacoco</groupId>
252 <artifactId>jacoco-maven-plugin</artifactId>
253 <versionRange>[0.0,)</versionRange>
255 <goal>prepare-agent</goal>
256 <goal>pre-test</goal>
257 <goal>post-test</goal>
259 </pluginExecutionFilter>
265 <pluginExecutionFilter>
266 <groupId>org.ops4j.pax.exam</groupId>
267 <artifactId>maven-paxexam-plugin</artifactId>
268 <versionRange>[1.2.4,)</versionRange>
270 <goal>generate-depends-file</goal>
272 </pluginExecutionFilter>
275 <runOnIncremental>false</runOnIncremental>
280 <pluginExecutionFilter>
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-checkstyle-plugin</artifactId>
283 <versionRange>[2.0,)</versionRange>
287 </pluginExecutionFilter>
293 <pluginExecutionFilter>
294 <groupId>org.opendaylight.yangtools</groupId>
295 <artifactId>yang-maven-plugin</artifactId>
296 <versionRange>[0.5,)</versionRange>
298 <goal>generate-sources</goal>
300 </pluginExecutionFilter>
306 <pluginExecutionFilter>
307 <groupId>org.codehaus.groovy.maven</groupId>
308 <artifactId>gmaven-plugin</artifactId>
309 <versionRange>1.0</versionRange>
313 </pluginExecutionFilter>
319 <pluginExecutionFilter>
320 <groupId>org.apache.maven.plugins</groupId>
321 <artifactId>maven-enforcer-plugin</artifactId>
322 <versionRange>${enforcer.version}</versionRange>
326 </pluginExecutionFilter>
332 </lifecycleMappingMetadata>
336 <groupId>org.apache.felix</groupId>
337 <artifactId>maven-bundle-plugin</artifactId>
338 <version>${bundle.plugin.version}</version>
344 <groupId>org.codehaus.mojo</groupId>
345 <artifactId>build-helper-maven-plugin</artifactId>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-checkstyle-plugin</artifactId>