8ce6192f1047ad51de99928aea707200330cf7f9
[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.8.2-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.2.2-SNAPSHOT</version>
24     <packaging>pom</packaging>
25
26     <properties>
27         <yangtools.version>1.1.2-SNAPSHOT</yangtools.version>
28         <salGeneratorPath>${project.build.directory}/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.8.2-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.2.2-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.1.2-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-plugin-api</artifactId>
79                 <version>3.3.3</version>
80             </dependency>
81             <dependency>
82                 <groupId>org.glassfish.jersey.ext</groupId>
83                 <artifactId>jersey-proxy-client</artifactId>
84                 <version>2.22</version>
85             </dependency>
86             <dependency>
87                 <groupId>org.glassfish.jersey.core</groupId>
88                 <artifactId>jersey-client</artifactId>
89                 <version>2.0</version>
90             </dependency>
91         </dependencies>
92     </dependencyManagement>
93
94     <dependencies>
95         <dependency>
96             <groupId>org.slf4j</groupId>
97             <artifactId>slf4j-simple</artifactId>
98             <scope>test</scope>
99         </dependency>
100     </dependencies>
101
102     <build>
103         <pluginManagement>
104             <plugins>
105                 <plugin>
106                     <groupId>org.opendaylight.yangtools</groupId>
107                     <artifactId>yang-maven-plugin</artifactId>
108                     <version>0.10.2-SNAPSHOT</version>
109                     <executions>
110                         <execution>
111                             <goals>
112                                 <goal>generate-sources</goal>
113                             </goals>
114                             <configuration>
115                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
116                                 <codeGenerators>
117                                     <generator>
118                                         <codeGeneratorClass>
119                                             org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
120                                         </codeGeneratorClass>
121                                         <outputBaseDir>
122                                             ${salGeneratorPath}
123                                         </outputBaseDir>
124                                         <resourceBaseDir>${project.build.directory}/generated-sources/spi</resourceBaseDir>
125                                     </generator>
126                                     <generator>
127                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
128                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
129                                     </generator>
130                                     <generator>
131                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
132                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
133                                     </generator>
134                                 </codeGenerators>
135                                 <inspectDependencies>true</inspectDependencies>
136                             </configuration>
137                         </execution>
138                     </executions>
139                     <dependencies>
140                         <dependency>
141                             <groupId>org.opendaylight.mdsal</groupId>
142                             <artifactId>maven-sal-api-gen-plugin</artifactId>
143                             <version>0.10.2-SNAPSHOT</version>
144                             <type>jar</type>
145                         </dependency>
146                     </dependencies>
147                 </plugin>
148                 <plugin>
149                     <groupId>org.ops4j.pax.exam</groupId>
150                     <artifactId>maven-paxexam-plugin</artifactId>
151                     <version>1.2.4</version>
152                     <executions>
153                         <execution>
154                             <id>generate-config</id>
155                             <goals>
156                                 <goal>generate-depends-file</goal>
157                             </goals>
158                         </execution>
159                     </executions>
160                 </plugin>
161                 <plugin>
162                     <groupId>org.apache.maven.plugins</groupId>
163                     <artifactId>maven-javadoc-plugin</artifactId>
164                     <configuration>
165                         <stylesheetfile>stylesheet.css</stylesheetfile>
166                     </configuration>
167                     <executions>
168                         <execution>
169                             <id>attach-javadocs</id>
170                             <goals>
171                                 <goal>jar</goal>
172                             </goals>
173                         </execution>
174                         <execution>
175                             <goals>
176                                 <goal>aggregate</goal>
177                             </goals>
178                             <phase>site</phase>
179                         </execution>
180                     </executions>
181                 </plugin>
182                 <plugin>
183                     <groupId>org.codehaus.mojo</groupId>
184                     <artifactId>build-helper-maven-plugin</artifactId>
185                     <version>1.9.1</version>
186                     <executions>
187                         <execution>
188                             <phase>generate-sources</phase>
189                             <goals>
190                                 <goal>add-source</goal>
191                             </goals>
192                             <configuration>
193                                 <sources>
194                                     <source>${project.build.directory}/generated-sources/parser</source>
195                                     <source>${salGeneratorPath}</source>
196                                 </sources>
197                             </configuration>
198                         </execution>
199                     </executions>
200                 </plugin>
201                 <plugin>
202                     <groupId>org.apache.servicemix.tooling</groupId>
203                     <artifactId>depends-maven-plugin</artifactId>
204                     <version>${maven.depends.version}</version>
205                     <executions>
206                         <execution>
207                             <id>generate-depends-file</id>
208                             <goals>
209                                 <goal>generate-depends-file</goal>
210                             </goals>
211                         </execution>
212                     </executions>
213                 </plugin>
214             </plugins>
215         </pluginManagement>
216
217         <plugins>
218             <plugin>
219                 <groupId>org.apache.maven.plugins</groupId>
220                 <artifactId>maven-enforcer-plugin</artifactId>
221                 <!--
222                 <executions>
223                     <execution>
224                         <id>enforce-dependencies</id>
225                         <configuration>
226                             <rules>
227                                 <DependencyConvergence />
228                             </rules>
229                         </configuration>
230                         <goals>
231                             <goal>enforce</goal>
232                         </goals>
233                     </execution>
234                 </executions>
235                 -->
236             </plugin>
237             <plugin>
238                 <groupId>org.apache.maven.plugins</groupId>
239                 <artifactId>maven-jar-plugin</artifactId>
240             </plugin>
241             <plugin>
242                 <groupId>org.apache.felix</groupId>
243                 <artifactId>maven-bundle-plugin</artifactId>
244             </plugin>
245             <plugin>
246                 <groupId>org.apache.maven.plugins</groupId>
247                 <artifactId>maven-javadoc-plugin</artifactId>
248             </plugin>
249             <plugin>
250               <groupId>org.codehaus.mojo</groupId>
251               <artifactId>build-helper-maven-plugin</artifactId>
252             </plugin>
253         </plugins>
254     </build>
255
256   <!--
257       Maven Site Configuration
258
259       The following configuration is necessary for maven-site-plugin to
260       correctly identify the correct deployment path for OpenDaylight Maven
261       sites.
262   -->
263   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
264
265   <distributionManagement>
266     <site>
267       <id>opendaylight-site</id>
268       <url>${nexus.site.url}/${project.artifactId}/</url>
269     </site>
270   </distributionManagement>
271
272 </project>