ccedc22e92c9ce20141ee0a3e312938f148d5c75
[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>bundle-parent</artifactId>
15         <version>13.0.0-SNAPSHOT</version>
16         <relativePath>../../bundle-parent</relativePath>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <artifactId>binding-parent</artifactId>
21     <packaging>pom</packaging>
22
23     <properties>
24         <spotbugs.onlyAnalyze>!org.opendaylight.yang.gen.-</spotbugs.onlyAnalyze>
25     </properties>
26
27     <build>
28         <!-- https://bugs.opendaylight.org/show_bug.cgi?id=6252 -->
29         <resources>
30             <resource>
31                 <directory>src/main/resources</directory>
32             </resource>
33             <resource>
34                 <directory>${project.build.directory}/generated-sources/spi</directory>
35             </resource>
36             <resource>
37                 <directory>${project.build.directory}/generated-sources/yang</directory>
38             </resource>
39         </resources>
40     </build>
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>com.google.guava</groupId>
52                     <artifactId>guava</artifactId>
53                 </dependency>
54                 <dependency>
55                     <groupId>org.eclipse.jdt</groupId>
56                     <artifactId>org.eclipse.jdt.annotation</artifactId>
57                 </dependency>
58                 <dependency>
59                     <groupId>org.opendaylight.mdsal</groupId>
60                     <artifactId>yang-binding</artifactId>
61                 </dependency>
62                 <dependency>
63                     <groupId>org.opendaylight.yangtools</groupId>
64                     <artifactId>yang-common</artifactId>
65                 </dependency>
66             </dependencies>
67             <build>
68                 <pluginManagement>
69                     <plugins>
70                         <plugin>
71                             <groupId>org.opendaylight.yangtools</groupId>
72                             <artifactId>yang-maven-plugin</artifactId>
73                             <version>13.0.0</version>
74                             <dependencies>
75                                 <dependency>
76                                     <groupId>org.opendaylight.mdsal</groupId>
77                                     <artifactId>mdsal-binding-java-api-generator</artifactId>
78                                     <version>13.0.0-SNAPSHOT</version>
79                                 </dependency>
80                             </dependencies>
81                             <executions>
82                                 <execution>
83                                     <id>binding</id>
84                                     <goals>
85                                         <goal>generate-sources</goal>
86                                     </goals>
87                                     <configuration>
88                                         <inspectDependencies>true</inspectDependencies>
89                                     </configuration>
90                                 </execution>
91                             </executions>
92                         </plugin>
93                     </plugins>
94                 </pluginManagement>
95                 <plugins>
96                     <plugin>
97                         <groupId>org.opendaylight.yangtools</groupId>
98                         <artifactId>yang-maven-plugin</artifactId>
99                     </plugin>
100                     <plugin>
101                         <groupId>org.codehaus.mojo</groupId>
102                         <artifactId>build-helper-maven-plugin</artifactId>
103                     </plugin>
104                 </plugins>
105             </build>
106         </profile>
107     </profiles>
108 </project>