<packaging>bundle</packaging>
<name>Archiva Web :: REST support :: Api</name>
+ <properties>
+ <enunciate.version>1.26.1</enunciate.version>
+ <enunciate.debug>false</enunciate.debug>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.apache.archiva</groupId>
</exclusion>
</exclusions>
</dependency>
+
+ <dependency>
+ <groupId>org.codehaus.enunciate</groupId>
+ <artifactId>enunciate-core</artifactId>
+ <scope>provided</scope>
+ <version>${enunciate.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.codehaus.jackson</groupId>
+ <artifactId>jackson-xc</artifactId>
+ <version>${jacksonVersion}</version>
+ <scope>provided</scope>
+ </dependency>
+
</dependencies>
<build>
</execution>
</executions>
</plugin>
+
+
+ <plugin>
+ <groupId>org.codehaus.enunciate</groupId>
+ <artifactId>maven-enunciate-plugin</artifactId>
+ <version>${enunciate.version}</version>
+ <executions>
+ <execution>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>docs</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <docsDir>${project.build.outputDirectory}/docs</docsDir>
+ <configFile>src/enunciate/enunciate.xml</configFile>
+ <compileDebug>${enunciate.debug}</compileDebug>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.enunciate</groupId>
+ <artifactId>enunciate-docs</artifactId>
+ <version>${enunciate.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+
</plugins>
</build>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<enunciate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd">
+
+ <services>
+ <rest defaultRestSubcontext="restServices"/>
+ </services>
+
+ <modules>
+
+ <cxf disabled="false"/>
+ <jersey disabled="true" />
+ <c disabled="true"/>
+ <csharp disabled="true"/>
+ <obj-c disabled="true"/>
+ <jaxws-ri disabled="true"/>
+ <jaxws-support disabled="true"/>
+
+ <docs disabled="false" title="Apache Archiva REST API" includeExampleXml="true" includeExampleJson="true"
+ includeDefaultDownloads="false">
+ <war docsDir="apidocs" />
+ </docs>
+
+ </modules>
+
+</enunciate>
\ No newline at end of file
private String scope;
+ public Dependency()
+ {
+ // no op
+ }
+
+
public Dependency( String groupId, String artifactId, String version, String classifier, String type, String scope )
{
this.groupId = groupId;
@GET
@Produces ({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@RedbackAuthorization (noPermission = true, noRestriction = true)
+ /**
+ * @param groupId groupId to browse
+ * @param repositoryId optionnal (repository to browse if <code>null</code> all available user repositories are used)
+ */
BrowseResult browseGroupId( @PathParam ("groupId") String groupId,
@QueryParam ("repositoryId") String repositoryId )
throws ArchivaRestServiceException;
<modules>
<module>archiva-rest-api</module>
<module>archiva-rest-services</module>
+ <module>archiva-rest-documentor</module>
</modules>
</project>
\ No newline at end of file