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