Remove superfluous plugin dance
[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>8.0.0-SNAPSHOT</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>7.0.3</version>
58                             <dependencies>
59                                 <dependency>
60                                     <groupId>org.opendaylight.mdsal</groupId>
61                                     <artifactId>mdsal-binding-generator-impl</artifactId>
62                                     <version>8.0.0-SNAPSHOT</version>
63                                 </dependency>
64                                 <dependency>
65                                     <groupId>org.opendaylight.mdsal</groupId>
66                                     <artifactId>mdsal-binding-java-api-generator</artifactId>
67                                     <version>8.0.0-SNAPSHOT</version>
68                                 </dependency>
69                             </dependencies>
70                             <executions>
71                                 <execution>
72                                     <id>binding</id>
73                                     <goals>
74                                         <goal>generate-sources</goal>
75                                     </goals>
76                                     <configuration>
77                                         <inspectDependencies>true</inspectDependencies>
78                                     </configuration>
79                                 </execution>
80                             </executions>
81                         </plugin>
82                     </plugins>
83                 </pluginManagement>
84                 <plugins>
85                     <plugin>
86                         <groupId>org.opendaylight.yangtools</groupId>
87                         <artifactId>yang-maven-plugin</artifactId>
88                     </plugin>
89                     <plugin>
90                         <groupId>org.codehaus.mojo</groupId>
91                         <artifactId>build-helper-maven-plugin</artifactId>
92                     </plugin>
93                 </plugins>
94             </build>
95         </profile>
96     </profiles>
97 </project>