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 <nexus_proxy>http://nexus.opendaylight.org/content</nexus_proxy>
20 <mdsal.version>1.4.0-SNAPSHOT</mdsal.version>
21 <mdsal.model.version>0.9.0-SNAPSHOT</mdsal.model.version>
22 <yangtools.version>1.0.0-SNAPSHOT</yangtools.version>
23 <jung2.version>2.0.1</jung2.version>
24 <config.version>0.5.0-SNAPSHOT</config.version>
25 <openflow.plugin.version>0.3.0-SNAPSHOT</openflow.plugin.version>
26 <dlux.version>0.4.0-SNAPSHOT</dlux.version>
27 <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
28 <config.packethandler.configfile>50-packethandler.xml</config.packethandler.configfile>
29 <config.loopremover.configfile>52-loopremover.xml</config.loopremover.configfile>
30 <config.arphandler.configfile>54-arphandler.xml</config.arphandler.configfile>
31 <config.addresstracker.configfile>56-addresstracker.xml</config.addresstracker.configfile>
32 <config.hosttracker.configfile>57-hosttracker.xml</config.hosttracker.configfile>
33 <config.l2switchmain.configfile>58-l2switchmain.xml</config.l2switchmain.configfile>
36 <dependencyManagement>
39 <groupId>org.opendaylight.yangtools</groupId>
40 <artifactId>yangtools-artifacts</artifactId>
41 <version>${yangtools.version}</version>
46 <groupId>org.opendaylight.mdsal</groupId>
47 <artifactId>mdsal-artifacts</artifactId>
48 <version>2.1.0-SNAPSHOT</version>
53 <groupId>org.opendaylight.mdsal.model</groupId>
54 <artifactId>mdsal-model-artifacts</artifactId>
55 <version>0.9.0-SNAPSHOT</version>
60 <groupId>org.opendaylight.controller</groupId>
61 <artifactId>config-artifacts</artifactId>
62 <version>${config.version}</version>
67 <groupId>org.opendaylight.controller</groupId>
68 <artifactId>mdsal-artifacts</artifactId>
69 <version>${mdsal.version}</version>
74 <groupId>org.opendaylight.openflowplugin</groupId>
75 <artifactId>openflowplugin-artifacts</artifactId>
76 <version>${openflow.plugin.version}</version>
81 <groupId>org.opendaylight.l2switch</groupId>
82 <artifactId>l2switch-artifacts</artifactId>
83 <version>${project.version}</version>
89 <groupId>org.opendaylight.controller.thirdparty</groupId>
90 <artifactId>net.sf.jung2</artifactId>
91 <version>${jung2.version}</version>
94 </dependencyManagement>
96 <distributionManagement>
97 <!-- OpenDayLight Released artifact -->
99 <id>opendaylight-release</id>
100 <url>${nexusproxy}/repositories/opendaylight.release/</url>
102 <!-- OpenDayLight Snapshot artifact -->
104 <id>opendaylight-snapshot</id>
105 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
106 </snapshotRepository>
108 <id>${project.artifactId}-site</id>
111 </distributionManagement>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-compiler-plugin</artifactId>
119 <version>${maven.compile.plugin.version}</version>
121 <source>${java.version.source}</source>
122 <target>${java.version.target}</target>
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-checkstyle-plugin</artifactId>
130 <failOnViolation>true</failOnViolation>
131 <configLocation>checkstyle-logging.xml</configLocation>
132 <consoleOutput>true</consoleOutput>
133 <includeTestSourceDirectory>true</includeTestSourceDirectory>
134 <sourceDirectory>${project.basedir}</sourceDirectory>
135 <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
136 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/xtend-gen\/,**\/${codeGeneratorPath}\/,**\/${configCodeGeneratorPath}\/,</excludes>
140 <groupId>org.opendaylight.yangtools</groupId>
141 <artifactId>checkstyle-logging</artifactId>
142 <version>${yangtools.version}</version>
151 <phase>process-sources</phase>
156 <!-- tells eclipse to import these folders into the package explorer as "source" folders
157 which allows eclipse to resolve the classes correctly during an eclipse build -->
159 <groupId>org.codehaus.mojo</groupId>
160 <artifactId>build-helper-maven-plugin</artifactId>
161 <version>1.8</version>
166 <goal>add-source</goal>
168 <phase>generate-sources</phase>
171 <source>src/main/yang</source>
172 <source>${codeGeneratorPath}</source>
173 <source>${configCodeGeneratorPath}</source>
179 <!-- cleans up auto generated code -->
181 <artifactId>maven-clean-plugin</artifactId>
185 <directory>${codeGeneratorPath}</directory>
186 <directory>${configCodeGeneratorPath}</directory>
188 <include>**</include>
195 <!-- Ignore/Execute plugin execution -->
197 <groupId>org.eclipse.m2e</groupId>
198 <artifactId>lifecycle-mapping</artifactId>
199 <version>1.0.0</version>
201 <lifecycleMappingMetadata>
204 <pluginExecutionFilter>
205 <groupId>org.codehaus.mojo</groupId>
206 <artifactId>properties-maven-plugin</artifactId>
207 <versionRange>[0.0,)</versionRange>
209 <goal>set-system-properties</goal>
211 </pluginExecutionFilter>
217 <pluginExecutionFilter>
218 <groupId>org.jacoco</groupId>
219 <artifactId>jacoco-maven-plugin</artifactId>
220 <versionRange>[0.0,)</versionRange>
222 <goal>prepare-agent</goal>
223 <goal>pre-test</goal>
224 <goal>post-test</goal>
226 </pluginExecutionFilter>
232 <pluginExecutionFilter>
233 <groupId>org.ops4j.pax.exam</groupId>
234 <artifactId>maven-paxexam-plugin</artifactId>
235 <versionRange>[1.2.4,)</versionRange>
237 <goal>generate-depends-file</goal>
239 </pluginExecutionFilter>
242 <runOnIncremental>false</runOnIncremental>
247 <pluginExecutionFilter>
248 <groupId>org.apache.maven.plugins</groupId>
249 <artifactId>maven-checkstyle-plugin</artifactId>
250 <versionRange>[2.0,)</versionRange>
254 </pluginExecutionFilter>
260 <pluginExecutionFilter>
261 <groupId>org.opendaylight.yangtools</groupId>
262 <artifactId>yang-maven-plugin</artifactId>
263 <versionRange>[0.5,)</versionRange>
265 <goal>generate-sources</goal>
267 </pluginExecutionFilter>
273 <pluginExecutionFilter>
274 <groupId>org.codehaus.groovy.maven</groupId>
275 <artifactId>gmaven-plugin</artifactId>
276 <versionRange>1.0</versionRange>
280 </pluginExecutionFilter>
286 <pluginExecutionFilter>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-enforcer-plugin</artifactId>
289 <versionRange>${enforcer.version}</versionRange>
293 </pluginExecutionFilter>
299 </lifecycleMappingMetadata>
306 <groupId>org.codehaus.mojo</groupId>
307 <artifactId>build-helper-maven-plugin</artifactId>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-checkstyle-plugin</artifactId>