Add copyright headers to pom.xml files
[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         <artifactId>binding-generator</artifactId>
15         <groupId>org.opendaylight.yangtools</groupId>
16         <version>0.6.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                         <version>0.6.0-SNAPSHOT</version>
53                         <type>jar</type>
54                     </dependency>
55                 </dependencies>
56             </plugin>
57             <plugin>
58                 <groupId>org.codehaus.mojo</groupId>
59                 <artifactId>build-helper-maven-plugin</artifactId>
60                 <version>1.8</version>
61                 <executions>
62                     <execution>
63                         <phase>generate-sources</phase>
64                         <goals>
65                             <goal>add-source</goal>
66                         </goals>
67                         <configuration>
68                             <sources>
69                                 <source>target/generated-sources/sal</source>
70                             </sources>
71                         </configuration>
72                     </execution>
73                 </executions>
74             </plugin>
75         </plugins>
76         <pluginManagement>
77             <plugins>
78                 <!--This plugin's configuration is used to store Eclipse 
79                     m2e settings only. It has no influence on the Maven build itself. -->
80                 <plugin>
81                     <groupId>org.eclipse.m2e</groupId>
82                     <artifactId>lifecycle-mapping</artifactId>
83                     <version>1.0.0</version>
84                     <configuration>
85                         <lifecycleMappingMetadata>
86                             <pluginExecutions>
87                                 <pluginExecution>
88                                     <pluginExecutionFilter>
89                                         <groupId>
90                                             org.opendaylight.yangtools
91                                         </groupId>
92                                         <artifactId>
93                                             yang-maven-plugin
94                                         </artifactId>
95                                         <versionRange>
96                                             [0.5,)
97                                         </versionRange>
98                                         <goals>
99                                             <goal>
100                                                 generate-sources
101                                             </goal>
102                                         </goals>
103                                     </pluginExecutionFilter>
104                                     <action>
105                                         <ignore></ignore>
106                                     </action>
107                                 </pluginExecution>
108                             </pluginExecutions>
109                         </lifecycleMappingMetadata>
110                     </configuration>
111                 </plugin>
112             </plugins>
113         </pluginManagement>
114     </build>
115     <dependencies>
116         <dependency>
117             <groupId>org.opendaylight.yangtools</groupId>
118             <artifactId>yang-binding</artifactId>
119         </dependency>
120     </dependencies>
121 </project>