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.5.0-SNAPSHOT</version>
11 <groupId>org.opendaylight.l2switch</groupId>
12 <artifactId>l2switch-parent</artifactId>
13 <version>0.2.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.2.0-SNAPSHOT</mdsal.version>
21 <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
22 <ietf-yang-types.version>2010.09.24.7-SNAPSHOT</ietf-yang-types.version>
23 <jung2.version>2.0.1</jung2.version>
24 <config.version>0.3.0-SNAPSHOT</config.version>
25 <openflow.plugin.version>0.1.0-SNAPSHOT</openflow.plugin.version>
26 <dlux.version>0.2.0-SNAPSHOT</dlux.version>
27 <karaf.version>3.0.1</karaf.version>
28 <bundle.plugin.version>2.4.0</bundle.plugin.version>
29 <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
30 <config.packethandler.configfile>50-packethandler.xml</config.packethandler.configfile>
31 <config.loopremover.configfile>52-loopremover.xml</config.loopremover.configfile>
32 <config.arphandler.configfile>54-arphandler.xml</config.arphandler.configfile>
33 <config.addresstracker.configfile>56-addresstracker.xml</config.addresstracker.configfile>
34 <config.hosttracker.configfile>57-hosttracker.xml</config.hosttracker.configfile>
35 <config.l2switchmain.configfile>58-l2switchmain.xml</config.l2switchmain.configfile>
38 <dependencyManagement>
42 <groupId>org.opendaylight.controller</groupId>
43 <artifactId>sal-binding-api</artifactId>
44 <version>${mdsal.version}</version>
47 <groupId>org.opendaylight.controller</groupId>
48 <artifactId>sal-binding-config</artifactId>
49 <version>${mdsal.version}</version>
52 <groupId>org.opendaylight.controller.model</groupId>
53 <artifactId>model-inventory</artifactId>
54 <version>${mdsal.version}</version>
57 <groupId>org.opendaylight.controller.model</groupId>
58 <artifactId>model-topology</artifactId>
59 <version>${mdsal.version}</version>
62 <groupId>org.opendaylight.yangtools</groupId>
63 <artifactId>yang-binding</artifactId>
64 <version>${yangtools.version}</version>
67 <groupId>org.opendaylight.yangtools</groupId>
68 <artifactId>yang-common</artifactId>
69 <version>${yangtools.version}</version>
72 <groupId>org.opendaylight.yangtools.model</groupId>
73 <artifactId>ietf-yang-types</artifactId>
74 <version>${ietf-yang-types.version}</version>
77 <groupId>org.opendaylight.openflowplugin.model</groupId>
78 <artifactId>model-flow-service</artifactId>
79 <version>${openflow.plugin.version}</version>
82 <groupId>org.opendaylight.controller.thirdparty</groupId>
83 <artifactId>net.sf.jung2</artifactId>
84 <version>${jung2.version}</version>
87 <groupId>org.opendaylight.controller</groupId>
88 <artifactId>config-api</artifactId>
89 <version>${config.version}</version>
92 </dependencyManagement>
95 <!-- OpenDayLight Repo Mirror -->
97 <id>opendaylight-mirror</id>
98 <name>opendaylight-mirror</name>
99 <url>http://nexus.opendaylight.org/content/groups/public/</url>
101 <enabled>false</enabled>
104 <enabled>true</enabled>
105 <updatePolicy>never</updatePolicy>
109 <!-- OpenDayLight Snapshot artifact -->
111 <id>opendaylight-snapshot</id>
112 <name>opendaylight-snapshot</name>
113 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
115 <enabled>true</enabled>
118 <enabled>false</enabled>
124 <distributionManagement>
125 <!-- OpenDayLight Released artifact -->
127 <id>opendaylight-release</id>
128 <url>${nexusproxy}/repositories/opendaylight.release/</url>
130 <!-- OpenDayLight Snapshot artifact -->
132 <id>opendaylight-snapshot</id>
133 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
134 </snapshotRepository>
136 <id>${project.artifactId}-site</id>
139 </distributionManagement>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-compiler-plugin</artifactId>
147 <version>${maven.compile.plugin.version}</version>
149 <source>${java.version.source}</source>
150 <target>${java.version.target}</target>
155 <groupId>org.apache.maven.plugins</groupId>
156 <artifactId>maven-checkstyle-plugin</artifactId>
157 <version>${checkstyle.version}</version>
159 <failsOnError>true</failsOnError>
160 <configLocation>controller/checkstyle.xml</configLocation>
161 <consoleOutput>true</consoleOutput>
162 <includeTestSourceDirectory>true</includeTestSourceDirectory>
163 <sourceDirectory>${project.basedir}</sourceDirectory>
164 <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
165 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,\/,**\/xtend-gen\/,**\/yang-gen-code\/,**\/${codeGeneratorPath}\/,**\/${configCodeGeneratorPath}\/,</excludes>
169 <groupId>org.opendaylight.controller</groupId>
170 <artifactId>checkstyle</artifactId>
171 <version>0.1.0-SNAPSHOT</version>
180 <phase>process-sources</phase>
185 <!-- tells eclipse to import these folders into the package explorer as "source" folders
186 which allows eclipse to resolve the classes correctly during an eclipse build -->
188 <groupId>org.codehaus.mojo</groupId>
189 <artifactId>build-helper-maven-plugin</artifactId>
190 <version>1.8</version>
195 <goal>add-source</goal>
197 <phase>generate-sources</phase>
200 <source>src/main/yang</source>
201 <source>${codeGeneratorPath}</source>
202 <source>${configCodeGeneratorPath}</source>
208 <!-- cleans up auto generated code -->
210 <artifactId>maven-clean-plugin</artifactId>
214 <directory>${codeGeneratorPath}</directory>
215 <directory>${configCodeGeneratorPath}</directory>
217 <include>**</include>
224 <!-- Ignore/Execute plugin execution -->
226 <groupId>org.eclipse.m2e</groupId>
227 <artifactId>lifecycle-mapping</artifactId>
228 <version>1.0.0</version>
230 <lifecycleMappingMetadata>
233 <pluginExecutionFilter>
234 <groupId>org.codehaus.mojo</groupId>
235 <artifactId>properties-maven-plugin</artifactId>
236 <versionRange>[0.0,)</versionRange>
238 <goal>set-system-properties</goal>
240 </pluginExecutionFilter>
246 <pluginExecutionFilter>
247 <groupId>org.codehaus.enunciate</groupId>
248 <artifactId>maven-enunciate-plugin</artifactId>
249 <versionRange>[0.0,)</versionRange>
253 </pluginExecutionFilter>
259 <pluginExecutionFilter>
260 <groupId>org.jacoco</groupId>
261 <artifactId>jacoco-maven-plugin</artifactId>
262 <versionRange>[0.0,)</versionRange>
264 <goal>prepare-agent</goal>
265 <goal>pre-test</goal>
266 <goal>post-test</goal>
268 </pluginExecutionFilter>
274 <pluginExecutionFilter>
275 <groupId>org.ops4j.pax.exam</groupId>
276 <artifactId>maven-paxexam-plugin</artifactId>
277 <versionRange>[1.2.4,)</versionRange>
279 <goal>generate-depends-file</goal>
281 </pluginExecutionFilter>
284 <runOnIncremental>false</runOnIncremental>
289 <pluginExecutionFilter>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-checkstyle-plugin</artifactId>
292 <versionRange>[2.0,)</versionRange>
296 </pluginExecutionFilter>
302 <pluginExecutionFilter>
303 <groupId>org.opendaylight.yangtools</groupId>
304 <artifactId>yang-maven-plugin</artifactId>
305 <versionRange>[0.5,)</versionRange>
307 <goal>generate-sources</goal>
309 </pluginExecutionFilter>
315 <pluginExecutionFilter>
316 <groupId>org.codehaus.groovy.maven</groupId>
317 <artifactId>gmaven-plugin</artifactId>
318 <versionRange>1.0</versionRange>
322 </pluginExecutionFilter>
328 <pluginExecutionFilter>
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-enforcer-plugin</artifactId>
331 <versionRange>${enforcer.version}</versionRange>
335 </pluginExecutionFilter>
341 </lifecycleMappingMetadata>
345 <groupId>org.apache.felix</groupId>
346 <artifactId>maven-bundle-plugin</artifactId>
347 <version>${bundle.plugin.version}</version>
353 <groupId>org.codehaus.mojo</groupId>
354 <artifactId>build-helper-maven-plugin</artifactId>
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-checkstyle-plugin</artifactId>
361 <groupId>org.jacoco</groupId>
362 <artifactId>jacoco-maven-plugin</artifactId>
365 <include>org.opendaylight.l2switch.*</include>
372 <goal>prepare-agent</goal>