blob: 971531c0dc58c87a0dea76cd8c22bfea1828a21f [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-generator</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.apache.maven</groupId>
39 <artifactId>maven-core</artifactId>
40 <version>3.3.9</version>
41 </dependency>
42 <dependency>
43 <groupId>org.apache.maven</groupId>
44 <artifactId>maven-plugin-api</artifactId>
45 <version>3.3.9</version>
46 </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>
56 <version>1.21.0</version>
57 <scope>compile</scope>
58 </dependency>
59 <dependency>
60 <groupId>org.apache.maven</groupId>
61 <artifactId>maven-artifact</artifactId>
62 <version>3.3.9</version>
63 </dependency>
64 <dependency>
65 <groupId>org.apache.maven</groupId>
66 <artifactId>maven-project</artifactId>
67 <version>3.0-alpha-2</version>
68 </dependency>
69 <dependency>
70 <groupId>org.apache.maven</groupId>
71 <artifactId>maven-model</artifactId>
72 <version>3.3.9</version>
73 </dependency>
74 <dependency>
75 <groupId>junit</groupId>
76 <artifactId>junit</artifactId>
77 <version>4.12</version>
78 <scope>test</scope>
79 </dependency>
80 <dependency>
81 <groupId>org.sonatype.plexus</groupId>
82 <artifactId>plexus-build-api</artifactId>
83 <version>0.0.7</version>
84 <scope>provided</scope>
85 </dependency>
86 <dependency>
87 <groupId>commons-io</groupId>
88 <artifactId>commons-io</artifactId>
89 <version>2.4</version>
90 </dependency>
91
92 <dependency>
93 <groupId>org.hamcrest</groupId>
94 <artifactId>hamcrest-all</artifactId>
95 <version>1.3</version>
96 </dependency>
97 <dependency>
98 <groupId>org.antlr</groupId>
99 <artifactId>antlr4-runtime</artifactId>
100 <version>4.5.3</version>
101 </dependency>
102 <dependency>
103 <groupId>org.codehaus.mojo</groupId>
104 <artifactId>build-helper-maven-plugin</artifactId>
105 <version>1.10</version>
106 </dependency>
107 <dependency>
108 <groupId>org.slf4j</groupId>
109 <artifactId>slf4j-api</artifactId>
110 <version>1.7.21</version>
111 <scope>provided</scope>
112 </dependency>
113 </dependencies>
114
115 <build>
116 <plugins>
117 <plugin>
118 <groupId>org.antlr</groupId>
119 <artifactId>antlr4-maven-plugin</artifactId>
120 <version>4.5</version>
121 <executions>
122 <execution>
123 <phase>generate-sources</phase>
124 <goals>
125 <goal>antlr4</goal>
126 </goals>
127 </execution>
128 </executions>
129 <configuration>
130 <sourceDirectory>src/main/resources</sourceDirectory>
131 <outputDirectory>
132 target/generated-sources/org/onosproject/yangutils/parser/antlrgencode
133 </outputDirectory>
134 <visitor>false</visitor>
135 <listener>true</listener>
136 </configuration>
137 </plugin>
138 <plugin>
139 <artifactId>maven-clean-plugin</artifactId>
140 <version>3.0.0</version>
141 <executions>
142 <execution>
143 <id>Deleting auto-generated listener interfaces</id>
144 <phase>generate-sources</phase>
145 <goals>
146 <goal>clean</goal>
147 </goals>
148 </execution>
149 </executions>
150 <configuration>
151 <excludeDefaultDirectories>true</excludeDefaultDirectories>
152 <filesets>
153 <fileset>
154 <directory>target</directory>
155 <followSymlinks>false</followSymlinks>
156 <useDefaultExcludes>true</useDefaultExcludes>
157 <excludes>
158 <exclude>
159 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java
160 </exclude>
161 <exclude>
162 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens
163 </exclude>
164 <exclude>
165 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java
166 </exclude>
167 <exclude>
168 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens
169 </exclude>
170 <exclude>
171 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java
172 </exclude>
173 <exclude>
174 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens
175 </exclude>
176 </excludes>
177 </fileset>
178 </filesets>
179 <verbose>false</verbose>
180 </configuration>
181 </plugin>
182 <plugin>
183 <groupId>org.codehaus.mojo</groupId>
184 <artifactId>build-helper-maven-plugin</artifactId>
185 <version>1.10</version>
186 <executions>
187 <execution>
188 <id>add-source</id>
189 <phase>generate-sources</phase>
190 <goals>
191 <goal>add-source</goal>
192 </goals>
193 <configuration>
194 <sources>
195 <source>
196 target/generated-sources/org/onosproject/yangutils/parser/antlrgencode
197 </source>
198 <sourceDirectory>
199 target/generated-sources/org/onosproject/yangutils/parser/antlrgencode
200 </sourceDirectory>
201 </sources>
202 </configuration>
203 </execution>
204 </executions>
205 </plugin>
206 <plugin>
207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-plugin-plugin</artifactId>
209 <version>3.4</version>
210 <configuration>
211 <skipErrorNoDescriptorsFound>true
212 </skipErrorNoDescriptorsFound>
213 </configuration>
214 <executions>
215 <execution>
216 <phase>generate-sources</phase>
217 <goals>
218 <goal>descriptor</goal>
219 </goals>
220 </execution>
221 </executions>
222 </plugin>
223 <plugin>
224 <groupId>org.apache.felix</groupId>
225 <artifactId>maven-bundle-plugin</artifactId>
226 <version>2.5.4</version>
227 <extensions>true</extensions>
228 </plugin>
229 </plugins>
230 </build>
231</project>