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