Adding auto-sorting plugin to all Controller via parent/pom.xml
[controller.git] / opendaylight / md-sal / samples / toaster / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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     <groupId>org.opendaylight.controller.samples</groupId>
6     <artifactId>sal-samples</artifactId>
7     <version>1.1-SNAPSHOT</version>
8   </parent>
9   <artifactId>sample-toaster</artifactId>
10   <packaging>bundle</packaging>
11   <dependencies>
12     <dependency>
13       <groupId>org.opendaylight.yangtools</groupId>
14       <artifactId>yang-binding</artifactId>
15     </dependency>
16     <dependency>
17       <groupId>org.opendaylight.yangtools</groupId>
18       <artifactId>yang-common</artifactId>
19     </dependency>
20   </dependencies>
21
22   <build>
23     <pluginManagement>
24       <plugins>
25         <!--This plugin's configuration is used to store Eclipse 
26                     m2e settings only. It has no influence on the Maven build itself. -->
27         <plugin>
28           <groupId>org.eclipse.m2e</groupId>
29           <artifactId>lifecycle-mapping</artifactId>
30           <version>1.0.0</version>
31           <configuration>
32             <lifecycleMappingMetadata>
33               <pluginExecutions>
34                 <pluginExecution>
35                   <pluginExecutionFilter>
36                     <groupId>org.opendaylight.yangtools</groupId>
37                     <artifactId>yang-maven-plugin</artifactId>
38                     <versionRange>[0.5,)</versionRange>
39                     <goals>
40                       <goal>generate-sources</goal>
41                     </goals>
42                   </pluginExecutionFilter>
43                   <action>
44                     <ignore></ignore>
45                   </action>
46                 </pluginExecution>
47               </pluginExecutions>
48             </lifecycleMappingMetadata>
49           </configuration>
50         </plugin>
51       </plugins>
52     </pluginManagement>
53     <plugins>
54       <plugin>
55         <groupId>org.opendaylight.yangtools</groupId>
56         <artifactId>yang-maven-plugin</artifactId>
57         <dependencies>
58           <dependency>
59             <groupId>org.opendaylight.yangtools</groupId>
60             <artifactId>maven-sal-api-gen-plugin</artifactId>
61             <version>${yangtools.version}</version>
62             <type>jar</type>
63           </dependency>
64         </dependencies>
65         <executions>
66           <execution>
67             <goals>
68               <goal>generate-sources</goal>
69             </goals>
70             <configuration>
71               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
72               <codeGenerators>
73                 <generator>
74                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
75                   <outputBaseDir>${salGeneratorPath}</outputBaseDir>
76                 </generator>
77               </codeGenerators>
78               <inspectDependencies>true</inspectDependencies>
79             </configuration>
80           </execution>
81         </executions>
82       </plugin>
83     </plugins>
84   </build>
85   <scm>
86     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
87     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
88     <tag>HEAD</tag>
89     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
90   </scm>
91 </project>