03a2e8588e6d5e908b7bf32286d38614b5e0838a
[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>0.5.1-SNAPSHOT</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>yang-maven-plugin</artifactId>
16                 <version>0.5.1-SNAPSHOT</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                             <resourceProviders>
35                             </resourceProviders>
36                         </configuration>
37                     </execution>
38                 </executions>
39
40                 <dependencies>
41                     <dependency>
42                         <groupId>org.opendaylight.controller</groupId>
43                         <artifactId>maven-sal-api-gen-plugin</artifactId>
44                         <version>0.5.1-SNAPSHOT</version>
45                         <type>jar</type>
46                     </dependency>
47                 </dependencies>
48             </plugin>
49             <plugin>
50                 <groupId>org.codehaus.mojo</groupId>
51                 <artifactId>build-helper-maven-plugin</artifactId>
52                 <version>1.7</version>
53                 <executions>
54                     <execution>
55                         <phase>generate-sources</phase>
56                         <goals>
57                             <goal>add-source</goal>
58                         </goals>
59                         <configuration>
60                             <sources>
61                                 <source>target/generated-sources/sal</source>
62                             </sources>
63                         </configuration>
64                     </execution>
65                 </executions>
66             </plugin>
67         </plugins>
68         <pluginManagement>
69                 <plugins>
70                         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
71                         <plugin>
72                                 <groupId>org.eclipse.m2e</groupId>
73                                 <artifactId>lifecycle-mapping</artifactId>
74                                 <version>1.0.0</version>
75                                 <configuration>
76                                         <lifecycleMappingMetadata>
77                                                 <pluginExecutions>
78                                                         <pluginExecution>
79                                                                 <pluginExecutionFilter>
80                                                                         <groupId>
81                                                                                 org.opendaylight.controller
82                                                                         </groupId>
83                                                                         <artifactId>
84                                                                                 yang-maven-plugin
85                                                                         </artifactId>
86                                                                         <versionRange>
87                                                                                 [0.5,)
88                                                                         </versionRange>
89                                                                         <goals>
90                                                                                 <goal>
91                                                                                         generate-sources
92                                                                                 </goal>
93                                                                         </goals>
94                                                                 </pluginExecutionFilter>
95                                                                 <action>
96                                                                         <ignore></ignore>
97                                                                 </action>
98                                                         </pluginExecution>
99                                                 </pluginExecutions>
100                                         </lifecycleMappingMetadata>
101                                 </configuration>
102                         </plugin>
103                 </plugins>
104         </pluginManagement>
105     </build>
106     <dependencies>
107     <dependency>
108     <groupId>org.opendaylight.controller</groupId>
109     <artifactId>yang-binding</artifactId>
110     <version>0.5.1-SNAPSHOT</version>
111     </dependency>
112     </dependencies>
113 </project>