using maven aether for plugin installation

This commit is contained in:
Sebastian Sdorra
2010-12-13 21:02:39 +01:00
parent 2df3034309
commit bf3448e088
10 changed files with 804 additions and 91 deletions

View File

@@ -46,9 +46,12 @@ import sonia.scm.plugin.PluginManager;
import java.util.Collection;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
/**
*
@@ -71,6 +74,25 @@ public class AvailablePluginResource
this.pluginManager = pluginManager;
}
//~--- methods --------------------------------------------------------------
/**
* Method description
*
*
* @param id
*
* @return
*/
@POST
@Path("{id}")
public Response install(@PathParam("id") String id)
{
pluginManager.install(id);
return Response.ok().build();
}
//~--- get methods ----------------------------------------------------------
/**