55797196838128613553b262922392068a601325
[controller.git] / opendaylight / sal / yang-prototype / code-generator / samples / maven-code-gen-sample / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4     <parent>
5         <artifactId>binding-generator</artifactId>
6         <groupId>org.opendaylight.controller</groupId>
7         <version>1.0</version>
8     </parent>
9     <artifactId>maven-code-gen-sample</artifactId>
10
11     <build>
12         <plugins>
13             <plugin>
14                 <groupId>org.opendaylight.controller</groupId>
15                 <artifactId>maven-yang-plugin</artifactId>
16                 <version>1.0</version>
17                 <executions>
18                     <execution>
19                         <goals>
20                             <goal>generate-sources</goal>
21                         </goals>
22                         <configuration>
23                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
24                             <codeGenerators>
25                                 <generator>
26                                     <codeGeneratorClass>
27                                         org.opendaylight.controller.maven.sal.api.gen.plugin.CodeGeneratorImpl
28                                     </codeGeneratorClass>
29                                     <outputBaseDir>
30                                         target/generated-sources/sal
31                                     </outputBaseDir>
32                                 </generator>
33                             </codeGenerators>
34                         </configuration>
35                     </execution>
36                 </executions>
37
38                 <dependencies>
39                     <dependency>
40                         <groupId>org.opendaylight.controller</groupId>
41                         <artifactId>maven-sal-api-gen-plugin</artifactId>
42                         <version>1.0</version>
43                         <type>jar</type>
44                     </dependency>
45                 </dependencies>
46             </plugin>
47             <plugin>
48                 <groupId>org.codehaus.mojo</groupId>
49                 <artifactId>build-helper-maven-plugin</artifactId>
50                 <version>1.7</version>
51                 <executions>
52                     <execution>
53                         <phase>generate-sources</phase>
54                         <goals>
55                             <goal>add-source</goal>
56                         </goals>
57                         <configuration>
58                             <sources>
59                                 <source>target/generated-sources/sal</source>
60                             </sources>
61                         </configuration>
62                     </execution>
63                 </executions>
64             </plugin>
65         </plugins>
66         <pluginManagement>
67                 <plugins>
68                         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
69                         <plugin>
70                                 <groupId>org.eclipse.m2e</groupId>
71                                 <artifactId>lifecycle-mapping</artifactId>
72                                 <version>1.0.0</version>
73                                 <configuration>
74                                         <lifecycleMappingMetadata>
75                                                 <pluginExecutions>
76                                                         <pluginExecution>
77                                                                 <pluginExecutionFilter>
78                                                                         <groupId>
79                                                                                 org.opendaylight.controller
80                                                                         </groupId>
81                                                                         <artifactId>
82                                                                                 maven-yang-plugin
83                                                                         </artifactId>
84                                                                         <versionRange>
85                                                                                 [1.0,)
86                                                                         </versionRange>
87                                                                         <goals>
88                                                                                 <goal>
89                                                                                         generate-sources
90                                                                                 </goal>
91                                                                         </goals>
92                                                                 </pluginExecutionFilter>
93                                                                 <action>
94                                                                         <ignore></ignore>
95                                                                 </action>
96                                                         </pluginExecution>
97                                                 </pluginExecutions>
98                                         </lifecycleMappingMetadata>
99                                 </configuration>
100                         </plugin>
101                 </plugins>
102         </pluginManagement>
103     </build>
104 </project>