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>2.0.0</version>
11 <groupId>org.opendaylight.l2switch</groupId>
12 <artifactId>l2switch-parent</artifactId>
13 <version>0.6.0-SNAPSHOT</version>
14 <packaging>pom</packaging>
17 <codeGeneratorPath>src/main/yang-gen-code</codeGeneratorPath>
18 <configCodeGeneratorPath>src/main/yang-gen-config</configCodeGeneratorPath>
19 <branding.version>1.5.0-SNAPSHOT</branding.version>
20 <mdsal.version>2.3.0-SNAPSHOT</mdsal.version>
21 <mdsal.model.version>0.11.0-SNAPSHOT</mdsal.model.version>
22 <controller.mdsal.version>1.6.0-SNAPSHOT</controller.mdsal.version>
23 <yangtools.version>1.2.0-SNAPSHOT</yangtools.version>
24 <jung2.version>2.0.1</jung2.version>
25 <config.version>0.7.0-SNAPSHOT</config.version>
26 <openflow.plugin.version>0.5.0-SNAPSHOT</openflow.plugin.version>
27 <dlux.version>0.6.0-SNAPSHOT</dlux.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>
40 <groupId>org.opendaylight.yangtools</groupId>
41 <artifactId>yangtools-artifacts</artifactId>
42 <version>${yangtools.version}</version>
47 <groupId>org.opendaylight.mdsal</groupId>
48 <artifactId>mdsal-artifacts</artifactId>
49 <version>${mdsal.version}</version>
54 <groupId>org.opendaylight.mdsal.model</groupId>
55 <artifactId>mdsal-model-artifacts</artifactId>
56 <version>${mdsal.model.version}</version>
61 <groupId>org.opendaylight.controller</groupId>
62 <artifactId>config-artifacts</artifactId>
63 <version>${config.version}</version>
68 <groupId>org.opendaylight.controller</groupId>
69 <artifactId>mdsal-artifacts</artifactId>
70 <version>${controller.mdsal.version}</version>
75 <groupId>org.opendaylight.openflowplugin</groupId>
76 <artifactId>openflowplugin-artifacts</artifactId>
77 <version>${openflow.plugin.version}</version>
82 <groupId>org.opendaylight.l2switch</groupId>
83 <artifactId>l2switch-artifacts</artifactId>
84 <version>${project.version}</version>
90 <groupId>org.opendaylight.controller.thirdparty</groupId>
91 <artifactId>net.sf.jung2</artifactId>
92 <version>${jung2.version}</version>
95 </dependencyManagement>
97 <distributionManagement>
98 <!-- OpenDayLight Released artifact -->
100 <id>opendaylight-release</id>
101 <url>${nexusproxy}/repositories/opendaylight.release/</url>
103 <!-- OpenDayLight Snapshot artifact -->
105 <id>opendaylight-snapshot</id>
106 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
107 </snapshotRepository>
109 <id>${project.artifactId}-site</id>
112 </distributionManagement>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-compiler-plugin</artifactId>
120 <version>${maven.compile.plugin.version}</version>
122 <source>${java.version.source}</source>
123 <target>${java.version.target}</target>
128 <groupId>org.apache.maven.plugins</groupId>
129 <artifactId>maven-checkstyle-plugin</artifactId>
131 <failOnViolation>true</failOnViolation>
132 <configLocation>checkstyle-logging.xml</configLocation>
133 <consoleOutput>true</consoleOutput>
134 <includeTestSourceDirectory>true</includeTestSourceDirectory>
135 <sourceDirectory>${project.basedir}</sourceDirectory>
136 <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
137 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/xtend-gen\/,**\/${codeGeneratorPath}\/,**\/${configCodeGeneratorPath}\/,</excludes>
141 <groupId>org.opendaylight.yangtools</groupId>
142 <artifactId>checkstyle-logging</artifactId>
143 <version>${yangtools.version}</version>
152 <phase>process-sources</phase>
157 <!-- tells eclipse to import these folders into the package explorer as "source" folders
158 which allows eclipse to resolve the classes correctly during an eclipse build -->
160 <groupId>org.codehaus.mojo</groupId>
161 <artifactId>build-helper-maven-plugin</artifactId>
162 <version>1.8</version>
167 <goal>add-source</goal>
169 <phase>generate-sources</phase>
172 <source>src/main/yang</source>
173 <source>${codeGeneratorPath}</source>
174 <source>${configCodeGeneratorPath}</source>
180 <!-- cleans up auto generated code -->
182 <artifactId>maven-clean-plugin</artifactId>
186 <directory>${codeGeneratorPath}</directory>
187 <directory>${configCodeGeneratorPath}</directory>
189 <include>**</include>
196 <!-- Ignore/Execute plugin execution -->
198 <groupId>org.eclipse.m2e</groupId>
199 <artifactId>lifecycle-mapping</artifactId>
200 <version>1.0.0</version>
202 <lifecycleMappingMetadata>
205 <pluginExecutionFilter>
206 <groupId>org.codehaus.mojo</groupId>
207 <artifactId>properties-maven-plugin</artifactId>
208 <versionRange>[0.0,)</versionRange>
210 <goal>set-system-properties</goal>
212 </pluginExecutionFilter>
218 <pluginExecutionFilter>
219 <groupId>org.jacoco</groupId>
220 <artifactId>jacoco-maven-plugin</artifactId>
221 <versionRange>[0.0,)</versionRange>
223 <goal>prepare-agent</goal>
224 <goal>pre-test</goal>
225 <goal>post-test</goal>
227 </pluginExecutionFilter>
233 <pluginExecutionFilter>
234 <groupId>org.ops4j.pax.exam</groupId>
235 <artifactId>maven-paxexam-plugin</artifactId>
236 <versionRange>[1.2.4,)</versionRange>
238 <goal>generate-depends-file</goal>
240 </pluginExecutionFilter>
243 <runOnIncremental>false</runOnIncremental>
248 <pluginExecutionFilter>
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-checkstyle-plugin</artifactId>
251 <versionRange>[2.0,)</versionRange>
255 </pluginExecutionFilter>
261 <pluginExecutionFilter>
262 <groupId>org.opendaylight.yangtools</groupId>
263 <artifactId>yang-maven-plugin</artifactId>
264 <versionRange>[0.5,)</versionRange>
266 <goal>generate-sources</goal>
268 </pluginExecutionFilter>
274 <pluginExecutionFilter>
275 <groupId>org.codehaus.groovy.maven</groupId>
276 <artifactId>gmaven-plugin</artifactId>
277 <versionRange>1.0</versionRange>
281 </pluginExecutionFilter>
287 <pluginExecutionFilter>
288 <groupId>org.apache.maven.plugins</groupId>
289 <artifactId>maven-enforcer-plugin</artifactId>
290 <versionRange>${enforcer.version}</versionRange>
294 </pluginExecutionFilter>
300 </lifecycleMappingMetadata>
307 <groupId>org.codehaus.mojo</groupId>
308 <artifactId>build-helper-maven-plugin</artifactId>
311 <groupId>org.apache.maven.plugins</groupId>
312 <artifactId>maven-checkstyle-plugin</artifactId>