blob: 2335abdcd385c66cdd20eba93725922fe0a9fca8 [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>
Ray Milkeyb322f082016-10-06 11:06:10 -070023 <artifactId>onos-yang-utils</artifactId>
Brian O'Connora3b11ac2016-10-18 14:04:15 -070024 <version>1.9</version>
Ray Milkey9e9709d2016-10-05 14:16:39 -070025 </parent>
26
27 <artifactId>onos-yang-utils-parser</artifactId>
Brian O'Connora3b11ac2016-10-18 14:04:15 -070028 <version>1.9</version>
Ray Milkeyb322f082016-10-06 11:06:10 -070029 <packaging>jar</packaging>
Ray Milkey9e9709d2016-10-05 14:16:39 -070030
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.onosproject</groupId>
39 <artifactId>onos-yang-utils-generator</artifactId>
40 <version>${project.version}</version>
41 </dependency>
42 <dependency>
Ray Milkey9e9709d2016-10-05 14:16:39 -070043 <groupId>org.antlr</groupId>
44 <artifactId>antlr4-runtime</artifactId>
45 <version>4.5.3</version>
46 </dependency>
Ray Milkeyb322f082016-10-06 11:06:10 -070047
Ray Milkey9e9709d2016-10-05 14:16:39 -070048 </dependencies>
49
50 <build>
51 <plugins>
52 <plugin>
53 <groupId>org.antlr</groupId>
54 <artifactId>antlr4-maven-plugin</artifactId>
55 <version>4.5</version>
56 <executions>
57 <execution>
58 <phase>generate-sources</phase>
59 <goals>
60 <goal>antlr4</goal>
61 </goals>
62 </execution>
63 </executions>
64 <configuration>
65 <sourceDirectory>src/main/resources</sourceDirectory>
66 <outputDirectory>
67 target/generated-sources/org/onosproject/yangutils/parser/antlrgencode
68 </outputDirectory>
69 <visitor>false</visitor>
70 <listener>true</listener>
71 </configuration>
72 </plugin>
73 <plugin>
74 <artifactId>maven-clean-plugin</artifactId>
75 <version>3.0.0</version>
76 <executions>
77 <execution>
78 <id>Deleting auto-generated listener interfaces</id>
79 <phase>generate-sources</phase>
80 <goals>
81 <goal>clean</goal>
82 </goals>
83 </execution>
84 </executions>
85 <configuration>
86 <excludeDefaultDirectories>true</excludeDefaultDirectories>
87 <filesets>
88 <fileset>
89 <directory>target</directory>
90 <followSymlinks>false</followSymlinks>
91 <useDefaultExcludes>true</useDefaultExcludes>
92 <excludes>
93 <exclude>
94 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java
95 </exclude>
96 <exclude>
97 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens
98 </exclude>
99 <exclude>
100 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java
101 </exclude>
102 <exclude>
103 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens
104 </exclude>
105 <exclude>
106 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java
107 </exclude>
108 <exclude>
109 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens
110 </exclude>
111 </excludes>
112 </fileset>
113 </filesets>
114 <verbose>false</verbose>
115 </configuration>
116 </plugin>
Ray Milkeyb322f082016-10-06 11:06:10 -0700117
Ray Milkey9e9709d2016-10-05 14:16:39 -0700118 <plugin>
119 <groupId>org.apache.maven.plugins</groupId>
Ray Milkeyb322f082016-10-06 11:06:10 -0700120 <artifactId>maven-jar-plugin</artifactId>
121 <version>3.0.2</version>
Ray Milkey9e9709d2016-10-05 14:16:39 -0700122 <configuration>
Ray Milkeyb322f082016-10-06 11:06:10 -0700123 <skipIfEmpty>true</skipIfEmpty>
Ray Milkey9e9709d2016-10-05 14:16:39 -0700124 </configuration>
125 <executions>
126 <execution>
Ray Milkeyb322f082016-10-06 11:06:10 -0700127 <id>default</id>
Ray Milkey9e9709d2016-10-05 14:16:39 -0700128 <goals>
Ray Milkeyb322f082016-10-06 11:06:10 -0700129 <goal>test-jar</goal>
Ray Milkey9e9709d2016-10-05 14:16:39 -0700130 </goals>
131 </execution>
132 </executions>
133 </plugin>
Ray Milkey9e9709d2016-10-05 14:16:39 -0700134 </plugins>
135 </build>
136</project>