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