Merge "BUG-362: add some diagnostic information Changed Remote RPC Server Implementat...
[controller.git] / opendaylight / config / config-module-archetype / src / main / resources / archetype-resources / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4
5   <groupId>${groupId}</groupId>
6   <artifactId>${artifactId}</artifactId>
7   <version>${version}</version>
8   <packaging>bundle</packaging>
9
10     <properties>
11         <jmxGeneratorPath>${project.build.directory}/generated-sources/config</jmxGeneratorPath>
12         <config.version>${config-api-version}</config.version>
13         <maven.bundle.version>${maven-bundle-plugin-version}</maven.bundle.version>
14     </properties>
15
16     <dependencies>
17         <dependency>
18             <groupId>org.opendaylight.controller</groupId>
19             <artifactId>config-api</artifactId>
20             <version>${config.version}</version>
21         </dependency>
22     </dependencies>
23
24     <build>
25         <plugins>
26             <plugin>
27                 <groupId>org.opendaylight.yangtools</groupId>
28                 <artifactId>yang-maven-plugin</artifactId>
29                 <version>${yang-maven-plugin-version}</version>
30                 <executions>
31                     <execution>
32                         <id>config</id>
33                         <goals>
34                             <goal>generate-sources</goal>
35                         </goals>
36                         <configuration>
37                             <codeGenerators>
38                                 <generator>
39                                     <codeGeneratorClass>
40                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
41                                     </codeGeneratorClass>
42                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
43                                     <additionalConfiguration>
44                                         <namespaceToPackage1>
45                                             ${yang-namespace-mapping-from}==${yang-namespace-mapping-to}
46                                         </namespaceToPackage1>
47                                     </additionalConfiguration>
48                                 </generator>
49                             </codeGenerators>
50                             <inspectDependencies>true</inspectDependencies>
51                         </configuration>
52                     </execution>
53                 </executions>
54                 <dependencies>
55                     <dependency>
56                         <groupId>org.opendaylight.controller</groupId>
57                         <artifactId>yang-jmx-generator-plugin</artifactId>
58                         <version>${config.version}</version>
59                     </dependency>
60                 </dependencies>
61             </plugin>
62
63             <plugin>
64                 <groupId>org.codehaus.mojo</groupId>
65                 <artifactId>build-helper-maven-plugin</artifactId>
66                 <version>1.8</version>
67                 <executions>
68                     <execution>
69                         <id>add-source</id>
70                         <phase>generate-sources</phase>
71                         <goals>
72                             <goal>add-source</goal>
73                         </goals>
74                         <configuration>
75                             <sources>
76                                 <source>${jmxGeneratorPath}</source>
77                             </sources>
78                         </configuration>
79                     </execution>
80                 </executions>
81             </plugin>
82
83             <plugin>
84                 <groupId>org.apache.felix</groupId>
85                 <artifactId>maven-bundle-plugin</artifactId>
86                 <version>${maven.bundle.version}</version>
87                 <extensions>true</extensions>
88                 <configuration>
89                     <instructions>
90                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
91                         <Export-Package>
92                             ${yang-namespace-mapping-to}.${module-name},
93                         </Export-Package>
94                         <Import-Package>
95                             *
96                         </Import-Package>
97                     </instructions>
98                 </configuration>
99             </plugin>
100
101
102         </plugins>
103     </build>
104 </project>