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