You don't seem to have specified a (custom) repositoryId, which needs to map to the id in your settings.xml, which contains the credentials of your scp connection (like username and private key or password).

Mvgr,
Martin

Barrie Treloar wrote:
I've made some changes to maven plugins (and submitted patches), so
while I wait for them to be applied I thought I would deploy my
changes to an internal repository so that our developers can benefit
from the changes now.  The version installed into my local repository
works fine for me.

I tried running
mvn -N -Dproject.distributionManagementArtifactRepository=scp://<host>/<path-to-repo>/plugin_snapshot
deploy

to override the deployment details but I get the error:

[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from apache.snapshots
[WARNING] repository metadata for: 'snapshot
org.apache.maven.plugins:maven-plugins:2-SNAPSHOT' could not be
retrieved f
rom repository: apache.snapshots due to an error: Authentication
failed: Cannot connect. Reason: Session.connect: java.n
et.ConnectException: Connection refused: connect
[INFO] Repository 'apache.snapshots' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Authentication failed: Cannot
connect. Reason: Session.connect: java.net.ConnectExcepti
on: Connection refused: connect

I'm behind a firewall, which would explain the errors.


So my question is: How should I be sharing my version of the plugin so
others in our company can use it?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to