Merge "Fix for Bug 589."
[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>junit</groupId>
56             <artifactId>junit</artifactId>
57             <scope>test</scope>
58         </dependency>
59         <dependency>
60             <groupId>${project.groupId}</groupId>
61             <artifactId>concepts</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>commons-io</groupId>
65             <artifactId>commons-io</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.codehaus.mojo</groupId>
91                 <artifactId>build-helper-maven-plugin</artifactId>
92                 <version>1.8</version>
93                 <executions>
94                     <execution>
95                         <phase>generate-sources</phase>
96                         <goals>
97                             <goal>add-source</goal>
98                         </goals>
99                         <configuration>
100                             <sources>
101                                 <source>target/generated-sources/parser</source>
102                             </sources>
103                         </configuration>
104                     </execution>
105                 </executions>
106             </plugin>
107             <plugin>
108                 <groupId>org.apache.maven.plugins</groupId>
109                 <artifactId>maven-javadoc-plugin</artifactId>
110                 <configuration>
111                     <excludePackageNames>
112                         *.opendaylight.yangtools.antlrv4.code.gen
113                     </excludePackageNames>
114                 </configuration>
115             </plugin>
116             <plugin>
117                 <groupId>org.apache.felix</groupId>
118                 <artifactId>maven-bundle-plugin</artifactId>
119                 <extensions>true</extensions>
120                 <configuration>
121                     <instructions>
122                         <Export-Package>
123                             org.opendaylight.yangtools.yang.parser.*
124                         </Export-Package>
125                     </instructions>
126                 </configuration>
127             </plugin>
128         </plugins>
129         <pluginManagement>
130             <plugins>
131                 <plugin>
132                     <groupId>org.eclipse.m2e</groupId>
133                     <artifactId>lifecycle-mapping</artifactId>
134                     <version>1.0.0</version>
135                     <configuration>
136                         <lifecycleMappingMetadata>
137                             <pluginExecutions>
138                                 <pluginExecution>
139                                     <pluginExecutionFilter>
140                                         <groupId>org.antlr</groupId>
141                                         <artifactId>antlr4-maven-plugin</artifactId>
142                                         <versionRange>[4.0,)</versionRange>
143                                         <goals>
144                                             <goal>antlr4</goal>
145                                         </goals>
146                                     </pluginExecutionFilter>
147                                     <action>
148                                         <execute />
149                                     </action>
150                                 </pluginExecution>
151                             </pluginExecutions>
152                         </lifecycleMappingMetadata>
153                     </configuration>
154                 </plugin>
155             </plugins>
156         </pluginManagement>
157     </build>
158 </project>