Release Nitrogen
[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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>odlparent</artifactId>
15         <version>2.0.7</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <artifactId>mdsal-parent</artifactId>
21     <groupId>org.opendaylight.mdsal</groupId>
22     <version>2.3.3</version>
23     <packaging>pom</packaging>
24
25     <properties>
26         <yangtools.version>1.2.3</yangtools.version>
27         <salGeneratorPath>${project.build.directory}/generated-sources/sal</salGeneratorPath>
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.odlparent</groupId>
37                  <artifactId>odlparent-artifacts</artifactId>
38                  <version>2.0.7</version>
39                  <type>pom</type>
40                  <scope>import</scope>
41             </dependency>
42             <dependency>
43                  <groupId>org.opendaylight.mdsal</groupId>
44                  <artifactId>mdsal-artifacts</artifactId>
45                  <version>2.3.3</version>
46                  <type>pom</type>
47                  <scope>import</scope>
48             </dependency>
49             <dependency>
50                  <groupId>org.opendaylight.yangtools</groupId>
51                  <artifactId>yangtools-artifacts</artifactId>
52                  <version>1.2.3</version>
53                  <type>pom</type>
54                  <scope>import</scope>
55             </dependency>
56             <!-- Testing Dependencies -->
57             <dependency>
58                 <groupId>org.apache.maven.shared</groupId>
59                 <artifactId>maven-verifier</artifactId>
60                 <version>1.6</version>
61                 <scope>test</scope>
62             </dependency>
63             <dependency>
64                 <groupId>org.codehaus.groovy</groupId>
65                 <artifactId>groovy</artifactId>
66                 <version>2.4.5</version>
67                 <scope>test</scope>
68             </dependency>
69             <dependency>
70                 <groupId>org.codehaus.groovy</groupId>
71                 <artifactId>groovy-xml</artifactId>
72                 <version>2.4.5</version>
73                 <scope>test</scope>
74             </dependency>
75             <dependency>
76                 <groupId>org.apache.maven</groupId>
77                 <artifactId>maven-plugin-api</artifactId>
78                 <version>3.3.3</version>
79             </dependency>
80             <dependency>
81                 <groupId>org.glassfish.jersey.ext</groupId>
82                 <artifactId>jersey-proxy-client</artifactId>
83                 <version>2.22</version>
84             </dependency>
85             <dependency>
86                 <groupId>org.glassfish.jersey.core</groupId>
87                 <artifactId>jersey-client</artifactId>
88                 <version>2.0</version>
89             </dependency>
90         </dependencies>
91     </dependencyManagement>
92
93     <dependencies>
94         <dependency>
95             <groupId>org.slf4j</groupId>
96             <artifactId>slf4j-simple</artifactId>
97             <scope>test</scope>
98         </dependency>
99     </dependencies>
100
101     <build>
102         <pluginManagement>
103             <plugins>
104                 <plugin>
105                     <groupId>org.opendaylight.yangtools</groupId>
106                     <artifactId>yang-maven-plugin</artifactId>
107                     <version>0.11.3</version>
108                     <executions>
109                         <execution>
110                             <goals>
111                                 <goal>generate-sources</goal>
112                             </goals>
113                             <configuration>
114                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
115                                 <codeGenerators>
116                                     <generator>
117                                         <codeGeneratorClass>
118                                             org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
119                                         </codeGeneratorClass>
120                                         <outputBaseDir>
121                                             ${salGeneratorPath}
122                                         </outputBaseDir>
123                                         <resourceBaseDir>${project.build.directory}/generated-sources/spi</resourceBaseDir>
124                                     </generator>
125                                     <generator>
126                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
127                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
128                                     </generator>
129                                     <generator>
130                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
131                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
132                                     </generator>
133                                 </codeGenerators>
134                                 <inspectDependencies>true</inspectDependencies>
135                             </configuration>
136                         </execution>
137                     </executions>
138                     <dependencies>
139                         <dependency>
140                             <groupId>org.opendaylight.mdsal</groupId>
141                             <artifactId>maven-sal-api-gen-plugin</artifactId>
142                             <version>0.11.3</version>
143                             <type>jar</type>
144                         </dependency>
145                     </dependencies>
146                 </plugin>
147                 <plugin>
148                     <groupId>org.ops4j.pax.exam</groupId>
149                     <artifactId>maven-paxexam-plugin</artifactId>
150                     <version>1.2.4</version>
151                     <executions>
152                         <execution>
153                             <id>generate-config</id>
154                             <goals>
155                                 <goal>generate-depends-file</goal>
156                             </goals>
157                         </execution>
158                     </executions>
159                 </plugin>
160                 <plugin>
161                     <groupId>org.apache.maven.plugins</groupId>
162                     <artifactId>maven-javadoc-plugin</artifactId>
163                     <configuration>
164                         <stylesheetfile>stylesheet.css</stylesheetfile>
165                     </configuration>
166                     <executions>
167                         <execution>
168                             <id>attach-javadocs</id>
169                             <goals>
170                                 <goal>jar</goal>
171                             </goals>
172                         </execution>
173                         <execution>
174                             <goals>
175                                 <goal>aggregate</goal>
176                             </goals>
177                             <phase>site</phase>
178                         </execution>
179                     </executions>
180                 </plugin>
181                 <plugin>
182                     <groupId>org.codehaus.mojo</groupId>
183                     <artifactId>build-helper-maven-plugin</artifactId>
184                     <version>1.9.1</version>
185                     <executions>
186                         <execution>
187                             <phase>generate-sources</phase>
188                             <goals>
189                                 <goal>add-source</goal>
190                             </goals>
191                             <configuration>
192                                 <sources>
193                                     <source>${project.build.directory}/generated-sources/parser</source>
194                                     <source>${salGeneratorPath}</source>
195                                 </sources>
196                             </configuration>
197                         </execution>
198                     </executions>
199                 </plugin>
200                 <plugin>
201                     <groupId>org.apache.servicemix.tooling</groupId>
202                     <artifactId>depends-maven-plugin</artifactId>
203                     <version>${maven.depends.version}</version>
204                     <executions>
205                         <execution>
206                             <id>generate-depends-file</id>
207                             <goals>
208                                 <goal>generate-depends-file</goal>
209                             </goals>
210                         </execution>
211                     </executions>
212                 </plugin>
213             </plugins>
214         </pluginManagement>
215
216         <plugins>
217             <plugin>
218                 <groupId>org.apache.maven.plugins</groupId>
219                 <artifactId>maven-enforcer-plugin</artifactId>
220                 <!--
221                 <executions>
222                     <execution>
223                         <id>enforce-dependencies</id>
224                         <configuration>
225                             <rules>
226                                 <DependencyConvergence />
227                             </rules>
228                         </configuration>
229                         <goals>
230                             <goal>enforce</goal>
231                         </goals>
232                     </execution>
233                 </executions>
234                 -->
235             </plugin>
236             <plugin>
237                 <groupId>org.apache.maven.plugins</groupId>
238                 <artifactId>maven-jar-plugin</artifactId>
239             </plugin>
240             <plugin>
241                 <groupId>org.apache.felix</groupId>
242                 <artifactId>maven-bundle-plugin</artifactId>
243             </plugin>
244             <plugin>
245                 <groupId>org.apache.maven.plugins</groupId>
246                 <artifactId>maven-javadoc-plugin</artifactId>
247             </plugin>
248             <plugin>
249               <groupId>org.codehaus.mojo</groupId>
250               <artifactId>build-helper-maven-plugin</artifactId>
251             </plugin>
252         </plugins>
253     </build>
254
255   <!--
256       Maven Site Configuration
257
258       The following configuration is necessary for maven-site-plugin to
259       correctly identify the correct deployment path for OpenDaylight Maven
260       sites.
261   -->
262   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
263
264   <distributionManagement>
265     <site>
266       <id>opendaylight-site</id>
267       <url>${nexus.site.url}/${project.artifactId}/</url>
268     </site>
269   </distributionManagement>
270
271 </project>