Replace target/ by ${project.build.directory}/ to make target-ide/ possible
[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.0-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.0-SNAPSHOT</version>
24     <packaging>pom</packaging>
25
26     <properties>
27         <yangtools.version>1.1.0-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.0-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.0-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.0-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.eclipse.m2e</groupId>
107                     <artifactId>lifecycle-mapping</artifactId>
108                     <version>1.0.0</version>
109                     <configuration>
110                         <lifecycleMappingMetadata>
111                             <pluginExecutions>
112                                 <pluginExecution>
113                                     <pluginExecutionFilter>
114                                         <groupId>org.apache.maven.plugins</groupId>
115                                         <artifactId>maven-antrun-plugin</artifactId>
116                                         <versionRange>[1.0,)</versionRange>
117                                         <goals>
118                                             <goal>run</goal>
119                                         </goals>
120                                     </pluginExecutionFilter>
121                                     <action>
122                                         <execute/>
123                                     </action>
124                                 </pluginExecution>
125                                 <pluginExecution>
126                                     <pluginExecutionFilter>
127                                         <groupId>org.opendaylight.yangtools</groupId>
128                                         <artifactId>yang-maven-plugin</artifactId>
129                                         <versionRange>[0.5,)</versionRange>
130                                         <goals>
131                                             <goal>generate-sources</goal>
132                                         </goals>
133                                      </pluginExecutionFilter>
134                                      <action>
135                                          <execute/>
136                                      </action>
137                                  </pluginExecution>
138                                  <pluginExecution>
139                                     <pluginExecutionFilter>
140                                         <groupId>org.codehaus.mojo</groupId>
141                                         <artifactId>properties-maven-plugin</artifactId>
142                                         <versionRange>1.0-alpha-2</versionRange>
143                                         <goals>
144                                             <goal>write-project-properties</goal>
145                                         </goals>
146                                      </pluginExecutionFilter>
147                                      <action>
148                                          <ignore />
149                                      </action>
150                                  </pluginExecution>
151                                  <pluginExecution>
152                                     <pluginExecutionFilter>
153                                         <groupId>org.ops4j.pax.exam</groupId>
154                                         <artifactId>maven-paxexam-plugin</artifactId>
155                                         <versionRange>1.2.4</versionRange>
156                                         <goals>
157                                             <goal>generate-depends-file</goal>
158                                         </goals>
159                                      </pluginExecutionFilter>
160                                      <action>
161                                          <ignore />
162                                      </action>
163                                  </pluginExecution>
164                                  <pluginExecution>
165                                     <pluginExecutionFilter>
166                                         <groupId>org.jacoco</groupId>
167                                         <artifactId>jacoco-maven-plugin</artifactId>
168                                         <versionRange>[0.6,)</versionRange>
169                                         <goals>
170                                             <goal>prepare-agent</goal>
171                                         </goals>
172                                      </pluginExecutionFilter>
173                                      <action>
174                                          <ignore/>
175                                      </action>
176                                  </pluginExecution>
177                             </pluginExecutions>
178                         </lifecycleMappingMetadata>
179                     </configuration>
180                 </plugin>
181                 <plugin>
182                     <groupId>org.opendaylight.yangtools</groupId>
183                     <artifactId>yang-maven-plugin</artifactId>
184                     <version>0.10.0-SNAPSHOT</version>
185                     <executions>
186                         <execution>
187                             <goals>
188                                 <goal>generate-sources</goal>
189                             </goals>
190                             <configuration>
191                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
192                                 <codeGenerators>
193                                     <generator>
194                                         <codeGeneratorClass>
195                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
196                                         </codeGeneratorClass>
197                                         <outputBaseDir>
198                                             ${salGeneratorPath}
199                                         </outputBaseDir>
200                                     </generator>
201                                     <generator>
202                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
203                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
204                                     </generator>
205                                     <generator>
206                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
207                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
208                                     </generator>
209                                 </codeGenerators>
210                                 <inspectDependencies>true</inspectDependencies>
211                             </configuration>
212                         </execution>
213                     </executions>
214                     <dependencies>
215                         <dependency>
216                             <groupId>org.opendaylight.mdsal</groupId>
217                             <artifactId>maven-sal-api-gen-plugin</artifactId>
218                             <version>0.10.0-SNAPSHOT</version>
219                             <type>jar</type>
220                         </dependency>
221                     </dependencies>
222                 </plugin>
223                 <plugin>
224                     <groupId>org.ops4j.pax.exam</groupId>
225                     <artifactId>maven-paxexam-plugin</artifactId>
226                     <version>1.2.4</version>
227                     <executions>
228                         <execution>
229                             <id>generate-config</id>
230                             <goals>
231                                 <goal>generate-depends-file</goal>
232                             </goals>
233                         </execution>
234                     </executions>
235                 </plugin>
236                 <plugin>
237                     <groupId>org.apache.maven.plugins</groupId>
238                     <artifactId>maven-javadoc-plugin</artifactId>
239                     <version>${maven.javadoc.version}</version>
240                     <configuration>
241                         <stylesheetfile>stylesheet.css</stylesheetfile>
242                     </configuration>
243                     <executions>
244                         <execution>
245                             <id>attach-javadocs</id>
246                             <goals>
247                                 <goal>jar</goal>
248                             </goals>
249                         </execution>
250                         <execution>
251                             <goals>
252                                 <goal>aggregate</goal>
253                             </goals>
254                             <phase>site</phase>
255                         </execution>
256                     </executions>
257                 </plugin>
258                 <plugin>
259                     <groupId>org.codehaus.mojo</groupId>
260                     <artifactId>build-helper-maven-plugin</artifactId>
261                     <version>1.9.1</version>
262                     <executions>
263                         <execution>
264                             <phase>generate-sources</phase>
265                             <goals>
266                                 <goal>add-source</goal>
267                             </goals>
268                             <configuration>
269                                 <sources>
270                                     <source>${project.build.directory}/generated-sources/parser</source>
271                                     <source>${salGeneratorPath}</source>
272                                 </sources>
273                             </configuration>
274                         </execution>
275                     </executions>
276                 </plugin>
277                 <plugin>
278                     <groupId>org.apache.servicemix.tooling</groupId>
279                     <artifactId>depends-maven-plugin</artifactId>
280                     <version>${maven.depends.version}</version>
281                     <executions>
282                         <execution>
283                             <id>generate-depends-file</id>
284                             <goals>
285                                 <goal>generate-depends-file</goal>
286                             </goals>
287                         </execution>
288                     </executions>
289                 </plugin>
290             </plugins>
291         </pluginManagement>
292
293         <plugins>
294             <plugin>
295                 <groupId>org.apache.maven.plugins</groupId>
296                 <artifactId>maven-enforcer-plugin</artifactId>
297                 <!--
298                 <executions>
299                     <execution>
300                         <id>enforce-dependencies</id>
301                         <configuration>
302                             <rules>
303                                 <DependencyConvergence />
304                             </rules>
305                         </configuration>
306                         <goals>
307                             <goal>enforce</goal>
308                         </goals>
309                     </execution>
310                 </executions>
311                 -->
312             </plugin>
313             <plugin>
314                 <groupId>org.apache.maven.plugins</groupId>
315                 <artifactId>maven-jar-plugin</artifactId>
316             </plugin>
317             <plugin>
318                 <groupId>org.apache.felix</groupId>
319                 <artifactId>maven-bundle-plugin</artifactId>
320             </plugin>
321             <plugin>
322                 <groupId>org.apache.maven.plugins</groupId>
323                 <artifactId>maven-javadoc-plugin</artifactId>
324             </plugin>
325             <plugin>
326               <groupId>org.codehaus.mojo</groupId>
327               <artifactId>build-helper-maven-plugin</artifactId>
328             </plugin>
329         </plugins>
330     </build>
331
332   <!--
333       Maven Site Configuration
334
335       The following configuration is necessary for maven-site-plugin to
336       correctly identify the correct deployment path for OpenDaylight Maven
337       sites.
338   -->
339   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
340
341   <distributionManagement>
342     <site>
343       <id>opendaylight-site</id>
344       <url>${nexus.site.url}/${project.artifactId}/</url>
345     </site>
346   </distributionManagement>
347
348 </project>