blob: ee692f2733144bb09c11df5ed8fddc41d5c7ed6d [file] [log] [blame]
Bharat saraswalc2d3be12016-06-16 00:29:12 +05301<!--
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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Gaurav Agrawal8a147522016-08-10 13:43:01 +053017 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Bharat saraswalc2d3be12016-06-16 00:29:12 +053018 <modelVersion>4.0.0</modelVersion>
19
20 <parent>
21 <groupId>org.onosproject</groupId>
22 <artifactId>onos-yangutils</artifactId>
23 <version>1.7.0-SNAPSHOT</version>
Bharat saraswalc2d3be12016-06-16 00:29:12 +053024 </parent>
25
26 <artifactId>yangutils-maven-plugin</artifactId>
Gaurav Agrawal8a147522016-08-10 13:43:01 +053027 <version>1.7.0-SNAPSHOT</version>
Bharat saraswalc2d3be12016-06-16 00:29:12 +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>
Gaurav Agrawal8a147522016-08-10 13:43:01 +053036 <dependency>
Bharat saraswalc2d3be12016-06-16 00:29:12 +053037 <groupId>org.onosproject</groupId>
38 <artifactId>yangutils-datamodel</artifactId>
39 <version>1.7.0-SNAPSHOT</version>
40 </dependency>
41 <dependency>
42 <groupId>org.apache.maven</groupId>
43 <artifactId>maven-core</artifactId>
44 <version>3.3.9</version>
45 </dependency>
46 <dependency>
47 <groupId>org.apache.maven</groupId>
48 <artifactId>maven-plugin-api</artifactId>
49 <version>3.3.9</version>
50 </dependency>
51 <dependency>
52 <groupId>org.apache.maven.plugin-tools</groupId>
53 <artifactId>maven-plugin-annotations</artifactId>
54 <version>3.4</version>
55 <scope>provided</scope>
56 </dependency>
57 <dependency>
58 <groupId>org.apache.felix</groupId>
59 <artifactId>maven-scr-plugin</artifactId>
60 <version>1.21.0</version>
61 <scope>compile</scope>
62 </dependency>
63 <dependency>
64 <groupId>org.apache.maven</groupId>
65 <artifactId>maven-artifact</artifactId>
66 <version>3.3.9</version>
67 </dependency>
68 <dependency>
69 <groupId>org.apache.maven</groupId>
70 <artifactId>maven-project</artifactId>
71 <version>3.0-alpha-2</version>
72 </dependency>
73 <dependency>
74 <groupId>org.apache.maven</groupId>
75 <artifactId>maven-model</artifactId>
76 <version>3.3.9</version>
77 </dependency>
78 <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>
93 <version>2.4</version>
94 </dependency>
95
96 <dependency>
97 <groupId>org.hamcrest</groupId>
98 <artifactId>hamcrest-all</artifactId>
99 <version>1.3</version>
100 </dependency>
101
102 <dependency>
103 <groupId>org.onosproject</groupId>
104 <artifactId>onlab-junit</artifactId>
105 <version>1.7.0-SNAPSHOT</version>
106 <scope>test</scope>
107 </dependency>
108 <dependency>
109 <groupId>org.antlr</groupId>
110 <artifactId>antlr4-runtime</artifactId>
111 <version>4.5.3</version>
112 </dependency>
113 <dependency>
114 <groupId>org.codehaus.mojo</groupId>
115 <artifactId>build-helper-maven-plugin</artifactId>
116 <version>1.10</version>
117 </dependency>
Bharat saraswale304c252016-08-16 20:56:20 +0530118 <dependency>
119 <groupId>org.slf4j</groupId>
120 <artifactId>slf4j-api</artifactId>
121 <version>1.7.21</version>
122 <scope>provided</scope>
123 </dependency>
Bharat saraswalc2d3be12016-06-16 00:29:12 +0530124 </dependencies>
125
126 <build>
127 <plugins>
128 <plugin>
129 <groupId>org.antlr</groupId>
130 <artifactId>antlr4-maven-plugin</artifactId>
131 <version>4.5</version>
132 <executions>
133 <execution>
134 <phase>generate-sources</phase>
135 <goals>
136 <goal>antlr4</goal>
137 </goals>
138 </execution>
139 </executions>
140 <configuration>
141 <sourceDirectory>src/main/resources</sourceDirectory>
Gaurav Agrawala8ba05e2016-06-30 16:43:08 +0530142 <outputDirectory>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode
143 </outputDirectory>
Bharat saraswalc2d3be12016-06-16 00:29:12 +0530144 <visitor>false</visitor>
145 <listener>true</listener>
146 </configuration>
147 </plugin>
148 <plugin>
149 <artifactId>maven-clean-plugin</artifactId>
150 <version>3.0.0</version>
151 <executions>
152 <execution>
153 <id>Deleting auto-generated listener interfaces</id>
154 <phase>generate-sources</phase>
155 <goals>
156 <goal>clean</goal>
157 </goals>
158 </execution>
159 </executions>
160 <configuration>
161 <excludeDefaultDirectories>true</excludeDefaultDirectories>
162 <filesets>
163 <fileset>
164 <directory>target</directory>
165 <followSymlinks>false</followSymlinks>
166 <useDefaultExcludes>true</useDefaultExcludes>
167 <excludes>
Gaurav Agrawala8ba05e2016-06-30 16:43:08 +0530168 <exclude>
169 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java
170 </exclude>
171 <exclude>
172 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens
173 </exclude>
174 <exclude>
175 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java
176 </exclude>
177 <exclude>
178 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens
179 </exclude>
180 <exclude>
181 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java
182 </exclude>
183 <exclude>
184 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens
185 </exclude>
Bharat saraswalc2d3be12016-06-16 00:29:12 +0530186 </excludes>
187 </fileset>
188 </filesets>
Yuta HIGUCHI6e379192016-07-11 21:22:47 -0700189 <verbose>false</verbose>
Bharat saraswalc2d3be12016-06-16 00:29:12 +0530190 </configuration>
191 </plugin>
192 <plugin>
193 <groupId>org.codehaus.mojo</groupId>
194 <artifactId>build-helper-maven-plugin</artifactId>
195 <version>1.10</version>
196 <executions>
197 <execution>
198 <id>add-source</id>
199 <phase>generate-sources</phase>
200 <goals>
201 <goal>add-source</goal>
202 </goals>
203 <configuration>
204 <sources>
205 <source>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</source>
Gaurav Agrawala8ba05e2016-06-30 16:43:08 +0530206 <sourceDirectory>
207 target/generated-sources/org/onosproject/yangutils/parser/antlrgencode
208 </sourceDirectory>
Bharat saraswalc2d3be12016-06-16 00:29:12 +0530209 </sources>
210 </configuration>
211 </execution>
212 </executions>
213 </plugin>
214 <plugin>
215 <groupId>org.apache.felix</groupId>
216 <artifactId>maven-bundle-plugin</artifactId>
217 <extensions>true</extensions>
218 <configuration>
219 <instructions>
220 <Export-Package>
221 org.onosproject.yangutils.parser.*
222 </Export-Package>
223 </instructions>
224 </configuration>
225 </plugin>
226 <plugin>
227 <groupId>org.apache.maven.plugins</groupId>
228 <artifactId>maven-plugin-plugin</artifactId>
229 <version>3.4</version>
230 <configuration>
231 <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
232 </configuration>
233 <executions>
234 <execution>
235 <phase>generate-sources</phase>
236 <goals>
237 <goal>descriptor</goal>
238 </goals>
239 </execution>
240 </executions>
241 </plugin>
242 </plugins>
243 </build>
Bharat saraswalc2d3be12016-06-16 00:29:12 +0530244</project>