235e466089b14a8a194b2f15067487721dd4e982
[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         <dependency>
37             <groupId>org.opendaylight.yangtools</groupId>
38             <artifactId>mockito-configuration</artifactId>
39         </dependency>
40         <dependency>
41             <groupId>${project.groupId}</groupId>
42             <artifactId>config-manager</artifactId>
43             <scope>test</scope>
44         </dependency>
45         <dependency>
46             <groupId>${project.groupId}</groupId>
47             <artifactId>config-manager</artifactId>
48             <type>test-jar</type>
49             <scope>test</scope>
50         </dependency>
51         <dependency>
52             <groupId>org.opendaylight.controller</groupId>
53             <artifactId>config-util</artifactId>
54             <scope>test</scope>
55         </dependency>
56         <dependency>
57             <groupId>junit</groupId>
58             <artifactId>junit</artifactId>
59             <scope>test</scope>
60         </dependency>
61     </dependencies>
62
63     <build>
64         <plugins>
65             <plugin>
66                 <groupId>org.opendaylight.yangtools</groupId>
67                 <artifactId>yang-maven-plugin</artifactId>
68                 <version>${opendaylight.yang.version}</version>
69                 <executions>
70                     <execution>
71                         <id>config</id>
72                         <goals>
73                             <goal>generate-sources</goal>
74                         </goals>
75                         <configuration>
76                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
77                             <codeGenerators>
78                                 <generator>
79                                     <codeGeneratorClass>
80                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
81                                     </codeGeneratorClass>
82                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
83                                     <additionalConfiguration>
84                                         <namespaceToPackage1>
85                                             urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
86                                         </namespaceToPackage1>
87                                     </additionalConfiguration>
88                                 </generator>
89                             </codeGenerators>
90                             <inspectDependencies>true</inspectDependencies>
91                         </configuration>
92                     </execution>
93
94                     <execution>
95                         <id>types</id>
96                         <goals>
97                             <goal>generate-sources</goal>
98                         </goals>
99                         <configuration>
100                             <yangFilesRootDir>src/main/yang/types</yangFilesRootDir>
101                             <codeGenerators>
102                               <generator>
103                                     <codeGeneratorClass>
104                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
105                                     </codeGeneratorClass>
106                                     <outputBaseDir>
107                                         target/generated-sources/sal
108                                     </outputBaseDir>
109                                 </generator>
110                             </codeGenerators>
111                             <inspectDependencies>true</inspectDependencies>
112                         </configuration>
113                     </execution>
114                 </executions>
115                 <dependencies>
116                     <dependency>
117                         <groupId>org.opendaylight.controller</groupId>
118                         <artifactId>yang-jmx-generator-plugin</artifactId>
119                         <version>${config.version}</version>
120                     </dependency>
121
122                     <dependency>
123                         <groupId>org.opendaylight.yangtools</groupId>
124                         <artifactId>maven-sal-api-gen-plugin</artifactId>
125                         <version>${yangtools.binding.version}</version>
126                     </dependency>
127                 </dependencies>
128             </plugin>
129             <plugin>
130                 <groupId>org.opendaylight.controller</groupId>
131                 <artifactId>yang-test-plugin</artifactId>
132                 <version>${config.version}</version>
133                 <executions>
134                     <execution>
135                         <goals>
136                             <goal>delete-sources</goal>
137                             <goal>process-sources</goal>
138                         </goals>
139                     </execution>
140                 </executions>
141             </plugin>
142         </plugins>
143     </build>
144 </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.