blob: a1aa7f5a7e588687e5e0b445a4b6331fb0b3d996 [file] [log] [blame]
Brian O'Connor7cbbbb72016-04-09 02:13:23 -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 -->
Vinod Kumar S7a004de2016-02-05 16:15:09 +053016<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18 <modelVersion>4.0.0</modelVersion>
19
20 <parent>
21 <groupId>org.onosproject</groupId>
22 <artifactId>onlab-utils</artifactId>
Thomas Vachuska389f1082016-06-08 17:57:28 -070023 <version>1.6.0-SNAPSHOT</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053024 </parent>
25
26 <artifactId>yangutils-maven-plugin</artifactId>
Ray Milkey3b6b9b12016-02-09 15:11:18 -080027 <version>1.0.0-SNAPSHOT</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053028 <name>onos-yang-utils-plugin</name>
29 <packaging>maven-plugin</packaging>
30
31 <properties>
32 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33 </properties>
34
35 <dependencies>
36 <dependency>
37 <groupId>org.apache.maven</groupId>
38 <artifactId>maven-core</artifactId>
Bharat saraswal2f00b4b2016-03-04 20:08:09 +053039 <version>3.3.9</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053040 </dependency>
41 <dependency>
42 <groupId>org.apache.maven</groupId>
43 <artifactId>maven-plugin-api</artifactId>
Bharat saraswal2f00b4b2016-03-04 20:08:09 +053044 <version>3.3.9</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053045 </dependency>
46 <dependency>
47 <groupId>org.apache.maven.plugin-tools</groupId>
48 <artifactId>maven-plugin-annotations</artifactId>
49 <version>3.4</version>
50 <scope>provided</scope>
51 </dependency>
52 <dependency>
53 <groupId>org.apache.felix</groupId>
54 <artifactId>maven-scr-plugin</artifactId>
Bharat saraswal2f00b4b2016-03-04 20:08:09 +053055 <version>1.21.0</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053056 <scope>compile</scope>
57 </dependency>
58 <dependency>
59 <groupId>org.apache.maven</groupId>
60 <artifactId>maven-artifact</artifactId>
Bharat saraswal2f00b4b2016-03-04 20:08:09 +053061 <version>3.3.9</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053062 </dependency>
63 <dependency>
64 <groupId>org.apache.maven</groupId>
65 <artifactId>maven-project</artifactId>
Bharat saraswal2f00b4b2016-03-04 20:08:09 +053066 <version>3.0-alpha-2</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053067 </dependency>
68 <dependency>
69 <groupId>org.apache.maven.plugin-testing</groupId>
70 <artifactId>maven-plugin-testing-harness</artifactId>
Bharat saraswal870c56f2016-02-20 21:57:16 +053071 <version>3.3.0</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053072 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>org.apache.maven</groupId>
76 <artifactId>maven-model</artifactId>
Bharat saraswal2f00b4b2016-03-04 20:08:09 +053077 <version>3.3.9</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053078 </dependency>
79 <dependency>
80 <groupId>org.apache.maven</groupId>
81 <artifactId>maven-compat</artifactId>
Bharat saraswal2f00b4b2016-03-04 20:08:09 +053082 <version>3.3.9</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053083 <scope>test</scope>
84 </dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +053085
Vinod Kumar S7a004de2016-02-05 16:15:09 +053086 <dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +053087 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-surefire-plugin</artifactId>
89 <version>2.19.1</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053090 </dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +053091
Vinod Kumar S7a004de2016-02-05 16:15:09 +053092 <dependency>
93 <groupId>junit</groupId>
94 <artifactId>junit</artifactId>
95 <version>4.12</version>
96 <scope>test</scope>
97 </dependency>
98 <dependency>
99 <groupId>org.sonatype.plexus</groupId>
100 <artifactId>plexus-build-api</artifactId>
101 <version>0.0.7</version>
102 <scope>provided</scope>
103 </dependency>
104 <dependency>
105 <groupId>commons-io</groupId>
106 <artifactId>commons-io</artifactId>
Jian Li3276d152016-04-13 15:30:32 -0700107 <version>2.4</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530108 </dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +0530109
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530110 <dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +0530111 <groupId>org.hamcrest</groupId>
112 <artifactId>hamcrest-all</artifactId>
113 <version>1.3</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530114 </dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +0530115
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530116 <dependency>
117 <groupId>org.onosproject</groupId>
118 <artifactId>onlab-junit</artifactId>
Thomas Vachuska389f1082016-06-08 17:57:28 -0700119 <version>1.6.0-SNAPSHOT</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530120 <scope>test</scope>
121 </dependency>
122 <dependency>
123 <groupId>org.antlr</groupId>
124 <artifactId>antlr4-runtime</artifactId>
Jian Li3276d152016-04-13 15:30:32 -0700125 <version>4.5.3</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530126 </dependency>
127 <dependency>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530128 <groupId>org.codehaus.mojo</groupId>
129 <artifactId>build-helper-maven-plugin</artifactId>
130 <version>1.10</version>
131 </dependency>
132 </dependencies>
133
134 <build>
135 <plugins>
136 <plugin>
137 <groupId>org.antlr</groupId>
138 <artifactId>antlr4-maven-plugin</artifactId>
139 <version>4.5</version>
140 <executions>
141 <execution>
142 <phase>generate-sources</phase>
143 <goals>
144 <goal>antlr4</goal>
145 </goals>
146 </execution>
147 </executions>
148 <configuration>
149 <sourceDirectory>src/main/resources</sourceDirectory>
150 <outputDirectory>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</outputDirectory>
Gaurav Agrawal925f5632016-02-18 20:50:36 +0530151 <visitor>false</visitor>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530152 <listener>true</listener>
153 </configuration>
154 </plugin>
155 <plugin>
Gaurav Agrawal925f5632016-02-18 20:50:36 +0530156 <artifactId>maven-clean-plugin</artifactId>
157 <version>3.0.0</version>
158 <executions>
159 <execution>
160 <id>Deleting auto-generated listener interfaces</id>
161 <phase>generate-sources</phase>
162 <goals>
163 <goal>clean</goal>
164 </goals>
165 </execution>
166 </executions>
167 <configuration>
168 <excludeDefaultDirectories>true</excludeDefaultDirectories>
169 <filesets>
170 <fileset>
171 <directory>target</directory>
172 <followSymlinks>false</followSymlinks>
173 <useDefaultExcludes>true</useDefaultExcludes>
174 <excludes>
175 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java</exclude>
176 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens</exclude>
177 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java</exclude>
178 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens</exclude>
179 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java</exclude>
180 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens</exclude>
181 </excludes>
182 </fileset>
183 </filesets>
184 <verbose>true</verbose>
185 </configuration>
186 </plugin>
187 <plugin>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530188 <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>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</source>
201 </sources>
202 </configuration>
203 </execution>
204 </executions>
205 </plugin>
206 <plugin>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530207 <groupId>org.apache.felix</groupId>
208 <artifactId>maven-bundle-plugin</artifactId>
209 <extensions>true</extensions>
210 <configuration>
211 <instructions>
212 <Export-Package>
213 org.onosproject.yangutils.parser.*
214 </Export-Package>
215 </instructions>
216 </configuration>
217 </plugin>
218 <plugin>
219 <groupId>org.apache.maven.plugins</groupId>
220 <artifactId>maven-plugin-plugin</artifactId>
221 <version>3.4</version>
222 <configuration>
223 <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
224 </configuration>
225 <executions>
226 <execution>
227 <phase>generate-sources</phase>
228 <goals>
229 <goal>descriptor</goal>
230 </goals>
231 </execution>
232 </executions>
233 </plugin>
234 </plugins>
235 </build>
Bharat saraswal870c56f2016-02-20 21:57:16 +0530236
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530237</project>