BUG-45 : migrated Origin path attribute to generated source code.
[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-linkstate</artifactId>
40             <version>${project.version}</version>
41                 </dependency>
42                 <dependency>
43                         <groupId>${project.groupId}</groupId>
44                         <artifactId>bgp-concepts</artifactId>
45             <version>${project.version}</version>
46                 </dependency>
47                 <dependency>
48                         <groupId>com.google.guava</groupId>
49                         <artifactId>guava</artifactId>
50                         <version>${guava.version}</version>
51                 </dependency>
52                 <dependency>
53                         <groupId>org.slf4j</groupId>
54                         <artifactId>slf4j-api</artifactId>
55                         <version>${slf4j.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>${yangtools.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                                                         org.opendaylight.protocol.bgp.concepts, 
105                                                         org.opendaylight.protocol.concepts,
106                                                         org.opendaylight.protocol.framework,
107                                                         org.opendaylight.protocol.concepts, 
108                                                         org.opendaylight.protocol.util,
109                                                         com.google.common.primitives, 
110                                                         com.google.common.collect, 
111                                                         org.opendaylight.protocol.bgp.linkstate,
112                                                         com.google.common.base,
113                                                         com.google.guava,
114                                                         org.slf4j,
115                                                 </Import-Package>
116                                                 <Export-Package>
117                                                         org.opendaylight.protocol.bgp.parser,
118                                                 </Export-Package>
119                                         </instructions>
120                                 </configuration>
121                         </plugin>
122                 </plugins>
123         </build>
124
125         <distributionManagement>
126                 <site>
127                         <id>${project.artifactId}</id>
128                         <name>BGP-PARSER-API Module site</name>
129                         <url>${basedir}/target/site/${project.artifactId}</url>
130                 </site>
131         </distributionManagement>
132
133 </project>