Revert Merge "Bug 2366: new parser - Types & TypeDefs"
[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     <dependencyManagement>
31         <dependencies>
32             <dependency>
33                 <groupId>org.opendaylight.yangtools</groupId>
34                 <artifactId>yangtools-artifacts</artifactId>
35                 <version>${yangtools.version}</version>
36                 <type>pom</type>
37                 <scope>import</scope>
38             </dependency>
39         </dependencies>
40     </dependencyManagement>
41
42     <profiles>
43         <profile>
44             <activation>
45                 <file>
46                     <exists>src/main/yang</exists>
47                 </file>
48             </activation>
49             <dependencies>
50                 <dependency>
51                     <groupId>org.opendaylight.yangtools</groupId>
52                     <artifactId>yang-binding</artifactId>
53                 </dependency>
54             </dependencies>
55             <build>
56                 <pluginManagement>
57                     <plugins>
58                         <plugin>
59                             <groupId>org.opendaylight.yangtools</groupId>
60                             <artifactId>yang-maven-plugin</artifactId>
61                             <version>${yangtools.version}</version>
62                             <dependencies>
63                                 <dependency>
64                                     <groupId>org.opendaylight.yangtools</groupId>
65                                     <artifactId>maven-sal-api-gen-plugin</artifactId>
66                                     <version>${yangtools.version}</version>
67                                     <type>jar</type>
68                                 </dependency>
69                             </dependencies>
70                             <executions>
71                                 <execution>
72                                     <id>binding</id>
73                                     <goals>
74                                         <goal>generate-sources</goal>
75                                     </goals>
76                                     <configuration>
77                                         <codeGenerators>
78                                             <generator>
79                                                 <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
80                                                 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
81                                             </generator>
82                                         </codeGenerators>
83                                         <inspectDependencies>true</inspectDependencies>
84                                     </configuration>
85                                 </execution>
86                             </executions>
87                         </plugin>
88                         <plugin>
89                             <artifactId>maven-clean-plugin</artifactId>
90                             <configuration>
91                                 <filesets>
92                                     <fileset>
93                                         <directory>${salGeneratorPath}</directory>
94                                         <includes>
95                                             <include>**</include>
96                                         </includes>
97                                     </fileset>
98                                 </filesets>
99                             </configuration>
100                         </plugin>
101                         <plugin>
102                             <groupId>org.codehaus.mojo</groupId>
103                             <artifactId>build-helper-maven-plugin</artifactId>
104                             <executions>
105                                 <execution>
106                                     <id>add-yang-sources</id>
107                                     <phase>generate-sources</phase>
108                                     <goals>
109                                         <goal>add-source</goal>
110                                     </goals>
111                                     <configuration>
112                                         <sources>
113                                             <source>${salGeneratorPath}</source>
114                                         </sources>
115                                     </configuration>
116                                 </execution>
117                             </executions>
118                         </plugin>
119                     </plugins>
120                 </pluginManagement>
121                 <plugins>
122                     <plugin>
123                         <groupId>org.opendaylight.yangtools</groupId>
124                         <artifactId>yang-maven-plugin</artifactId>
125                     </plugin>
126                     <plugin>
127                         <groupId>org.codehaus.mojo</groupId>
128                         <artifactId>build-helper-maven-plugin</artifactId>
129                     </plugin>
130                 </plugins>
131             </build>
132         </profile>
133     </profiles>
134 </project>