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.6.0-SNAPSHOT</version>
11 <groupId>org.opendaylight.l2switch</groupId>
12 <artifactId>l2switch-parent</artifactId>
13 <version>0.3.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.3.0-SNAPSHOT</mdsal.version>
21 <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
22 <jung2.version>2.0.1</jung2.version>
23 <config.version>0.4.0-SNAPSHOT</config.version>
24 <openflow.plugin.version>0.2.0-SNAPSHOT</openflow.plugin.version>
25 <dlux.version>0.3.0-SNAPSHOT</dlux.version>
26 <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
27 <config.packethandler.configfile>50-packethandler.xml</config.packethandler.configfile>
28 <config.loopremover.configfile>52-loopremover.xml</config.loopremover.configfile>
29 <config.arphandler.configfile>54-arphandler.xml</config.arphandler.configfile>
30 <config.addresstracker.configfile>56-addresstracker.xml</config.addresstracker.configfile>
31 <config.hosttracker.configfile>57-hosttracker.xml</config.hosttracker.configfile>
32 <config.l2switchmain.configfile>58-l2switchmain.xml</config.l2switchmain.configfile>
35 <dependencyManagement>
38 <groupId>org.opendaylight.yangtools</groupId>
39 <artifactId>yangtools-artifacts</artifactId>
40 <version>${yangtools.version}</version>
45 <groupId>org.opendaylight.controller</groupId>
46 <artifactId>config-artifacts</artifactId>
47 <version>${config.version}</version>
52 <groupId>org.opendaylight.controller</groupId>
53 <artifactId>mdsal-artifacts</artifactId>
54 <version>${mdsal.version}</version>
59 <groupId>org.opendaylight.openflowplugin</groupId>
60 <artifactId>openflowplugin-artifacts</artifactId>
61 <version>${openflow.plugin.version}</version>
67 <groupId>org.opendaylight.controller.thirdparty</groupId>
68 <artifactId>net.sf.jung2</artifactId>
69 <version>${jung2.version}</version>
72 </dependencyManagement>
74 <distributionManagement>
75 <!-- OpenDayLight Released artifact -->
77 <id>opendaylight-release</id>
78 <url>${nexusproxy}/repositories/opendaylight.release/</url>
80 <!-- OpenDayLight Snapshot artifact -->
82 <id>opendaylight-snapshot</id>
83 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
86 <id>${project.artifactId}-site</id>
89 </distributionManagement>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-compiler-plugin</artifactId>
97 <version>${maven.compile.plugin.version}</version>
99 <source>${java.version.source}</source>
100 <target>${java.version.target}</target>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-checkstyle-plugin</artifactId>
107 <version>${checkstyle.version}</version>
109 <failsOnError>true</failsOnError>
110 <configLocation>controller/checkstyle.xml</configLocation>
111 <consoleOutput>true</consoleOutput>
112 <includeTestSourceDirectory>true</includeTestSourceDirectory>
113 <sourceDirectory>${project.basedir}</sourceDirectory>
114 <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
115 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,\/,**\/xtend-gen\/,**\/yang-gen-code\/,**\/${codeGeneratorPath}\/,**\/${configCodeGeneratorPath}\/,</excludes>
119 <groupId>org.opendaylight.controller</groupId>
120 <artifactId>checkstyle</artifactId>
121 <version>0.2.0-SNAPSHOT</version>
130 <phase>process-sources</phase>
135 <!-- tells eclipse to import these folders into the package explorer as "source" folders
136 which allows eclipse to resolve the classes correctly during an eclipse build -->
138 <groupId>org.codehaus.mojo</groupId>
139 <artifactId>build-helper-maven-plugin</artifactId>
140 <version>1.8</version>
145 <goal>add-source</goal>
147 <phase>generate-sources</phase>
150 <source>src/main/yang</source>
151 <source>${codeGeneratorPath}</source>
152 <source>${configCodeGeneratorPath}</source>
158 <!-- cleans up auto generated code -->
160 <artifactId>maven-clean-plugin</artifactId>
164 <directory>${codeGeneratorPath}</directory>
165 <directory>${configCodeGeneratorPath}</directory>
167 <include>**</include>
174 <!-- Ignore/Execute plugin execution -->
176 <groupId>org.eclipse.m2e</groupId>
177 <artifactId>lifecycle-mapping</artifactId>
178 <version>1.0.0</version>
180 <lifecycleMappingMetadata>
183 <pluginExecutionFilter>
184 <groupId>org.codehaus.mojo</groupId>
185 <artifactId>properties-maven-plugin</artifactId>
186 <versionRange>[0.0,)</versionRange>
188 <goal>set-system-properties</goal>
190 </pluginExecutionFilter>
196 <pluginExecutionFilter>
197 <groupId>org.jacoco</groupId>
198 <artifactId>jacoco-maven-plugin</artifactId>
199 <versionRange>[0.0,)</versionRange>
201 <goal>prepare-agent</goal>
202 <goal>pre-test</goal>
203 <goal>post-test</goal>
205 </pluginExecutionFilter>
211 <pluginExecutionFilter>
212 <groupId>org.ops4j.pax.exam</groupId>
213 <artifactId>maven-paxexam-plugin</artifactId>
214 <versionRange>[1.2.4,)</versionRange>
216 <goal>generate-depends-file</goal>
218 </pluginExecutionFilter>
221 <runOnIncremental>false</runOnIncremental>
226 <pluginExecutionFilter>
227 <groupId>org.apache.maven.plugins</groupId>
228 <artifactId>maven-checkstyle-plugin</artifactId>
229 <versionRange>[2.0,)</versionRange>
233 </pluginExecutionFilter>
239 <pluginExecutionFilter>
240 <groupId>org.opendaylight.yangtools</groupId>
241 <artifactId>yang-maven-plugin</artifactId>
242 <versionRange>[0.5,)</versionRange>
244 <goal>generate-sources</goal>
246 </pluginExecutionFilter>
252 <pluginExecutionFilter>
253 <groupId>org.codehaus.groovy.maven</groupId>
254 <artifactId>gmaven-plugin</artifactId>
255 <versionRange>1.0</versionRange>
259 </pluginExecutionFilter>
265 <pluginExecutionFilter>
266 <groupId>org.apache.maven.plugins</groupId>
267 <artifactId>maven-enforcer-plugin</artifactId>
268 <versionRange>${enforcer.version}</versionRange>
272 </pluginExecutionFilter>
278 </lifecycleMappingMetadata>
285 <groupId>org.codehaus.mojo</groupId>
286 <artifactId>build-helper-maven-plugin</artifactId>
289 <groupId>org.apache.maven.plugins</groupId>
290 <artifactId>maven-checkstyle-plugin</artifactId>
293 <groupId>org.jacoco</groupId>
294 <artifactId>jacoco-maven-plugin</artifactId>
297 <include>org.opendaylight.l2switch.*</include>
304 <goal>prepare-agent</goal>