blob: 9afb4da0924c366fba4308940cb32cddb0aabf12 [file] [log] [blame]
Bharat saraswal96dfef02016-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"
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>onos-yangutils</artifactId>
23 <version>1.7.0-SNAPSHOT</version>
Bharat saraswal96dfef02016-06-16 00:29:12 +053024 </parent>
25
26 <artifactId>yangutils-maven-plugin</artifactId>
27 <version>1.0.0-SNAPSHOT</version>
28 <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>
36 <dependency>
37 <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>
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>
137 <visitor>false</visitor>
138 <listener>true</listener>
139 </configuration>
140 </plugin>
141 <plugin>
142 <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>
174 <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>
193 <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>
222
223</project>