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 <jung2.version>2.0.1</jung2.version>
23 <config.version>0.3.0-SNAPSHOT</config.version>
24 <openflow.plugin.version>0.1.0-SNAPSHOT</openflow.plugin.version>
25 <dlux.version>0.2.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>
75 <!-- OpenDayLight Repo Mirror -->
77 <id>opendaylight-mirror</id>
78 <name>opendaylight-mirror</name>
79 <url>http://nexus.opendaylight.org/content/groups/public/</url>
81 <enabled>false</enabled>
84 <enabled>true</enabled>
85 <updatePolicy>never</updatePolicy>
89 <!-- OpenDayLight Snapshot artifact -->
91 <id>opendaylight-snapshot</id>
92 <name>opendaylight-snapshot</name>
93 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
95 <enabled>true</enabled>
98 <enabled>false</enabled>
104 <distributionManagement>
105 <!-- OpenDayLight Released artifact -->
107 <id>opendaylight-release</id>
108 <url>${nexusproxy}/repositories/opendaylight.release/</url>
110 <!-- OpenDayLight Snapshot artifact -->
112 <id>opendaylight-snapshot</id>
113 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
114 </snapshotRepository>
116 <id>${project.artifactId}-site</id>
119 </distributionManagement>
125 <groupId>org.apache.maven.plugins</groupId>
126 <artifactId>maven-compiler-plugin</artifactId>
127 <version>${maven.compile.plugin.version}</version>
129 <source>${java.version.source}</source>
130 <target>${java.version.target}</target>
135 <groupId>org.apache.maven.plugins</groupId>
136 <artifactId>maven-checkstyle-plugin</artifactId>
137 <version>${checkstyle.version}</version>
139 <failsOnError>true</failsOnError>
140 <configLocation>controller/checkstyle.xml</configLocation>
141 <consoleOutput>true</consoleOutput>
142 <includeTestSourceDirectory>true</includeTestSourceDirectory>
143 <sourceDirectory>${project.basedir}</sourceDirectory>
144 <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
145 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,\/,**\/xtend-gen\/,**\/yang-gen-code\/,**\/${codeGeneratorPath}\/,**\/${configCodeGeneratorPath}\/,</excludes>
149 <groupId>org.opendaylight.controller</groupId>
150 <artifactId>checkstyle</artifactId>
151 <version>0.1.0-SNAPSHOT</version>
160 <phase>process-sources</phase>
165 <!-- tells eclipse to import these folders into the package explorer as "source" folders
166 which allows eclipse to resolve the classes correctly during an eclipse build -->
168 <groupId>org.codehaus.mojo</groupId>
169 <artifactId>build-helper-maven-plugin</artifactId>
170 <version>1.8</version>
175 <goal>add-source</goal>
177 <phase>generate-sources</phase>
180 <source>src/main/yang</source>
181 <source>${codeGeneratorPath}</source>
182 <source>${configCodeGeneratorPath}</source>
188 <!-- cleans up auto generated code -->
190 <artifactId>maven-clean-plugin</artifactId>
194 <directory>${codeGeneratorPath}</directory>
195 <directory>${configCodeGeneratorPath}</directory>
197 <include>**</include>
204 <!-- Ignore/Execute plugin execution -->
206 <groupId>org.eclipse.m2e</groupId>
207 <artifactId>lifecycle-mapping</artifactId>
208 <version>1.0.0</version>
210 <lifecycleMappingMetadata>
213 <pluginExecutionFilter>
214 <groupId>org.codehaus.mojo</groupId>
215 <artifactId>properties-maven-plugin</artifactId>
216 <versionRange>[0.0,)</versionRange>
218 <goal>set-system-properties</goal>
220 </pluginExecutionFilter>
226 <pluginExecutionFilter>
227 <groupId>org.jacoco</groupId>
228 <artifactId>jacoco-maven-plugin</artifactId>
229 <versionRange>[0.0,)</versionRange>
231 <goal>prepare-agent</goal>
232 <goal>pre-test</goal>
233 <goal>post-test</goal>
235 </pluginExecutionFilter>
241 <pluginExecutionFilter>
242 <groupId>org.ops4j.pax.exam</groupId>
243 <artifactId>maven-paxexam-plugin</artifactId>
244 <versionRange>[1.2.4,)</versionRange>
246 <goal>generate-depends-file</goal>
248 </pluginExecutionFilter>
251 <runOnIncremental>false</runOnIncremental>
256 <pluginExecutionFilter>
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-checkstyle-plugin</artifactId>
259 <versionRange>[2.0,)</versionRange>
263 </pluginExecutionFilter>
269 <pluginExecutionFilter>
270 <groupId>org.opendaylight.yangtools</groupId>
271 <artifactId>yang-maven-plugin</artifactId>
272 <versionRange>[0.5,)</versionRange>
274 <goal>generate-sources</goal>
276 </pluginExecutionFilter>
282 <pluginExecutionFilter>
283 <groupId>org.codehaus.groovy.maven</groupId>
284 <artifactId>gmaven-plugin</artifactId>
285 <versionRange>1.0</versionRange>
289 </pluginExecutionFilter>
295 <pluginExecutionFilter>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-enforcer-plugin</artifactId>
298 <versionRange>${enforcer.version}</versionRange>
302 </pluginExecutionFilter>
308 </lifecycleMappingMetadata>
315 <groupId>org.codehaus.mojo</groupId>
316 <artifactId>build-helper-maven-plugin</artifactId>
319 <groupId>org.apache.maven.plugins</groupId>
320 <artifactId>maven-checkstyle-plugin</artifactId>
323 <groupId>org.jacoco</groupId>
324 <artifactId>jacoco-maven-plugin</artifactId>
327 <include>org.opendaylight.l2switch.*</include>
334 <goal>prepare-agent</goal>