Merge "Revert "Replace tabs with spaces in config yang files""
[controller.git] / opendaylight / config / yang-test / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <project
4         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
5         xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6     <modelVersion>4.0.0</modelVersion>
7     <parent>
8         <groupId>org.opendaylight.controller</groupId>
9         <artifactId>config-plugin-parent</artifactId>
10         <version>0.2.3-SNAPSHOT</version>
11         <relativePath>../config-plugin-parent</relativePath>
12     </parent>
13
14     <artifactId>yang-test</artifactId>
15
16     <description>Artifact that contains only generated code from yang files. Suitable for testing.
17     </description>
18     <name>${project.artifactId}</name>
19     <prerequisites>
20         <maven>3.0.4</maven>
21     </prerequisites>
22
23     <dependencies>
24         <dependency>
25             <groupId>${project.groupId}</groupId>
26             <artifactId>config-api</artifactId>
27         </dependency>
28         <dependency>
29             <groupId>org.slf4j</groupId>
30             <artifactId>slf4j-api</artifactId>
31         </dependency>
32         <dependency>
33          <groupId>org.opendaylight.yangtools.model</groupId>
34          <artifactId>ietf-inet-types</artifactId>
35         </dependency>
36     </dependencies>
37
38     <build>
39         <plugins>
40             <plugin>
41                 <groupId>org.opendaylight.yangtools</groupId>
42                 <artifactId>yang-maven-plugin</artifactId>
43                 <version>${opendaylight.yang.version}</version>
44                 <executions>
45                     <execution>
46                         <id>config</id>
47                         <goals>
48                             <goal>generate-sources</goal>
49                         </goals>
50                         <configuration>
51                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
52                             <codeGenerators>
53                                 <generator>
54                                     <codeGeneratorClass>
55                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
56                                     </codeGeneratorClass>
57                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
58                                     <additionalConfiguration>
59                                         <namespaceToPackage1>
60                                             urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
61                                         </namespaceToPackage1>
62                                     </additionalConfiguration>
63                                 </generator>
64                             </codeGenerators>
65                             <inspectDependencies>true</inspectDependencies>
66                         </configuration>
67                     </execution>
68
69                     <execution>
70                         <id>types</id>
71                         <goals>
72                             <goal>generate-sources</goal>
73                         </goals>
74                         <configuration>
75                             <yangFilesRootDir>src/main/yang/types</yangFilesRootDir>
76                             <codeGenerators>
77                               <generator>
78                                     <codeGeneratorClass>
79                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
80                                     </codeGeneratorClass>
81                                     <outputBaseDir>
82                                         target/generated-sources/sal
83                                     </outputBaseDir>
84                                 </generator>
85                             </codeGenerators>
86                             <inspectDependencies>true</inspectDependencies>
87                         </configuration>
88                     </execution>
89                 </executions>
90                 <dependencies>
91                     <dependency>
92                         <groupId>org.opendaylight.controller</groupId>
93                         <artifactId>yang-jmx-generator-plugin</artifactId>
94                         <version>${config.version}</version>
95                     </dependency>
96
97                     <dependency>
98                         <groupId>org.opendaylight.yangtools</groupId>
99                         <artifactId>maven-sal-api-gen-plugin</artifactId>
100                         <version>${yangtools.binding.version}</version>
101                     </dependency>
102                 </dependencies>
103             </plugin>
104         </plugins>
105     </build>
106 </project>