Merge "Startup arch - remove artifactId prefix from dir names."
[controller.git] / opendaylight / md-sal / messagebus-api / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0"
10          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12     <modelVersion>4.0.0</modelVersion>
13
14     <parent>
15         <groupId>org.opendaylight.controller</groupId>
16         <artifactId>sal-parent</artifactId>
17         <version>1.2.0-SNAPSHOT</version>
18     </parent>
19
20     <artifactId>message-bus-api</artifactId>
21     <name>${project.artifactId}</name>
22
23     <packaging>bundle</packaging>
24
25     <dependencies>
26         <dependency>
27             <groupId>org.opendaylight.controller.model</groupId>
28             <artifactId>model-inventory</artifactId>
29         </dependency>
30         <dependency>
31             <groupId>org.opendaylight.yangtools.model</groupId>
32             <artifactId>yang-ext</artifactId>
33         </dependency>
34         <dependency>
35             <groupId>org.opendaylight.yangtools.model</groupId>
36             <artifactId>ietf-topology</artifactId>
37         </dependency>
38     </dependencies>
39
40     <build>
41         <plugins>
42             <plugin>
43                 <groupId>org.opendaylight.yangtools</groupId>
44                 <artifactId>yang-maven-plugin</artifactId>
45                 <executions>
46                     <execution>
47                         <goals>
48                             <goal>generate-sources</goal>
49                         </goals>
50                         <configuration>
51                             <codeGenerators>
52                                 <generator>
53                                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
54                                     <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
55                                 </generator>
56                                 <generator>
57                                     <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
58                                     <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
59                                     <additionalConfiguration>
60                                         <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
61                                     </additionalConfiguration>
62                                 </generator>
63                                 <generator>
64                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
65                                     <outputBaseDir>target/site/models</outputBaseDir>
66                                 </generator>
67                             </codeGenerators>
68                             <inspectDependencies>true</inspectDependencies>
69                         </configuration>
70                     </execution>
71                 </executions>
72             </plugin>
73             <plugin>
74                 <groupId>org.codehaus.mojo</groupId>
75                 <artifactId>build-helper-maven-plugin</artifactId>
76                 <version>1.8</version>
77                 <executions>
78                     <execution>
79                         <id>add-source</id>
80                         <phase>generate-sources</phase>
81                         <goals>
82                             <goal>add-source</goal>
83                         </goals>
84                         <configuration>
85                             <sources>
86                                 <source>${project.build.directory}/generated-sources/config</source>
87                             </sources>
88                         </configuration>
89                     </execution>
90                 </executions>
91             </plugin>
92             <plugin>
93                 <groupId>org.apache.felix</groupId>
94                 <artifactId>maven-bundle-plugin</artifactId>
95                 <extensions>true</extensions>
96                 <configuration>
97                     <instructions>
98                         <Export-Package>org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.messagebus.*</Export-Package>
99                     </instructions>
100                 </configuration>
101             </plugin>
102         </plugins>
103     </build>
104 </project>