Unify version management: BGP and its dependencies
[bgpcep.git] / bgp / rib-api / 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"
4         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
6         <parent>
7                 <groupId>org.opendaylight.bgpcep</groupId>
8                 <artifactId>bgp-parent</artifactId>
9                 <version>0.3.0-SNAPSHOT</version>
10         </parent>
11
12         <modelVersion>4.0.0</modelVersion>
13         <artifactId>bgp-rib-api</artifactId>
14         <description>BGP RIB API</description>
15         <packaging>bundle</packaging>
16         <name>${project.artifactId}</name>
17         <prerequisites>
18                 <maven>3.0.4</maven>
19         </prerequisites>
20
21         <dependencies>
22                 <dependency>
23                         <groupId>${project.groupId}</groupId>
24                         <artifactId>bgp-parser-api</artifactId>
25                 </dependency>
26                 <dependency>
27                         <groupId>${project.groupId}</groupId>
28                         <artifactId>bgp-concepts</artifactId>
29                 </dependency>
30                 <dependency>
31                         <groupId>${project.groupId}</groupId>
32                         <artifactId>concepts</artifactId>
33                 </dependency>
34         <dependency>
35             <groupId>org.opendaylight.yangtools</groupId>
36             <artifactId>yang-binding</artifactId>
37         </dependency>
38         <dependency>
39             <groupId>org.opendaylight.yangtools</groupId>
40             <artifactId>yang-common</artifactId>
41         </dependency>
42         </dependencies>
43
44         <build>
45                 <plugins>
46             <plugin>
47                 <groupId>org.opendaylight.yangtools</groupId>
48                 <artifactId>yang-maven-plugin</artifactId>
49                 <version>${yangtools.version}</version>
50                 <executions>
51                     <execution>
52                         <goals>
53                             <goal>generate-sources</goal>
54                         </goals>
55                         <configuration>
56                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
57                             <codeGenerators>
58                                 <generator>
59                                     <codeGeneratorClass>
60                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
61                                     </codeGeneratorClass>
62                                     <outputBaseDir>
63                                         target/generated-sources/sal
64                                     </outputBaseDir>
65                                 </generator>
66                             </codeGenerators>
67                             <inspectDependencies>true</inspectDependencies>
68                         </configuration>
69                     </execution>
70                 </executions>
71                 <dependencies>
72                     <dependency>
73                         <groupId>org.opendaylight.yangtools</groupId>
74                         <artifactId>maven-sal-api-gen-plugin</artifactId>
75                         <version>${yang.binding.version}</version>
76                         <type>jar</type>
77                     </dependency>
78                 </dependencies>
79             </plugin>
80                         <plugin>
81                                 <groupId>org.apache.felix</groupId>
82                                 <artifactId>maven-bundle-plugin</artifactId>
83                                 <version>${maven.bundle.version}</version>
84                                 <extensions>true</extensions>
85                                 <configuration>
86                                         <instructions>
87                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
88                         <Export-Package>
89                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.*
90                         </Export-Package>
91                                         </instructions>
92                                 </configuration>
93                         </plugin>
94                 </plugins>
95         </build>
96
97         <distributionManagement>
98                 <site>
99                         <id>${project.artifactId}</id>
100                         <name>BGP-RIB-API Module site</name>
101                         <url>${basedir}/target/site/${project.artifactId}</url>
102                 </site>
103         </distributionManagement>
104
105 </project>