bug 1128:POM Restructuring for Automated Release
[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     </dependencies>
69
70     <build>
71         <plugins>
72             <plugin>
73                 <groupId>org.antlr</groupId>
74                 <artifactId>antlr4-maven-plugin</artifactId>
75                 <version>4.0</version>
76                 <executions>
77                     <execution>
78                         <goals>
79                             <goal>antlr4</goal>
80                         </goals>
81                     </execution>
82                 </executions>
83                 <configuration>
84                     <sourceDirectory>src/main/antlr</sourceDirectory>
85                     <outputDirectory>target/generated-sources/parser/org/opendaylight/yangtools/antlrv4/code/gen</outputDirectory>
86                     <visitor>true</visitor>
87                     <listener>true</listener>
88                 </configuration>
89             </plugin>
90             <plugin>
91                 <groupId>org.codehaus.mojo</groupId>
92                 <artifactId>build-helper-maven-plugin</artifactId>
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>