Fix odlparent reference
[l2switch.git] / parent / pom.xml
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>
5   <parent>
6     <groupId>org.opendaylight.odlparent</groupId>
7     <artifactId>odlparent</artifactId>
8     <version>1.5.0-SNAPSHOT</version>
9     <relativePath/>
10   </parent>
11   <groupId>org.opendaylight.l2switch</groupId>
12   <artifactId>l2switch-parent</artifactId>
13   <version>0.2.0-SNAPSHOT</version>
14   <packaging>pom</packaging>
15
16   <properties>
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>
36   </properties>
37
38   <dependencyManagement>
39     <dependencies>
40       <!-- SAL bundles -->
41       <dependency>
42         <groupId>org.opendaylight.controller</groupId>
43         <artifactId>sal-binding-api</artifactId>
44         <version>${mdsal.version}</version>
45       </dependency>
46       <dependency>
47         <groupId>org.opendaylight.controller</groupId>
48         <artifactId>sal-binding-config</artifactId>
49         <version>${mdsal.version}</version>
50       </dependency>
51       <dependency>
52         <groupId>org.opendaylight.controller.model</groupId>
53         <artifactId>model-inventory</artifactId>
54         <version>${mdsal.version}</version>
55       </dependency>
56       <dependency>
57         <groupId>org.opendaylight.controller.model</groupId>
58         <artifactId>model-topology</artifactId>
59         <version>${mdsal.version}</version>
60       </dependency>
61       <dependency>
62         <groupId>org.opendaylight.yangtools</groupId>
63         <artifactId>yang-binding</artifactId>
64         <version>${yangtools.version}</version>
65       </dependency>
66       <dependency>
67         <groupId>org.opendaylight.yangtools</groupId>
68         <artifactId>yang-common</artifactId>
69         <version>${yangtools.version}</version>
70       </dependency>
71       <dependency>
72         <groupId>org.opendaylight.yangtools.model</groupId>
73         <artifactId>ietf-yang-types</artifactId>
74         <version>${ietf-yang-types.version}</version>
75       </dependency>
76       <dependency>
77         <groupId>org.opendaylight.openflowplugin.model</groupId>
78         <artifactId>model-flow-service</artifactId>
79         <version>${openflow.plugin.version}</version>
80       </dependency>
81       <dependency>
82         <groupId>org.opendaylight.controller.thirdparty</groupId>
83         <artifactId>net.sf.jung2</artifactId>
84         <version>${jung2.version}</version>
85       </dependency>
86       <dependency>
87         <groupId>org.opendaylight.controller</groupId>
88         <artifactId>config-api</artifactId>
89         <version>${config.version}</version>
90       </dependency>
91     </dependencies>
92   </dependencyManagement>
93
94   <repositories>
95     <!-- OpenDayLight Repo Mirror -->
96     <repository>
97       <id>opendaylight-mirror</id>
98       <name>opendaylight-mirror</name>
99       <url>http://nexus.opendaylight.org/content/groups/public/</url>
100       <snapshots>
101         <enabled>false</enabled>
102       </snapshots>
103       <releases>
104         <enabled>true</enabled>
105         <updatePolicy>never</updatePolicy>
106       </releases>
107     </repository>
108
109     <!-- OpenDayLight Snapshot artifact -->
110     <repository>
111       <id>opendaylight-snapshot</id>
112       <name>opendaylight-snapshot</name>
113       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
114       <snapshots>
115         <enabled>true</enabled>
116       </snapshots>
117       <releases>
118         <enabled>false</enabled>
119       </releases>
120     </repository>
121
122   </repositories>
123
124   <distributionManagement>
125     <!-- OpenDayLight Released artifact -->
126     <repository>
127       <id>opendaylight-release</id>
128       <url>${nexusproxy}/repositories/opendaylight.release/</url>
129     </repository>
130     <!-- OpenDayLight Snapshot artifact -->
131     <snapshotRepository>
132       <id>opendaylight-snapshot</id>
133       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
134     </snapshotRepository>
135     <site>
136       <id>${project.artifactId}-site</id>
137       <url>./</url>
138     </site>
139   </distributionManagement>
140
141   <build>
142       <pluginManagement>
143           <plugins>
144               <plugin>
145                   <groupId>org.apache.maven.plugins</groupId>
146                   <artifactId>maven-compiler-plugin</artifactId>
147                   <version>${maven.compile.plugin.version}</version>
148                   <configuration>
149                       <source>${java.version.source}</source>
150                       <target>${java.version.target}</target>
151                   </configuration>
152               </plugin>
153
154               <plugin>
155                 <groupId>org.apache.maven.plugins</groupId>
156                 <artifactId>maven-checkstyle-plugin</artifactId>
157                 <version>${checkstyle.version}</version>
158                 <configuration>
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>
166                 </configuration>
167                 <dependencies>
168                   <dependency>
169                     <groupId>org.opendaylight.controller</groupId>
170                     <artifactId>checkstyle</artifactId>
171                     <version>0.1.0-SNAPSHOT</version>
172                   </dependency>
173                 </dependencies>
174                 <executions>
175                   <execution>
176                     <id>check</id>
177                     <goals>
178                       <goal>check</goal>
179                     </goals>
180                     <phase>process-sources</phase>
181                   </execution>
182                 </executions>
183               </plugin>
184
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 -->
187               <plugin>
188                   <groupId>org.codehaus.mojo</groupId>
189                   <artifactId>build-helper-maven-plugin</artifactId>
190                   <version>1.8</version>
191                   <executions>
192                       <execution>
193                           <id>add-source</id>
194                           <goals>
195                               <goal>add-source</goal>
196                           </goals>
197                           <phase>generate-sources</phase>
198                           <configuration>
199                               <sources>
200                                   <source>src/main/yang</source>
201                                   <source>${codeGeneratorPath}</source>
202                                   <source>${configCodeGeneratorPath}</source>
203                               </sources>
204                           </configuration>
205                       </execution>
206                   </executions>
207               </plugin>
208               <!--  cleans up auto generated code  -->
209               <plugin>
210                   <artifactId>maven-clean-plugin</artifactId>
211                   <configuration>
212                       <filesets>
213                           <fileset>
214                               <directory>${codeGeneratorPath}</directory>
215                               <directory>${configCodeGeneratorPath}</directory>
216                               <includes>
217                                   <include>**</include>
218                               </includes>
219                           </fileset>
220                       </filesets>
221                   </configuration>
222               </plugin>
223
224               <!-- Ignore/Execute plugin execution -->
225               <plugin>
226                   <groupId>org.eclipse.m2e</groupId>
227                   <artifactId>lifecycle-mapping</artifactId>
228                   <version>1.0.0</version>
229                   <configuration>
230                       <lifecycleMappingMetadata>
231                           <pluginExecutions>
232                               <pluginExecution>
233                                   <pluginExecutionFilter>
234                                       <groupId>org.codehaus.mojo</groupId>
235                                       <artifactId>properties-maven-plugin</artifactId>
236                                       <versionRange>[0.0,)</versionRange>
237                                       <goals>
238                                           <goal>set-system-properties</goal>
239                                       </goals>
240                                   </pluginExecutionFilter>
241                                   <action>
242                                       <ignore />
243                                   </action>
244                               </pluginExecution>
245                               <pluginExecution>
246                                   <pluginExecutionFilter>
247                                       <groupId>org.codehaus.enunciate</groupId>
248                                       <artifactId>maven-enunciate-plugin</artifactId>
249                                       <versionRange>[0.0,)</versionRange>
250                                       <goals>
251                                           <goal>docs</goal>
252                                       </goals>
253                                   </pluginExecutionFilter>
254                                   <action>
255                                       <ignore />
256                                   </action>
257                               </pluginExecution>
258                               <pluginExecution>
259                                   <pluginExecutionFilter>
260                                       <groupId>org.jacoco</groupId>
261                                       <artifactId>jacoco-maven-plugin</artifactId>
262                                       <versionRange>[0.0,)</versionRange>
263                                       <goals>
264                                           <goal>prepare-agent</goal>
265                                           <goal>pre-test</goal>
266                                           <goal>post-test</goal>
267                                       </goals>
268                                   </pluginExecutionFilter>
269                                   <action>
270                                       <ignore />
271                                   </action>
272                               </pluginExecution>
273                               <pluginExecution>
274                                   <pluginExecutionFilter>
275                                       <groupId>org.ops4j.pax.exam</groupId>
276                                       <artifactId>maven-paxexam-plugin</artifactId>
277                                       <versionRange>[1.2.4,)</versionRange>
278                                       <goals>
279                                           <goal>generate-depends-file</goal>
280                                       </goals>
281                                   </pluginExecutionFilter>
282                                   <action>
283                                       <execute>
284                                           <runOnIncremental>false</runOnIncremental>
285                                       </execute>
286                                   </action>
287                               </pluginExecution>
288                               <pluginExecution>
289                                   <pluginExecutionFilter>
290                                       <groupId>org.apache.maven.plugins</groupId>
291                                       <artifactId>maven-checkstyle-plugin</artifactId>
292                                       <versionRange>[2.0,)</versionRange>
293                                       <goals>
294                                           <goal>check</goal>
295                                       </goals>
296                                   </pluginExecutionFilter>
297                                   <action>
298                                       <ignore />
299                                   </action>
300                               </pluginExecution>
301                               <pluginExecution>
302                                   <pluginExecutionFilter>
303                                       <groupId>org.opendaylight.yangtools</groupId>
304                                       <artifactId>yang-maven-plugin</artifactId>
305                                       <versionRange>[0.5,)</versionRange>
306                                       <goals>
307                                           <goal>generate-sources</goal>
308                                       </goals>
309                                   </pluginExecutionFilter>
310                                   <action>
311                                       <execute />
312                                   </action>
313                               </pluginExecution>
314                               <pluginExecution>
315                                   <pluginExecutionFilter>
316                                       <groupId>org.codehaus.groovy.maven</groupId>
317                                       <artifactId>gmaven-plugin</artifactId>
318                                       <versionRange>1.0</versionRange>
319                                       <goals>
320                                           <goal>execute</goal>
321                                       </goals>
322                                   </pluginExecutionFilter>
323                                   <action>
324                                       <ignore />
325                                   </action>
326                               </pluginExecution>
327                               <pluginExecution>
328                                   <pluginExecutionFilter>
329                                       <groupId>org.apache.maven.plugins</groupId>
330                                       <artifactId>maven-enforcer-plugin</artifactId>
331                                       <versionRange>${enforcer.version}</versionRange>
332                                       <goals>
333                                           <goal>enforce</goal>
334                                       </goals>
335                                   </pluginExecutionFilter>
336                                   <action>
337                                       <ignore />
338                                   </action>
339                               </pluginExecution>
340                           </pluginExecutions>
341                       </lifecycleMappingMetadata>
342                   </configuration>
343               </plugin>
344               <plugin>
345                 <groupId>org.apache.felix</groupId>
346                 <artifactId>maven-bundle-plugin</artifactId>
347                 <version>${bundle.plugin.version}</version>
348               </plugin>
349           </plugins>
350       </pluginManagement>
351       <plugins>
352           <plugin>
353             <groupId>org.codehaus.mojo</groupId>
354             <artifactId>build-helper-maven-plugin</artifactId>
355           </plugin>
356           <plugin>
357               <groupId>org.apache.maven.plugins</groupId>
358               <artifactId>maven-checkstyle-plugin</artifactId>
359           </plugin>
360           <plugin>
361             <groupId>org.jacoco</groupId>
362             <artifactId>jacoco-maven-plugin</artifactId>
363             <configuration>
364               <includes>
365                 <include>org.opendaylight.l2switch.*</include>
366               </includes>
367             </configuration>
368             <executions>
369               <execution>
370                 <id>pre-test</id>
371                 <goals>
372                   <goal>prepare-agent</goal>
373                 </goals>
374               </execution>
375               <execution>
376                 <id>post-test</id>
377                 <goals>
378                   <goal>report</goal>
379                 </goals>
380                 <phase>test</phase>
381               </execution>
382             </executions>
383           </plugin>
384       </plugins>
385   </build>
386
387
388 </project>