1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.opendaylight.controller</groupId>
6 <artifactId>commons.opendaylight</artifactId>
7 <version>1.4.1-SNAPSHOT</version>
8 <relativePath>../../commons/opendaylight</relativePath>
11 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
12 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
13 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
17 <artifactId>northbound.client</artifactId>
18 <version>0.0.1-SNAPSHOT</version>
19 <packaging>pom</packaging>
22 <docs.output.dir>${project.build.directory}/rest-api-docs</docs.output.dir>
23 <java-client>${project.build.directory}/enunciate/build/java-client/full-client.jar</java-client>
24 <java-client-sources>${project.build.directory}/enunciate/build/java-client/full-client-sources.jar</java-client-sources>
25 <json-client>${project.build.directory}/enunciate/build/java-client/full-json-client.jar</json-client>
26 <json-client-sources>${project.build.directory}/enunciate/build/java-client/full-json-client-sources.jar</json-client-sources>
32 <groupId>org.codehaus.enunciate</groupId>
33 <artifactId>maven-enunciate-plugin</artifactId>
34 <version>${enunciate.version}</version>
38 <groupId>org.apache.maven.plugins</groupId>
39 <artifactId>maven-antrun-plugin</artifactId>
40 <version>1.5</version>
43 <phase>install</phase>
51 <taskdef resource="net/sf/antcontrib/antcontrib.properties"
52 classpathref="maven.plugin.classpath" />
53 <patternset id="rest.paths">
54 <include name="**/target/site/wsdocs/**"/>
55 <exclude name="**/java-client/**"/>
58 <echo message="======== Assembling enunciate docs ========"/>
59 <!-- cleanup existing generated files -->
60 <delete dir="${docs.output.dir}"/>
61 <delete file="${docs.output.dir}.zip"/>
62 <mkdir dir="${docs.output.dir}"/>
63 <!-- copy enunciate docs to stage -->
64 <copy todir="${docs.output.dir}">
65 <fileset dir="${basedir}/../../..">
66 <patternset refid="rest.paths"/>
69 from="^(.*)/([^/]+)/target/site/wsdocs/(.*)$$"
72 <!-- generate index.html -->
73 <!-- append header -->
74 <echo file="${docs.output.dir}/index.html" append="true">
78 <title> OpenDaylight REST API Documentation </title>
81 <h2>OpenDaylight REST API Documentation</h2>
82 <p> OpenDaylight supports the following <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer">Representational State Transfer (REST)</a> APIs: </p>
86 <dirset id="nbset" dir="${docs.output.dir}">
89 <pathconvert pathsep="&#36;{line.separator}"
92 <echo file="${docs.output.dir}/index.html"
95 <replaceregexp file="${docs.output.dir}/index.html"
96 match="^\${docs.output.dir}/(.*)$"
97 replace="&lt;li&gt;&lt;a href=\1/index.html&gt; \1 &lt;/a&gt;&lt;/li&gt;"
100 <!-- append footer -->
101 <echo file="${docs.output.dir}/index.html" append="true">
104 <i>---</i>
109 <!-- archive all the docs excluding whatever is not needed -->
110 <echo message="======== Archiving enunciate docs ========"/>
111 <zip destfile="${docs.output.dir}.zip">
112 <zipfileset dir="${docs.output.dir}"/>
115 <echo message="======== Build successful ========"/>
116 <echo message="REST docs archive: ${docs.output.dir}.zip"/>
121 <groupId>ant-contrib</groupId>
122 <artifactId>ant-contrib</artifactId>
123 <version>20020829</version>
129 <groupId>org.apache.maven.plugins</groupId>
130 <artifactId>maven-install-plugin</artifactId>
131 <version>2.5</version>
133 <packaging>jar</packaging>
134 <groupId>${project.groupId}</groupId>
135 <version>${project.version}</version>
139 <!-- skip default install -->
140 <id>default-install</id>
141 <phase>install</phase>
150 <!-- install full java client -->
151 <id>install-full-client</id>
152 <phase>install</phase>
154 <goal>install-file</goal>
157 <artifactId>${project.artifactId}.full-client</artifactId>
158 <file>${java-client}</file>
159 <sources>${java-client-sources}</sources>
163 <!-- install full java json client -->
164 <id>install-full-json-client</id>
165 <phase>install</phase>
167 <goal>install-file</goal>
170 <artifactId>${project.artifactId}.full-json-client</artifactId>
171 <file>${json-client}</file>
172 <sources>${json-client-sources}</sources>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-deploy-plugin</artifactId>
181 <version>2.5</version>
183 <packaging>jar</packaging>
184 <generatePom>true</generatePom>
185 <groupId>${project.groupId}</groupId>
186 <version>${project.version}</version>
187 <url>${project.distributionManagement.repository.url}</url>
191 <!-- skip default deploy -->
192 <id>default-deploy</id>
193 <phase>deploy</phase>
202 <!-- deploy full java client -->
203 <id>deploy-full-client</id>
204 <phase>deploy</phase>
206 <goal>deploy-file</goal>
209 <artifactId>${project.artifactId}.full-client</artifactId>
210 <file>${java-client}</file>
211 <sources>${java-client-sources}</sources>
215 <!-- deploy full java json client -->
216 <id>deploy-full-json-client</id>
217 <phase>deploy</phase>
219 <goal>deploy-file</goal>
222 <artifactId>${project.artifactId}.full-json-client</artifactId>
223 <file>${json-client}</file>
224 <sources>${json-client-sources}</sources>
234 <groupId>org.codehaus.enunciate</groupId>
235 <artifactId>enunciate-core-annotations</artifactId>
236 <version>${enunciate.version}</version>
239 <!-- add dependency on all northbound bundles -->
241 <groupId>org.opendaylight.controller</groupId>
242 <artifactId>connectionmanager.northbound</artifactId>
243 <version>0.1.1-SNAPSHOT</version>
246 <groupId>org.opendaylight.controller</groupId>
247 <artifactId>controllermanager.northbound</artifactId>
248 <version>0.0.1-SNAPSHOT</version>
251 <groupId>org.opendaylight.controller</groupId>
252 <artifactId>flowprogrammer.northbound</artifactId>
253 <version>0.4.1-SNAPSHOT</version>
256 <groupId>org.opendaylight.controller</groupId>
257 <artifactId>hosttracker.northbound</artifactId>
258 <version>0.4.1-SNAPSHOT</version>
261 <groupId>org.opendaylight.controller</groupId>
262 <artifactId>networkconfig.bridgedomain.northbound</artifactId>
263 <version>0.0.2-SNAPSHOT</version>
266 <groupId>org.opendaylight.controller</groupId>
267 <artifactId>networkconfig.neutron.northbound</artifactId>
268 <version>0.4.1-SNAPSHOT</version>
271 <groupId>org.opendaylight.controller</groupId>
272 <artifactId>forwarding.staticrouting.northbound</artifactId>
273 <version>0.4.1-SNAPSHOT</version>
276 <groupId>org.opendaylight.controller</groupId>
277 <artifactId>statistics.northbound</artifactId>
278 <version>0.4.1-SNAPSHOT</version>
281 <groupId>org.opendaylight.controller</groupId>
282 <artifactId>subnets.northbound</artifactId>
283 <version>0.4.1-SNAPSHOT</version>
286 <groupId>org.opendaylight.controller</groupId>
287 <artifactId>switchmanager.northbound</artifactId>
288 <version>0.4.1-SNAPSHOT</version>
291 <groupId>org.opendaylight.controller</groupId>
292 <artifactId>topology.northbound</artifactId>
293 <version>0.4.1-SNAPSHOT</version>
296 <groupId>org.opendaylight.controller</groupId>
297 <artifactId>usermanager.northbound</artifactId>
298 <version>0.0.1-SNAPSHOT</version>