Upgrade upstream versions
[mdsal.git] / common / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12
13     <parent>
14         <groupId>org.opendaylight.odlparent</groupId>
15         <artifactId>odlparent</artifactId>
16         <version>1.6.0-SNAPSHOT</version>
17         <relativePath></relativePath>
18     </parent>
19
20     <modelVersion>4.0.0</modelVersion>
21     <artifactId>mdsal-parent</artifactId>
22     <groupId>org.opendaylight.mdsal</groupId>
23     <version>2.0.0-SNAPSHOT</version>
24     <packaging>pom</packaging>
25
26     <properties>
27         <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
28
29         <!-- FIXME: these will be upstreamed -->
30         <maven.depends.version>1.2</maven.depends.version>
31     </properties>
32
33     <dependencyManagement>
34         <dependencies>
35             <dependency>
36                  <groupId>org.opendaylight.mdsal</groupId>
37                  <artifactId>mdsal-artifacts</artifactId>
38                  <version>2.0.0-SNAPSHOT</version>
39                  <type>pom</type>
40                  <scope>import</scope>
41             </dependency>
42             <dependency>
43                  <groupId>org.opendaylight.yangtools</groupId>
44                  <artifactId>yangtools-artifacts</artifactId>
45                  <version>0.8.0-SNAPSHOT</version>
46                  <type>pom</type>
47                  <scope>import</scope>
48             </dependency>
49             <!-- Testing Dependencies -->
50             <dependency>
51                 <groupId>org.apache.maven.shared</groupId>
52                 <artifactId>maven-verifier</artifactId>
53                 <version>1.6</version>
54                 <scope>test</scope>
55             </dependency>
56             <dependency>
57                 <groupId>org.codehaus.groovy</groupId>
58                 <artifactId>groovy</artifactId>
59                 <version>2.4.5</version>
60                 <scope>test</scope>
61             </dependency>
62             <dependency>
63                 <groupId>org.codehaus.groovy</groupId>
64                 <artifactId>groovy-xml</artifactId>
65                 <version>2.4.5</version>
66                 <scope>test</scope>
67             </dependency>
68             <dependency>
69                 <groupId>org.apache.maven</groupId>
70                 <artifactId>maven-core</artifactId>
71                 <version>3.3.3</version>
72             </dependency>
73             <dependency>
74                 <groupId>org.apache.maven</groupId>
75                 <artifactId>maven-plugin-api</artifactId>
76                 <version>3.3.3</version>
77             </dependency>
78             <dependency>
79                 <groupId>org.eclipse.xtend</groupId>
80                 <artifactId>org.eclipse.xtend.lib</artifactId>
81                 <version>2.8.4</version>
82             </dependency>
83             <dependency>
84                 <groupId>org.eclipse.xtend</groupId>
85                 <artifactId>org.eclipse.xtend.lib.macro</artifactId>
86                 <version>2.8.4</version>
87             </dependency>
88             <dependency>
89                 <groupId>org.eclipse.xtext</groupId>
90                 <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
91                 <version>2.8.4</version>
92             </dependency>
93
94             <dependency>
95                 <groupId>org.glassfish.jersey.ext</groupId>
96                 <artifactId>jersey-proxy-client</artifactId>
97                 <version>2.22</version>
98             </dependency>
99             <dependency>
100                 <groupId>org.glassfish.jersey.core</groupId>
101                 <artifactId>jersey-client</artifactId>
102                 <version>2.0</version>
103             </dependency>
104             <dependency>
105               <groupId>com.lmax</groupId>
106               <artifactId>disruptor</artifactId>
107               <version>3.3.2</version>
108             </dependency>
109         </dependencies>
110     </dependencyManagement>
111
112     <dependencies>
113         <dependency>
114             <groupId>org.slf4j</groupId>
115             <artifactId>slf4j-simple</artifactId>
116             <scope>test</scope>
117         </dependency>
118     </dependencies>
119
120     <build>
121         <pluginManagement>
122             <plugins>
123                 <plugin>
124                     <groupId>org.apache.maven.plugins</groupId>
125                     <artifactId>maven-jar-plugin</artifactId>
126                     <version>${maven.jar.version}</version>
127                     <configuration>
128                         <archive>
129                             <!--
130                                  Bundle OSGi Manifest created by maven-bundle-plugin
131                                  into a jar file
132                                  -->
133                             <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
134                         </archive>
135                     </configuration>
136                 </plugin>
137                 <plugin>
138                     <groupId>org.apache.felix</groupId>
139                     <artifactId>maven-bundle-plugin</artifactId>
140                     <extensions>true</extensions>
141                     <executions>
142                         <execution>
143                             <id>bundle-manifest</id>
144                             <phase>process-classes</phase>
145                             <goals>
146                                 <goal>manifest</goal>
147                             </goals>
148                         </execution>
149                     </executions>
150                 </plugin>
151
152                 <plugin>
153                     <groupId>org.eclipse.m2e</groupId>
154                     <artifactId>lifecycle-mapping</artifactId>
155                     <version>1.0.0</version>
156                     <configuration>
157                         <lifecycleMappingMetadata>
158                             <pluginExecutions>
159                                 <pluginExecution>
160                                     <pluginExecutionFilter>
161                                         <groupId>org.apache.felix</groupId>
162                                         <artifactId>maven-bundle-plugin</artifactId>
163                                         <versionRange>[1.0,)</versionRange>
164                                         <goals>
165                                             <goal>manifest</goal>
166                                         </goals>
167                                     </pluginExecutionFilter>
168                                     <action>
169                                         <execute />
170                                     </action>
171                                 </pluginExecution>
172                                 <pluginExecution>
173                                     <pluginExecutionFilter>
174                                         <groupId>org.apache.maven.plugins</groupId>
175                                         <artifactId>maven-antrun-plugin</artifactId>
176                                         <versionRange>[1.0,)</versionRange>
177                                         <goals>
178                                             <goal>run</goal>
179                                         </goals>
180                                     </pluginExecutionFilter>
181                                     <action>
182                                         <execute/>
183                                     </action>
184                                 </pluginExecution>
185                                 <pluginExecution>
186                                     <pluginExecutionFilter>
187                                         <groupId>org.opendaylight.yangtools</groupId>
188                                         <artifactId>yang-maven-plugin</artifactId>
189                                         <versionRange>[0.5,)</versionRange>
190                                         <goals>
191                                             <goal>generate-sources</goal>
192                                         </goals>
193                                      </pluginExecutionFilter>
194                                      <action>
195                                          <execute/>
196                                      </action>
197                                  </pluginExecution>
198                                  <pluginExecution>
199                                     <pluginExecutionFilter>
200                                         <groupId>org.codehaus.mojo</groupId>
201                                         <artifactId>properties-maven-plugin</artifactId>
202                                         <versionRange>1.0-alpha-2</versionRange>
203                                         <goals>
204                                             <goal>write-project-properties</goal>
205                                         </goals>
206                                      </pluginExecutionFilter>
207                                      <action>
208                                          <ignore />
209                                      </action>
210                                  </pluginExecution>
211                                  <pluginExecution>
212                                     <pluginExecutionFilter>
213                                         <groupId>org.ops4j.pax.exam</groupId>
214                                         <artifactId>maven-paxexam-plugin</artifactId>
215                                         <versionRange>1.2.4</versionRange>
216                                         <goals>
217                                             <goal>generate-depends-file</goal>
218                                         </goals>
219                                      </pluginExecutionFilter>
220                                      <action>
221                                          <ignore />
222                                      </action>
223                                  </pluginExecution>
224                                  <pluginExecution>
225                                     <pluginExecutionFilter>
226                                         <groupId>org.jacoco</groupId>
227                                         <artifactId>jacoco-maven-plugin</artifactId>
228                                         <versionRange>[0.6,)</versionRange>
229                                         <goals>
230                                             <goal>prepare-agent</goal>
231                                         </goals>
232                                      </pluginExecutionFilter>
233                                      <action>
234                                          <ignore/>
235                                      </action>
236                                  </pluginExecution>
237                                  <pluginExecution>
238                                     <pluginExecutionFilter>
239                                         <groupId>org.apache.maven.plugins</groupId>
240                                         <artifactId>maven-checkstyle-plugin</artifactId>
241                                         <versionRange>[2.12,)</versionRange>
242                                         <goals>
243                                             <goal>check</goal>
244                                         </goals>
245                                      </pluginExecutionFilter>
246                                      <action>
247                                          <execute/>
248                                      </action>
249                                  </pluginExecution>
250                             </pluginExecutions>
251                         </lifecycleMappingMetadata>
252                     </configuration>
253                 </plugin>
254                 <plugin>
255                     <groupId>org.opendaylight.yangtools</groupId>
256                     <artifactId>yang-maven-plugin</artifactId>
257                     <version>0.8.0-SNAPSHOT</version>
258                     <executions>
259                         <execution>
260                             <goals>
261                                 <goal>generate-sources</goal>
262                             </goals>
263                             <configuration>
264                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
265                                 <codeGenerators>
266                                     <generator>
267                                         <codeGeneratorClass>
268                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
269                                         </codeGeneratorClass>
270                                         <outputBaseDir>
271                                             target/generated-sources/sal
272                                         </outputBaseDir>
273                                     </generator>
274                                     <generator>
275                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
276                                         <outputBaseDir>target/site/restconf</outputBaseDir>
277                                     </generator>
278                                     <generator>
279                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
280                                         <outputBaseDir>target/site/restconf</outputBaseDir>
281                                     </generator>
282                                 </codeGenerators>
283                                 <inspectDependencies>true</inspectDependencies>
284                             </configuration>
285                         </execution>
286                     </executions>
287                     <dependencies>
288                         <dependency>
289                             <groupId>org.opendaylight.mdsal</groupId>
290                             <artifactId>maven-sal-api-gen-plugin</artifactId>
291                             <version>0.8.0-SNAPSHOT</version>
292                             <type>jar</type>
293                         </dependency>
294                     </dependencies>
295                 </plugin>
296                 <plugin>
297                     <groupId>org.ops4j.pax.exam</groupId>
298                     <artifactId>maven-paxexam-plugin</artifactId>
299                     <version>1.2.4</version>
300                     <executions>
301                         <execution>
302                             <id>generate-config</id>
303                             <goals>
304                                 <goal>generate-depends-file</goal>
305                             </goals>
306                         </execution>
307                     </executions>
308                 </plugin>
309                 <plugin>
310                     <groupId>org.apache.maven.plugins</groupId>
311                     <artifactId>maven-javadoc-plugin</artifactId>
312                     <version>${maven.javadoc.version}</version>
313                     <configuration>
314                         <stylesheetfile>stylesheet.css</stylesheetfile>
315                     </configuration>
316                     <executions>
317                         <execution>
318                             <id>attach-javadocs</id>
319                             <goals>
320                                 <goal>jar</goal>
321                             </goals>
322                         </execution>
323                         <execution>
324                             <goals>
325                                 <goal>aggregate</goal>
326                             </goals>
327                             <phase>site</phase>
328                         </execution>
329                     </executions>
330                 </plugin>
331                 <plugin>
332                     <groupId>org.codehaus.mojo</groupId>
333                     <artifactId>build-helper-maven-plugin</artifactId>
334                     <version>1.9.1</version>
335                     <executions>
336                         <execution>
337                             <phase>generate-sources</phase>
338                             <goals>
339                                 <goal>add-source</goal>
340                             </goals>
341                             <configuration>
342                                 <sources>
343                                     <source>target/generated-sources/parser</source>
344                                     <source>target/generated-sources/sal</source>
345                                     <source>${basedir}/src/main/xtend-gen</source>
346                                 </sources>
347                             </configuration>
348                         </execution>
349                     </executions>
350                 </plugin>
351                 <plugin>
352                     <groupId>org.eclipse.xtend</groupId>
353                     <artifactId>xtend-maven-plugin</artifactId>
354                     <version>2.8.4</version>
355                     <executions>
356                         <execution>
357                             <goals>
358                                 <goal>compile</goal>
359                             </goals>
360                             <configuration>
361                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
362                             </configuration>
363                         </execution>
364                     </executions>
365                 </plugin>
366                 <plugin>
367                     <groupId>org.apache.servicemix.tooling</groupId>
368                     <artifactId>depends-maven-plugin</artifactId>
369                     <version>${maven.depends.version}</version>
370                     <executions>
371                         <execution>
372                             <id>generate-depends-file</id>
373                             <goals>
374                                 <goal>generate-depends-file</goal>
375                             </goals>
376                         </execution>
377                     </executions>
378                 </plugin>
379             </plugins>
380         </pluginManagement>
381
382         <plugins>
383             <plugin>
384                 <groupId>org.apache.maven.plugins</groupId>
385                 <artifactId>maven-enforcer-plugin</artifactId>
386                 <!--
387                 <executions>
388                     <execution>
389                         <id>enforce-dependencies</id>
390                         <configuration>
391                             <rules>
392                                 <DependencyConvergence />
393                             </rules>
394                         </configuration>
395                         <goals>
396                             <goal>enforce</goal>
397                         </goals>
398                     </execution>
399                 </executions>
400                 -->
401             </plugin>
402
403             <plugin>
404                 <artifactId>maven-clean-plugin</artifactId>
405                 <configuration>
406                     <filesets>
407                         <fileset>
408                             <directory>${basedir}/src/main/xtend-gen</directory>
409                             <includes>
410                                 <include>**</include>
411                             </includes>
412                         </fileset>
413                     </filesets>
414                 </configuration>
415             </plugin>
416             <plugin>
417                 <groupId>org.apache.maven.plugins</groupId>
418                 <artifactId>maven-jar-plugin</artifactId>
419             </plugin>
420             <plugin>
421                 <groupId>org.apache.felix</groupId>
422                 <artifactId>maven-bundle-plugin</artifactId>
423             </plugin>
424             <plugin>
425                 <groupId>org.apache.maven.plugins</groupId>
426                 <artifactId>maven-javadoc-plugin</artifactId>
427             </plugin>
428         </plugins>
429     </build>
430 </project>