Bumped controller version by minor for next release cycle.
[controller.git] / opendaylight / adsal / 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>enunciate-parent</artifactId>
7     <version>1.6.0-SNAPSHOT</version>
8     <relativePath>../../../commons/enunciate-parent</relativePath>
9   </parent>
10
11   <artifactId>northbound.client</artifactId>
12   <version>0.2.0-SNAPSHOT</version>
13   <packaging>pom</packaging>
14
15   <properties>
16     <docs.output.dir>${project.build.directory}/rest-api-docs</docs.output.dir>
17     <java-client>${project.build.directory}/enunciate/build/java-client/full-client.jar</java-client>
18     <java-client-sources>${project.build.directory}/enunciate/build/java-client/full-client-sources.jar</java-client-sources>
19   </properties>
20
21   <dependencies>
22     <dependency>
23       <groupId>org.codehaus.enunciate</groupId>
24       <artifactId>enunciate-core-annotations</artifactId>
25     </dependency>
26
27     <!-- add dependency on all northbound bundles -->
28     <dependency>
29       <groupId>org.opendaylight.controller</groupId>
30       <artifactId>connectionmanager.northbound</artifactId>
31     </dependency>
32     <dependency>
33       <groupId>org.opendaylight.controller</groupId>
34       <artifactId>controllermanager.northbound</artifactId>
35     </dependency>
36     <dependency>
37       <groupId>org.opendaylight.controller</groupId>
38       <artifactId>flowprogrammer.northbound</artifactId>
39     </dependency>
40     <dependency>
41       <groupId>org.opendaylight.controller</groupId>
42       <artifactId>forwarding.staticrouting.northbound</artifactId>
43     </dependency>
44     <dependency>
45       <groupId>org.opendaylight.controller</groupId>
46       <artifactId>hosttracker.northbound</artifactId>
47     </dependency>
48     <dependency>
49       <groupId>org.opendaylight.controller</groupId>
50       <artifactId>networkconfig.bridgedomain.northbound</artifactId>
51     </dependency>
52     <dependency>
53       <groupId>org.opendaylight.controller</groupId>
54       <artifactId>statistics.northbound</artifactId>
55     </dependency>
56     <dependency>
57       <groupId>org.opendaylight.controller</groupId>
58       <artifactId>subnets.northbound</artifactId>
59     </dependency>
60     <dependency>
61       <groupId>org.opendaylight.controller</groupId>
62       <artifactId>switchmanager.northbound</artifactId>
63     </dependency>
64     <dependency>
65       <groupId>org.opendaylight.controller</groupId>
66       <artifactId>topology.northbound</artifactId>
67     </dependency>
68     <dependency>
69       <groupId>org.opendaylight.controller</groupId>
70       <artifactId>usermanager.northbound</artifactId>
71     </dependency>
72   </dependencies>
73
74   <build>
75     <plugins>
76
77       <plugin>
78         <groupId>org.apache.maven.plugins</groupId>
79         <artifactId>maven-antrun-plugin</artifactId>
80         <configuration>
81           <target>
82             <taskdef classpathref="maven.plugin.classpath" resource="net/sf/antcontrib/antcontrib.properties"></taskdef>
83             <patternset id="rest.paths">
84               <include name="**/target/site/wsdocs/**"></include>
85               <exclude name="**/java-client/**"></exclude>
86             </patternset>
87
88             <echo message="======== Assembling enunciate docs ========"></echo>
89             <!-- cleanup existing generated files -->
90             <delete dir="${docs.output.dir}"></delete>
91             <delete file="${docs.output.dir}.zip"></delete>
92             <mkdir dir="${docs.output.dir}"></mkdir>
93             <!-- copy enunciate docs to stage -->
94             <copy todir="${docs.output.dir}">
95               <fileset dir="${basedir}/../../..">
96                 <patternset refid="rest.paths"></patternset>
97               </fileset>
98               <mapper from="^(.*)/([^/]+)/target/site/wsdocs/(.*)$$" to="\2/\3" type="regexp"></mapper>
99             </copy>
100             <!-- Remove Swagger doc link from enunciate generated index.html -->
101             <replaceregexp byline="false" match="&lt;h2&gt;Swagger&lt;/h2&gt;${line.separator}\s*&lt;p&gt;${line.separator}.*${line.separator}\s*&lt;/p&gt;" replace="">
102               <fileset dir="${docs.output.dir}">
103                 <include name="**/index.html"></include>
104               </fileset>
105             </replaceregexp>
106             <!-- generate index.html -->
107             <!-- append header -->
108             <echo append="true" file="${docs.output.dir}/index.html">&lt;![CDATA[
109               &lt;html&gt;
110               &lt;head&gt;
111               &lt;title&gt; OpenDaylight REST API Documentation &lt;/title&gt;
112               &lt;/head&gt;
113               &lt;body&gt;
114               &lt;h2&gt;OpenDaylight REST API Documentation&lt;/h2&gt;
115               &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;
116               &lt;h4&gt;
117               ]]&gt;</echo>
118             <dirset dir="${docs.output.dir}" id="nbset">
119               <include name="*"></include>
120             </dirset>
121             <pathconvert pathsep="&amp;#36;{line.separator}" property="nbs" refid="nbset"></pathconvert>
122             <echo append="true" file="${docs.output.dir}/index.html" message="${nbs}"></echo>
123             <replaceregexp byline="true" file="${docs.output.dir}/index.html" match="^\${docs.output.dir}/(.*)$" 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;"></replaceregexp>
124
125             <!-- append footer -->
126             <echo append="true" file="${docs.output.dir}/index.html">&lt;![CDATA[
127               &lt;/h4&gt;
128               &lt;i&gt;---&lt;/i&gt;
129               &lt;/body&gt;
130               &lt;/html&gt;
131               ]]&gt;</echo>
132             <!-- archive all the docs excluding whatever is not needed -->
133             <echo message="======== Archiving enunciate docs ========"></echo>
134             <zip destfile="${docs.output.dir}.zip">
135               <zipfileset dir="${docs.output.dir}"></zipfileset>
136             </zip>
137
138             <echo message="======== Build successful ========"></echo>
139             <echo message="REST docs archive: ${docs.output.dir}.zip"></echo>
140           </target>
141         </configuration>
142         <dependencies>
143           <dependency>
144             <groupId>ant-contrib</groupId>
145             <artifactId>ant-contrib</artifactId>
146             <version>20020829</version>
147           </dependency>
148         </dependencies>
149         <executions>
150           <execution>
151             <goals>
152               <goal>run</goal>
153             </goals>
154             <phase>package</phase>
155           </execution>
156         </executions>
157       </plugin>
158
159       <plugin>
160         <groupId>org.codehaus.mojo</groupId>
161         <artifactId>build-helper-maven-plugin</artifactId>
162         <executions>
163           <execution>
164             <id>attach-artifacts</id>
165             <goals>
166               <goal>attach-artifact</goal>
167             </goals>
168             <phase>package</phase>
169             <configuration>
170               <artifacts>
171                 <artifact>
172                   <file>${java-client}</file>
173                   <type>jar</type>
174                   <classifier>full-java-client</classifier>
175                 </artifact>
176                 <artifact>
177                   <file>${java-client-sources}</file>
178                   <type>jar</type>
179                   <classifier>full-java-client-sources</classifier>
180                 </artifact>
181               </artifacts>
182             </configuration>
183           </execution>
184         </executions>
185       </plugin>
186     </plugins>
187   </build>
188   <scm>
189     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
190     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
191     <tag>HEAD</tag>
192     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
193   </scm>
194 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.