blob: 66b62e34b313df0afe09b7f6f005f0380fb972ed [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>
Ray Milkeyccf4e3b2017-02-16 14:58:05 -080024 <version>1.12-SNAPSHOT</version>
Gaurav Agrawala599a8f2017-01-10 20:45:27 +053025 </parent>
26
27 <artifactId>onos-yang-compiler-parser</artifactId>
Ray Milkeyccf4e3b2017-02-16 14:58:05 -080028 <version>1.12-SNAPSHOT</version>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080029 <packaging>bundle</packaging>
Gaurav Agrawala599a8f2017-01-10 20:45:27 +053030
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>
Gaurav Agrawala599a8f2017-01-10 20:45:27 +053058 </dependencies>
59
60 <build>
61 <plugins>
62 <plugin>
63 <groupId>org.antlr</groupId>
64 <artifactId>antlr4-maven-plugin</artifactId>
65 <version>4.5</version>
66 <executions>
67 <execution>
68 <phase>generate-sources</phase>
69 <goals>
70 <goal>antlr4</goal>
71 </goals>
72 </execution>
73 </executions>
74 <configuration>
75 <sourceDirectory>src/main/resources</sourceDirectory>
76 <outputDirectory>
77 target/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode
78 </outputDirectory>
79 <visitor>false</visitor>
80 <listener>true</listener>
81 </configuration>
82 </plugin>
83 <plugin>
84 <artifactId>maven-clean-plugin</artifactId>
85 <version>3.0.0</version>
86 <executions>
87 <execution>
88 <id>Deleting auto-generated listener interfaces</id>
89 <phase>generate-sources</phase>
90 <goals>
91 <goal>clean</goal>
92 </goals>
93 </execution>
94 </executions>
95 <configuration>
96 <excludeDefaultDirectories>true</excludeDefaultDirectories>
97 <filesets>
98 <fileset>
99 <directory>target</directory>
100 <followSymlinks>false</followSymlinks>
101 <useDefaultExcludes>true</useDefaultExcludes>
102 <excludes>
103 <exclude>
104 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/GeneratedYangLexer.java
105 </exclude>
106 <exclude>
107 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/GeneratedYang.tokens
108 </exclude>
109 <exclude>
110 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/GeneratedYangParser.java
111 </exclude>
112 <exclude>
113 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/GeneratedYangLexer.tokens
114 </exclude>
115 <exclude>
116 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/YangLexer.java
117 </exclude>
118 <exclude>
119 **/generated-sources/org/onosproject/yang/compiler/parser/antlrgencode/YangLexer.tokens
120 </exclude>
121 </excludes>
122 </fileset>
123 </filesets>
124 <verbose>false</verbose>
125 </configuration>
126 </plugin>
127
128 <plugin>
129 <groupId>org.apache.maven.plugins</groupId>
130 <artifactId>maven-jar-plugin</artifactId>
131 <version>3.0.2</version>
132 <configuration>
133 <skipIfEmpty>true</skipIfEmpty>
134 </configuration>
135 <executions>
136 <execution>
137 <id>default</id>
138 <goals>
139 <goal>test-jar</goal>
140 </goals>
141 </execution>
142 </executions>
143 </plugin>
144 </plugins>
145 </build>
146</project>