7d597c94a358637843f06b9c7086e46473e7f499
[bgpcep.git] / pcep / 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-api</artifactId>
14         <description>PCE Protocol 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>framework</artifactId>
25             <version>${project.version}</version>
26                 </dependency>
27                 <dependency>
28                         <groupId>${project.groupId}</groupId>
29                         <artifactId>concepts</artifactId>
30             <version>${project.version}</version>
31                 </dependency>
32                 <dependency>
33                         <groupId>${project.groupId}</groupId>
34                         <artifactId>util</artifactId>
35             <version>${project.version}</version>
36                 </dependency>
37                 <dependency>
38                         <groupId>org.slf4j</groupId>
39                         <artifactId>slf4j-api</artifactId>
40                         <version>${slf4j.version}</version>
41                 </dependency>
42                 <dependency>
43                         <groupId>${project.groupId}</groupId>
44                         <artifactId>mockito-configuration</artifactId>
45             <version>${project.version}</version>
46                         <scope>test</scope>
47         </dependency>
48
49         <!--
50             FIXME: this is in support of the generated code. This should not
51                    be here, but the plugin should bring it in.
52         -->
53         <dependency>
54             <groupId>org.opendaylight.yangtools</groupId>
55             <artifactId>yang-binding</artifactId>
56             <version>${yangtools.version}</version>
57         </dependency>
58         <dependency>
59             <groupId>org.opendaylight.yangtools</groupId>
60             <artifactId>yang-common</artifactId>
61             <version>${yangtools.version}</version>
62         </dependency>
63
64         <!--
65              FIXME: these are IETF models which are pre-generated in SAL infra.
66                     This should not be here, but rather should somehow be
67                     discovered by the plugin.
68         -->
69         <dependency>
70             <groupId>org.opendaylight.yangtools.model</groupId>
71             <artifactId>ietf-inet-types</artifactId>
72             <version>${ietf.types.version}</version>
73         </dependency>
74         <dependency>
75             <groupId>org.opendaylight.yangtools.model</groupId>
76             <artifactId>ietf-topology</artifactId>
77             <version>2013.07.12-SNAPSHOT</version>
78         </dependency>
79         </dependencies>
80
81         <build>
82         <plugins>
83
84            <plugin>
85                <groupId>org.opendaylight.yangtools</groupId>
86                <artifactId>yang-maven-plugin</artifactId>
87                <version>${yangtools.version}</version>
88                <executions>
89                    <execution>
90                        <goals>
91                            <goal>generate-sources</goal>
92                        </goals>
93                        <configuration>
94                            <yangFilesRootDir>src/main/yang</yangFilesRootDir>
95                            <codeGenerators>
96                                <generator>
97                                    <codeGeneratorClass>
98                                        org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
99                                    </codeGeneratorClass>
100                                    <outputBaseDir>
101                                        target/generated-sources/sal
102                                    </outputBaseDir>
103                                </generator>
104                            </codeGenerators>
105                            <inspectDependencies>true</inspectDependencies>
106                        </configuration>
107                    </execution>
108                </executions>
109                <dependencies>
110                    <dependency>
111                        <groupId>org.opendaylight.yangtools</groupId>
112                        <artifactId>maven-sal-api-gen-plugin</artifactId>
113                        <version>${yangtools.version}</version>
114                        <type>jar</type>
115                    </dependency>
116                </dependencies>
117            </plugin>
118            <plugin>
119                <groupId>org.apache.felix</groupId>
120                <artifactId>maven-bundle-plugin</artifactId>
121                <version>${maven.bundle.version}</version>
122                <extensions>true</extensions>
123                <configuration>
124                    <instructions>
125                        <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
126                        <Export-Package>
127                            org.opendaylight.protocol.pcep,
128                            org.opendaylight.protocol.pcep.concepts,
129                            org.opendaylight.protocol.pcep.message,
130                            org.opendaylight.protocol.pcep.object,
131                            org.opendaylight.protocol.pcep.subobject,
132                            org.opendaylight.protocol.pcep.tlv,
133                        </Export-Package>
134                        <Import-Package>
135                            org.opendaylight.protocol.concepts,
136                            org.opendaylight.protocol.framework,
137                            org.opendaylight.protocol.util,
138                            com.google.common.*,
139                            javax.management,
140                            org.slf4j.*
141                        </Import-Package>
142                    </instructions>
143                </configuration>
144            </plugin>
145                 </plugins>
146         </build>
147
148         <distributionManagement>
149                 <site>
150                         <id>${project.artifactId}</id>
151                         <name>PCEP-API Module site</name>
152                         <url>${basedir}/target/site/${project.artifactId}</url>
153                 </site>
154         </distributionManagement>
155
156 </project>