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