Move to odlparent 2.0.0
[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>2.0.0</version>
9     <relativePath/>
10   </parent>
11   <groupId>org.opendaylight.l2switch</groupId>
12   <artifactId>l2switch-parent</artifactId>
13   <version>0.6.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     <branding.version>1.5.0-SNAPSHOT</branding.version>
20     <mdsal.version>2.3.0-SNAPSHOT</mdsal.version>
21     <mdsal.model.version>0.11.0-SNAPSHOT</mdsal.model.version>
22     <controller.mdsal.version>1.6.0-SNAPSHOT</controller.mdsal.version>
23     <yangtools.version>1.2.0-SNAPSHOT</yangtools.version>
24     <jung2.version>2.0.1</jung2.version>
25     <config.version>0.7.0-SNAPSHOT</config.version>
26     <openflow.plugin.version>0.5.0-SNAPSHOT</openflow.plugin.version>
27     <dlux.version>0.6.0-SNAPSHOT</dlux.version>
28     <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
29     <config.packethandler.configfile>50-packethandler.xml</config.packethandler.configfile>
30     <config.loopremover.configfile>52-loopremover.xml</config.loopremover.configfile>
31     <config.arphandler.configfile>54-arphandler.xml</config.arphandler.configfile>
32     <config.addresstracker.configfile>56-addresstracker.xml</config.addresstracker.configfile>
33     <config.hosttracker.configfile>57-hosttracker.xml</config.hosttracker.configfile>
34     <config.l2switchmain.configfile>58-l2switchmain.xml</config.l2switchmain.configfile>
35   </properties>
36
37   <dependencyManagement>
38     <dependencies>
39       <dependency>
40         <groupId>org.opendaylight.yangtools</groupId>
41         <artifactId>yangtools-artifacts</artifactId>
42         <version>${yangtools.version}</version>
43         <scope>import</scope>
44         <type>pom</type>
45       </dependency>
46       <dependency>
47         <groupId>org.opendaylight.mdsal</groupId>
48         <artifactId>mdsal-artifacts</artifactId>
49         <version>${mdsal.version}</version>
50         <scope>import</scope>
51         <type>pom</type>
52       </dependency>
53       <dependency>
54         <groupId>org.opendaylight.mdsal.model</groupId>
55         <artifactId>mdsal-model-artifacts</artifactId>
56         <version>${mdsal.model.version}</version>
57         <scope>import</scope>
58         <type>pom</type>
59       </dependency>
60       <dependency>
61         <groupId>org.opendaylight.controller</groupId>
62         <artifactId>config-artifacts</artifactId>
63         <version>${config.version}</version>
64         <scope>import</scope>
65         <type>pom</type>
66       </dependency>
67       <dependency>
68         <groupId>org.opendaylight.controller</groupId>
69         <artifactId>mdsal-artifacts</artifactId>
70         <version>${controller.mdsal.version}</version>
71         <scope>import</scope>
72         <type>pom</type>
73       </dependency>
74       <dependency>
75         <groupId>org.opendaylight.openflowplugin</groupId>
76         <artifactId>openflowplugin-artifacts</artifactId>
77         <version>${openflow.plugin.version}</version>
78         <scope>import</scope>
79         <type>pom</type>
80       </dependency>
81       <dependency>
82         <groupId>org.opendaylight.l2switch</groupId>
83         <artifactId>l2switch-artifacts</artifactId>
84         <version>${project.version}</version>
85         <scope>import</scope>
86         <type>pom</type>
87       </dependency>
88
89       <dependency>
90         <groupId>org.opendaylight.controller.thirdparty</groupId>
91         <artifactId>net.sf.jung2</artifactId>
92         <version>${jung2.version}</version>
93       </dependency>
94     </dependencies>
95   </dependencyManagement>
96
97   <distributionManagement>
98     <!-- OpenDayLight Released artifact -->
99     <repository>
100       <id>opendaylight-release</id>
101       <url>${nexusproxy}/repositories/opendaylight.release/</url>
102     </repository>
103     <!-- OpenDayLight Snapshot artifact -->
104     <snapshotRepository>
105       <id>opendaylight-snapshot</id>
106       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
107     </snapshotRepository>
108     <site>
109       <id>${project.artifactId}-site</id>
110       <url>./</url>
111     </site>
112   </distributionManagement>
113
114   <build>
115       <pluginManagement>
116           <plugins>
117               <plugin>
118                   <groupId>org.apache.maven.plugins</groupId>
119                   <artifactId>maven-compiler-plugin</artifactId>
120                   <version>${maven.compile.plugin.version}</version>
121                   <configuration>
122                       <source>${java.version.source}</source>
123                       <target>${java.version.target}</target>
124                   </configuration>
125               </plugin>
126
127               <plugin>
128                   <groupId>org.apache.maven.plugins</groupId>
129                   <artifactId>maven-checkstyle-plugin</artifactId>
130                   <configuration>
131                       <failOnViolation>true</failOnViolation>
132                       <configLocation>checkstyle-logging.xml</configLocation>
133                       <consoleOutput>true</consoleOutput>
134                       <includeTestSourceDirectory>true</includeTestSourceDirectory>
135                       <sourceDirectory>${project.basedir}</sourceDirectory>
136                       <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
137                       <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/xtend-gen\/,**\/${codeGeneratorPath}\/,**\/${configCodeGeneratorPath}\/,</excludes>
138                   </configuration>
139                   <dependencies>
140                       <dependency>
141                           <groupId>org.opendaylight.yangtools</groupId>
142                           <artifactId>checkstyle-logging</artifactId>
143                           <version>${yangtools.version}</version>
144                       </dependency>
145                   </dependencies>
146                   <executions>
147                       <execution>
148                           <id>check</id>
149                           <goals>
150                               <goal>check</goal>
151                           </goals>
152                           <phase>process-sources</phase>
153                       </execution>
154                   </executions>
155               </plugin>
156
157               <!--  tells eclipse to import these folders into the package explorer as "source" folders
158                     which allows eclipse to resolve the classes correctly during an eclipse build -->
159               <plugin>
160                   <groupId>org.codehaus.mojo</groupId>
161                   <artifactId>build-helper-maven-plugin</artifactId>
162                   <version>1.8</version>
163                   <executions>
164                       <execution>
165                           <id>add-source</id>
166                           <goals>
167                               <goal>add-source</goal>
168                           </goals>
169                           <phase>generate-sources</phase>
170                           <configuration>
171                               <sources>
172                                   <source>src/main/yang</source>
173                                   <source>${codeGeneratorPath}</source>
174                                   <source>${configCodeGeneratorPath}</source>
175                               </sources>
176                           </configuration>
177                       </execution>
178                   </executions>
179               </plugin>
180               <!--  cleans up auto generated code  -->
181               <plugin>
182                   <artifactId>maven-clean-plugin</artifactId>
183                   <configuration>
184                       <filesets>
185                           <fileset>
186                               <directory>${codeGeneratorPath}</directory>
187                               <directory>${configCodeGeneratorPath}</directory>
188                               <includes>
189                                   <include>**</include>
190                               </includes>
191                           </fileset>
192                       </filesets>
193                   </configuration>
194               </plugin>
195
196               <!-- Ignore/Execute plugin execution -->
197               <plugin>
198                   <groupId>org.eclipse.m2e</groupId>
199                   <artifactId>lifecycle-mapping</artifactId>
200                   <version>1.0.0</version>
201                   <configuration>
202                       <lifecycleMappingMetadata>
203                           <pluginExecutions>
204                               <pluginExecution>
205                                   <pluginExecutionFilter>
206                                       <groupId>org.codehaus.mojo</groupId>
207                                       <artifactId>properties-maven-plugin</artifactId>
208                                       <versionRange>[0.0,)</versionRange>
209                                       <goals>
210                                           <goal>set-system-properties</goal>
211                                       </goals>
212                                   </pluginExecutionFilter>
213                                   <action>
214                                       <ignore />
215                                   </action>
216                               </pluginExecution>
217                               <pluginExecution>
218                                   <pluginExecutionFilter>
219                                       <groupId>org.jacoco</groupId>
220                                       <artifactId>jacoco-maven-plugin</artifactId>
221                                       <versionRange>[0.0,)</versionRange>
222                                       <goals>
223                                           <goal>prepare-agent</goal>
224                                           <goal>pre-test</goal>
225                                           <goal>post-test</goal>
226                                       </goals>
227                                   </pluginExecutionFilter>
228                                   <action>
229                                       <ignore />
230                                   </action>
231                               </pluginExecution>
232                               <pluginExecution>
233                                   <pluginExecutionFilter>
234                                       <groupId>org.ops4j.pax.exam</groupId>
235                                       <artifactId>maven-paxexam-plugin</artifactId>
236                                       <versionRange>[1.2.4,)</versionRange>
237                                       <goals>
238                                           <goal>generate-depends-file</goal>
239                                       </goals>
240                                   </pluginExecutionFilter>
241                                   <action>
242                                       <execute>
243                                           <runOnIncremental>false</runOnIncremental>
244                                       </execute>
245                                   </action>
246                               </pluginExecution>
247                               <pluginExecution>
248                                   <pluginExecutionFilter>
249                                       <groupId>org.apache.maven.plugins</groupId>
250                                       <artifactId>maven-checkstyle-plugin</artifactId>
251                                       <versionRange>[2.0,)</versionRange>
252                                       <goals>
253                                           <goal>check</goal>
254                                       </goals>
255                                   </pluginExecutionFilter>
256                                   <action>
257                                       <execute />
258                                   </action>
259                               </pluginExecution>
260                               <pluginExecution>
261                                   <pluginExecutionFilter>
262                                       <groupId>org.opendaylight.yangtools</groupId>
263                                       <artifactId>yang-maven-plugin</artifactId>
264                                       <versionRange>[0.5,)</versionRange>
265                                       <goals>
266                                           <goal>generate-sources</goal>
267                                       </goals>
268                                   </pluginExecutionFilter>
269                                   <action>
270                                       <execute />
271                                   </action>
272                               </pluginExecution>
273                               <pluginExecution>
274                                   <pluginExecutionFilter>
275                                       <groupId>org.codehaus.groovy.maven</groupId>
276                                       <artifactId>gmaven-plugin</artifactId>
277                                       <versionRange>1.0</versionRange>
278                                       <goals>
279                                           <goal>execute</goal>
280                                       </goals>
281                                   </pluginExecutionFilter>
282                                   <action>
283                                       <ignore />
284                                   </action>
285                               </pluginExecution>
286                               <pluginExecution>
287                                   <pluginExecutionFilter>
288                                       <groupId>org.apache.maven.plugins</groupId>
289                                       <artifactId>maven-enforcer-plugin</artifactId>
290                                       <versionRange>${enforcer.version}</versionRange>
291                                       <goals>
292                                           <goal>enforce</goal>
293                                       </goals>
294                                   </pluginExecutionFilter>
295                                   <action>
296                                       <ignore />
297                                   </action>
298                               </pluginExecution>
299                           </pluginExecutions>
300                       </lifecycleMappingMetadata>
301                   </configuration>
302               </plugin>
303           </plugins>
304       </pluginManagement>
305       <plugins>
306           <plugin>
307             <groupId>org.codehaus.mojo</groupId>
308             <artifactId>build-helper-maven-plugin</artifactId>
309           </plugin>
310           <plugin>
311               <groupId>org.apache.maven.plugins</groupId>
312               <artifactId>maven-checkstyle-plugin</artifactId>
313           </plugin>
314       </plugins>
315   </build>
316
317
318 </project>