Merge "Make distributionManagement reference groups"
[yangtools.git] / yang / yang-parser-impl / pom.xml
1 <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">
2
3     <parent>
4         <groupId>org.opendaylight.yangtools</groupId>
5         <artifactId>yang</artifactId>
6         <version>0.6.0-SNAPSHOT</version>
7     </parent>
8
9     <modelVersion>4.0.0</modelVersion>
10     <artifactId>yang-parser-impl</artifactId>
11     <name>${project.artifactId}</name>
12     <description>YANG parser</description>
13
14     <dependencies>
15         <dependency>
16             <groupId>${project.groupId}</groupId>
17             <artifactId>yang-common</artifactId>
18         </dependency>
19         <dependency>
20             <groupId>${project.groupId}</groupId>
21             <artifactId>yang-model-api</artifactId>
22         </dependency>
23         <dependency>
24             <groupId>${project.groupId}</groupId>
25             <artifactId>yang-parser-api</artifactId>
26         </dependency>
27         <dependency>
28             <groupId>${project.groupId}</groupId>
29             <artifactId>yang-model-util</artifactId>
30         </dependency>
31         <dependency>
32             <groupId>org.antlr</groupId>
33             <artifactId>antlr4-runtime</artifactId>
34             <version>4.0</version>
35         </dependency>
36         <dependency>
37             <groupId>org.mockito</groupId>
38             <artifactId>mockito-all</artifactId>
39             <scope>test</scope>
40         </dependency>
41         <dependency>
42             <groupId>com.google.guava</groupId>
43             <artifactId>guava</artifactId>
44         </dependency>
45         <dependency>
46             <groupId>org.eclipse.xtend</groupId>
47             <artifactId>org.eclipse.xtend.lib</artifactId>
48         </dependency>
49         <dependency>
50             <groupId>junit</groupId>
51             <artifactId>junit</artifactId>
52             <scope>test</scope>
53         </dependency>
54     </dependencies>
55
56     <build>
57         <plugins>
58             <plugin>
59                 <groupId>org.antlr</groupId>
60                 <artifactId>antlr4-maven-plugin</artifactId>
61                 <version>4.0</version>
62                 <executions>
63                     <execution>
64                         <goals>
65                             <goal>antlr4</goal>
66                         </goals>
67                     </execution>
68                 </executions>
69                 <configuration>
70                     <sourceDirectory>src/main/antlr</sourceDirectory>
71                     <outputDirectory>target/generated-sources/parser/org/opendaylight/yangtools/antlrv4/code/gen</outputDirectory>
72                     <visitor>true</visitor>
73                     <listener>true</listener>
74                 </configuration>
75             </plugin>
76             <plugin>
77                 <groupId>org.eclipse.xtend</groupId>
78                 <artifactId>xtend-maven-plugin</artifactId>
79             </plugin>
80             <plugin>
81                 <groupId>org.codehaus.mojo</groupId>
82                 <artifactId>build-helper-maven-plugin</artifactId>
83                 <version>1.8</version>
84                 <executions>
85                     <execution>
86                         <phase>generate-sources</phase>
87                         <goals>
88                             <goal>add-source</goal>
89                         </goals>
90                         <configuration>
91                             <sources>
92                                 <source>target/generated-sources/parser</source>
93                             </sources>
94                         </configuration>
95                     </execution>
96                 </executions>
97             </plugin>
98             <plugin>
99                 <groupId>org.apache.maven.plugins</groupId>
100                 <artifactId>maven-javadoc-plugin</artifactId>
101                 <configuration>
102                     <excludePackageNames>
103                         *.opendaylight.yangtools.antlrv4.code.gen
104                     </excludePackageNames>
105                 </configuration>
106             </plugin>
107         </plugins>
108         <pluginManagement>
109             <plugins>
110                 <plugin>
111                     <groupId>org.eclipse.m2e</groupId>
112                     <artifactId>lifecycle-mapping</artifactId>
113                     <version>1.0.0</version>
114                     <configuration>
115                         <lifecycleMappingMetadata>
116                             <pluginExecutions>
117                                 <pluginExecution>
118                                     <pluginExecutionFilter>
119                                         <groupId>org.antlr</groupId>
120                                         <artifactId>antlr4-maven-plugin</artifactId>
121                                         <versionRange>[4.0,)</versionRange>
122                                         <goals>
123                                             <goal>antlr4</goal>
124                                         </goals>
125                                     </pluginExecutionFilter>
126                                     <action>
127                                         <execute />
128                                     </action>
129                                 </pluginExecution>
130                             </pluginExecutions>
131                         </lifecycleMappingMetadata>
132                     </configuration>
133                 </plugin>
134             </plugins>
135         </pluginManagement>
136     </build>
137 </project>