blob: 0ada699437a8f419d9d3be20fb7055d4c57d4e7d [file] [log] [blame]
Ray Milkey9e9709d2016-10-05 14:16:39 -07001<!--
2 ~ Copyright 2016-present Open Networking Laboratory
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16<project xmlns="http://maven.apache.org/POM/4.0.0"
17 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19 <modelVersion>4.0.0</modelVersion>
20
21 <parent>
22 <groupId>org.onosproject</groupId>
23 <artifactId>onos-yang-tools</artifactId>
24 <version>1.9-SNAPSHOT</version>
25 </parent>
26
27 <artifactId>onos-yang-utils-parser</artifactId>
28 <version>1.9-SNAPSHOT</version>
29 <packaging>maven-plugin</packaging>
30
31 <dependencies>
32 <dependency>
33 <groupId>org.onosproject</groupId>
34 <artifactId>onos-yang-datamodel</artifactId>
35 <version>${project.version}</version>
36 </dependency>
37 <dependency>
38 <groupId>org.onosproject</groupId>
39 <artifactId>onos-yang-utils-generator</artifactId>
40 <version>${project.version}</version>
41 </dependency>
42 <dependency>
43 <groupId>org.apache.maven</groupId>
44 <artifactId>maven-core</artifactId>
45 <version>3.3.9</version>
46 </dependency>
47 <dependency>
48 <groupId>org.apache.maven</groupId>
49 <artifactId>maven-plugin-api</artifactId>
50 <version>3.3.9</version>
51 </dependency>
52 <dependency>
53 <groupId>org.apache.maven.plugin-tools</groupId>
54 <artifactId>maven-plugin-annotations</artifactId>
55 <version>3.4</version>
56 <scope>provided</scope>
57 </dependency>
58 <dependency>
59 <groupId>org.apache.felix</groupId>
60 <artifactId>maven-scr-plugin</artifactId>
61 <version>1.21.0</version>
62 <scope>compile</scope>
63 </dependency>
64 <dependency>
65 <groupId>org.apache.maven</groupId>
66 <artifactId>maven-artifact</artifactId>
67 <version>3.3.9</version>
68 </dependency>
69 <dependency>
70 <groupId>org.apache.maven</groupId>
71 <artifactId>maven-project</artifactId>
72 <version>3.0-alpha-2</version>
73 </dependency>
74 <dependency>
75 <groupId>org.apache.maven</groupId>
76 <artifactId>maven-model</artifactId>
77 <version>3.3.9</version>
78 </dependency>
79 <dependency>
80 <groupId>junit</groupId>
81 <artifactId>junit</artifactId>
82 <version>4.12</version>
83 <scope>test</scope>
84 </dependency>
85 <dependency>
86 <groupId>org.sonatype.plexus</groupId>
87 <artifactId>plexus-build-api</artifactId>
88 <version>0.0.7</version>
89 <scope>provided</scope>
90 </dependency>
91 <dependency>
92 <groupId>commons-io</groupId>
93 <artifactId>commons-io</artifactId>
94 <version>2.4</version>
95 </dependency>
96
97 <dependency>
98 <groupId>org.hamcrest</groupId>
99 <artifactId>hamcrest-all</artifactId>
100 <version>1.3</version>
101 </dependency>
102 <dependency>
103 <groupId>org.antlr</groupId>
104 <artifactId>antlr4-runtime</artifactId>
105 <version>4.5.3</version>
106 </dependency>
107 <dependency>
108 <groupId>org.codehaus.mojo</groupId>
109 <artifactId>build-helper-maven-plugin</artifactId>
110 <version>1.10</version>
111 </dependency>
112 <dependency>
113 <groupId>org.slf4j</groupId>
114 <artifactId>slf4j-api</artifactId>
115 <version>1.7.21</version>
116 <scope>provided</scope>
117 </dependency>
118 </dependencies>
119
120 <build>
121 <plugins>
122 <plugin>
123 <groupId>org.antlr</groupId>
124 <artifactId>antlr4-maven-plugin</artifactId>
125 <version>4.5</version>
126 <executions>
127 <execution>
128 <phase>generate-sources</phase>
129 <goals>
130 <goal>antlr4</goal>
131 </goals>
132 </execution>
133 </executions>
134 <configuration>
135 <sourceDirectory>src/main/resources</sourceDirectory>
136 <outputDirectory>
137 target/generated-sources/org/onosproject/yangutils/parser/antlrgencode
138 </outputDirectory>
139 <visitor>false</visitor>
140 <listener>true</listener>
141 </configuration>
142 </plugin>
143 <plugin>
144 <artifactId>maven-clean-plugin</artifactId>
145 <version>3.0.0</version>
146 <executions>
147 <execution>
148 <id>Deleting auto-generated listener interfaces</id>
149 <phase>generate-sources</phase>
150 <goals>
151 <goal>clean</goal>
152 </goals>
153 </execution>
154 </executions>
155 <configuration>
156 <excludeDefaultDirectories>true</excludeDefaultDirectories>
157 <filesets>
158 <fileset>
159 <directory>target</directory>
160 <followSymlinks>false</followSymlinks>
161 <useDefaultExcludes>true</useDefaultExcludes>
162 <excludes>
163 <exclude>
164 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java
165 </exclude>
166 <exclude>
167 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens
168 </exclude>
169 <exclude>
170 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java
171 </exclude>
172 <exclude>
173 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens
174 </exclude>
175 <exclude>
176 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java
177 </exclude>
178 <exclude>
179 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens
180 </exclude>
181 </excludes>
182 </fileset>
183 </filesets>
184 <verbose>false</verbose>
185 </configuration>
186 </plugin>
187 <plugin>
188 <groupId>org.codehaus.mojo</groupId>
189 <artifactId>build-helper-maven-plugin</artifactId>
190 <version>1.10</version>
191 <executions>
192 <execution>
193 <id>add-source</id>
194 <phase>generate-sources</phase>
195 <goals>
196 <goal>add-source</goal>
197 </goals>
198 <configuration>
199 <sources>
200 <source>
201 target/generated-sources/org/onosproject/yangutils/parser/antlrgencode
202 </source>
203 <sourceDirectory>
204 target/generated-sources/org/onosproject/yangutils/parser/antlrgencode
205 </sourceDirectory>
206 </sources>
207 </configuration>
208 </execution>
209 </executions>
210 </plugin>
211 <plugin>
212 <groupId>org.apache.maven.plugins</groupId>
213 <artifactId>maven-plugin-plugin</artifactId>
214 <version>3.4</version>
215 <configuration>
216 <skipErrorNoDescriptorsFound>true
217 </skipErrorNoDescriptorsFound>
218 </configuration>
219 <executions>
220 <execution>
221 <phase>generate-sources</phase>
222 <goals>
223 <goal>descriptor</goal>
224 </goals>
225 </execution>
226 </executions>
227 </plugin>
228 <plugin>
229 <groupId>org.apache.felix</groupId>
230 <artifactId>maven-bundle-plugin</artifactId>
231 <version>2.5.4</version>
232 <extensions>true</extensions>
233 </plugin>
234 </plugins>
235 </build>
236</project>