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>package</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.codehaus.mojo</groupId>
130 <artifactId>build-helper-maven-plugin</artifactId>
131 <version>1.8</version>
134 <id>attach-artifacts</id>
135 <phase>package</phase>
137 <goal>attach-artifact</goal>
142 <file>${java-client}</file>
144 <classifier>full-java-client</classifier>
147 <file>${java-client-sources}</file>
149 <classifier>full-java-client-sources</classifier>
152 <file>${json-client}</file>
154 <classifier>full-json-client</classifier>
157 <file>${json-client-sources}</file>
159 <classifier>full-json-client-sources</classifier>
170 <groupId>org.codehaus.enunciate</groupId>
171 <artifactId>enunciate-core-annotations</artifactId>
172 <version>${enunciate.version}</version>
175 <!-- add dependency on all northbound bundles -->
177 <groupId>org.opendaylight.controller</groupId>
178 <artifactId>connectionmanager.northbound</artifactId>
179 <version>0.1.1-SNAPSHOT</version>
182 <groupId>org.opendaylight.controller</groupId>
183 <artifactId>controllermanager.northbound</artifactId>
184 <version>0.0.1-SNAPSHOT</version>
187 <groupId>org.opendaylight.controller</groupId>
188 <artifactId>flowprogrammer.northbound</artifactId>
189 <version>0.4.1-SNAPSHOT</version>
192 <groupId>org.opendaylight.controller</groupId>
193 <artifactId>hosttracker.northbound</artifactId>
194 <version>0.4.1-SNAPSHOT</version>
197 <groupId>org.opendaylight.controller</groupId>
198 <artifactId>networkconfig.bridgedomain.northbound</artifactId>
199 <version>0.0.2-SNAPSHOT</version>
202 <groupId>org.opendaylight.controller</groupId>
203 <artifactId>networkconfig.neutron.northbound</artifactId>
204 <version>0.4.1-SNAPSHOT</version>
207 <groupId>org.opendaylight.controller</groupId>
208 <artifactId>forwarding.staticrouting.northbound</artifactId>
209 <version>0.4.1-SNAPSHOT</version>
212 <groupId>org.opendaylight.controller</groupId>
213 <artifactId>statistics.northbound</artifactId>
214 <version>0.4.1-SNAPSHOT</version>
217 <groupId>org.opendaylight.controller</groupId>
218 <artifactId>subnets.northbound</artifactId>
219 <version>0.4.1-SNAPSHOT</version>
222 <groupId>org.opendaylight.controller</groupId>
223 <artifactId>switchmanager.northbound</artifactId>
224 <version>0.4.1-SNAPSHOT</version>
227 <groupId>org.opendaylight.controller</groupId>
228 <artifactId>topology.northbound</artifactId>
229 <version>0.4.1-SNAPSHOT</version>
232 <groupId>org.opendaylight.controller</groupId>
233 <artifactId>usermanager.northbound</artifactId>
234 <version>0.0.1-SNAPSHOT</version>