BUG-99: fix OSGi errors
[bgpcep.git] / bgp / concepts / 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-concepts</artifactId>
14         <description>Basic BGP concepts</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>concepts</artifactId>
25                         <version>${project.version}</version>
26                 </dependency>
27                 <dependency>
28                         <groupId>com.google.guava</groupId>
29                         <artifactId>guava</artifactId>
30                         <version>${guava.version}</version>
31                 </dependency>
32                  <!--
33             FIXME: this is in support of the generated code. This should not
34                    be here, but the plugin should bring it in.
35         -->
36         <dependency>
37             <groupId>org.opendaylight.yangtools</groupId>
38             <artifactId>yang-binding</artifactId>
39             <version>${yangtools.version}</version>
40         </dependency>
41         <dependency>
42             <groupId>org.opendaylight.yangtools</groupId>
43             <artifactId>yang-common</artifactId>
44             <version>${yangtools.version}</version>
45         </dependency>
46
47         <!--
48              FIXME: these are IETF models which are pre-generated in SAL infra.
49                     This should not be here, but rather should somehow be
50                     discovered by the plugin.
51         -->
52         <dependency>
53             <groupId>org.opendaylight.yangtools.model</groupId>
54             <artifactId>ietf-inet-types</artifactId>
55             <version>${ietf.types.version}</version>
56         </dependency>
57         </dependencies>
58
59         <build>
60                 <plugins>
61                         <plugin>
62                <groupId>org.opendaylight.yangtools</groupId>
63                <artifactId>yang-maven-plugin</artifactId>
64                <version>${yangtools.version}</version>
65                <executions>
66                    <execution>
67                        <goals>
68                            <goal>generate-sources</goal>
69                        </goals>
70                        <configuration>
71                            <yangFilesRootDir>src/main/yang</yangFilesRootDir>
72                            <codeGenerators>
73                                <generator>
74                                    <codeGeneratorClass>
75                                        org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
76                                    </codeGeneratorClass>
77                                    <outputBaseDir>
78                                        target/generated-sources/sal
79                                    </outputBaseDir>
80                                </generator>
81                            </codeGenerators>
82                            <inspectDependencies>true</inspectDependencies>
83                        </configuration>
84                    </execution>
85                </executions>
86                <dependencies>
87                    <dependency>
88                        <groupId>org.opendaylight.yangtools</groupId>
89                        <artifactId>maven-sal-api-gen-plugin</artifactId>
90                        <version>${code.generator.version}</version>
91                        <type>jar</type>
92                    </dependency>
93                </dependencies>
94            </plugin>
95                         <plugin>
96                                 <groupId>org.apache.felix</groupId>
97                                 <artifactId>maven-bundle-plugin</artifactId>
98                                 <version>${maven.bundle.version}</version>
99                                 <extensions>true</extensions>
100                                 <configuration>
101                                         <instructions>
102                                                 <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
103                                                 <Export-Package>
104                             org.opendaylight.protocol.bgp.concepts,
105                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.*,
106                                                 </Export-Package>
107                                                 <Import-Package>
108                                                         com.google.common.base,
109                                                         org.opendaylight.protocol.concepts,
110                                                 </Import-Package>
111                                         </instructions>
112                                 </configuration>
113                         </plugin>
114                 </plugins>
115         </build>
116
117         <distributionManagement>
118                 <site>
119                         <id>${project.artifactId}</id>
120                         <name>BGP-CONCEPTS Module site</name>
121                         <url>${basedir}/target/site/${project.artifactId}</url>
122                 </site>
123         </distributionManagement>
124
125 </project>