Added documentation generator to yang-maven-plugin.
[controller.git] / opendaylight / config / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5     <modelVersion>4.0.0</modelVersion>
6
7     <parent>
8         <groupId>org.opendaylight.controller</groupId>
9         <artifactId>commons.opendaylight</artifactId>
10         <version>1.4.1-SNAPSHOT</version>
11         <relativePath>../commons/opendaylight</relativePath>
12     </parent>
13
14
15     <version>0.2.3-SNAPSHOT</version>
16     <artifactId>config-subsystem</artifactId>
17     <packaging>pom</packaging>
18     <name>${project.artifactId}</name>
19     <prerequisites>
20         <maven>3.0.4</maven>
21     </prerequisites>
22     <modules>
23         <module>config-api</module>
24         <module>config-manager</module>
25         <module>config-plugin-parent</module>
26         <module>config-util</module>
27         <module>config-persister-api</module>
28         <module>config-persister-file-adapter</module>
29         <module>yang-jmx-generator</module>
30         <module>yang-jmx-generator-plugin</module>
31         <module>yang-store-api</module>
32         <module>yang-store-impl</module>
33         <module>yang-test</module>
34         <module>logback-config</module>
35         <module>threadpool-config-api</module>
36         <module>netty-config-api</module>
37         <module>threadpool-config-impl</module>
38         <module>netty-threadgroup-config</module>
39         <module>netty-event-executor-config</module>
40         <module>netty-timer-config</module>
41         <module>config-persister-directory-adapter</module>
42         <module>yang-test-plugin</module>
43     </modules>
44
45     <profiles>
46       <profile>
47         <id>integrationtests</id>
48         <activation>
49           <activeByDefault>false</activeByDefault>
50         </activation>
51         <modules>
52           <module>yang-jmx-generator-it</module>
53         </modules>
54       </profile>
55     </profiles>
56
57     <properties>
58         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
59         <java.version.source>1.7</java.version.source>
60         <java.version.target>1.7</java.version.target>
61         <junit.version>4.10</junit.version>
62         <maven.bundle.version>2.3.7</maven.bundle.version>
63         <osgi.version>5.0.0</osgi.version>
64         <jacoco.version>0.6.2.201302030002</jacoco.version>
65         <slf4j.version>1.7.2</slf4j.version>
66         <jolokia.version>1.1.1</jolokia.version>
67         <opendaylight.yang.version>0.5.9-SNAPSHOT</opendaylight.yang.version>
68         <opendaylight.binding.version>0.6.0-SNAPSHOT</opendaylight.binding.version>
69         <opendaylight.yangtools.version>0.1.1-SNAPSHOT</opendaylight.yangtools.version>
70     </properties>
71
72     <dependencies>
73         <dependency>
74             <groupId>junit</groupId>
75             <artifactId>junit</artifactId>
76             <scope>test</scope>
77         </dependency>
78         <dependency>
79             <groupId>ch.qos.logback</groupId>
80             <artifactId>logback-classic</artifactId>
81             <version>${logback.version}</version>
82             <scope>test</scope>
83         </dependency>
84     </dependencies>
85
86     <dependencyManagement>
87         <dependencies>
88             <dependency>
89                 <groupId>org.slf4j</groupId>
90                 <artifactId>slf4j-api</artifactId>
91                 <version>${slf4j.version}</version>
92             </dependency>
93             <dependency>
94                 <groupId>org.osgi</groupId>
95                 <artifactId>org.osgi.core</artifactId>
96                 <version>${osgi.version}</version>
97             </dependency>
98             <dependency>
99                 <groupId>com.google.code.findbugs</groupId>
100                 <artifactId>jsr305</artifactId>
101                 <version>2.0.1</version>
102             </dependency>
103             <dependency>
104                 <groupId>commons-io</groupId>
105                 <artifactId>commons-io</artifactId>
106                 <version>2.4</version>
107             </dependency>
108             <dependency>
109                 <groupId>com.google.guava</groupId>
110                 <artifactId>guava</artifactId>
111                 <version>14.0.1</version>
112             </dependency>
113             <dependency>
114                 <groupId>org.jolokia</groupId>
115                 <artifactId>jolokia-core</artifactId>
116                 <version>${jolokia.version}</version>
117             </dependency>
118             <dependency>
119                 <groupId>org.jolokia</groupId>
120                 <artifactId>jolokia-jvm</artifactId>
121                 <version>${jolokia.version}</version>
122                 <classifier>agent</classifier>
123             </dependency>
124             <dependency>
125                 <groupId>org.jolokia</groupId>
126                 <artifactId>jolokia-client-java</artifactId>
127                 <version>${jolokia.version}</version>
128             </dependency>
129             <dependency>
130                 <groupId>junit</groupId>
131                 <artifactId>junit</artifactId>
132                 <version>${junit.version}</version>
133             </dependency>
134             <dependency>
135                 <groupId>org.apache.commons</groupId>
136                 <artifactId>commons-lang3</artifactId>
137                 <version>${commons.lang.version}</version>
138             </dependency>
139
140             <dependency>
141                 <groupId>${project.groupId}</groupId>
142                 <artifactId>config-api</artifactId>
143                 <version>${config.version}</version>
144             </dependency>
145
146             <dependency>
147                 <groupId>${project.groupId}</groupId>
148                 <artifactId>config-util</artifactId>
149                 <version>${config.version}</version>
150             </dependency>
151             <dependency>
152                 <groupId>${project.groupId}</groupId>
153                 <artifactId>config-util</artifactId>
154                 <version>${config.version}</version>
155                 <type>test-jar</type>
156             </dependency>
157             <dependency>
158                 <groupId>${project.groupId}</groupId>
159                 <artifactId>config-manager</artifactId>
160                 <version>${config.version}</version>
161             </dependency>
162             <dependency>
163                 <groupId>${project.groupId}</groupId>
164                 <artifactId>config-manager</artifactId>
165                 <version>${config.version}</version>
166                 <type>test-jar</type>
167             </dependency>
168             <dependency>
169                 <groupId>${project.groupId}</groupId>
170                 <artifactId>config-persister-api</artifactId>
171                 <version>${config.version}</version>
172             </dependency>
173             <dependency>
174                 <groupId>org.opendaylight.bgpcep</groupId>
175                 <artifactId>mockito-configuration</artifactId>
176                 <version>${bgpcep.version}</version>
177             </dependency>
178             <dependency>
179                 <groupId>org.opendaylight.yangtools</groupId>
180                 <artifactId>binding-generator-spi</artifactId>
181                 <version>${opendaylight.binding.version}</version>
182             </dependency>
183             <dependency>
184                 <groupId>org.opendaylight.yangtools</groupId>
185                 <artifactId>binding-generator-util</artifactId>
186                 <version>${opendaylight.binding.version}</version>
187             </dependency>
188             <dependency>
189                 <groupId>org.opendaylight.yangtools</groupId>
190                 <artifactId>yang-parser-impl</artifactId>
191                 <version>${opendaylight.yang.version}</version>
192             </dependency>
193             <dependency>
194                 <groupId>org.opendaylight.yangtools</groupId>
195                 <artifactId>binding-generator-impl</artifactId>
196                 <version>${opendaylight.binding.version}</version>
197             </dependency>
198             <dependency>
199                 <groupId>${project.groupId}</groupId>
200                 <artifactId>yang-test</artifactId>
201                 <version>${config.version}</version>
202             </dependency>
203             <dependency>
204                 <groupId>org.opendaylight.controller</groupId>
205                 <artifactId>yang-jmx-generator</artifactId>
206                 <version>${config.version}</version>
207             </dependency>
208             <dependency>
209                 <groupId>org.opendaylight.controller</groupId>
210                 <artifactId>yang-jmx-generator</artifactId>
211                 <version>${config.version}</version>
212                 <type>test-jar</type>
213             </dependency>
214             <dependency>
215                 <groupId>org.opendaylight.yangtools</groupId>
216                 <artifactId>binding-type-provider</artifactId>
217                 <version>${opendaylight.binding.version}</version>
218             </dependency>
219             <dependency>
220                 <groupId>org.opendaylight.yangtools</groupId>
221                 <artifactId>yang-maven-plugin-spi</artifactId>
222                 <version>${opendaylight.yang.version}</version>
223             </dependency>
224             <dependency>
225                 <groupId>${project.groupId}</groupId>
226                 <artifactId>yang-store-api</artifactId>
227                 <version>${config.version}</version>
228             </dependency>
229
230             <!-- MD-SAL -->
231             <dependency>
232                 <groupId>org.opendaylight.yangtools</groupId>
233                 <artifactId>yang-binding</artifactId>
234                 <version>${opendaylight.binding.version}</version>
235             </dependency>
236             <dependency>
237                 <groupId>org.opendaylight.yangtools</groupId>
238                 <artifactId>yang-common</artifactId>
239                 <version>${opendaylight.yang.version}</version>
240             </dependency>
241             <dependency>
242                 <groupId>org.opendaylight.yangtools</groupId>
243                 <artifactId>concepts</artifactId>
244                 <version>${opendaylight.yangtools.version}</version>
245             </dependency>
246         </dependencies>
247     </dependencyManagement>
248
249
250     <build>
251         <plugins>
252             <plugin>
253                 <groupId>org.apache.maven.plugins</groupId>
254                 <artifactId>maven-compiler-plugin</artifactId>
255             </plugin>
256             <plugin>
257                 <groupId>org.jacoco</groupId>
258                 <artifactId>jacoco-maven-plugin</artifactId>
259                 <version>${jacoco.version}</version>
260                 <executions>
261                     <execution>
262                         <goals>
263                             <goal>prepare-agent</goal>
264                         </goals>
265                     </execution>
266                     <execution>
267                         <id>report</id>
268                         <phase>prepare-package</phase>
269                         <goals>
270                             <goal>check</goal>
271                             <goal>report</goal>
272                         </goals>
273                         <configuration>
274                             <outputDirectory>${basedir}/target/jacoco</outputDirectory>
275                             <haltOnFailure>false</haltOnFailure>
276                             <check>
277                                 <classRatio>80</classRatio>
278                             </check>
279                         </configuration>
280                     </execution>
281                 </executions>
282             </plugin>
283             <plugin>
284                 <groupId>org.apache.maven.plugins</groupId>
285                 <artifactId>maven-surefire-plugin</artifactId>
286             </plugin>
287             <plugin>
288                 <groupId>org.codehaus.mojo</groupId>
289                 <artifactId>build-helper-maven-plugin</artifactId>
290             </plugin>
291         </plugins>
292
293         <pluginManagement>
294             <plugins>
295                 <plugin>
296                     <groupId>org.opendaylight.yangtools</groupId>
297                     <artifactId>yang-maven-plugin</artifactId>
298                     <version>${opendaylight.yang.version}</version>
299                     <executions>
300                         <execution>
301                             <id>sal</id>
302                             <goals>
303                                 <goal>generate-sources</goal>
304                             </goals>
305                             <configuration>
306                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
307                                 <codeGenerators>
308                                     <generator>
309                                         <codeGeneratorClass>
310                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
311                                         </codeGeneratorClass>
312                                         <outputBaseDir>
313                                             target/generated-sources/sal
314                                         </outputBaseDir>
315                                     </generator>
316                                     <generator>
317                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
318                                         <outputBaseDir>target/site/models</outputBaseDir>
319                                     </generator>
320                                 </codeGenerators>
321                                 <inspectDependencies>true</inspectDependencies>
322                             </configuration>
323                         </execution>
324                     </executions>
325                     <dependencies>
326                         <dependency>
327                             <groupId>org.opendaylight.yangtools</groupId>
328                             <artifactId>maven-sal-api-gen-plugin</artifactId>
329                             <version>${opendaylight.binding.version}</version>
330                             <type>jar</type>
331                         </dependency>
332                     </dependencies>
333                 </plugin>
334                 <plugin>
335                     <groupId>org.apache.maven.plugins</groupId>
336                     <artifactId>maven-jar-plugin</artifactId>
337                     <version>2.4</version>
338                     <executions>
339                         <execution>
340                             <phase>package</phase>
341                             <goals>
342                                 <goal>test-jar</goal>
343                             </goals>
344                         </execution>
345                     </executions>
346                 </plugin>
347                 <plugin>
348                     <groupId>org.apache.felix</groupId>
349                     <artifactId>maven-bundle-plugin</artifactId>
350                     <version>${maven.bundle.version}</version>
351                     <extensions>true</extensions>
352                     <configuration>
353                         <instructions>
354                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
355                         </instructions>
356                     </configuration>
357                 </plugin>
358                 <plugin>
359                     <groupId>org.apache.maven.plugins</groupId>
360                     <artifactId>maven-surefire-plugin</artifactId>
361                     <version>2.14.1</version>
362                     <configuration>
363                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
364                         <parallel>classes</parallel>
365                         <forkCount>1C</forkCount>
366                         <reuseForks>false</reuseForks>
367                         <perCoreThreadCount>true</perCoreThreadCount>
368                         <threadCount>2</threadCount>
369                     </configuration>
370                 </plugin>
371                 <plugin>
372                     <groupId>org.apache.maven.plugins</groupId>
373                     <artifactId>maven-antrun-plugin</artifactId>
374                     <version>1.3</version>
375                 </plugin>
376                 <plugin>
377                     <groupId>org.codehaus.groovy.maven</groupId>
378                     <artifactId>gmaven-plugin</artifactId>
379                     <version>1.0</version>
380                 </plugin>
381                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
382                 <plugin>
383                     <groupId>org.eclipse.m2e</groupId>
384                     <artifactId>lifecycle-mapping</artifactId>
385                     <version>1.0.0</version>
386                     <configuration>
387                         <lifecycleMappingMetadata>
388                             <pluginExecutions>
389                                 <pluginExecution>
390                                     <pluginExecutionFilter>
391                                         <groupId>
392                                             org.opendaylight.yangtools
393                                         </groupId>
394                                         <artifactId>
395                                             yang-maven-plugin
396                                         </artifactId>
397                                         <versionRange>
398                                             [0.5.7-SNAPSHOT,)
399                                         </versionRange>
400                                         <goals>
401                                             <goal>
402                                                 generate-sources
403                                             </goal>
404                                         </goals>
405                                     </pluginExecutionFilter>
406                                     <action>
407                                         <ignore></ignore>
408                                     </action>
409                                 </pluginExecution>
410                             </pluginExecutions>
411                         </lifecycleMappingMetadata>
412                     </configuration>
413                 </plugin>
414             </plugins>
415         </pluginManagement>
416     </build>
417 </project>