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.7.0-SNAPSHOT</version>
11 <groupId>org.opendaylight.l2switch</groupId>
12 <artifactId>l2switch-parent</artifactId>
13 <version>0.4.0-SNAPSHOT</version>
14 <packaging>pom</packaging>
17 <codeGeneratorPath>src/main/yang-gen-code</codeGeneratorPath>
18 <configCodeGeneratorPath>src/main/yang-gen-config</configCodeGeneratorPath>
19 <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
20 <branding.version>1.3.0-SNAPSHOT</branding.version>
21 <karaf.resources.version>1.7.0-SNAPSHOT</karaf.resources.version>
22 <mdsal.version>2.1.0-SNAPSHOT</mdsal.version>
23 <mdsal.model.version>0.9.0-SNAPSHOT</mdsal.model.version>
24 <controller.mdsal.version>1.4.0-SNAPSHOT</controller.mdsal.version>
25 <yangtools.version>1.0.0-SNAPSHOT</yangtools.version>
26 <jung2.version>2.0.1</jung2.version>
27 <config.version>0.5.0-SNAPSHOT</config.version>
28 <openflow.plugin.version>0.3.0-SNAPSHOT</openflow.plugin.version>
29 <dlux.version>0.4.0-SNAPSHOT</dlux.version>
30 <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
31 <config.packethandler.configfile>50-packethandler.xml</config.packethandler.configfile>
32 <config.loopremover.configfile>52-loopremover.xml</config.loopremover.configfile>
33 <config.arphandler.configfile>54-arphandler.xml</config.arphandler.configfile>
34 <config.addresstracker.configfile>56-addresstracker.xml</config.addresstracker.configfile>
35 <config.hosttracker.configfile>57-hosttracker.xml</config.hosttracker.configfile>
36 <config.l2switchmain.configfile>58-l2switchmain.xml</config.l2switchmain.configfile>
39 <dependencyManagement>
42 <groupId>org.opendaylight.yangtools</groupId>
43 <artifactId>yangtools-artifacts</artifactId>
44 <version>${yangtools.version}</version>
49 <groupId>org.opendaylight.mdsal</groupId>
50 <artifactId>mdsal-artifacts</artifactId>
51 <version>${mdsal.version}</version>
56 <groupId>org.opendaylight.mdsal.model</groupId>
57 <artifactId>mdsal-model-artifacts</artifactId>
58 <version>${mdsal.model.version}</version>
63 <groupId>org.opendaylight.controller</groupId>
64 <artifactId>config-artifacts</artifactId>
65 <version>${config.version}</version>
70 <groupId>org.opendaylight.controller</groupId>
71 <artifactId>mdsal-artifacts</artifactId>
72 <version>${controller.mdsal.version}</version>
77 <groupId>org.opendaylight.openflowplugin</groupId>
78 <artifactId>openflowplugin-artifacts</artifactId>
79 <version>${openflow.plugin.version}</version>
84 <groupId>org.opendaylight.l2switch</groupId>
85 <artifactId>l2switch-artifacts</artifactId>
86 <version>${project.version}</version>
92 <groupId>org.opendaylight.controller.thirdparty</groupId>
93 <artifactId>net.sf.jung2</artifactId>
94 <version>${jung2.version}</version>
97 </dependencyManagement>
99 <distributionManagement>
100 <!-- OpenDayLight Released artifact -->
102 <id>opendaylight-release</id>
103 <url>${nexusproxy}/repositories/opendaylight.release/</url>
105 <!-- OpenDayLight Snapshot artifact -->
107 <id>opendaylight-snapshot</id>
108 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
109 </snapshotRepository>
111 <id>${project.artifactId}-site</id>
114 </distributionManagement>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-compiler-plugin</artifactId>
122 <version>${maven.compile.plugin.version}</version>
124 <source>${java.version.source}</source>
125 <target>${java.version.target}</target>
130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-checkstyle-plugin</artifactId>
133 <failOnViolation>true</failOnViolation>
134 <configLocation>checkstyle-logging.xml</configLocation>
135 <consoleOutput>true</consoleOutput>
136 <includeTestSourceDirectory>true</includeTestSourceDirectory>
137 <sourceDirectory>${project.basedir}</sourceDirectory>
138 <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
139 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/xtend-gen\/,**\/${codeGeneratorPath}\/,**\/${configCodeGeneratorPath}\/,</excludes>
143 <groupId>org.opendaylight.yangtools</groupId>
144 <artifactId>checkstyle-logging</artifactId>
145 <version>${yangtools.version}</version>
154 <phase>process-sources</phase>
159 <!-- tells eclipse to import these folders into the package explorer as "source" folders
160 which allows eclipse to resolve the classes correctly during an eclipse build -->
162 <groupId>org.codehaus.mojo</groupId>
163 <artifactId>build-helper-maven-plugin</artifactId>
164 <version>1.8</version>
169 <goal>add-source</goal>
171 <phase>generate-sources</phase>
174 <source>src/main/yang</source>
175 <source>${codeGeneratorPath}</source>
176 <source>${configCodeGeneratorPath}</source>
182 <!-- cleans up auto generated code -->
184 <artifactId>maven-clean-plugin</artifactId>
188 <directory>${codeGeneratorPath}</directory>
189 <directory>${configCodeGeneratorPath}</directory>
191 <include>**</include>
198 <!-- Ignore/Execute plugin execution -->
200 <groupId>org.eclipse.m2e</groupId>
201 <artifactId>lifecycle-mapping</artifactId>
202 <version>1.0.0</version>
204 <lifecycleMappingMetadata>
207 <pluginExecutionFilter>
208 <groupId>org.codehaus.mojo</groupId>
209 <artifactId>properties-maven-plugin</artifactId>
210 <versionRange>[0.0,)</versionRange>
212 <goal>set-system-properties</goal>
214 </pluginExecutionFilter>
220 <pluginExecutionFilter>
221 <groupId>org.jacoco</groupId>
222 <artifactId>jacoco-maven-plugin</artifactId>
223 <versionRange>[0.0,)</versionRange>
225 <goal>prepare-agent</goal>
226 <goal>pre-test</goal>
227 <goal>post-test</goal>
229 </pluginExecutionFilter>
235 <pluginExecutionFilter>
236 <groupId>org.ops4j.pax.exam</groupId>
237 <artifactId>maven-paxexam-plugin</artifactId>
238 <versionRange>[1.2.4,)</versionRange>
240 <goal>generate-depends-file</goal>
242 </pluginExecutionFilter>
245 <runOnIncremental>false</runOnIncremental>
250 <pluginExecutionFilter>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-checkstyle-plugin</artifactId>
253 <versionRange>[2.0,)</versionRange>
257 </pluginExecutionFilter>
263 <pluginExecutionFilter>
264 <groupId>org.opendaylight.yangtools</groupId>
265 <artifactId>yang-maven-plugin</artifactId>
266 <versionRange>[0.5,)</versionRange>
268 <goal>generate-sources</goal>
270 </pluginExecutionFilter>
276 <pluginExecutionFilter>
277 <groupId>org.codehaus.groovy.maven</groupId>
278 <artifactId>gmaven-plugin</artifactId>
279 <versionRange>1.0</versionRange>
283 </pluginExecutionFilter>
289 <pluginExecutionFilter>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-enforcer-plugin</artifactId>
292 <versionRange>${enforcer.version}</versionRange>
296 </pluginExecutionFilter>
302 </lifecycleMappingMetadata>
309 <groupId>org.codehaus.mojo</groupId>
310 <artifactId>build-helper-maven-plugin</artifactId>
313 <groupId>org.apache.maven.plugins</groupId>
314 <artifactId>maven-checkstyle-plugin</artifactId>