blob: b1900e2ae41740013584f4caef8496b1db932970 [file] [log] [blame]
Brian O'Connor75218c22016-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 S212fcdd2016-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>
Brian O'Connorfff77732016-05-23 18:33:04 -070023 <version>1.7.0-SNAPSHOT</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053024 <relativePath>../pom.xml</relativePath>
25 </parent>
26
27 <artifactId>yangutils-maven-plugin</artifactId>
Ray Milkey22e9f782016-02-09 15:11:18 -080028 <version>1.0.0-SNAPSHOT</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053029 <name>onos-yang-utils-plugin</name>
30 <packaging>maven-plugin</packaging>
31
32 <properties>
33 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34 </properties>
35
36 <dependencies>
37 <dependency>
38 <groupId>org.apache.maven</groupId>
39 <artifactId>maven-core</artifactId>
Bharat saraswal022dae92016-03-04 20:08:09 +053040 <version>3.3.9</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053041 </dependency>
42 <dependency>
43 <groupId>org.apache.maven</groupId>
44 <artifactId>maven-plugin-api</artifactId>
Bharat saraswal022dae92016-03-04 20:08:09 +053045 <version>3.3.9</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053046 </dependency>
47 <dependency>
48 <groupId>org.apache.maven.plugin-tools</groupId>
49 <artifactId>maven-plugin-annotations</artifactId>
50 <version>3.4</version>
51 <scope>provided</scope>
52 </dependency>
53 <dependency>
54 <groupId>org.apache.felix</groupId>
55 <artifactId>maven-scr-plugin</artifactId>
Bharat saraswal022dae92016-03-04 20:08:09 +053056 <version>1.21.0</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053057 <scope>compile</scope>
58 </dependency>
59 <dependency>
60 <groupId>org.apache.maven</groupId>
61 <artifactId>maven-artifact</artifactId>
Bharat saraswal022dae92016-03-04 20:08:09 +053062 <version>3.3.9</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053063 </dependency>
64 <dependency>
65 <groupId>org.apache.maven</groupId>
66 <artifactId>maven-project</artifactId>
Bharat saraswal022dae92016-03-04 20:08:09 +053067 <version>3.0-alpha-2</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053068 </dependency>
69 <dependency>
70 <groupId>org.apache.maven.plugin-testing</groupId>
71 <artifactId>maven-plugin-testing-harness</artifactId>
Bharat saraswal97459962016-02-20 21:57:16 +053072 <version>3.3.0</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053073 <scope>test</scope>
74 </dependency>
75 <dependency>
76 <groupId>org.apache.maven</groupId>
77 <artifactId>maven-model</artifactId>
Bharat saraswal022dae92016-03-04 20:08:09 +053078 <version>3.3.9</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053079 </dependency>
80 <dependency>
81 <groupId>org.apache.maven</groupId>
82 <artifactId>maven-compat</artifactId>
Bharat saraswal022dae92016-03-04 20:08:09 +053083 <version>3.3.9</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053084 <scope>test</scope>
85 </dependency>
Bharat saraswal97459962016-02-20 21:57:16 +053086
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053087 <dependency>
Bharat saraswal97459962016-02-20 21:57:16 +053088 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-surefire-plugin</artifactId>
90 <version>2.19.1</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053091 </dependency>
Bharat saraswal97459962016-02-20 21:57:16 +053092
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053093 <dependency>
94 <groupId>junit</groupId>
95 <artifactId>junit</artifactId>
96 <version>4.12</version>
97 <scope>test</scope>
98 </dependency>
99 <dependency>
100 <groupId>org.sonatype.plexus</groupId>
101 <artifactId>plexus-build-api</artifactId>
102 <version>0.0.7</version>
103 <scope>provided</scope>
104 </dependency>
105 <dependency>
106 <groupId>commons-io</groupId>
107 <artifactId>commons-io</artifactId>
Jian Li659f1482016-04-13 15:30:32 -0700108 <version>2.4</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530109 </dependency>
Bharat saraswal97459962016-02-20 21:57:16 +0530110
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530111 <dependency>
Bharat saraswal97459962016-02-20 21:57:16 +0530112 <groupId>org.hamcrest</groupId>
113 <artifactId>hamcrest-all</artifactId>
114 <version>1.3</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530115 </dependency>
Bharat saraswal97459962016-02-20 21:57:16 +0530116
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530117 <dependency>
118 <groupId>org.onosproject</groupId>
119 <artifactId>onlab-junit</artifactId>
Brian O'Connorfff77732016-05-23 18:33:04 -0700120 <version>1.7.0-SNAPSHOT</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530121 <scope>test</scope>
122 </dependency>
123 <dependency>
124 <groupId>org.antlr</groupId>
125 <artifactId>antlr4-runtime</artifactId>
Jian Li659f1482016-04-13 15:30:32 -0700126 <version>4.5.3</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530127 </dependency>
128 <dependency>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530129 <groupId>org.codehaus.mojo</groupId>
130 <artifactId>build-helper-maven-plugin</artifactId>
131 <version>1.10</version>
132 </dependency>
133 </dependencies>
134
135 <build>
136 <plugins>
137 <plugin>
138 <groupId>org.antlr</groupId>
139 <artifactId>antlr4-maven-plugin</artifactId>
140 <version>4.5</version>
141 <executions>
142 <execution>
143 <phase>generate-sources</phase>
144 <goals>
145 <goal>antlr4</goal>
146 </goals>
147 </execution>
148 </executions>
149 <configuration>
150 <sourceDirectory>src/main/resources</sourceDirectory>
151 <outputDirectory>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</outputDirectory>
Gaurav Agrawal27179912016-02-18 20:50:36 +0530152 <visitor>false</visitor>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530153 <listener>true</listener>
154 </configuration>
155 </plugin>
156 <plugin>
Gaurav Agrawal27179912016-02-18 20:50:36 +0530157 <artifactId>maven-clean-plugin</artifactId>
158 <version>3.0.0</version>
159 <executions>
160 <execution>
161 <id>Deleting auto-generated listener interfaces</id>
162 <phase>generate-sources</phase>
163 <goals>
164 <goal>clean</goal>
165 </goals>
166 </execution>
167 </executions>
168 <configuration>
169 <excludeDefaultDirectories>true</excludeDefaultDirectories>
170 <filesets>
171 <fileset>
172 <directory>target</directory>
173 <followSymlinks>false</followSymlinks>
174 <useDefaultExcludes>true</useDefaultExcludes>
175 <excludes>
176 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java</exclude>
177 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens</exclude>
178 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java</exclude>
179 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens</exclude>
180 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java</exclude>
181 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens</exclude>
182 </excludes>
183 </fileset>
184 </filesets>
185 <verbose>true</verbose>
186 </configuration>
187 </plugin>
188 <plugin>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530189 <groupId>org.codehaus.mojo</groupId>
190 <artifactId>build-helper-maven-plugin</artifactId>
191 <version>1.10</version>
192 <executions>
193 <execution>
194 <id>add-source</id>
195 <phase>generate-sources</phase>
196 <goals>
197 <goal>add-source</goal>
198 </goals>
199 <configuration>
200 <sources>
201 <source>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</source>
202 </sources>
203 </configuration>
204 </execution>
205 </executions>
206 </plugin>
207 <plugin>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530208 <groupId>org.apache.felix</groupId>
209 <artifactId>maven-bundle-plugin</artifactId>
210 <extensions>true</extensions>
211 <configuration>
212 <instructions>
213 <Export-Package>
214 org.onosproject.yangutils.parser.*
215 </Export-Package>
216 </instructions>
217 </configuration>
218 </plugin>
219 <plugin>
220 <groupId>org.apache.maven.plugins</groupId>
221 <artifactId>maven-plugin-plugin</artifactId>
222 <version>3.4</version>
223 <configuration>
224 <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
225 </configuration>
226 <executions>
227 <execution>
228 <phase>generate-sources</phase>
229 <goals>
230 <goal>descriptor</goal>
231 </goals>
232 </execution>
233 </executions>
234 </plugin>
235 </plugins>
236 </build>
Bharat saraswal97459962016-02-20 21:57:16 +0530237
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530238</project>