From 7dad16bbf4a8a55c41602965bd371e72abea65bd Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 24 Jun 2009 16:57:52 +0000 Subject: [PATCH] WebDAV deployment from Maven was failing with VerifyError. A test case requires a webdav server, I tried Milton but couldn't make it work without the source code. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19187 71c3de6d-444a-0410-be80-ed276b4c234a --- maven-plugin/pom.xml | 5 +++++ .../java/hudson/maven/RedeployPublisherTest.java | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/maven-plugin/pom.xml b/maven-plugin/pom.xml index 8eea04b9dd..43c991afc5 100644 --- a/maven-plugin/pom.xml +++ b/maven-plugin/pom.xml @@ -100,6 +100,11 @@ THE SOFTWARE. xml-apis xml-apis + + + org.apache.maven.wagon + wagon-webdav + diff --git a/test/src/test/java/hudson/maven/RedeployPublisherTest.java b/test/src/test/java/hudson/maven/RedeployPublisherTest.java index 5e9b77c04e..a46203a0c5 100644 --- a/test/src/test/java/hudson/maven/RedeployPublisherTest.java +++ b/test/src/test/java/hudson/maven/RedeployPublisherTest.java @@ -54,5 +54,18 @@ public class RedeployPublisherTest extends HudsonTestCase { System.out.println(repo); } - +// /** +// * Makes sure that the webdav wagon component we bundle is compatible. +// */ +// public void testWebDavDeployment() throws Exception { +// configureDefaultMaven(); +// MavenModuleSet m2 = createMavenProject(); +// +// // a fake build +// m2.setScm(new SingleFileSCM("pom.xml",getClass().getResource("big-artifact.pom"))); +// m2.getPublishersList().add(new RedeployPublisher("","dav:http://localhost/dav/",true)); +// +// MavenModuleSetBuild b = m2.scheduleBuild2(0).get(); +// assertBuildStatus(Result.SUCCESS, b); +// } }