Merge "Improvements REST documentation generation"
[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>yangtools-parent</artifactId>
15         <version>0.6.2-SNAPSHOT</version>
16         <relativePath>/../../common/parent/pom.xml</relativePath>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <artifactId>yang-parser-impl</artifactId>
21     <name>${project.artifactId}</name>
22     <description>YANG parser</description>
23
24     <dependencies>
25         <dependency>
26             <groupId>${project.groupId}</groupId>
27             <artifactId>yang-common</artifactId>
28         </dependency>
29         <dependency>
30             <groupId>${project.groupId}</groupId>
31             <artifactId>yang-model-api</artifactId>
32         </dependency>
33         <dependency>
34             <groupId>${project.groupId}</groupId>
35             <artifactId>yang-parser-api</artifactId>
36         </dependency>
37         <dependency>
38             <groupId>${project.groupId}</groupId>
39             <artifactId>yang-model-util</artifactId>
40         </dependency>
41         <dependency>
42             <groupId>org.antlr</groupId>
43             <artifactId>antlr4-runtime</artifactId>
44             <version>4.0</version>
45         </dependency>
46         <dependency>
47             <groupId>org.mockito</groupId>
48             <artifactId>mockito-all</artifactId>
49             <scope>test</scope>
50         </dependency>
51         <dependency>
52             <groupId>com.google.guava</groupId>
53             <artifactId>guava</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>junit</groupId>
57             <artifactId>junit</artifactId>
58             <scope>test</scope>
59         </dependency>
60         <dependency>
61             <groupId>${project.groupId}</groupId>
62             <artifactId>concepts</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>commons-io</groupId>
66             <artifactId>commons-io</artifactId>
67         </dependency>
68       <dependency>
69         <groupId>com.google.code.findbugs</groupId>
70         <artifactId>jsr305</artifactId>
71       </dependency>
72     </dependencies>
73
74     <build>
75         <plugins>
76             <plugin>
77                 <groupId>org.antlr</groupId>
78                 <artifactId>antlr4-maven-plugin</artifactId>
79                 <version>4.0</version>
80                 <executions>
81                     <execution>
82                         <goals>
83                             <goal>antlr4</goal>
84                         </goals>
85                     </execution>
86                 </executions>
87                 <configuration>
88                     <sourceDirectory>src/main/antlr</sourceDirectory>
89                     <outputDirectory>target/generated-sources/parser/org/opendaylight/yangtools/antlrv4/code/gen</outputDirectory>
90                     <visitor>true</visitor>
91                     <listener>true</listener>
92                 </configuration>
93             </plugin>
94             <plugin>
95                 <groupId>org.codehaus.mojo</groupId>
96                 <artifactId>build-helper-maven-plugin</artifactId>
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                 <extensions>true</extensions>
124                 <configuration>
125                     <instructions>
126                         <Export-Package>
127                             org.opendaylight.yangtools.yang.parser.*
128                         </Export-Package>
129                     </instructions>
130                 </configuration>
131             </plugin>
132         </plugins>
133         <pluginManagement>
134             <plugins>
135                 <plugin>
136                     <groupId>org.eclipse.m2e</groupId>
137                     <artifactId>lifecycle-mapping</artifactId>
138                     <version>1.0.0</version>
139                     <configuration>
140                         <lifecycleMappingMetadata>
141                             <pluginExecutions>
142                                 <pluginExecution>
143                                     <pluginExecutionFilter>
144                                         <groupId>org.antlr</groupId>
145                                         <artifactId>antlr4-maven-plugin</artifactId>
146                                         <versionRange>[4.0,)</versionRange>
147                                         <goals>
148                                             <goal>antlr4</goal>
149                                         </goals>
150                                     </pluginExecutionFilter>
151                                     <action>
152                                         <execute />
153                                     </action>
154                                 </pluginExecution>
155                             </pluginExecutions>
156                         </lifecycleMappingMetadata>
157                     </configuration>
158                 </plugin>
159             </plugins>
160         </pluginManagement>
161     </build>
162 </project>