Merge "Shift Builder<P> from toInstance() to build()"
[yangtools.git] / code-generator / binding-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2014 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" 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
30     <profiles>
31         <profile>
32             <activation>
33                 <file>
34                     <exists>src/main/yang</exists>
35                 </file>
36             </activation>
37             <dependencyManagement>
38                 <dependencies>
39                     <dependency>
40                         <groupId>org.opendaylight.yangtools</groupId>
41                         <artifactId>yangtools-artifacts</artifactId>
42                         <version>${yangtools.version}</version>
43                         <type>pom</type>
44                         <scope>import</scope>
45                     </dependency>
46                 </dependencies>
47             </dependencyManagement>
48             <dependencies>
49               <dependency>
50                 <groupId>org.opendaylight.yangtools</groupId>
51                 <artifactId>yang-binding</artifactId>
52               </dependency>
53             </dependencies>
54             <build>
55                 <pluginManagement>
56                     <plugins>
57                         <plugin>
58                             <groupId>org.opendaylight.yangtools</groupId>
59                             <artifactId>yang-maven-plugin</artifactId>
60                             <version>${yangtools.version}</version>
61                             <dependencies>
62                                 <dependency>
63                                     <groupId>org.opendaylight.yangtools</groupId>
64                                     <artifactId>maven-sal-api-gen-plugin</artifactId>
65                                     <version>${yangtools.version}</version>
66                                     <type>jar</type>
67                                 </dependency>
68                             </dependencies>
69                             <executions>
70                                 <execution>
71                                     <id>binding</id>
72                                     <goals>
73                                         <goal>generate-sources</goal>
74                                     </goals>
75                                     <configuration>
76                                         <codeGenerators>
77                                             <generator>
78                                                 <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
79                                                 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
80                                             </generator>
81                                         </codeGenerators>
82                                         <inspectDependencies>true</inspectDependencies>
83                                     </configuration>
84                                 </execution>
85                             </executions>
86                         </plugin>
87                       <plugin>
88                         <artifactId>maven-clean-plugin</artifactId>
89                         <configuration>
90                           <filesets>
91                             <fileset>
92                               <directory>${salGeneratorPath}</directory>
93                               <includes>
94                                 <include>**</include>
95                               </includes>
96                             </fileset>
97                           </filesets>
98                         </configuration>
99                       </plugin>
100                     </plugins>
101                 </pluginManagement>
102               <plugins>
103                 <plugin>
104                   <groupId>org.opendaylight.yangtools</groupId>
105                   <artifactId>yang-maven-plugin</artifactId>
106                   <version>${yangtools.version}</version>
107                 </plugin>
108               </plugins>
109             </build>
110         </profile>
111     </profiles>
112 </project>