Small fix to finally fix dryrun.
[controller.git] / opendaylight / config / config-plugin-parent / 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <parent>
5         <groupId>org.opendaylight.controller</groupId>
6         <artifactId>config-subsystem</artifactId>
7         <version>0.2.3-SNAPSHOT</version>
8     </parent>
9     <modelVersion>4.0.0</modelVersion>
10     <artifactId>config-plugin-parent</artifactId>
11     <name>${project.artifactId}</name>
12     <packaging>pom</packaging>
13     <prerequisites>
14         <maven>3.0.4</maven>
15     </prerequisites>
16
17     <properties>
18         <jmxGeneratorPath>${project.build.directory}/generated-sources/config</jmxGeneratorPath>
19         <config.version>0.2.3-SNAPSHOT</config.version>
20     </properties>
21
22     <build>
23         <pluginManagement>
24             <plugins>
25                 <plugin>
26                     <groupId>org.opendaylight.yangtools</groupId>
27                     <artifactId>yang-maven-plugin</artifactId>
28                     <executions>
29                         <execution>
30                             <id>config</id>
31                             <goals>
32                                 <goal>generate-sources</goal>
33                             </goals>
34                             <configuration>
35                                 <codeGenerators>
36                                     <generator>
37                                         <codeGeneratorClass>
38                                             org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
39                                         </codeGeneratorClass>
40                                         <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
41                                         <additionalConfiguration>
42                                             <namespaceToPackage1>
43                                                 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
44                                             </namespaceToPackage1>
45                                         </additionalConfiguration>
46                                     </generator>
47                                 </codeGenerators>
48                                 <inspectDependencies>true</inspectDependencies>
49                             </configuration>
50                         </execution>
51                     </executions>
52                     <dependencies>
53                         <dependency>
54                             <groupId>org.opendaylight.controller</groupId>
55                             <artifactId>yang-jmx-generator-plugin</artifactId>
56                             <version>${config.version}</version>
57                         </dependency>
58                     </dependencies>
59                 </plugin>
60
61                 <!-- tell eclipse about generated source folders -->
62                 <plugin>
63                     <groupId>org.codehaus.mojo</groupId>
64                     <artifactId>build-helper-maven-plugin</artifactId>
65                     <version>1.8</version>
66                     <executions>
67                         <execution>
68                             <id>add-source</id>
69                             <phase>generate-sources</phase>
70                             <goals>
71                                 <goal>add-source</goal>
72                             </goals>
73                             <configuration>
74                                 <sources>
75                                     <source>${jmxGeneratorPath}</source>
76                                     <source>${salGeneratorPath}</source>
77                                 </sources>
78                             </configuration>
79                         </execution>
80                     </executions>
81                 </plugin>
82             </plugins>
83         </pluginManagement>
84     </build>
85 </project>