Bharat saraswal | 0c8f7ca | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 1 | <!-- |
| 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> |
| 24 | <relativePath>../pom.xml</relativePath> |
| 25 | </parent> |
| 26 | |
| 27 | <artifactId>yangutils-maven-plugin</artifactId> |
| 28 | <version>1.0.0-SNAPSHOT</version> |
| 29 | <name>onos-yang-utils-plugin</name> |
| 30 | <packaging>maven-plugin</packaging> |
| 31 | |
| 32 | <properties> |
| 33 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 34 | </properties> |
| 35 | |
| 36 | <dependencies> |
| 37 | <dependency> |
| 38 | <groupId>org.onosproject</groupId> |
| 39 | <artifactId>yangutils-datamodel</artifactId> |
| 40 | <version>1.7.0-SNAPSHOT</version> |
| 41 | </dependency> |
| 42 | <dependency> |
| 43 | <groupId>org.apache.maven</groupId> |
| 44 | <artifactId>maven-core</artifactId> |
| 45 | <version>3.3.9</version> |
| 46 | </dependency> |
| 47 | <dependency> |
| 48 | <groupId>org.apache.maven</groupId> |
| 49 | <artifactId>maven-plugin-api</artifactId> |
| 50 | <version>3.3.9</version> |
| 51 | </dependency> |
| 52 | <dependency> |
| 53 | <groupId>org.apache.maven.plugin-tools</groupId> |
| 54 | <artifactId>maven-plugin-annotations</artifactId> |
| 55 | <version>3.4</version> |
| 56 | <scope>provided</scope> |
| 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>org.apache.felix</groupId> |
| 60 | <artifactId>maven-scr-plugin</artifactId> |
| 61 | <version>1.21.0</version> |
| 62 | <scope>compile</scope> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.apache.maven</groupId> |
| 66 | <artifactId>maven-artifact</artifactId> |
| 67 | <version>3.3.9</version> |
| 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>org.apache.maven</groupId> |
| 71 | <artifactId>maven-project</artifactId> |
| 72 | <version>3.0-alpha-2</version> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>org.apache.maven</groupId> |
| 76 | <artifactId>maven-model</artifactId> |
| 77 | <version>3.3.9</version> |
| 78 | </dependency> |
| 79 | <dependency> |
| 80 | <groupId>junit</groupId> |
| 81 | <artifactId>junit</artifactId> |
| 82 | <version>4.12</version> |
| 83 | <scope>test</scope> |
| 84 | </dependency> |
| 85 | <dependency> |
| 86 | <groupId>org.sonatype.plexus</groupId> |
| 87 | <artifactId>plexus-build-api</artifactId> |
| 88 | <version>0.0.7</version> |
| 89 | <scope>provided</scope> |
| 90 | </dependency> |
| 91 | <dependency> |
| 92 | <groupId>commons-io</groupId> |
| 93 | <artifactId>commons-io</artifactId> |
| 94 | <version>2.4</version> |
| 95 | </dependency> |
| 96 | |
| 97 | <dependency> |
| 98 | <groupId>org.hamcrest</groupId> |
| 99 | <artifactId>hamcrest-all</artifactId> |
| 100 | <version>1.3</version> |
| 101 | </dependency> |
| 102 | |
| 103 | <dependency> |
| 104 | <groupId>org.onosproject</groupId> |
| 105 | <artifactId>onlab-junit</artifactId> |
| 106 | <version>1.7.0-SNAPSHOT</version> |
| 107 | <scope>test</scope> |
| 108 | </dependency> |
| 109 | <dependency> |
| 110 | <groupId>org.antlr</groupId> |
| 111 | <artifactId>antlr4-runtime</artifactId> |
| 112 | <version>4.5.3</version> |
| 113 | </dependency> |
| 114 | <dependency> |
| 115 | <groupId>org.codehaus.mojo</groupId> |
| 116 | <artifactId>build-helper-maven-plugin</artifactId> |
| 117 | <version>1.10</version> |
| 118 | </dependency> |
| 119 | </dependencies> |
| 120 | |
| 121 | <build> |
| 122 | <plugins> |
| 123 | <plugin> |
| 124 | <groupId>org.antlr</groupId> |
| 125 | <artifactId>antlr4-maven-plugin</artifactId> |
| 126 | <version>4.5</version> |
| 127 | <executions> |
| 128 | <execution> |
| 129 | <phase>generate-sources</phase> |
| 130 | <goals> |
| 131 | <goal>antlr4</goal> |
| 132 | </goals> |
| 133 | </execution> |
| 134 | </executions> |
| 135 | <configuration> |
| 136 | <sourceDirectory>src/main/resources</sourceDirectory> |
| 137 | <outputDirectory>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</outputDirectory> |
| 138 | <visitor>false</visitor> |
| 139 | <listener>true</listener> |
| 140 | </configuration> |
| 141 | </plugin> |
| 142 | <plugin> |
| 143 | <artifactId>maven-clean-plugin</artifactId> |
| 144 | <version>3.0.0</version> |
| 145 | <executions> |
| 146 | <execution> |
| 147 | <id>Deleting auto-generated listener interfaces</id> |
| 148 | <phase>generate-sources</phase> |
| 149 | <goals> |
| 150 | <goal>clean</goal> |
| 151 | </goals> |
| 152 | </execution> |
| 153 | </executions> |
| 154 | <configuration> |
| 155 | <excludeDefaultDirectories>true</excludeDefaultDirectories> |
| 156 | <filesets> |
| 157 | <fileset> |
| 158 | <directory>target</directory> |
| 159 | <followSymlinks>false</followSymlinks> |
| 160 | <useDefaultExcludes>true</useDefaultExcludes> |
| 161 | <excludes> |
| 162 | <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java</exclude> |
| 163 | <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens</exclude> |
| 164 | <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java</exclude> |
| 165 | <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens</exclude> |
| 166 | <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java</exclude> |
| 167 | <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens</exclude> |
| 168 | </excludes> |
| 169 | </fileset> |
| 170 | </filesets> |
| 171 | <verbose>true</verbose> |
| 172 | </configuration> |
| 173 | </plugin> |
| 174 | <plugin> |
| 175 | <groupId>org.codehaus.mojo</groupId> |
| 176 | <artifactId>build-helper-maven-plugin</artifactId> |
| 177 | <version>1.10</version> |
| 178 | <executions> |
| 179 | <execution> |
| 180 | <id>add-source</id> |
| 181 | <phase>generate-sources</phase> |
| 182 | <goals> |
| 183 | <goal>add-source</goal> |
| 184 | </goals> |
| 185 | <configuration> |
| 186 | <sources> |
| 187 | <source>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</source> |
| 188 | </sources> |
| 189 | </configuration> |
| 190 | </execution> |
| 191 | </executions> |
| 192 | </plugin> |
| 193 | <plugin> |
| 194 | <groupId>org.apache.felix</groupId> |
| 195 | <artifactId>maven-bundle-plugin</artifactId> |
| 196 | <extensions>true</extensions> |
| 197 | <configuration> |
| 198 | <instructions> |
| 199 | <Export-Package> |
| 200 | org.onosproject.yangutils.parser.* |
| 201 | </Export-Package> |
| 202 | </instructions> |
| 203 | </configuration> |
| 204 | </plugin> |
| 205 | <plugin> |
| 206 | <groupId>org.apache.maven.plugins</groupId> |
| 207 | <artifactId>maven-plugin-plugin</artifactId> |
| 208 | <version>3.4</version> |
| 209 | <configuration> |
| 210 | <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound> |
| 211 | </configuration> |
| 212 | <executions> |
| 213 | <execution> |
| 214 | <phase>generate-sources</phase> |
| 215 | <goals> |
| 216 | <goal>descriptor</goal> |
| 217 | </goals> |
| 218 | </execution> |
| 219 | </executions> |
| 220 | </plugin> |
| 221 | </plugins> |
| 222 | </build> |
| 223 | |
| 224 | </project> |