Release mdsal
[mdsal.git] / binding / 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.mdsal</groupId>
14         <artifactId>dom-parent</artifactId>
15         <version>9.0.3</version>
16         <relativePath>../../dom/dom-parent</relativePath>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <artifactId>binding-parent</artifactId>
21     <packaging>pom</packaging>
22
23     <build>
24         <!-- https://bugs.opendaylight.org/show_bug.cgi?id=6252 -->
25         <resources>
26             <resource>
27                 <directory>src/main/resources</directory>
28             </resource>
29             <resource>
30                 <directory>${project.build.directory}/generated-sources/spi</directory>
31             </resource>
32             <resource>
33                 <directory>${project.build.directory}/generated-sources/yang</directory>
34             </resource>
35         </resources>
36     </build>
37
38     <profiles>
39         <profile>
40             <activation>
41                 <file>
42                     <exists>src/main/yang</exists>
43                 </file>
44             </activation>
45             <dependencies>
46                 <dependency>
47                     <groupId>org.opendaylight.mdsal</groupId>
48                     <artifactId>yang-binding</artifactId>
49                 </dependency>
50             </dependencies>
51             <build>
52                 <pluginManagement>
53                     <plugins>
54                         <plugin>
55                             <groupId>org.opendaylight.yangtools</groupId>
56                             <artifactId>yang-maven-plugin</artifactId>
57                             <version>8.0.5</version>
58                             <dependencies>
59                                 <dependency>
60                                     <groupId>org.opendaylight.mdsal</groupId>
61                                     <artifactId>mdsal-binding-java-api-generator</artifactId>
62                                     <version>9.0.3</version>
63                                 </dependency>
64                             </dependencies>
65                             <executions>
66                                 <execution>
67                                     <id>binding</id>
68                                     <goals>
69                                         <goal>generate-sources</goal>
70                                     </goals>
71                                     <configuration>
72                                         <inspectDependencies>true</inspectDependencies>
73                                     </configuration>
74                                 </execution>
75                             </executions>
76                         </plugin>
77                     </plugins>
78                 </pluginManagement>
79                 <plugins>
80                     <plugin>
81                         <groupId>org.opendaylight.yangtools</groupId>
82                         <artifactId>yang-maven-plugin</artifactId>
83                     </plugin>
84                     <plugin>
85                         <groupId>org.codehaus.mojo</groupId>
86                         <artifactId>build-helper-maven-plugin</artifactId>
87                     </plugin>
88                 </plugins>
89             </build>
90         </profile>
91     </profiles>
92 </project>