9976e8103257a2bebb861514879da3b68d110356
[bgpcep.git] / bgp / parser-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-parser-api</artifactId>
14         <description>BGP Parser 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>concepts</artifactId>
25             <version>${project.version}</version>
26                 </dependency>
27                 <dependency>
28                         <groupId>${project.groupId}</groupId>
29                         <artifactId>util</artifactId>
30             <version>${project.version}</version>
31                 </dependency>
32                 <dependency>
33                         <groupId>${project.groupId}</groupId>
34                         <artifactId>framework</artifactId>
35             <version>${project.version}</version>
36                 </dependency>
37                 <dependency>
38                         <groupId>${project.groupId}</groupId>
39                         <artifactId>bgp-concepts</artifactId>
40             <version>${project.version}</version>
41                 </dependency>
42                 <dependency>
43                         <groupId>com.google.guava</groupId>
44                         <artifactId>guava</artifactId>
45                         <version>${guava.version}</version>
46                 </dependency>
47                 <dependency>
48                         <groupId>org.slf4j</groupId>
49                         <artifactId>slf4j-api</artifactId>
50                         <version>${slf4j.version}</version>
51         </dependency>
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                                                 <Import-Package>
104                                                         com.google.common.base,
105                                                         com.google.common.collect,
106                                                         com.google.common.primitives,
107                                                         org.opendaylight.protocol.concepts,
108                                                         org.opendaylight.protocol.framework,
109                                                         org.opendaylight.protocol.util,
110                                                         org.slf4j,
111                                                 </Import-Package>
112                                                 <Export-Package>
113                             org.opendaylight.protocol.bgp.parser,
114                             org.opendaylight.protocol.bgp.parser.message,
115                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130918.*,
116                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev130918.*,
117                                                 </Export-Package>
118                                         </instructions>
119                                 </configuration>
120                         </plugin>
121                 </plugins>
122         </build>
123
124         <distributionManagement>
125                 <site>
126                         <id>${project.artifactId}</id>
127                         <name>BGP-PARSER-API Module site</name>
128                         <url>${basedir}/target/site/${project.artifactId}</url>
129                 </site>
130         </distributionManagement>
131
132 </project>