dfdcf38060458e8fe04c67ac47a67b7b3e7ceae3
[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>13.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>com.github.spotbugs</groupId>
48                     <artifactId>spotbugs-annotations</artifactId>
49                     <optional>true</optional>
50                 </dependency>
51                 <dependency>
52                     <groupId>com.google.guava</groupId>
53                     <artifactId>guava</artifactId>
54                 </dependency>
55                 <dependency>
56                     <groupId>org.eclipse.jdt</groupId>
57                     <artifactId>org.eclipse.jdt.annotation</artifactId>
58                 </dependency>
59                 <dependency>
60                     <groupId>org.opendaylight.mdsal</groupId>
61                     <artifactId>yang-binding</artifactId>
62                 </dependency>
63                 <dependency>
64                     <groupId>org.opendaylight.yangtools</groupId>
65                     <artifactId>yang-common</artifactId>
66                 </dependency>
67             </dependencies>
68             <build>
69                 <pluginManagement>
70                     <plugins>
71                         <plugin>
72                             <groupId>org.opendaylight.yangtools</groupId>
73                             <artifactId>yang-maven-plugin</artifactId>
74                             <version>11.0.4</version>
75                             <dependencies>
76                                 <dependency>
77                                     <groupId>org.opendaylight.mdsal</groupId>
78                                     <artifactId>mdsal-binding-java-api-generator</artifactId>
79                                     <version>13.0.0-SNAPSHOT</version>
80                                 </dependency>
81                             </dependencies>
82                             <executions>
83                                 <execution>
84                                     <id>binding</id>
85                                     <goals>
86                                         <goal>generate-sources</goal>
87                                     </goals>
88                                     <configuration>
89                                         <inspectDependencies>true</inspectDependencies>
90                                     </configuration>
91                                 </execution>
92                             </executions>
93                         </plugin>
94                     </plugins>
95                 </pluginManagement>
96                 <plugins>
97                     <plugin>
98                         <groupId>org.opendaylight.yangtools</groupId>
99                         <artifactId>yang-maven-plugin</artifactId>
100                     </plugin>
101                     <plugin>
102                         <groupId>org.codehaus.mojo</groupId>
103                         <artifactId>build-helper-maven-plugin</artifactId>
104                     </plugin>
105                     <plugin>
106                         <artifactId>maven-dependency-plugin</artifactId>
107                         <configuration>
108                             <ignoredUnusedDeclaredDependencies combine.children="append">
109                                 <!-- Binding uses SpotBugs only for some constructs (RPCs) methods -->
110                                 <ignoredUnusedDeclaredDependency>com.github.spotbugs:spotbugs-annotations</ignoredUnusedDeclaredDependency>
111                             </ignoredUnusedDeclaredDependencies>
112                         </configuration>
113                     </plugin>
114                 </plugins>
115             </build>
116         </profile>
117     </profiles>
118 </project>