2d0dd73423fb267c3b5bac976f66b959635a89ad
[bgpcep.git] / programming / 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>programming-parent</artifactId>
9                 <version>0.3.0-SNAPSHOT</version>
10         </parent>
11
12         <modelVersion>4.0.0</modelVersion>
13         <artifactId>programming-api</artifactId>
14         <description>Programming 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>org.opendaylight.yangtools</groupId>
24             <artifactId>yang-binding</artifactId>
25         </dependency>
26         <dependency>
27             <groupId>org.opendaylight.yangtools</groupId>
28             <artifactId>yang-common</artifactId>
29         </dependency>
30         <dependency>
31             <groupId>org.opendaylight.yangtools.model</groupId>
32             <artifactId>ietf-inet-types</artifactId>
33             <version>${ietf.types.version}</version>
34         </dependency>
35         </dependencies>
36
37         <build>
38         <plugins>
39            <plugin>
40                <groupId>org.opendaylight.yangtools</groupId>
41                <artifactId>yang-maven-plugin</artifactId>
42                <version>${yangtools.version}</version>
43                <executions>
44                    <execution>
45                        <goals>
46                            <goal>generate-sources</goal>
47                        </goals>
48                        <configuration>
49                            <yangFilesRootDir>src/main/yang</yangFilesRootDir>
50                            <codeGenerators>
51                                <generator>
52                                    <codeGeneratorClass>
53                                        org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
54                                    </codeGeneratorClass>
55                                    <outputBaseDir>
56                                        target/generated-sources/sal
57                                    </outputBaseDir>
58                                </generator>
59                            </codeGenerators>
60                            <inspectDependencies>true</inspectDependencies>
61                        </configuration>
62                    </execution>
63                </executions>
64                <dependencies>
65                    <dependency>
66                        <groupId>org.opendaylight.yangtools</groupId>
67                        <artifactId>maven-sal-api-gen-plugin</artifactId>
68                        <version>${yang.binding.version}</version>
69                        <type>jar</type>
70                    </dependency>
71                </dependencies>
72            </plugin>
73            <plugin>
74                <groupId>org.apache.felix</groupId>
75                <artifactId>maven-bundle-plugin</artifactId>
76                <version>${maven.bundle.version}</version>
77                <extensions>true</extensions>
78                <configuration>
79                    <instructions>
80                        <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
81                        <Export-Package>
82                            org.opendaylight.bgpcep.programming,
83                            org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.programming.rev130930.*,
84                        </Export-Package>
85                    </instructions>
86                </configuration>
87            </plugin>
88                 </plugins>
89         </build>
90
91         <distributionManagement>
92                 <site>
93                         <id>${project.artifactId}</id>
94                         <name>PROGRAMMING-API Module site</name>
95                         <url>${basedir}/target/site/${project.artifactId}</url>
96                 </site>
97         </distributionManagement>
98
99 </project>