3b8fdae15950f4fc72ef83357d3c78c474b8076f
[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.odlparent</groupId>
14         <artifactId>bundle-parent</artifactId>
15         <version>1.8.0-SNAPSHOT</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.yangtools</groupId>
21     <artifactId>yang-parser-impl</artifactId>
22     <version>1.1.0-SNAPSHOT</version>
23     <packaging>bundle</packaging>
24     <name>${project.artifactId}</name>
25     <description>YANG parser</description>
26
27     <dependencyManagement>
28         <dependencies>
29             <dependency>
30                 <groupId>org.opendaylight.yangtools</groupId>
31                 <artifactId>yangtools-artifacts</artifactId>
32                 <version>1.1.0-SNAPSHOT</version>
33                 <scope>import</scope>
34                 <type>pom</type>
35             </dependency>
36         </dependencies>
37     </dependencyManagement>
38
39     <dependencies>
40         <dependency>
41             <groupId>${project.groupId}</groupId>
42             <artifactId>yang-common</artifactId>
43         </dependency>
44         <dependency>
45             <groupId>${project.groupId}</groupId>
46             <artifactId>yang-model-api</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>${project.groupId}</groupId>
50             <artifactId>yang-parser-api</artifactId>
51         </dependency>
52         <dependency>
53             <groupId>${project.groupId}</groupId>
54             <artifactId>yang-model-util</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>${project.groupId}</groupId>
58             <artifactId>yang-data-util</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>org.antlr</groupId>
62             <artifactId>antlr4-runtime</artifactId>
63             <version>4.5.3</version>
64         </dependency>
65         <dependency>
66             <groupId>org.mockito</groupId>
67             <artifactId>mockito-core</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>com.google.guava</groupId>
71             <artifactId>guava</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>junit</groupId>
75             <artifactId>junit</artifactId>
76             <scope>test</scope>
77         </dependency>
78         <dependency>
79             <groupId>ch.qos.logback</groupId>
80             <artifactId>logback-classic</artifactId>
81             <scope>test</scope>
82         </dependency>
83         <dependency>
84             <groupId>${project.groupId}</groupId>
85             <artifactId>concepts</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>com.google.code.findbugs</groupId>
89             <artifactId>jsr305</artifactId>
90         </dependency>
91     </dependencies>
92
93     <build>
94         <plugins>
95             <plugin>
96                 <groupId>org.antlr</groupId>
97                 <artifactId>antlr4-maven-plugin</artifactId>
98                 <version>4.5.3</version>
99                 <executions>
100                     <execution>
101                         <goals>
102                             <goal>antlr4</goal>
103                         </goals>
104                     </execution>
105                 </executions>
106                 <configuration>
107                     <sourceDirectory>src/main/antlr</sourceDirectory>
108                     <outputDirectory>target/generated-sources/parser/org/opendaylight/yangtools/antlrv4/code/gen</outputDirectory>
109                     <visitor>true</visitor>
110                     <listener>true</listener>
111                 </configuration>
112             </plugin>
113             <plugin>
114                 <groupId>org.codehaus.mojo</groupId>
115                 <artifactId>build-helper-maven-plugin</artifactId>
116             </plugin>
117             <plugin>
118                 <groupId>org.apache.maven.plugins</groupId>
119                 <artifactId>maven-javadoc-plugin</artifactId>
120                 <configuration>
121                     <excludePackageNames>
122                         *.opendaylight.yangtools.antlrv4.code.gen
123                     </excludePackageNames>
124                 </configuration>
125             </plugin>
126             <plugin>
127                 <groupId>org.apache.felix</groupId>
128                 <artifactId>maven-bundle-plugin</artifactId>
129                 <extensions>true</extensions>
130                 <configuration>
131                     <instructions>
132                         <Export-Package>
133                             org.opendaylight.yangtools.yang.parser.*
134                         </Export-Package>
135                     </instructions>
136                 </configuration>
137             </plugin>
138         </plugins>
139         <pluginManagement>
140             <plugins>
141                 <plugin>
142                     <groupId>org.eclipse.m2e</groupId>
143                     <artifactId>lifecycle-mapping</artifactId>
144                     <version>1.0.0</version>
145                     <configuration>
146                         <lifecycleMappingMetadata>
147                             <pluginExecutions>
148                                 <pluginExecution>
149                                     <pluginExecutionFilter>
150                                         <groupId>org.antlr</groupId>
151                                         <artifactId>antlr4-maven-plugin</artifactId>
152                                         <versionRange>[4.0,)</versionRange>
153                                         <goals>
154                                             <goal>antlr4</goal>
155                                         </goals>
156                                     </pluginExecutionFilter>
157                                     <action>
158                                         <execute />
159                                     </action>
160                                 </pluginExecution>
161                             </pluginExecutions>
162                         </lifecycleMappingMetadata>
163                     </configuration>
164                 </plugin>
165             </plugins>
166         </pluginManagement>
167     </build>
168
169   <!--
170       Maven Site Configuration
171
172       The following configuration is necessary for maven-site-plugin to
173       correctly identify the correct deployment path for OpenDaylight Maven
174       sites.
175   -->
176   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
177
178   <distributionManagement>
179     <site>
180       <id>opendaylight-site</id>
181       <url>${nexus.site.url}/${project.artifactId}/</url>
182     </site>
183   </distributionManagement>
184 </project>