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