Added Export-Packages for propper bundle startup in osgi container
[yangtools.git] / yang / yang-parser-impl / 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     <parent>
13         <groupId>org.opendaylight.yangtools</groupId>
14         <artifactId>yang</artifactId>
15         <version>0.6.2-SNAPSHOT</version>
16     </parent>
17
18     <modelVersion>4.0.0</modelVersion>
19     <artifactId>yang-parser-impl</artifactId>
20     <name>${project.artifactId}</name>
21     <description>YANG parser</description>
22
23     <dependencies>
24         <dependency>
25             <groupId>${project.groupId}</groupId>
26             <artifactId>yang-common</artifactId>
27         </dependency>
28         <dependency>
29             <groupId>${project.groupId}</groupId>
30             <artifactId>yang-model-api</artifactId>
31         </dependency>
32         <dependency>
33             <groupId>${project.groupId}</groupId>
34             <artifactId>yang-parser-api</artifactId>
35         </dependency>
36         <dependency>
37             <groupId>${project.groupId}</groupId>
38             <artifactId>yang-model-util</artifactId>
39         </dependency>
40         <dependency>
41             <groupId>org.antlr</groupId>
42             <artifactId>antlr4-runtime</artifactId>
43             <version>4.0</version>
44         </dependency>
45         <dependency>
46             <groupId>org.mockito</groupId>
47             <artifactId>mockito-all</artifactId>
48             <scope>test</scope>
49         </dependency>
50         <dependency>
51             <groupId>com.google.guava</groupId>
52             <artifactId>guava</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>org.eclipse.xtend</groupId>
56             <artifactId>org.eclipse.xtend.lib</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>junit</groupId>
60             <artifactId>junit</artifactId>
61             <scope>test</scope>
62         </dependency>
63         <dependency>
64             <groupId>${project.groupId}</groupId>
65             <artifactId>concepts</artifactId>
66         </dependency>
67     </dependencies>
68
69     <build>
70         <plugins>
71             <plugin>
72                 <groupId>org.antlr</groupId>
73                 <artifactId>antlr4-maven-plugin</artifactId>
74                 <version>4.0</version>
75                 <executions>
76                     <execution>
77                         <goals>
78                             <goal>antlr4</goal>
79                         </goals>
80                     </execution>
81                 </executions>
82                 <configuration>
83                     <sourceDirectory>src/main/antlr</sourceDirectory>
84                     <outputDirectory>target/generated-sources/parser/org/opendaylight/yangtools/antlrv4/code/gen</outputDirectory>
85                     <visitor>true</visitor>
86                     <listener>true</listener>
87                 </configuration>
88             </plugin>
89             <plugin>
90                 <groupId>org.eclipse.xtend</groupId>
91                 <artifactId>xtend-maven-plugin</artifactId>
92             </plugin>
93             <plugin>
94                 <groupId>org.codehaus.mojo</groupId>
95                 <artifactId>build-helper-maven-plugin</artifactId>
96                 <version>1.8</version>
97                 <executions>
98                     <execution>
99                         <phase>generate-sources</phase>
100                         <goals>
101                             <goal>add-source</goal>
102                         </goals>
103                         <configuration>
104                             <sources>
105                                 <source>target/generated-sources/parser</source>
106                             </sources>
107                         </configuration>
108                     </execution>
109                 </executions>
110             </plugin>
111             <plugin>
112                 <groupId>org.apache.maven.plugins</groupId>
113                 <artifactId>maven-javadoc-plugin</artifactId>
114                 <configuration>
115                     <excludePackageNames>
116                         *.opendaylight.yangtools.antlrv4.code.gen
117                     </excludePackageNames>
118                 </configuration>
119             </plugin>
120             <plugin>
121                 <groupId>org.apache.felix</groupId>
122                 <artifactId>maven-bundle-plugin</artifactId>
123                 <version>${bundle.plugin.version}</version>
124                 <extensions>true</extensions>
125                 <configuration>
126                     <instructions>
127                         <Export-Package>
128                             org.opendaylight.yangtools.yang.parser.*
129                         </Export-Package>
130                     </instructions>
131                 </configuration>
132             </plugin>
133         </plugins>
134         <pluginManagement>
135             <plugins>
136                 <plugin>
137                     <groupId>org.eclipse.m2e</groupId>
138                     <artifactId>lifecycle-mapping</artifactId>
139                     <version>1.0.0</version>
140                     <configuration>
141                         <lifecycleMappingMetadata>
142                             <pluginExecutions>
143                                 <pluginExecution>
144                                     <pluginExecutionFilter>
145                                         <groupId>org.antlr</groupId>
146                                         <artifactId>antlr4-maven-plugin</artifactId>
147                                         <versionRange>[4.0,)</versionRange>
148                                         <goals>
149                                             <goal>antlr4</goal>
150                                         </goals>
151                                     </pluginExecutionFilter>
152                                     <action>
153                                         <execute />
154                                     </action>
155                                 </pluginExecution>
156                             </pluginExecutions>
157                         </lifecycleMappingMetadata>
158                     </configuration>
159                 </plugin>
160             </plugins>
161         </pluginManagement>
162     </build>
163 </project>