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