blob: 671bd15fc8647732728995e063f7a0af1bcc7a5d [file] [log] [blame]
Gaurav Agrawala599a8f2017-01-10 20:45:27 +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"
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-compiler-base</artifactId>
24 <version>1.12-SNAPSHOT</version>
25 </parent>
26
27 <artifactId>onos-yang-compiler-parser</artifactId>
28 <version>1.12-SNAPSHOT</version>
29 <packaging>jar</packaging>
30
31 <dependencies>
32 <dependency>
33 <groupId>org.onosproject</groupId>
34 <artifactId>onos-yang-compiler-datamodel</artifactId>
35 <version>${project.version}</version>
36 </dependency>
37 <dependency>
38 <groupId>org.onosproject</groupId>
39 <artifactId>onos-yang-compiler-translator</artifactId>
40 <version>${project.version}</version>
41 </dependency>
42 <dependency>
43 <groupId>org.onosproject</groupId>
44 <artifactId>onos-yang-compiler-linker</artifactId>
45 <version>${project.version}</version>
46 </dependency>
47 <dependency>
48 <groupId>org.antlr</groupId>
49 <artifactId>antlr4-runtime</artifactId>
50 <version>4.5.3</version>
51 </dependency>
52 <dependency>
53 <groupId>junit</groupId>
54 <artifactId>junit</artifactId>
55 <version>4.12</version>
56 <scope>test</scope>
57 </dependency>
58
59 </dependencies>
60
61 <build>
62 <plugins>
63 <plugin>
64 <groupId>org.antlr</groupId>
65 <artifactId>antlr4-maven-plugin</artifactId>
66 <version>4.5</version>
67 <executions>
68 <execution>
69 <phase>generate-sources</phase>
70 <goals>
71 <goal>antlr4</goal>
72 </goals>
73 </execution>
74 </executions>
75 <configuration>
76 <sourceDirectory>src/main/resources</sourceDirectory>
77 <outputDirectory>
78 target/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode
79 </outputDirectory>
80 <visitor>false</visitor>
81 <listener>true</listener>
82 </configuration>
83 </plugin>
84 <plugin>
85 <artifactId>maven-clean-plugin</artifactId>
86 <version>3.0.0</version>
87 <executions>
88 <execution>
89 <id>Deleting auto-generated listener interfaces</id>
90 <phase>generate-sources</phase>
91 <goals>
92 <goal>clean</goal>
93 </goals>
94 </execution>
95 </executions>
96 <configuration>
97 <excludeDefaultDirectories>true</excludeDefaultDirectories>
98 <filesets>
99 <fileset>
100 <directory>target</directory>
101 <followSymlinks>false</followSymlinks>
102 <useDefaultExcludes>true</useDefaultExcludes>
103 <excludes>
104 <exclude>
105 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/GeneratedYangLexer.java
106 </exclude>
107 <exclude>
108 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/GeneratedYang.tokens
109 </exclude>
110 <exclude>
111 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/GeneratedYangParser.java
112 </exclude>
113 <exclude>
114 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/GeneratedYangLexer.tokens
115 </exclude>
116 <exclude>
117 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/YangLexer.java
118 </exclude>
119 <exclude>
120 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/YangLexer.tokens
121 </exclude>
122 </excludes>
123 </fileset>
124 </filesets>
125 <verbose>false</verbose>
126 </configuration>
127 </plugin>
128
129 <plugin>
130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-jar-plugin</artifactId>
132 <version>3.0.2</version>
133 <configuration>
134 <skipIfEmpty>true</skipIfEmpty>
135 </configuration>
136 <executions>
137 <execution>
138 <id>default</id>
139 <goals>
140 <goal>test-jar</goal>
141 </goals>
142 </execution>
143 </executions>
144 </plugin>
145 </plugins>
146 </build>
147</project>