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