Unify version management: PCEP and its dependencies
[bgpcep.git] / pcep / topology-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>pcep-parent</artifactId>
9                 <version>0.3.0-SNAPSHOT</version>
10         </parent>
11
12         <modelVersion>4.0.0</modelVersion>
13         <artifactId>pcep-topology-api</artifactId>
14         <description>PCEP Topology 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>pcep-api</artifactId>
25                 </dependency>
26                 <dependency>
27                         <groupId>${project.groupId}</groupId>
28                         <artifactId>topology-api</artifactId>
29                 </dependency>
30                 <dependency>
31                         <groupId>${project.groupId}</groupId>
32                         <artifactId>programming-topology-api</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.topology.pcep.rev131024.*,
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>PCEP-TOPOLOGY-API Module site</name>
101                         <url>${basedir}/target/site/${project.artifactId}</url>
102                 </site>
103         </distributionManagement>
104
105 </project>