blob: 16490c2a65504df171283d4c078f56085386cd6c [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>
8 <version>1.5.0-SNAPSHOT</version>
9 <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>
47 <version>2.0.8</version>
48 </dependency>
49 <dependency>
50 <groupId>org.apache.maven</groupId>
51 <artifactId>maven-project</artifactId>
52 <version>2.0.8</version>
53 </dependency>
54 <dependency>
55 <groupId>org.assertj</groupId>
56 <artifactId>assertj-core</artifactId>
57 <version>1.7.0</version>
58 <scope>test</scope>
59 </dependency>
60 <dependency>
61 <groupId>org.apache.maven.plugin-testing</groupId>
62 <artifactId>maven-plugin-testing-harness</artifactId>
63 <version>2.1</version>
64 <scope>test</scope>
65 </dependency>
66 <dependency>
67 <groupId>org.apache.maven</groupId>
68 <artifactId>maven-model</artifactId>
69 <version>3.2.5</version>
70 </dependency>
71 <dependency>
72 <groupId>org.apache.maven</groupId>
73 <artifactId>maven-compat</artifactId>
74 <version>3.2.5</version>
75 <scope>test</scope>
76 </dependency>
77 <dependency>
78 <groupId>org.mockito</groupId>
79 <artifactId>mockito-core</artifactId>
80 <version>1.9.5</version>
81 <scope>test</scope>
82 </dependency>
83 <dependency>
84 <groupId>junit</groupId>
85 <artifactId>junit</artifactId>
86 <version>4.12</version>
87 <scope>test</scope>
88 </dependency>
89 <dependency>
90 <groupId>org.sonatype.plexus</groupId>
91 <artifactId>plexus-build-api</artifactId>
92 <version>0.0.7</version>
93 <scope>provided</scope>
94 </dependency>
95 <dependency>
96 <groupId>commons-io</groupId>
97 <artifactId>commons-io</artifactId>
98 <version>1.3.2</version>
99 </dependency>
100 <dependency>
101 <groupId>commons-configuration</groupId>
102 <artifactId>commons-configuration</artifactId>
103 <version>1.10</version>
104 </dependency>
105 <dependency>
106 <groupId>org.onosproject</groupId>
107 <artifactId>onlab-junit</artifactId>
108 <version>1.5.0-SNAPSHOT</version>
109 <scope>test</scope>
110 </dependency>
111 <dependency>
112 <groupId>org.antlr</groupId>
113 <artifactId>antlr4-runtime</artifactId>
114 <version>4.5</version>
115 </dependency>
116 <dependency>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-surefire-plugin</artifactId>
119 <version>2.19.1</version>
120 </dependency>
121 <dependency>
122 <groupId>org.sonatype.aether</groupId>
123 <artifactId>aether-api</artifactId>
124 <version>1.8</version>
125 </dependency>
126 <dependency>
127 <groupId>org.sonatype.aether</groupId>
128 <artifactId>aether-util</artifactId>
129 <version>1.8</version>
130 </dependency>
131 <dependency>
132 <groupId>org.codehaus.mojo</groupId>
133 <artifactId>build-helper-maven-plugin</artifactId>
134 <version>1.10</version>
135 </dependency>
136 </dependencies>
137
138 <build>
139 <plugins>
140 <plugin>
141 <groupId>org.antlr</groupId>
142 <artifactId>antlr4-maven-plugin</artifactId>
143 <version>4.5</version>
144 <executions>
145 <execution>
146 <phase>generate-sources</phase>
147 <goals>
148 <goal>antlr4</goal>
149 </goals>
150 </execution>
151 </executions>
152 <configuration>
153 <sourceDirectory>src/main/resources</sourceDirectory>
154 <outputDirectory>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</outputDirectory>
Gaurav Agrawal925f5632016-02-18 20:50:36 +0530155 <visitor>false</visitor>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530156 <listener>true</listener>
157 </configuration>
158 </plugin>
159 <plugin>
Gaurav Agrawal925f5632016-02-18 20:50:36 +0530160 <artifactId>maven-clean-plugin</artifactId>
161 <version>3.0.0</version>
162 <executions>
163 <execution>
164 <id>Deleting auto-generated listener interfaces</id>
165 <phase>generate-sources</phase>
166 <goals>
167 <goal>clean</goal>
168 </goals>
169 </execution>
170 </executions>
171 <configuration>
172 <excludeDefaultDirectories>true</excludeDefaultDirectories>
173 <filesets>
174 <fileset>
175 <directory>target</directory>
176 <followSymlinks>false</followSymlinks>
177 <useDefaultExcludes>true</useDefaultExcludes>
178 <excludes>
179 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java</exclude>
180 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens</exclude>
181 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java</exclude>
182 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens</exclude>
183 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java</exclude>
184 <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens</exclude>
185 </excludes>
186 </fileset>
187 </filesets>
188 <verbose>true</verbose>
189 </configuration>
190 </plugin>
191 <plugin>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530192 <groupId>org.codehaus.mojo</groupId>
193 <artifactId>build-helper-maven-plugin</artifactId>
194 <version>1.10</version>
195 <executions>
196 <execution>
197 <id>add-source</id>
198 <phase>generate-sources</phase>
199 <goals>
200 <goal>add-source</goal>
201 </goals>
202 <configuration>
203 <sources>
204 <source>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</source>
205 </sources>
206 </configuration>
207 </execution>
208 </executions>
209 </plugin>
210 <plugin>
Vinod Kumar S7a004de2016-02-05 16:15:09 +0530211 <groupId>org.apache.felix</groupId>
212 <artifactId>maven-bundle-plugin</artifactId>
213 <extensions>true</extensions>
214 <configuration>
215 <instructions>
216 <Export-Package>
217 org.onosproject.yangutils.parser.*
218 </Export-Package>
219 </instructions>
220 </configuration>
221 </plugin>
222 <plugin>
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-plugin-plugin</artifactId>
225 <version>3.4</version>
226 <configuration>
227 <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
228 </configuration>
229 <executions>
230 <execution>
231 <phase>generate-sources</phase>
232 <goals>
233 <goal>descriptor</goal>
234 </goals>
235 </execution>
236 </executions>
237 </plugin>
238 </plugins>
239 </build>
240</project>