Hi. I am trying to deploy a custom artifact to our internal repo using maven
3.0.2:
mvn deploy:deploy-file -Dfile=file.jar -Dversion=1.0.0 -DgroupId=com.example
    -DartifactId=artifact -Dpackaging=jar -DrepositoryId=internal
    -Durl=dav:http://10.1.1.7/maven_repo

where a corresponding <server> element with id internal is in my
settings.xml, and it has a username and password corresponding to a local
user on the machine I am trying to deploy to. This doesn't work, I get:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file (default-cli)
on project standalone-pom: Failed to deploy artifacts/metadata: No connector
available to access repository remote-repository (dav:http://10.1.1.7/maven)
of type default using the available factories
WagonRepositoryConnectorFactory -> [Help 1]

When I remove the dav prefix, I get:

Uploading: http://10.1.1.7/maven/com/test/test/1/test-1.jar
Uploading: http://10.1.1.7/maven/com/test/test/1/test-1.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.312s
[INFO] Finished at: Fri Feb 04 08:15:35 CET 2011
[INFO] Final Memory: 4M/117M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file (default-cli)
on project standalone-pom: Failed to deploy artifacts: Could not transfer
artifact com.test:test:jar:1 from/to remote-repository
(http://10.1.1.7/maven): Access denied to:
http://10.1.1.7/maven/com/test/test/1/test-1.jar -> [Help 1]

Which I think it means it tries to upload, but there is something wrong with
the credentials?

How can I configure this correctly?

In maven 2, the first approach used to work, with the dav:http protocol, it
all changed in maven 3, or at least is seems so.

Thanks.


-- 
View this message in context: 
http://maven.40175.n5.nabble.com/maven-3-deploy-deploy-file-and-dav-http-tp3370548p3370548.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to