Add documentation generators
[bgpcep.git] / topology / 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>topology-parent</artifactId>
9                 <version>0.3.0-SNAPSHOT</version>
10         </parent>
11
12         <modelVersion>4.0.0</modelVersion>
13         <artifactId>topology-api</artifactId>
14         <description>Topology 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                 </dependency>
26         <dependency>
27             <groupId>org.opendaylight.yangtools</groupId>
28             <artifactId>yang-binding</artifactId>
29         </dependency>
30         <dependency>
31             <groupId>org.opendaylight.yangtools</groupId>
32             <artifactId>yang-common</artifactId>
33         </dependency>
34         <dependency>
35             <groupId>org.opendaylight.yangtools.model</groupId>
36             <artifactId>ietf-inet-types</artifactId>
37             <version>${ietf.types.version}</version>
38         </dependency>
39         </dependencies>
40
41         <build>
42         <plugins>
43             <plugin>
44                 <groupId>org.opendaylight.yangtools</groupId>
45                 <artifactId>yang-maven-plugin</artifactId>
46                 <version>${yangtools.version}</version>
47                 <executions>
48                     <execution>
49                         <goals>
50                             <goal>generate-sources</goal>
51                         </goals>
52                         <configuration>
53                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
54                             <codeGenerators>
55                                 <generator>
56                                     <codeGeneratorClass>
57                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
58                                     </codeGeneratorClass>
59                                     <outputBaseDir>
60                                         target/generated-sources/sal
61                                     </outputBaseDir>
62                                 </generator>
63                                 <generator>
64                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
65                                     <outputBaseDir>target/generated-sources/site</outputBaseDir>
66                                 </generator>
67                             </codeGenerators>
68                             <inspectDependencies>true</inspectDependencies>
69                         </configuration>
70                     </execution>
71                 </executions>
72                 <dependencies>
73                     <dependency>
74                         <groupId>org.opendaylight.yangtools</groupId>
75                         <artifactId>maven-sal-api-gen-plugin</artifactId>
76                         <version>${yang.binding.version}</version>
77                         <type>jar</type>
78                     </dependency>
79                 </dependencies>
80             </plugin>
81             <plugin>
82                 <groupId>org.apache.felix</groupId>
83                 <artifactId>maven-bundle-plugin</artifactId>
84                 <version>${maven.bundle.version}</version>
85                 <extensions>true</extensions>
86                 <configuration>
87                     <instructions>
88                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
89                         <Export-Package>
90                             org.opendaylight.bgpcep.topology,
91                             org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.ospf.topology.rev131021.*,
92                             org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.ted.rev131021.*,
93                             org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.*,
94                             org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.nt.l3.unicast.igp.topology.rev131021.*,
95                             org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.isis.topology.rev131021.*,
96                         </Export-Package>
97                     </instructions>
98                 </configuration>
99             </plugin>
100         </plugins>
101     </build>
102
103         <distributionManagement>
104                 <site>
105                         <id>${project.artifactId}</id>
106                         <name>TOPOLOGY-API Module site</name>
107                         <url>${basedir}/target/site/${project.artifactId}</url>
108                 </site>
109         </distributionManagement>
110
111 </project>