812364d3588118abd0eeefb832019b5666f3f03d
[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         </dependency>
39
40                  <!--
41             FIXME: this is in support of the generated code. This should not
42                    be here, but the plugin should bring it in.
43         -->
44         <dependency>
45             <groupId>org.opendaylight.yangtools</groupId>
46             <artifactId>yang-binding</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>org.opendaylight.yangtools</groupId>
50             <artifactId>yang-common</artifactId>
51         </dependency>
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
63         <!-- Testing dependencies -->
64         <dependency>
65             <groupId>junit</groupId>
66             <artifactId>junit</artifactId>
67         </dependency>
68         </dependencies>
69
70         <build>
71         <plugins>
72                         <plugin>
73                 <groupId>org.opendaylight.yangtools</groupId>
74                 <artifactId>yang-maven-plugin</artifactId>
75                 <version>${yangtools.version}</version>
76                 <executions>
77                     <execution>
78                         <goals>
79                             <goal>generate-sources</goal>
80                         </goals>
81                         <configuration>
82                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
83                             <codeGenerators>
84                                 <generator>
85                                     <codeGeneratorClass>
86                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
87                                     </codeGeneratorClass>
88                                     <outputBaseDir>
89                                         target/generated-sources/sal
90                                     </outputBaseDir>
91                                 </generator>
92                                 <generator>
93                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
94                                     <outputBaseDir>target/generated-sources/site</outputBaseDir>
95                                 </generator>
96                             </codeGenerators>
97                             <inspectDependencies>true</inspectDependencies>
98                         </configuration>
99                     </execution>
100                 </executions>
101                 <dependencies>
102                     <dependency>
103                         <groupId>org.opendaylight.yangtools</groupId>
104                         <artifactId>maven-sal-api-gen-plugin</artifactId>
105                         <version>${yang.binding.version}</version>
106                         <type>jar</type>
107                     </dependency>
108                 </dependencies>
109             </plugin>
110             <plugin>
111                                 <groupId>org.apache.felix</groupId>
112                                 <artifactId>maven-bundle-plugin</artifactId>
113                                 <version>${maven.bundle.version}</version>
114                                 <extensions>true</extensions>
115                                 <configuration>
116                                         <instructions>
117                                                 <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
118                                                 <Export-Package>
119                             org.opendaylight.protocol.concepts,
120                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.iana.rev130816.*,
121                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ieee754.rev130819.*,
122                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nps.concepts.rev130930.*,
123                                                 </Export-Package>
124                                         </instructions>
125                                 </configuration>
126                         </plugin>
127                 </plugins>
128         </build>
129
130         <distributionManagement>
131                 <site>
132                         <id>${project.artifactId}</id>
133                         <name>NPS-CONCEPTS Module site</name>
134                         <url>${basedir}/target/site/${project.artifactId}</url>
135                 </site>
136         </distributionManagement>
137
138 </project>