]> source.dussan.org Git - archiva.git/commitdiff
generate rest documentation for redback rest services
authorOlivier Lamy <olamy@apache.org>
Fri, 5 Oct 2012 20:21:44 +0000 (20:21 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 5 Oct 2012 20:21:44 +0000 (20:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1394785 13f79535-47bb-0310-9956-ffa450edef68

pom.xml
redback-integrations/redback-rest/redback-rest-api/pom.xml

diff --git a/pom.xml b/pom.xml
index 2b0d1b7b1d20a7ae3b450912df73fe58e3ced709..db1b691b8cdc35a39ca6c14cbee662584350ec03 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
   <parent>
     <groupId>org.apache.archiva</groupId>
     <artifactId>archiva-parent</artifactId>
-    <version>9</version>
+    <version>10-SNAPSHOT</version>
   </parent>
 
   <groupId>org.apache.archiva.redback</groupId>
index 0c7cbd83e161115040551e4d94e782856af214d3..71a57699a35704852d809ba79df48c3751606fe0 100644 (file)
   </parent>
 
   <artifactId>redback-rest-api</artifactId>
-  <packaging>bundle</packaging>
+  <!-- DO NOT USE bundle packaging generated documentation is not included in the jar !!! -->
+  <packaging>jar</packaging>
   <name>Redback :: Integration :: REST :: Api</name>
 
+  <properties>
+    <enunciate.docsDir>${project.build.outputDirectory}/rest-docs-redback-rest-api</enunciate.docsDir>
+  </properties>
+
   <dependencies>
     <dependency>
       <groupId>org.apache.archiva.redback</groupId>
             </Import-Package>
           </instructions>
         </configuration>
+        <executions>
+          <execution>
+            <id>create-manifest</id>
+            <phase>process-test-classes</phase>
+            <goals>
+              <goal>manifest</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+          </archive>
+        </configuration>
+      </plugin>
     </plugins>
   </build>