Rename artifacts
[bgpcep.git] / pcep / 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>pcep-parent</artifactId>
9                 <version>1.0</version>
10         </parent>
11
12         <modelVersion>4.0.0</modelVersion>
13         <artifactId>pcep-api</artifactId>
14         <description>PCE Protocol 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>framework</artifactId>
25                         <version>1.0</version>
26                 </dependency>
27                 <dependency>
28                         <groupId>${project.groupId}</groupId>
29                         <artifactId>concepts</artifactId>
30                         <version>1.0</version>
31                 </dependency>
32                 <dependency>
33                         <groupId>org.slf4j</groupId>
34                         <artifactId>slf4j-api</artifactId>
35                         <version>${slf4j.version}</version>
36                 </dependency>
37                 <dependency>
38                         <groupId>${project.groupId}</groupId>
39                         <artifactId>mockito-configuration</artifactId>
40                         <version>1.0</version>
41                         <scope>test</scope>
42         </dependency>
43
44         <!--
45             FIXME: this is in support of the generated code. This should not
46                    be here, but the plugin should bring it in.
47         -->
48         <dependency>
49             <groupId>org.opendaylight.controller</groupId>
50             <artifactId>yang-binding</artifactId>
51             <version>0.5.4-SNAPSHOT</version>
52         </dependency>
53         <dependency>
54             <groupId>org.opendaylight.controller</groupId>
55             <artifactId>yang-common</artifactId>
56             <version>0.5.4-SNAPSHOT</version>
57         </dependency>
58
59         <!--
60              FIXME: these are IETF models which are pre-generated in SAL infra.
61                     This should not be here, but rather should somehow be
62                     discovered by the plugin.
63         -->
64         <dependency>
65             <groupId>org.opendaylight.controller</groupId>
66             <artifactId>ietf-inet-types</artifactId>
67             <version>2010.09.24-SNAPSHOT</version>
68         </dependency>
69         <!--dependency>
70             <groupId>org.opendaylight.controller</groupId>
71             <artifactId>ietf-yang-types</artifactId>
72             <version>2010.09.24-SNAPSHOT</version>
73         </dependency-->
74         </dependencies>
75
76         <build>
77         <plugins>
78             <!-- Disabled until the plugin actually works
79             <plugin>
80                 <groupId>org.opendaylight.controller</groupId>
81                 <artifactId>yang-maven-plugin</artifactId>
82                 <version>0.5.4-SNAPSHOT</version>
83                 <executions>
84                     <execution>
85                         <goals>
86                             <goal>generate-sources</goal>
87                         </goals>
88                         <configuration>
89                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
90                             <codeGenerators>
91                                 <generator>
92                                     <codeGeneratorClass>
93                                         org.opendaylight.controller.maven.sal.api.gen.plugin.CodeGeneratorImpl
94                                     </codeGeneratorClass>
95                                     <outputBaseDir>
96                                         target/generated-sources/sal
97                                     </outputBaseDir>
98                                 </generator>
99                             </codeGenerators>
100                             <inspectDependencies>true</inspectDependencies>
101                         </configuration>
102                     </execution>
103                 </executions>
104
105                 <dependencies>
106                     <dependency>
107                         <groupId>org.opendaylight.controller</groupId>
108                         <artifactId>maven-sal-api-gen-plugin</artifactId>
109                         <version>0.5.4-SNAPSHOT</version>
110                         <type>jar</type>
111                     </dependency>
112                 </dependencies>
113             </plugin>
114             -->
115                         <plugin>
116                                 <groupId>org.apache.felix</groupId>
117                                 <artifactId>maven-bundle-plugin</artifactId>
118                                 <version>${maven.bundle.version}</version>
119                                 <extensions>true</extensions>
120                                 <configuration>
121                                         <instructions>
122                                                 <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
123                                                 <Export-Package>
124                                                         org.opendaylight.protocol.pcep,
125                                                         org.opendaylight.protocol.pcep.concepts,
126                                                         org.opendaylight.protocol.pcep.message,
127                                                         org.opendaylight.protocol.pcep.object,
128                                                         org.opendaylight.protocol.pcep.subobject,
129                                                         org.opendaylight.protocol.pcep.tlv,
130                                                 </Export-Package>
131                                                 <Import-Package>
132                                                         org.opendaylight.protocol.concepts,
133                             org.opendaylight.protocol.framework,
134                             org.opendaylight.protocol.util,
135                                                         com.google.common.*,
136                                                         javax.management,
137                                                         org.slf4j.*
138                                                 </Import-Package>
139                                         </instructions>
140                                 </configuration>
141                         </plugin>
142                 </plugins>
143         </build>
144
145         <distributionManagement>
146                 <site>
147                         <id>${project.artifactId}</id>
148                         <name>PCEP-API Module site</name>
149                         <url>${basedir}/target/site/${project.artifactId}</url>
150                 </site>
151         </distributionManagement>
152
153 </project>