dev@glassfish.java.net

Re: deploy-file with wagon-svn

From: Fabian Ritzmann <Fabian.Ritzmann_at_Sun.COM>
Date: Thu, 28 Aug 2008 20:33:25 +0300

Alright, I finally found Kohsuke's blog entry: http://weblogs.java.net/blog/kohsuke/archive/2008/07/deploying_nonma.html

That's working, much better than dealing with the idiosyncrasies of
deploy-file.

Fabian


On 28. Aug 2008, at 19:21, Fabian Ritzmann wrote:

> Hi,
>
> Has anybody successfully used the deploy:deploy-file goal with wagon-
> svn? If I do this:
>
> mvn deploy:deploy-file -DpomFile=maven-hk2/pom.xml -Dclassifier=osgi
> -Durl=java-net:/maven2-repository/trunk/www/repository/ -Dfile=dist/
> image/metro/for_v3/webservices.jar
>
> I am getting this:
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'deploy'.
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO] task-segment: [deploy:deploy-file] (aggregator-style)
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [deploy:deploy-file]
> [INFO] Retrieving previous build number from remote-repository
> [WARNING] repository metadata for: 'snapshot
> com.sun.xml.ws:webservices:1.4-SNAPSHOT' could not be retrieved from
> repository: remote-repository due to an error: Unsupported Protocol:
> 'java-net': Cannot find wagon which supports the requested protocol:
> java-net
> [INFO] Repository 'remote-repository' will be blacklisted
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error deploying artifact: Unsupported Protocol: 'java-net':
> Cannot find wagon which supports the requested protocol: java-net
>
> Component descriptor cannot be found in the component repository:
> org.apache.maven.wagon.Wagonjava-net.
>
>
>
> When I am following the recommendations on the wagon-svn site and am
> passing a deploy.pom into Maven like this:
>
> mvn -f maven-hk2/deploy.pom deploy:deploy-file -DpomFile=maven-hk2/
> pom.xml -Dclassifier=osgi -Durl=java-net:/maven2-repository/trunk/
> www/repository/ -Dfile=dist/image/metro/for_v3/webservices.jar
>
> I am getting this:
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'deploy'.
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Unnamed - dummy:wagon-svn-deploy-pom:pom:1
> [INFO] task-segment: [deploy:deploy-file] (aggregator-style)
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [deploy:deploy-file]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Specified pomFile does not exist
>
>
>
> It looks like the deploy.pom is somehow confusing the system. Any
> ideas?
>
> Fabian