Merge "Do not depend on jersey-client"
[yangtools.git] / 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     <modelVersion>4.0.0</modelVersion>
14     <artifactId>yangtools</artifactId>
15     <groupId>org.opendaylight.yangtools</groupId>
16     <version>0.6.2-SNAPSHOT</version>
17     <packaging>pom</packaging>
18     <prerequisites>
19         <maven>3.0.4</maven>
20     </prerequisites>
21
22     <properties>
23         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
25
26         <!-- Java Versions -->
27         <maven.compiler.source>1.7</maven.compiler.source>
28         <maven.compiler.target>1.7</maven.compiler.target>
29
30         <!-- Build Plugin Versions -->
31         <maven.bundle.version>2.4.0</maven.bundle.version>
32         <maven.jar.version>2.3.2</maven.jar.version>
33         <maven.javadoc.version>2.9.1</maven.javadoc.version>
34         <maven.release.version>2.4.2</maven.release.version>
35         <maven.source.version>2.2.1</maven.source.version>
36         <maven.surefire.version>2.16</maven.surefire.version>
37
38         <!-- Supporting Libraries -->
39         <commons.lang.version>3.1</commons.lang.version>
40         <junit.version>4.10</junit.version>
41         <slf4j.version>1.7.2</slf4j.version>
42         <guava.version>14.0.1</guava.version>
43         <xtend.version>2.4.3</xtend.version>
44         <groovy.version>2.1.6</groovy.version>
45         <mockito.version>1.9.5</mockito.version>
46         <javassist.version>3.17.1-GA</javassist.version>
47     </properties>
48
49     <scm>
50         <connection>scm:git:ssh://git.opendaylight.org:29418/yangtools.git</connection>
51         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/yangtools.git</developerConnection>
52         <url>https://wiki.opendaylight.org/view/YANG_Tools:Main</url>
53         <tag>HEAD</tag>
54     </scm>
55
56     <modules>
57         <module>code-generator</module>
58         <module>common</module>
59         <module>integration-test</module>
60         <module>model</module>
61         <module>restconf</module>
62         <module>websocket</module>
63         <module>yang</module>
64         <!-- module>third-party</module -->
65     </modules>
66
67     <pluginRepositories>
68         <!-- OpenDayLight Repo Mirror -->
69         <pluginRepository>
70             <id>opendaylight-mirror</id>
71             <name>opendaylight-mirror</name>
72             <url>${nexusproxy}/groups/public/</url>
73             <snapshots>
74                 <enabled>false</enabled>
75             </snapshots>
76             <releases>
77                 <enabled>true</enabled>
78                 <updatePolicy>never</updatePolicy>
79             </releases>
80         </pluginRepository>
81
82         <!-- OpenDayLight Snapshot artifact -->
83         <pluginRepository>
84             <id>opendaylight-snapshot</id>
85             <name>opendaylight-snapshot</name>
86             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
87             <snapshots>
88                 <enabled>true</enabled>
89             </snapshots>
90             <releases>
91                 <enabled>false</enabled>
92             </releases>
93         </pluginRepository>
94     </pluginRepositories>
95
96     <repositories>
97         <!-- OpenDayLight Repo Mirror -->
98         <repository>
99             <id>opendaylight-mirror</id>
100             <name>opendaylight-mirror</name>
101             <url>${nexusproxy}/groups/public/</url>
102             <snapshots>
103                 <enabled>false</enabled>
104             </snapshots>
105             <releases>
106                 <enabled>true</enabled>
107                 <updatePolicy>never</updatePolicy>
108             </releases>
109         </repository>
110
111         <!-- OpenDayLight Snapshot artifact -->
112         <repository>
113             <id>opendaylight-snapshot</id>
114             <name>opendaylight-snapshot</name>
115             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
116             <snapshots>
117                 <enabled>true</enabled>
118             </snapshots>
119             <releases>
120                 <enabled>false</enabled>
121             </releases>
122         </repository>
123     </repositories>
124
125     <dependencyManagement>
126         <dependencies>
127             <!-- Testing Dependencies -->
128             <dependency>
129                 <groupId>junit</groupId>
130                 <artifactId>junit</artifactId>
131                 <version>${junit.version}</version>
132                 <scope>test</scope>
133             </dependency>
134             <dependency>
135                 <groupId>org.mockito</groupId>
136                 <artifactId>mockito-all</artifactId>
137                 <version>${mockito.version}</version>
138                 <scope>test</scope>
139             </dependency>
140             <dependency>
141                 <groupId>org.mockito</groupId>
142                 <artifactId>mockito-core</artifactId>
143                 <version>${mockito.version}</version>
144                 <scope>test</scope>
145             </dependency>
146             <dependency>
147                 <groupId>org.slf4j</groupId>
148                 <artifactId>slf4j-simple</artifactId>
149                 <version>${slf4j.version}</version>
150                 <scope>test</scope>
151             </dependency>
152
153             <!-- Supporting Libraries -->
154             <dependency>
155                 <groupId>org.slf4j</groupId>
156                 <artifactId>slf4j-api</artifactId>
157                 <version>${slf4j.version}</version>
158             </dependency>
159             <dependency>
160                 <groupId>com.google.guava</groupId>
161                 <artifactId>guava</artifactId>
162                 <version>${guava.version}</version>
163             </dependency>
164             <dependency>
165                 <groupId>org.eclipse.xtend</groupId>
166                 <artifactId>org.eclipse.xtend.lib</artifactId>
167                 <version>${xtend.version}</version>
168             </dependency>
169             <dependency>
170                 <groupId>org.apache.commons</groupId>
171                 <artifactId>commons-lang3</artifactId>
172                 <version>${commons.lang.version}</version>
173             </dependency>
174
175             <!-- Plugin integration -->
176             <dependency>
177                 <groupId>org.sonatype.plexus</groupId>
178                 <artifactId>plexus-build-api</artifactId>
179                 <version>0.0.7</version>
180             </dependency>
181             <dependency>
182                 <groupId>org.codehaus.plexus</groupId>
183                 <artifactId>plexus-slf4j-logging</artifactId>
184                 <version>1.1</version>
185             </dependency>
186             <dependency>
187                 <groupId>commons-io</groupId>
188                 <artifactId>commons-io</artifactId>
189                 <version>2.4</version>
190             </dependency>
191
192
193             <!-- Our artifacts -->
194             <dependency>
195                 <groupId>${project.groupId}</groupId>
196                 <artifactId>concepts</artifactId>
197                 <version>${project.version}</version>
198             </dependency>
199         </dependencies>
200     </dependencyManagement>
201
202     <dependencies>
203         <dependency>
204             <groupId>org.slf4j</groupId>
205             <artifactId>slf4j-simple</artifactId>
206         </dependency>
207     </dependencies>
208
209     <distributionManagement>
210         <!-- OpenDayLight Released artifact -->
211         <repository>
212             <id>opendaylight-release</id>
213             <url>${nexusproxy}/repositories/opendaylight.release/</url>
214         </repository>
215         <!-- OpenDayLight Snapshot artifact -->
216         <snapshotRepository>
217             <id>opendaylight-snapshot</id>
218             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
219         </snapshotRepository>
220         <site>
221             <id>${project.artifactId}-site</id>
222             <url>./</url>
223         </site>
224     </distributionManagement>
225
226     <build>
227         <pluginManagement>
228             <plugins>
229                 <plugin>
230                     <groupId>org.apache.maven.plugins</groupId>
231                     <artifactId>maven-jar-plugin</artifactId>
232                     <version>${maven.jar.version}</version>
233                     <configuration>
234                         <archive>
235                             <!-- Bundle OSGi Manifest created by maven-bundle-plugin
236                                 into jar file -->
237                             <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
238                         </archive>
239                     </configuration>
240                 </plugin>
241                 <plugin>
242                     <groupId>org.apache.felix</groupId>
243                     <artifactId>maven-bundle-plugin</artifactId>
244                     <version>${maven.bundle.version}</version>
245                     <extensions>true</extensions>
246                     <executions>
247                         <execution>
248                             <id>bundle-manifest</id>
249                             <phase>process-classes</phase>
250                             <goals>
251                                 <goal>manifest</goal>
252                             </goals>
253                         </execution>
254                     </executions>
255                     <configuration>
256                         <instructions>
257                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
258                             <!--
259                                                         <Export-Package>*</Export-Package>
260                             -->
261                         </instructions>
262                     </configuration>
263                 </plugin>
264                 <plugin>
265                     <groupId>org.eclipse.xtend</groupId>
266                     <artifactId>xtend-maven-plugin</artifactId>
267                     <version>${xtend.version}</version>
268                     <executions>
269                         <execution>
270                             <goals>
271                                 <goal>compile</goal>
272                             </goals>
273                             <configuration>
274                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
275                             </configuration>
276                         </execution>
277                     </executions>
278                 </plugin>
279                 <plugin>
280                     <artifactId>maven-clean-plugin</artifactId>
281                     <version>2.5</version>
282                     <configuration>
283                         <filesets>
284                             <fileset>
285                                 <directory>${basedir}/src/main/xtend-gen</directory>
286                                 <includes>
287                                     <include>**</include>
288                                 </includes>
289                             </fileset>
290                         </filesets>
291                     </configuration>
292                 </plugin>
293                 <plugin>
294                     <groupId>org.eclipse.m2e</groupId>
295                     <artifactId>lifecycle-mapping</artifactId>
296                     <version>1.0.0</version>
297                     <configuration>
298                         <lifecycleMappingMetadata>
299                             <pluginExecutions>
300                                 <pluginExecution>
301                                     <pluginExecutionFilter>
302                                         <groupId>org.apache.felix</groupId>
303                                         <artifactId>maven-bundle-plugin</artifactId>
304                                         <versionRange>[1.0,)</versionRange>
305                                         <goals>
306                                             <goal>manifest</goal>
307                                         </goals>
308                                     </pluginExecutionFilter>
309                                     <action>
310                                         <execute/>
311                                     </action>
312                                 </pluginExecution>
313                             </pluginExecutions>
314                         </lifecycleMappingMetadata>
315                     </configuration>
316                 </plugin>
317                 <plugin>
318                     <groupId>org.apache.maven.plugins</groupId>
319                     <artifactId>maven-javadoc-plugin</artifactId>
320                     <version>${maven.javadoc.version}</version>
321                     <configuration>
322                         <stylesheetfile>stylesheet.css</stylesheetfile>
323                     </configuration>
324                     <executions>
325                         <execution>
326                             <id>attach-javadocs</id>
327                             <goals>
328                                 <goal>jar</goal>
329                             </goals>
330                         </execution>
331                         <execution>
332                             <goals>
333                                 <goal>aggregate</goal>
334                             </goals>
335                             <phase>site</phase>
336                         </execution>
337                     </executions>
338                 </plugin>
339                 <plugin>
340                     <groupId>org.apache.maven.plugins</groupId>
341                     <artifactId>maven-release-plugin</artifactId>
342                     <version>${maven.release.version}</version>
343
344                     <!-- Since we have a maven plugin, we need to install it -->
345                     <configuration>
346                         <preparationGoals>clean install</preparationGoals>
347                         <completionGoals>clean install</completionGoals>
348                     </configuration>
349                 </plugin>
350             </plugins>
351         </pluginManagement>
352         <plugins>
353             <plugin>
354                 <groupId>org.apache.maven.plugins</groupId>
355                 <artifactId>maven-jar-plugin</artifactId>
356             </plugin>
357             <plugin>
358                 <groupId>org.apache.felix</groupId>
359                 <artifactId>maven-bundle-plugin</artifactId>
360             </plugin>
361             <plugin>
362                 <groupId>org.apache.maven.plugins</groupId>
363                 <artifactId>maven-source-plugin</artifactId>
364                 <version>${maven.source.version}</version>
365                 <executions>
366                     <execution>
367                         <id>attach-sources</id>
368                         <goals>
369                             <goal>jar</goal>
370                         </goals>
371                     </execution>
372                 </executions>
373             </plugin>
374             <plugin>
375                 <groupId>org.apache.maven.plugins</groupId>
376                 <artifactId>maven-javadoc-plugin</artifactId>
377             </plugin>
378         </plugins>
379     </build>
380
381     <reporting>
382         <plugins>
383             <plugin>
384                 <groupId>org.codehaus.mojo</groupId>
385                 <artifactId>findbugs-maven-plugin</artifactId>
386                 <version>2.5.3</version>
387                 <configuration>
388                     <effort>Max</effort>
389                     <threshold>Low</threshold>
390                     <goal>site</goal>
391                 </configuration>
392             </plugin>
393             <plugin>
394                 <groupId>org.codehaus.mojo</groupId>
395                 <artifactId>jdepend-maven-plugin</artifactId>
396                 <version>2.0-beta-2</version>
397             </plugin>
398         </plugins>
399     </reporting>
400 </project>