Added Export-Packages for propper bundle startup in osgi container
[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>integration-test</module>
62         <module>mockito-configuration</module>
63         <module>websocket</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
187             <!-- Our artifacts -->
188             <dependency>
189                     <groupId>${project.groupId}</groupId>
190                     <artifactId>concepts</artifactId>
191                     <version>${project.version}</version>
192             </dependency>
193         </dependencies>
194     </dependencyManagement>
195
196     <dependencies>
197         <dependency>
198             <groupId>org.slf4j</groupId>
199             <artifactId>slf4j-simple</artifactId>
200         </dependency>
201     </dependencies>
202
203     <distributionManagement>
204         <!-- OpenDayLight Released artifact -->
205         <repository>
206             <id>opendaylight-release</id>
207             <url>${nexusproxy}/repositories/opendaylight.release/</url>
208         </repository>
209         <!-- OpenDayLight Snapshot artifact -->
210         <snapshotRepository>
211             <id>opendaylight-snapshot</id>
212             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
213         </snapshotRepository>
214         <site>
215             <id>${project.artifactId}-site</id>
216             <url>./</url>
217         </site>
218     </distributionManagement>
219
220     <build>
221         <pluginManagement>
222             <plugins>
223                 <plugin>
224                     <groupId>org.apache.maven.plugins</groupId>
225                     <artifactId>maven-jar-plugin</artifactId>
226                     <version>${maven.jar.version}</version>
227                     <configuration>
228                         <archive>
229                             <!-- Bundle OSGi Manifest created by maven-bundle-plugin
230                                 into jar file -->
231                             <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
232                         </archive>
233                     </configuration>
234                 </plugin>
235                 <plugin>
236                     <groupId>org.apache.felix</groupId>
237                     <artifactId>maven-bundle-plugin</artifactId>
238                     <version>${maven.bundle.version}</version>
239                     <extensions>true</extensions>
240                     <executions>
241                         <execution>
242                             <id>bundle-manifest</id>
243                             <phase>process-classes</phase>
244                             <goals>
245                                 <goal>manifest</goal>
246                             </goals>
247                         </execution>
248                     </executions>
249                     <configuration>
250                         <instructions>
251                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
252 <!--
253                             <Export-Package>*</Export-Package>
254 -->
255                         </instructions>
256                     </configuration>
257                 </plugin>
258                 <plugin>
259                     <groupId>org.eclipse.xtend</groupId>
260                     <artifactId>xtend-maven-plugin</artifactId>
261                     <version>${xtend.version}</version>
262                     <executions>
263                         <execution>
264                             <goals>
265                                 <goal>compile</goal>
266                             </goals>
267                             <configuration>
268                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
269                             </configuration>
270                         </execution>
271                     </executions>
272                 </plugin>
273                 <plugin>
274                     <artifactId>maven-clean-plugin</artifactId>
275                     <version>2.5</version>
276                     <configuration>
277                         <filesets>
278                             <fileset>
279                                 <directory>${basedir}/src/main/xtend-gen</directory>
280                                 <includes>
281                                     <include>**</include>
282                                 </includes>
283                             </fileset>
284                         </filesets>
285                     </configuration>
286                 </plugin>
287                 <plugin>
288                     <groupId>org.eclipse.m2e</groupId>
289                     <artifactId>lifecycle-mapping</artifactId>
290                     <version>1.0.0</version>
291                     <configuration>
292                         <lifecycleMappingMetadata>
293                             <pluginExecutions>
294                                 <pluginExecution>
295                                     <pluginExecutionFilter>
296                                         <groupId>org.apache.felix</groupId>
297                                         <artifactId>maven-bundle-plugin</artifactId>
298                                         <versionRange>[1.0,)</versionRange>
299                                         <goals>
300                                             <goal>manifest</goal>
301                                         </goals>
302                                     </pluginExecutionFilter>
303                                     <action>
304                                         <execute />
305                                     </action>
306                                 </pluginExecution>
307                             </pluginExecutions>
308                         </lifecycleMappingMetadata>
309                     </configuration>
310                 </plugin>
311                 <plugin>
312                     <groupId>org.apache.maven.plugins</groupId>
313                     <artifactId>maven-javadoc-plugin</artifactId>
314                     <version>${maven.javadoc.version}</version>
315                     <configuration>
316                         <stylesheetfile>stylesheet.css</stylesheetfile>
317                     </configuration>
318                     <executions>
319                         <execution>
320                             <id>attach-javadocs</id>
321                             <goals>
322                                 <goal>jar</goal>
323                             </goals>
324                         </execution>
325                         <execution>
326                             <goals>
327                                 <goal>aggregate</goal>
328                             </goals>
329                             <phase>site</phase>
330                         </execution>
331                     </executions>
332                 </plugin>
333                 <plugin>
334                     <groupId>org.apache.maven.plugins</groupId>
335                     <artifactId>maven-release-plugin</artifactId>
336                     <version>${maven.release.version}</version>
337
338                     <!-- Since we have a maven plugin, we need to install it -->
339                     <configuration>
340                         <preparationGoals>clean install</preparationGoals>
341                         <completionGoals>clean install</completionGoals>
342                     </configuration>
343                 </plugin>
344             </plugins>
345         </pluginManagement>
346         <plugins>
347             <plugin>
348                 <groupId>org.apache.maven.plugins</groupId>
349                 <artifactId>maven-jar-plugin</artifactId>
350             </plugin>
351             <plugin>
352                 <groupId>org.apache.felix</groupId>
353                 <artifactId>maven-bundle-plugin</artifactId>
354             </plugin>
355             <plugin>
356                 <groupId>org.apache.maven.plugins</groupId>
357                 <artifactId>maven-source-plugin</artifactId>
358                 <version>${maven.source.version}</version>
359                 <executions>
360                     <execution>
361                         <id>attach-sources</id>
362                         <goals>
363                             <goal>jar</goal>
364                         </goals>
365                     </execution>
366                 </executions>
367             </plugin>
368             <plugin>
369                 <groupId>org.apache.maven.plugins</groupId>
370                 <artifactId>maven-javadoc-plugin</artifactId>
371             </plugin>
372         </plugins>
373     </build>
374
375     <reporting>
376         <plugins>
377             <plugin>
378                 <groupId>org.codehaus.mojo</groupId>
379                 <artifactId>findbugs-maven-plugin</artifactId>
380                 <version>2.5.3</version>
381                 <configuration>
382                     <effort>Max</effort>
383                     <threshold>Low</threshold>
384                     <goal>site</goal>
385                 </configuration>
386             </plugin>
387             <plugin>
388                 <groupId>org.codehaus.mojo</groupId>
389                 <artifactId>jdepend-maven-plugin</artifactId>
390                 <version>2.0-beta-2</version>
391             </plugin>
392         </plugins>
393     </reporting>
394 </project>