blob: 437e23cc274b5ac90d0e80179f09aa199cc99ab4 [file] [log] [blame]
Vinod Kumar S7a004de2016-02-05 16:15:09 +05301<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4
5 <parent>
6 <groupId>org.onosproject</groupId>
7 <artifactId>onlab-utils</artifactId>
Thomas Vachuska5d8994f2016-03-03 17:13:26 -08008 <version>1.5.0-SNAPSHOT</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +05309 <relativePath>../pom.xml</relativePath>
10 </parent>
11
12 <artifactId>yangutils-maven-plugin</artifactId>
Ray Milkey3b6b9b12016-02-09 15:11:18 -080013 <version>1.0.0-SNAPSHOT</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053014 <name>onos-yang-utils-plugin</name>
15 <packaging>maven-plugin</packaging>
16
17 <properties>
18 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19 </properties>
20
21 <dependencies>
22 <dependency>
23 <groupId>org.apache.maven</groupId>
24 <artifactId>maven-core</artifactId>
25 <version>3.2.5</version>
26 </dependency>
27 <dependency>
28 <groupId>org.apache.maven</groupId>
29 <artifactId>maven-plugin-api</artifactId>
30 <version>3.2.5</version>
31 </dependency>
32 <dependency>
33 <groupId>org.apache.maven.plugin-tools</groupId>
34 <artifactId>maven-plugin-annotations</artifactId>
35 <version>3.4</version>
36 <scope>provided</scope>
37 </dependency>
38 <dependency>
39 <groupId>org.apache.felix</groupId>
40 <artifactId>maven-scr-plugin</artifactId>
41 <version>1.9.0</version>
42 <scope>compile</scope>
43 </dependency>
44 <dependency>
45 <groupId>org.apache.maven</groupId>
46 <artifactId>maven-artifact</artifactId>
Bharat saraswal870c56f2016-02-20 21:57:16 +053047 <version>3.2.5</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053048 </dependency>
49 <dependency>
50 <groupId>org.apache.maven</groupId>
51 <artifactId>maven-project</artifactId>
Bharat saraswal870c56f2016-02-20 21:57:16 +053052 <version>2.2.1</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053053 </dependency>
54 <dependency>
55 <groupId>org.apache.maven.plugin-testing</groupId>
56 <artifactId>maven-plugin-testing-harness</artifactId>
Bharat saraswal870c56f2016-02-20 21:57:16 +053057 <version>3.3.0</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053058 <scope>test</scope>
59 </dependency>
60 <dependency>
61 <groupId>org.apache.maven</groupId>
62 <artifactId>maven-model</artifactId>
63 <version>3.2.5</version>
64 </dependency>
65 <dependency>
66 <groupId>org.apache.maven</groupId>
67 <artifactId>maven-compat</artifactId>
68 <version>3.2.5</version>
69 <scope>test</scope>
70 </dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +053071
Vinod Kumar S7a004de2016-02-05 16:15:09 +053072 <dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +053073 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-surefire-plugin</artifactId>
75 <version>2.19.1</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053076 </dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +053077
Vinod Kumar S7a004de2016-02-05 16:15:09 +053078 <dependency>
79 <groupId>junit</groupId>
80 <artifactId>junit</artifactId>
81 <version>4.12</version>
82 <scope>test</scope>
83 </dependency>
84 <dependency>
85 <groupId>org.sonatype.plexus</groupId>
86 <artifactId>plexus-build-api</artifactId>
87 <version>0.0.7</version>
88 <scope>provided</scope>
89 </dependency>
90 <dependency>
91 <groupId>commons-io</groupId>
92 <artifactId>commons-io</artifactId>
Bharat saraswal870c56f2016-02-20 21:57:16 +053093 <version>2.2</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +053094 </dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +053095
Vinod Kumar S7a004de2016-02-05 16:15:09 +053096 <dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +053097 <groupId>org.hamcrest</groupId>
98 <artifactId>hamcrest-all</artifactId>
99 <version>1.3</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530100 </dependency>
Bharat saraswal870c56f2016-02-20 21:57:16 +0530101
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530102 <dependency>
103 <groupId>org.onosproject</groupId>
104 <artifactId>onlab-junit</artifactId>
Thomas Vachuska5d8994f2016-03-03 17:13:26 -0800105 <version>1.5.0-SNAPSHOT</version>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530106 <scope>test</scope>
107 </dependency>
108 <dependency>
109 <groupId>org.antlr</groupId>
110 <artifactId>antlr4-runtime</artifactId>
111 <version>4.5</version>
112 </dependency>
113 <dependency>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530114 <groupId>org.codehaus.mojo</groupId>
115 <artifactId>build-helper-maven-plugin</artifactId>
116 <version>1.10</version>
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>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</outputDirectory>
Gaurav Agrawal925f5632016-02-18 20:50:36 +0530137 <visitor>false</visitor>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530138 <listener>true</listener>
139 </configuration>
140 </plugin>
141 <plugin>
Gaurav Agrawal925f5632016-02-18 20:50:36 +0530142 <artifactId>maven-clean-plugin</artifactId>
143 <version>3.0.0</version>
144 <executions>
145 <execution>
146 <id>Deleting auto-generated listener interfaces</id>
147 <phase>generate-sources</phase>
148 <goals>
149 <goal>clean</goal>
150 </goals>
151 </execution>
152 </executions>
153 <configuration>
154 <excludeDefaultDirectories>true</excludeDefaultDirectories>
155 <filesets>
156 <fileset>
157 <directory>target</directory>
158 <followSymlinks>false</followSymlinks>
159 <useDefaultExcludes>true</useDefaultExcludes>
160 <excludes>
161 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java</exclude>
162 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens</exclude>
163 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java</exclude>
164 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens</exclude>
165 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java</exclude>
166 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens</exclude>
167 </excludes>
168 </fileset>
169 </filesets>
170 <verbose>true</verbose>
171 </configuration>
172 </plugin>
173 <plugin>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530174 <groupId>org.codehaus.mojo</groupId>
175 <artifactId>build-helper-maven-plugin</artifactId>
176 <version>1.10</version>
177 <executions>
178 <execution>
179 <id>add-source</id>
180 <phase>generate-sources</phase>
181 <goals>
182 <goal>add-source</goal>
183 </goals>
184 <configuration>
185 <sources>
186 <source>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</source>
187 </sources>
188 </configuration>
189 </execution>
190 </executions>
191 </plugin>
192 <plugin>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530193 <groupId>org.apache.felix</groupId>
194 <artifactId>maven-bundle-plugin</artifactId>
195 <extensions>true</extensions>
196 <configuration>
197 <instructions>
198 <Export-Package>
199 org.onosproject.yangutils.parser.*
200 </Export-Package>
201 </instructions>
202 </configuration>
203 </plugin>
204 <plugin>
205 <groupId>org.apache.maven.plugins</groupId>
206 <artifactId>maven-plugin-plugin</artifactId>
207 <version>3.4</version>
208 <configuration>
209 <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
210 </configuration>
211 <executions>
212 <execution>
213 <phase>generate-sources</phase>
214 <goals>
215 <goal>descriptor</goal>
216 </goals>
217 </execution>
218 </executions>
219 </plugin>
220 </plugins>
221 </build>
Bharat saraswal870c56f2016-02-20 21:57:16 +0530222
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530223</project>