Merge "Enabled documentation generator for models."
[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.3.7</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                     </instructions>
44                 </configuration>
45             </plugin>
46             <plugin>
47                 <groupId>org.opendaylight.yangtools</groupId>
48                 <artifactId>yang-maven-plugin</artifactId>
49                 <version>${yang.version}</version>
50                 <executions>
51                     <execution>
52                         <goals>
53                             <goal>generate-sources</goal>
54                         </goals>
55                         <configuration>
56                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
57                             <codeGenerators>
58                                 <generator>
59                                     <codeGeneratorClass>
60                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
61                                     </codeGeneratorClass>
62                                     <outputBaseDir>
63                                         target/generated-sources/sal
64                                     </outputBaseDir>
65                                 </generator>
66                                 <generator>
67                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
68                                     <outputBaseDir>target/site/restconf</outputBaseDir>
69                                 </generator>
70                             </codeGenerators>
71                             <inspectDependencies>true</inspectDependencies>
72                         </configuration>
73                     </execution>
74                 </executions>
75                 <dependencies>
76                     <dependency>
77                         <groupId>org.opendaylight.yangtools</groupId>
78                         <artifactId>maven-sal-api-gen-plugin</artifactId>
79                         <version>${yang.codegen.version}</version>
80                         <type>jar</type>
81                     </dependency>
82                     <dependency>
83                         <groupId>org.opendaylight.yangtools</groupId>
84                         <artifactId>yang-binding</artifactId>
85                         <version>${yang.codegen.version}</version>
86                         <type>jar</type>
87                     </dependency>
88                 </dependencies>
89             </plugin>
90             <plugin>
91                 <groupId>org.codehaus.mojo</groupId>
92                 <artifactId>build-helper-maven-plugin</artifactId>
93                 <version>1.7</version>
94                 <executions>
95                     <execution>
96                         <phase>generate-sources</phase>
97                         <goals>
98                             <goal>add-source</goal>
99                         </goals>
100                         <configuration>
101                             <sources>
102                                 <source>target/generated-sources/sal</source>
103                             </sources>
104                         </configuration>
105                     </execution>
106                 </executions>
107             </plugin>
108         </plugins>
109     </build>
110
111     <dependencies>
112         <dependency>
113             <groupId>org.opendaylight.yangtools</groupId>
114             <artifactId>yang-binding</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>org.opendaylight.yangtools</groupId>
118             <artifactId>yang-common</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>org.opendaylight.yangtools.model</groupId>
122             <artifactId>ietf-inet-types</artifactId>
123             <version>2010.09.24.2-SNAPSHOT</version>
124         </dependency>
125         <dependency>
126             <groupId>org.opendaylight.yangtools.model</groupId>
127             <artifactId>ietf-yang-types</artifactId>
128             <version>2010.09.24.2-SNAPSHOT</version>
129         </dependency>
130         <dependency>
131             <groupId>org.opendaylight.yangtools.model</groupId>
132             <artifactId>yang-ext</artifactId>
133             <version>2013.09.07.1-SNAPSHOT</version>
134         </dependency>
135     </dependencies>
136
137 </project>