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