Cleaned up Java Binding code from YANG Tools
[mdsal.git] / binding / samples / maven-code-gen-sample / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12     <modelVersion>4.0.0</modelVersion>
13     <parent>
14         <groupId>org.opendaylight.mdsal</groupId>
15         <artifactId>binding-generator</artifactId>
16         <version>0.8.0-SNAPSHOT</version>
17     </parent>
18     <artifactId>maven-code-gen-sample</artifactId>
19
20     <build>
21         <plugins>
22             <plugin>
23                 <groupId>org.opendaylight.yangtools</groupId>
24                 <artifactId>yang-maven-plugin</artifactId>
25                 <version>${yang.version}</version>
26                 <executions>
27                     <execution>
28                         <goals>
29                             <goal>generate-sources</goal>
30                         </goals>
31                         <configuration>
32                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
33                             <codeGenerators>
34                                 <generator>
35                                     <codeGeneratorClass>
36                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
37                                     </codeGeneratorClass>
38                                     <outputBaseDir>
39                                         target/generated-sources/sal
40                                     </outputBaseDir>
41                                 </generator>
42                             </codeGenerators>
43                             <inspectDependencies>false</inspectDependencies>
44                         </configuration>
45                     </execution>
46                 </executions>
47
48                 <dependencies>
49                     <dependency>
50                         <groupId>org.opendaylight.yangtools</groupId>
51                         <artifactId>maven-sal-api-gen-plugin</artifactId>
52                         <type>jar</type>
53                     </dependency>
54                 </dependencies>
55             </plugin>
56         </plugins>
57        </build>
58     <dependencies>
59         <dependency>
60             <groupId>org.opendaylight.mdsal</groupId>
61             <artifactId>yang-binding</artifactId>
62         </dependency>
63     </dependencies>
64 </project>