bug 1128:POM Restructuring for Automated Release
[mdsal.git] / code-generator / 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.yangtools</groupId>
15         <artifactId>binding-generator</artifactId>
16         <version>0.6.2-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             <plugin>
57                 <groupId>org.codehaus.mojo</groupId>
58                 <artifactId>build-helper-maven-plugin</artifactId>
59                 <executions>
60                     <execution>
61                         <phase>generate-sources</phase>
62                         <goals>
63                             <goal>add-source</goal>
64                         </goals>
65                         <configuration>
66                             <sources>
67                                 <source>target/generated-sources/sal</source>
68                             </sources>
69                         </configuration>
70                     </execution>
71                 </executions>
72             </plugin>
73         </plugins>
74        </build>
75     <dependencies>
76         <dependency>
77             <groupId>org.opendaylight.yangtools</groupId>
78             <artifactId>yang-binding</artifactId>
79         </dependency>
80     </dependencies>
81 </project>