blob: 82106fd1cc80968626004dafc68b3638868d1d4c [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>
Ray Milkey9e9709d2016-10-05 14:16:39 -070024 <version>1.9-SNAPSHOT</version>
25 </parent>
26
27 <artifactId>onos-yang-utils-parser</artifactId>
28 <version>1.9-SNAPSHOT</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>
43 <groupId>org.apache.maven</groupId>
Ray Milkey9e9709d2016-10-05 14:16:39 -070044 <artifactId>maven-project</artifactId>
45 <version>3.0-alpha-2</version>
46 </dependency>
47 <dependency>
Ray Milkey9e9709d2016-10-05 14:16:39 -070048 <groupId>org.antlr</groupId>
49 <artifactId>antlr4-runtime</artifactId>
50 <version>4.5.3</version>
51 </dependency>
Ray Milkeyb322f082016-10-06 11:06:10 -070052
Ray Milkey9e9709d2016-10-05 14:16:39 -070053 </dependencies>
54
55 <build>
56 <plugins>
57 <plugin>
58 <groupId>org.antlr</groupId>
59 <artifactId>antlr4-maven-plugin</artifactId>
60 <version>4.5</version>
61 <executions>
62 <execution>
63 <phase>generate-sources</phase>
64 <goals>
65 <goal>antlr4</goal>
66 </goals>
67 </execution>
68 </executions>
69 <configuration>
70 <sourceDirectory>src/main/resources</sourceDirectory>
71 <outputDirectory>
72 target/generated-sources/org/onosproject/yangutils/parser/antlrgencode
73 </outputDirectory>
74 <visitor>false</visitor>
75 <listener>true</listener>
76 </configuration>
77 </plugin>
78 <plugin>
79 <artifactId>maven-clean-plugin</artifactId>
80 <version>3.0.0</version>
81 <executions>
82 <execution>
83 <id>Deleting auto-generated listener interfaces</id>
84 <phase>generate-sources</phase>
85 <goals>
86 <goal>clean</goal>
87 </goals>
88 </execution>
89 </executions>
90 <configuration>
91 <excludeDefaultDirectories>true</excludeDefaultDirectories>
92 <filesets>
93 <fileset>
94 <directory>target</directory>
95 <followSymlinks>false</followSymlinks>
96 <useDefaultExcludes>true</useDefaultExcludes>
97 <excludes>
98 <exclude>
99 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java
100 </exclude>
101 <exclude>
102 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens
103 </exclude>
104 <exclude>
105 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java
106 </exclude>
107 <exclude>
108 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens
109 </exclude>
110 <exclude>
111 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java
112 </exclude>
113 <exclude>
114 **/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens
115 </exclude>
116 </excludes>
117 </fileset>
118 </filesets>
119 <verbose>false</verbose>
120 </configuration>
121 </plugin>
Ray Milkeyb322f082016-10-06 11:06:10 -0700122
Ray Milkey9e9709d2016-10-05 14:16:39 -0700123 <plugin>
124 <groupId>org.apache.maven.plugins</groupId>
Ray Milkeyb322f082016-10-06 11:06:10 -0700125 <artifactId>maven-jar-plugin</artifactId>
126 <version>3.0.2</version>
Ray Milkey9e9709d2016-10-05 14:16:39 -0700127 <configuration>
Ray Milkeyb322f082016-10-06 11:06:10 -0700128 <skipIfEmpty>true</skipIfEmpty>
Ray Milkey9e9709d2016-10-05 14:16:39 -0700129 </configuration>
130 <executions>
131 <execution>
Ray Milkeyb322f082016-10-06 11:06:10 -0700132 <id>default</id>
Ray Milkey9e9709d2016-10-05 14:16:39 -0700133 <goals>
Ray Milkeyb322f082016-10-06 11:06:10 -0700134 <goal>test-jar</goal>
Ray Milkey9e9709d2016-10-05 14:16:39 -0700135 </goals>
136 </execution>
137 </executions>
138 </plugin>
Ray Milkey9e9709d2016-10-05 14:16:39 -0700139 </plugins>
140 </build>
141</project>