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