Add yang-binding dependency to binding-parent.
[mdsal.git] / code-generator / binding-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>bundle-parent</artifactId>
15         <version>1.5.0-SNAPSHOT</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.yangtools</groupId>
21     <artifactId>binding-parent</artifactId>
22     <version>0.7.0-SNAPSHOT</version>
23     <packaging>pom</packaging>
24
25     <properties>
26         <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
27         <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
28     </properties>
29     <profiles>
30         <profile>
31             <activation>
32                 <file>
33                     <exists>src/main/yang</exists>
34                 </file>
35             </activation>
36             <dependencyManagement>
37                 <dependencies>
38                     <dependency>
39                         <groupId>org.opendaylight.yangtools</groupId>
40                         <artifactId>yangtools-artifacts</artifactId>
41                         <version>${yangtools.version}</version>
42                         <type>pom</type>
43                         <scope>import</scope>
44                     </dependency>
45                 </dependencies>
46             </dependencyManagement>
47             <dependencies>
48               <dependency>
49                 <groupId>org.opendaylight.yangtools</groupId>
50                 <artifactId>yang-binding</artifactId>
51               </dependency>
52             </dependencies>
53             <build>
54                 <pluginManagement>
55                     <plugins>
56                         <plugin>
57                             <groupId>org.opendaylight.yangtools</groupId>
58                             <artifactId>yang-maven-plugin</artifactId>
59                             <version>${yangtools.version}</version>
60                             <dependencies>
61                                 <dependency>
62                                     <groupId>org.opendaylight.yangtools</groupId>
63                                     <artifactId>maven-sal-api-gen-plugin</artifactId>
64                                     <version>${yangtools.version}</version>
65                                     <type>jar</type>
66                                 </dependency>
67                             </dependencies>
68                             <executions>
69                                 <execution>
70                                     <id>binding</id>
71                                     <goals>
72                                         <goal>generate-sources</goal>
73                                     </goals>
74                                     <configuration>
75                                         <codeGenerators>
76                                             <generator>
77                                                 <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
78                                                 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
79                                             </generator>
80                                         </codeGenerators>
81                                         <inspectDependencies>true</inspectDependencies>
82                                     </configuration>
83                                 </execution>
84                             </executions>
85                         </plugin>
86                       <plugin>
87                         <artifactId>maven-clean-plugin</artifactId>
88                         <configuration>
89                           <filesets>
90                             <fileset>
91                               <directory>${salGeneratorPath}</directory>
92                               <includes>
93                                 <include>**</include>
94                               </includes>
95                             </fileset>
96                           </filesets>
97                         </configuration>
98                       </plugin>
99                     </plugins>
100                 </pluginManagement>
101               <plugins>
102                 <plugin>
103                   <groupId>org.opendaylight.yangtools</groupId>
104                   <artifactId>yang-maven-plugin</artifactId>
105                   <version>${yangtools.version}</version>
106                 </plugin>
107               </plugins>
108             </build>
109         </profile>
110     </profiles>
111 </project>