Switch to odlparent-4.0.0
[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>4.0.0</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.7.0-SNAPSHOT</version>
23     <packaging>pom</packaging>
24
25     <properties>
26         <salGeneratorPath>${project.build.directory}/generated-sources/sal</salGeneratorPath>
27     </properties>
28
29     <dependencyManagement>
30         <dependencies>
31             <dependency>
32                  <groupId>org.opendaylight.mdsal</groupId>
33                  <artifactId>mdsal-artifacts</artifactId>
34                  <version>2.7.0-SNAPSHOT</version>
35                  <type>pom</type>
36                  <scope>import</scope>
37             </dependency>
38             <dependency>
39                  <groupId>org.opendaylight.yangtools</groupId>
40                  <artifactId>yangtools-artifacts</artifactId>
41                  <version>2.1.0-SNAPSHOT</version>
42                  <type>pom</type>
43                  <scope>import</scope>
44             </dependency>
45             <!-- Testing Dependencies -->
46             <dependency>
47                 <groupId>org.apache.maven.shared</groupId>
48                 <artifactId>maven-verifier</artifactId>
49                 <version>1.6</version>
50                 <scope>test</scope>
51             </dependency>
52             <dependency>
53                 <groupId>org.codehaus.groovy</groupId>
54                 <artifactId>groovy</artifactId>
55                 <version>2.4.5</version>
56                 <scope>test</scope>
57             </dependency>
58             <dependency>
59                 <groupId>org.codehaus.groovy</groupId>
60                 <artifactId>groovy-xml</artifactId>
61                 <version>2.4.5</version>
62                 <scope>test</scope>
63             </dependency>
64             <dependency>
65                 <groupId>org.apache.maven</groupId>
66                 <artifactId>maven-plugin-api</artifactId>
67                 <version>3.3.3</version>
68             </dependency>
69             <dependency>
70                 <groupId>org.glassfish.jersey.ext</groupId>
71                 <artifactId>jersey-proxy-client</artifactId>
72                 <version>2.22</version>
73             </dependency>
74             <dependency>
75                 <groupId>org.glassfish.jersey.core</groupId>
76                 <artifactId>jersey-client</artifactId>
77                 <version>2.0</version>
78             </dependency>
79         </dependencies>
80     </dependencyManagement>
81
82     <dependencies>
83         <dependency>
84             <groupId>org.slf4j</groupId>
85             <artifactId>slf4j-simple</artifactId>
86             <scope>test</scope>
87         </dependency>
88     </dependencies>
89
90     <build>
91         <pluginManagement>
92             <plugins>
93                 <plugin>
94                     <groupId>org.opendaylight.yangtools</groupId>
95                     <artifactId>yang-maven-plugin</artifactId>
96                     <version>2.1.0-SNAPSHOT</version>
97                     <executions>
98                         <execution>
99                             <goals>
100                                 <goal>generate-sources</goal>
101                             </goals>
102                             <configuration>
103                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
104                                 <codeGenerators>
105                                     <generator>
106                                         <codeGeneratorClass>
107                                             org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
108                                         </codeGeneratorClass>
109                                         <outputBaseDir>
110                                             ${salGeneratorPath}
111                                         </outputBaseDir>
112                                         <resourceBaseDir>${project.build.directory}/generated-sources/spi</resourceBaseDir>
113                                     </generator>
114                                     <generator>
115                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
116                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
117                                     </generator>
118                                     <generator>
119                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
120                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
121                                     </generator>
122                                 </codeGenerators>
123                                 <inspectDependencies>true</inspectDependencies>
124                             </configuration>
125                         </execution>
126                     </executions>
127                     <dependencies>
128                         <dependency>
129                             <groupId>org.opendaylight.mdsal</groupId>
130                             <artifactId>maven-sal-api-gen-plugin</artifactId>
131                             <version>0.15.0-SNAPSHOT</version>
132                             <type>jar</type>
133                         </dependency>
134                     </dependencies>
135                 </plugin>
136                 <plugin>
137                     <groupId>org.ops4j.pax.exam</groupId>
138                     <artifactId>maven-paxexam-plugin</artifactId>
139                     <version>1.2.4</version>
140                     <executions>
141                         <execution>
142                             <id>generate-config</id>
143                             <goals>
144                                 <goal>generate-depends-file</goal>
145                             </goals>
146                         </execution>
147                     </executions>
148                 </plugin>
149                 <plugin>
150                     <groupId>org.apache.maven.plugins</groupId>
151                     <artifactId>maven-javadoc-plugin</artifactId>
152                     <configuration>
153                         <stylesheetfile>stylesheet.css</stylesheetfile>
154                     </configuration>
155                     <executions>
156                         <execution>
157                             <id>attach-javadocs</id>
158                             <goals>
159                                 <goal>jar</goal>
160                             </goals>
161                         </execution>
162                         <execution>
163                             <goals>
164                                 <goal>aggregate</goal>
165                             </goals>
166                             <phase>site</phase>
167                         </execution>
168                     </executions>
169                 </plugin>
170                 <plugin>
171                     <groupId>org.codehaus.mojo</groupId>
172                     <artifactId>build-helper-maven-plugin</artifactId>
173                     <version>1.9.1</version>
174                     <executions>
175                         <execution>
176                             <phase>generate-sources</phase>
177                             <goals>
178                                 <goal>add-source</goal>
179                             </goals>
180                             <configuration>
181                                 <sources>
182                                     <source>${project.build.directory}/generated-sources/parser</source>
183                                     <source>${salGeneratorPath}</source>
184                                 </sources>
185                             </configuration>
186                         </execution>
187                     </executions>
188                 </plugin>
189                 <plugin>
190                     <groupId>org.apache.servicemix.tooling</groupId>
191                     <artifactId>depends-maven-plugin</artifactId>
192                     <executions>
193                         <execution>
194                             <id>generate-depends-file</id>
195                             <goals>
196                                 <goal>generate-depends-file</goal>
197                             </goals>
198                         </execution>
199                     </executions>
200                 </plugin>
201             </plugins>
202         </pluginManagement>
203
204         <plugins>
205             <plugin>
206                 <groupId>org.apache.maven.plugins</groupId>
207                 <artifactId>maven-enforcer-plugin</artifactId>
208                 <!--
209                 <executions>
210                     <execution>
211                         <id>enforce-dependencies</id>
212                         <configuration>
213                             <rules>
214                                 <DependencyConvergence />
215                             </rules>
216                         </configuration>
217                         <goals>
218                             <goal>enforce</goal>
219                         </goals>
220                     </execution>
221                 </executions>
222                 -->
223             </plugin>
224             <plugin>
225                 <groupId>org.apache.maven.plugins</groupId>
226                 <artifactId>maven-jar-plugin</artifactId>
227             </plugin>
228             <plugin>
229                 <groupId>org.apache.felix</groupId>
230                 <artifactId>maven-bundle-plugin</artifactId>
231             </plugin>
232             <plugin>
233                 <groupId>org.apache.maven.plugins</groupId>
234                 <artifactId>maven-javadoc-plugin</artifactId>
235             </plugin>
236             <plugin>
237               <groupId>org.codehaus.mojo</groupId>
238               <artifactId>build-helper-maven-plugin</artifactId>
239             </plugin>
240         </plugins>
241     </build>
242 </project>