]> source.dussan.org Git - archiva.git/commitdiff
extract rest docs to have it as part of the documentation
authorOlivier Lamy <olamy@apache.org>
Fri, 5 Oct 2012 14:30:09 +0000 (14:30 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 5 Oct 2012 14:30:09 +0000 (14:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1394545 13f79535-47bb-0310-9956-ffa450edef68

archiva-docs/pom.xml
archiva-docs/src/site/apt/adminguide/webservices/rest.apt.vm

index cb7607d7bea366efa8fa15bd770d85d35d3f8c30..1ec358c511f085a5b1c7d9433f2fe295039bf630 100644 (file)
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>archiva-rest-api-docs-extract</id>
+            <phase>site</phase>
+            <goals>
+              <goal>unpack-dependencies</goal>
+            </goals>
+            <configuration>
+              <includeArtifactIds>archiva-rest-api</includeArtifactIds>
+              <outputDirectory>${project.build.directory}/site/</outputDirectory>
+              <excludes>META-INF/**,org/**</excludes>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
     <finalName>apache-archiva-${project.version}</finalName>
   </build>
 
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.archiva</groupId>
+      <artifactId>archiva-rest-api</artifactId>
+    </dependency>
+  </dependencies>
+
   <reporting>
     <excludeDefaults>true</excludeDefaults>
     <plugins>
index 2f649a46c47eb7d8b145afd8932714951faf7d68..f38a420321de7bdcc37d80ae4dd4d610f4cc564c 100644 (file)
@@ -3,7 +3,7 @@
  ------
  Olivier Lamy
  ------
- 2011-09-16
+ 2011-10-05
  ------
 
 ~~ Licensed to the Apache Software Foundation (ASF) under one
@@ -32,6 +32,8 @@ Using REST Services
   All samples here will use Apache CXF REST client API. By the way you can use some others REST client frameworks.
   NOTE: a wadl is available in your Archiva instance : http(s)://ip:port/../restServices/application.wadl
 
+  Archiva REST api is available here: {{http://archiva.apache.org/docs/${project.version}/rest-docs-archiva-rest-api/index.html}}
+
 * Search Service
 
    Authentication headers for connect to your Archiva instance :