Merge "Increase timeout for waiting for broker service in sal-binding-it."
[controller.git] / opendaylight / northbound / java-client / pom.xml
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>
4   <parent>
5     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>commons.opendaylight</artifactId>
7     <version>1.4.2-SNAPSHOT</version>
8     <relativePath>../../commons/opendaylight</relativePath>
9   </parent>
10   <scm>
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>
14     <tag>HEAD</tag>
15   </scm>
16
17   <artifactId>northbound.client</artifactId>
18   <version>0.0.1-SNAPSHOT</version>
19   <packaging>pom</packaging>
20
21   <properties>
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>
27   </properties>
28
29   <build>
30     <plugins>
31       <plugin>
32         <groupId>org.codehaus.enunciate</groupId>
33         <artifactId>maven-enunciate-plugin</artifactId>
34         <version>${enunciate.version}</version>
35       </plugin>
36
37       <plugin>
38         <groupId>org.apache.maven.plugins</groupId>
39         <artifactId>maven-antrun-plugin</artifactId>
40         <version>1.5</version>
41         <executions>
42           <execution>
43             <phase>package</phase>
44             <goals>
45               <goal>run</goal>
46             </goals>
47           </execution>
48         </executions>
49         <configuration>
50           <target>
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/**"/>
56             </patternset>
57
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"/>
67               </fileset>
68               <mapper type="regexp"
69                       from="^(.*)/([^/]+)/target/site/wsdocs/(.*)$$"
70                       to="\2/\3"/>
71             </copy>
72             <!-- generate index.html -->
73             <!-- append header -->
74             <echo file="${docs.output.dir}/index.html" append="true">
75               &lt;![CDATA[
76               &lt;html&gt;
77               &lt;head&gt;
78               &lt;title&gt; OpenDaylight REST API Documentation &lt;/title&gt;
79               &lt;/head&gt;
80               &lt;body&gt;
81               &lt;h2&gt;OpenDaylight REST API Documentation&lt;/h2&gt;
82               &lt;p&gt; OpenDaylight supports the following &lt;a href="http://en.wikipedia.org/wiki/Representational_State_Transfer"&gt;Representational State Transfer (REST)&lt;/a&gt; APIs: &lt;/p&gt;
83               &lt;h4&gt;
84               ]]&gt;
85             </echo>
86             <dirset id="nbset" dir="${docs.output.dir}">
87               <include name="*"/>
88             </dirset>
89             <pathconvert pathsep="&amp;#36;{line.separator}"
90                          property="nbs"
91                          refid="nbset"/>
92             <echo file="${docs.output.dir}/index.html"
93                   append="true"
94                   message="${nbs}"/>
95             <replaceregexp file="${docs.output.dir}/index.html"
96                            match="^\${docs.output.dir}/(.*)$"
97                            replace="&amp;lt;li&amp;gt;&amp;lt;a href=\1/index.html&amp;gt; \1 &amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;"
98                            byline="true"/>
99
100             <!-- append footer -->
101             <echo file="${docs.output.dir}/index.html" append="true">
102               &lt;![CDATA[
103               &lt;/h4&gt;
104               &lt;i&gt;---&lt;/i&gt;
105               &lt;/body&gt;
106               &lt;/html&gt;
107               ]]&gt;
108             </echo>
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}"/>
113             </zip>
114
115             <echo message="======== Build successful ========"/>
116             <echo message="REST docs archive: ${docs.output.dir}.zip"/>
117           </target>
118         </configuration>
119         <dependencies>
120           <dependency>
121             <groupId>ant-contrib</groupId>
122             <artifactId>ant-contrib</artifactId>
123             <version>20020829</version>
124           </dependency>
125         </dependencies>
126       </plugin>
127
128       <plugin>
129         <groupId>org.codehaus.mojo</groupId>
130         <artifactId>build-helper-maven-plugin</artifactId>
131         <version>1.8</version>
132         <executions>
133           <execution>
134             <id>attach-artifacts</id>
135             <phase>package</phase>
136             <goals>
137               <goal>attach-artifact</goal>
138             </goals>
139             <configuration>
140               <artifacts>
141                 <artifact>
142                   <file>${java-client}</file>
143                   <type>jar</type>
144                   <classifier>full-java-client</classifier>
145                 </artifact>
146                 <artifact>
147                   <file>${java-client-sources}</file>
148                   <type>jar</type>
149                   <classifier>full-java-client-sources</classifier>
150                 </artifact>
151                 <artifact>
152                   <file>${json-client}</file>
153                   <type>jar</type>
154                   <classifier>full-json-client</classifier>
155                 </artifact>
156                 <artifact>
157                   <file>${json-client-sources}</file>
158                   <type>jar</type>
159                   <classifier>full-json-client-sources</classifier>
160                 </artifact>
161               </artifacts>
162             </configuration>
163           </execution>
164         </executions>
165       </plugin>
166     </plugins>
167   </build>
168   <dependencies>
169     <dependency>
170       <groupId>org.codehaus.enunciate</groupId>
171       <artifactId>enunciate-core-annotations</artifactId>
172     </dependency>
173
174     <!-- add dependency on all northbound bundles -->
175     <dependency>
176       <groupId>org.opendaylight.controller</groupId>
177       <artifactId>connectionmanager.northbound</artifactId>
178     </dependency>
179     <dependency>
180       <groupId>org.opendaylight.controller</groupId>
181       <artifactId>controllermanager.northbound</artifactId>
182     </dependency>
183     <dependency>
184       <groupId>org.opendaylight.controller</groupId>
185       <artifactId>flowprogrammer.northbound</artifactId>
186     </dependency>
187     <dependency>
188       <groupId>org.opendaylight.controller</groupId>
189       <artifactId>hosttracker.northbound</artifactId>
190     </dependency>
191     <dependency>
192       <groupId>org.opendaylight.controller</groupId>
193       <artifactId>networkconfig.bridgedomain.northbound</artifactId>
194     </dependency>
195     <dependency>
196       <groupId>org.opendaylight.controller</groupId>
197       <artifactId>networkconfig.neutron.northbound</artifactId>
198     </dependency>
199     <dependency>
200       <groupId>org.opendaylight.controller</groupId>
201       <artifactId>forwarding.staticrouting.northbound</artifactId>
202     </dependency>
203     <dependency>
204       <groupId>org.opendaylight.controller</groupId>
205       <artifactId>statistics.northbound</artifactId>
206     </dependency>
207     <dependency>
208       <groupId>org.opendaylight.controller</groupId>
209       <artifactId>subnets.northbound</artifactId>
210     </dependency>
211     <dependency>
212       <groupId>org.opendaylight.controller</groupId>
213       <artifactId>switchmanager.northbound</artifactId>
214     </dependency>
215     <dependency>
216       <groupId>org.opendaylight.controller</groupId>
217       <artifactId>topology.northbound</artifactId>
218     </dependency>
219     <dependency>
220       <groupId>org.opendaylight.controller</groupId>
221       <artifactId>usermanager.northbound</artifactId>
222     </dependency>
223   </dependencies>
224 </project>