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.4.2-SNAPSHOT</version>
10 <groupId>org.opendaylight.l2switch</groupId>
11 <artifactId>l2switch-parent</artifactId>
12 <version>0.1.0-SNAPSHOT</version>
13 <packaging>pom</packaging>
16 <codeGeneratorPath>src/main/yang-gen-code</codeGeneratorPath>
17 <configCodeGeneratorPath>src/main/yang-gen-config</configCodeGeneratorPath>
18 <nexus_proxy>http://nexus.opendaylight.org/content</nexus_proxy>
19 <mdsal.version>1.1-SNAPSHOT</mdsal.version>
20 <yangtools.version>0.6.2-SNAPSHOT</yangtools.version>
21 <ietf-yang-types.version>2010.09.24.4-SNAPSHOT</ietf-yang-types.version>
22 <sal.version>0.8.1-SNAPSHOT</sal.version>
23 <jung2.version>2.0.1</jung2.version>
24 <config.version>0.2.5-SNAPSHOT</config.version>
25 <openflow.plugin.version>0.0.3-SNAPSHOT</openflow.plugin.version>
26 <dlux.version>0.1.0-SNAPSHOT</dlux.version>
29 <dependencyManagement>
33 <groupId>org.opendaylight.controller</groupId>
34 <artifactId>sal</artifactId>
35 <version>${sal.version}</version>
38 <groupId>org.opendaylight.controller</groupId>
39 <artifactId>sal-binding-api</artifactId>
40 <version>${mdsal.version}</version>
43 <groupId>org.opendaylight.controller</groupId>
44 <artifactId>sal-binding-config</artifactId>
45 <version>${mdsal.version}</version>
48 <groupId>org.opendaylight.controller.model</groupId>
49 <artifactId>model-inventory</artifactId>
50 <version>${mdsal.version}</version>
53 <groupId>org.opendaylight.controller.model</groupId>
54 <artifactId>model-topology</artifactId>
55 <version>${mdsal.version}</version>
58 <groupId>org.opendaylight.yangtools</groupId>
59 <artifactId>yang-binding</artifactId>
60 <version>${yangtools.version}</version>
63 <groupId>org.opendaylight.yangtools</groupId>
64 <artifactId>yang-common</artifactId>
65 <version>${yangtools.version}</version>
68 <groupId>org.opendaylight.yangtools.model</groupId>
69 <artifactId>ietf-yang-types</artifactId>
70 <version>${ietf-yang-types.version}</version>
73 <groupId>org.opendaylight.controller.model</groupId>
74 <artifactId>model-flow-service</artifactId>
75 <version>${mdsal.version}</version>
78 <groupId>org.opendaylight.controller.thirdparty</groupId>
79 <artifactId>net.sf.jung2</artifactId>
80 <version>${jung2.version}</version>
83 </dependencyManagement>
86 <!-- OpenDayLight Repo Mirror -->
88 <id>opendaylight-mirror</id>
89 <name>opendaylight-mirror</name>
90 <url>http://nexus.opendaylight.org/content/groups/public/</url>
92 <enabled>false</enabled>
95 <enabled>true</enabled>
96 <updatePolicy>never</updatePolicy>
100 <!-- OpenDayLight Snapshot artifact -->
102 <id>opendaylight-snapshot</id>
103 <name>opendaylight-snapshot</name>
104 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
106 <enabled>true</enabled>
109 <enabled>false</enabled>
115 <distributionManagement>
116 <!-- OpenDayLight Released artifact -->
118 <id>opendaylight-release</id>
119 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release/</url>
121 <!-- OpenDayLight Snapshot artifact -->
123 <id>opendaylight-snapshot</id>
124 <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
125 </snapshotRepository>
127 <id>${project.artifactId}-site</id>
130 </distributionManagement>
136 <groupId>org.apache.maven.plugins</groupId>
137 <artifactId>maven-compiler-plugin</artifactId>
138 <version>${maven.compile.plugin.version}</version>
140 <source>${java.version.source}</source>
141 <target>${java.version.target}</target>
146 <groupId>org.apache.maven.plugins</groupId>
147 <artifactId>maven-checkstyle-plugin</artifactId>
148 <version>${checkstyle.version}</version>
150 <failsOnError>true</failsOnError>
151 <configLocation>controller/checkstyle.xml</configLocation>
152 <consoleOutput>true</consoleOutput>
153 <includeTestSourceDirectory>true</includeTestSourceDirectory>
154 <sourceDirectory>${project.basedir}</sourceDirectory>
155 <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
156 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,\/,**\/xtend-gen\/,**\/yang-gen-code\/</excludes>
160 <groupId>org.opendaylight.controller</groupId>
161 <artifactId>checkstyle</artifactId>
162 <version>0.0.3-SNAPSHOT</version>
171 <phase>process-sources</phase>
176 <!-- tells eclipse to import these folders into the package explorer as "source" folders
177 which allows eclipse to resolve the classes correctly during an eclipse build -->
179 <groupId>org.codehaus.mojo</groupId>
180 <artifactId>build-helper-maven-plugin</artifactId>
181 <version>1.8</version>
186 <goal>add-source</goal>
188 <phase>generate-sources</phase>
191 <source>src/main/yang</source>
192 <source>${codeGeneratorPath}</source>
198 <!-- cleans up auto generated code -->
200 <artifactId>maven-clean-plugin</artifactId>
204 <directory>${codeGeneratorPath}</directory>
206 <include>**</include>
213 <!-- Ignore/Execute plugin execution -->
215 <groupId>org.eclipse.m2e</groupId>
216 <artifactId>lifecycle-mapping</artifactId>
217 <version>1.0.0</version>
219 <lifecycleMappingMetadata>
222 <pluginExecutionFilter>
223 <groupId>org.codehaus.mojo</groupId>
224 <artifactId>properties-maven-plugin</artifactId>
225 <versionRange>[0.0,)</versionRange>
227 <goal>set-system-properties</goal>
229 </pluginExecutionFilter>
235 <pluginExecutionFilter>
236 <groupId>org.codehaus.enunciate</groupId>
237 <artifactId>maven-enunciate-plugin</artifactId>
238 <versionRange>[0.0,)</versionRange>
242 </pluginExecutionFilter>
248 <pluginExecutionFilter>
249 <groupId>org.jacoco</groupId>
250 <artifactId>jacoco-maven-plugin</artifactId>
251 <versionRange>[0.0,)</versionRange>
253 <goal>prepare-agent</goal>
254 <goal>pre-test</goal>
255 <goal>post-test</goal>
257 </pluginExecutionFilter>
263 <pluginExecutionFilter>
264 <groupId>org.ops4j.pax.exam</groupId>
265 <artifactId>maven-paxexam-plugin</artifactId>
266 <versionRange>[1.2.4,)</versionRange>
268 <goal>generate-depends-file</goal>
270 </pluginExecutionFilter>
273 <runOnIncremental>false</runOnIncremental>
278 <pluginExecutionFilter>
279 <groupId>org.apache.maven.plugins</groupId>
280 <artifactId>maven-checkstyle-plugin</artifactId>
281 <versionRange>[2.0,)</versionRange>
285 </pluginExecutionFilter>
291 <pluginExecutionFilter>
292 <groupId>org.opendaylight.yangtools</groupId>
293 <artifactId>yang-maven-plugin</artifactId>
294 <versionRange>[0.5,)</versionRange>
296 <goal>generate-sources</goal>
298 </pluginExecutionFilter>
304 <pluginExecutionFilter>
305 <groupId>org.codehaus.groovy.maven</groupId>
306 <artifactId>gmaven-plugin</artifactId>
307 <versionRange>1.0</versionRange>
311 </pluginExecutionFilter>
317 <pluginExecutionFilter>
318 <groupId>org.apache.maven.plugins</groupId>
319 <artifactId>maven-enforcer-plugin</artifactId>
320 <versionRange>${enforcer.version}</versionRange>
324 </pluginExecutionFilter>
330 </lifecycleMappingMetadata>
337 <groupId>org.codehaus.mojo</groupId>
338 <artifactId>build-helper-maven-plugin</artifactId>
341 <groupId>org.apache.maven.plugins</groupId>
342 <artifactId>maven-checkstyle-plugin</artifactId>