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