Merge "Add test for generated code checking list of dependencies."
[controller.git] / opendaylight / md-sal / model / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
4     <parent>
5         <groupId>org.opendaylight.controller</groupId>
6         <artifactId>sal-parent</artifactId>
7         <version>1.0-SNAPSHOT</version>
8     </parent>
9     <scm>
10       <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
11       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
12       <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
13     </scm>
14
15     <modelVersion>4.0.0</modelVersion>
16     <groupId>org.opendaylight.controller.model</groupId>
17     <artifactId>model-parent</artifactId>
18     <packaging>pom</packaging>
19
20     <properties>
21         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22         <bundle.plugin.version>2.4.0</bundle.plugin.version>
23     </properties>
24
25     <modules>
26         <module>model-inventory</module>
27         <module>model-flow-base</module>
28         <module>model-flow-service</module>
29         <module>model-flow-statistics</module>
30         <module>model-flow-management</module>
31         <module>model-topology</module>
32     </modules>
33
34     <build>
35         <plugins>
36             <plugin>
37                 <groupId>org.apache.felix</groupId>
38                 <artifactId>maven-bundle-plugin</artifactId>
39                 <extensions>true</extensions>
40                 <configuration>
41                     <instructions>
42                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
43                         <Import-Package>org.opendaylight.yangtools.yang.binding.annotations, *</Import-Package>
44                     </instructions>
45                 </configuration>
46             </plugin>
47             <plugin>
48                 <groupId>org.opendaylight.yangtools</groupId>
49                 <artifactId>yang-maven-plugin</artifactId>
50                 <version>${yang.version}</version>
51                 <executions>
52                     <execution>
53                         <goals>
54                             <goal>generate-sources</goal>
55                         </goals>
56                         <configuration>
57                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
58                             <codeGenerators>
59                                 <generator>
60                                     <codeGeneratorClass>
61                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
62                                     </codeGeneratorClass>
63                                     <outputBaseDir>
64                                         target/generated-sources/sal
65                                     </outputBaseDir>
66                                 </generator>
67                                 <generator>
68                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
69                                     <outputBaseDir>target/site/models</outputBaseDir>
70                                 </generator>
71                                 <generator>
72                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
73                                     <outputBaseDir>target/site/models</outputBaseDir>
74                                 </generator>
75                             </codeGenerators>
76                             <inspectDependencies>true</inspectDependencies>
77                         </configuration>
78                     </execution>
79                 </executions>
80                 <dependencies>
81                     <dependency>
82                         <groupId>org.opendaylight.yangtools</groupId>
83                         <artifactId>maven-sal-api-gen-plugin</artifactId>
84                         <version>${yang.codegen.version}</version>
85                         <type>jar</type>
86                     </dependency>
87                     <dependency>
88                         <groupId>org.opendaylight.yangtools</groupId>
89                         <artifactId>yang-binding</artifactId>
90                         <version>${yang.codegen.version}</version>
91                         <type>jar</type>
92                     </dependency>
93                 </dependencies>
94             </plugin>
95             <plugin>
96                 <groupId>org.codehaus.mojo</groupId>
97                 <artifactId>build-helper-maven-plugin</artifactId>
98                 <version>1.7</version>
99                 <executions>
100                     <execution>
101                         <phase>generate-sources</phase>
102                         <goals>
103                             <goal>add-source</goal>
104                         </goals>
105                         <configuration>
106                             <sources>
107                                 <source>target/generated-sources/sal</source>
108                             </sources>
109                         </configuration>
110                     </execution>
111                 </executions>
112             </plugin>
113         </plugins>
114     </build>
115
116     <dependencies>
117         <dependency>
118             <groupId>org.opendaylight.yangtools</groupId>
119             <artifactId>yang-binding</artifactId>
120         </dependency>
121         <dependency>
122             <groupId>org.opendaylight.yangtools</groupId>
123             <artifactId>yang-common</artifactId>
124         </dependency>
125         <dependency>
126             <groupId>org.opendaylight.yangtools.model</groupId>
127             <artifactId>ietf-inet-types</artifactId>
128             <version>2010.09.24.2-SNAPSHOT</version>
129         </dependency>
130         <dependency>
131             <groupId>org.opendaylight.yangtools.model</groupId>
132             <artifactId>ietf-yang-types</artifactId>
133             <version>2010.09.24.2-SNAPSHOT</version>
134         </dependency>
135         <dependency>
136             <groupId>org.opendaylight.yangtools.model</groupId>
137             <artifactId>yang-ext</artifactId>
138             <version>2013.09.07.1-SNAPSHOT</version>
139         </dependency>
140     </dependencies>
141
142 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.