Hello,

we have been using wagon-ssh (extension) in our CIs, mostly for staging
reports and test logs. We registered the ssh extension which is using
JSch. However since we upgraded our SSH daemons with more modern cipher
suites, that does not work anymore, We switched to a command execution
plugin using the native ssh command line (which also speeds up the
transfers), but it seems like sftpexe: (Wagon SSH External) would have
been a good alternative for us.

Gruß Bernd
 
> Delany schrieb am 05.11.2025 14:43 (GMT +01:00):
>> Hi Tamas.
>> 
>> Thanks, its working now with scpexe://...
>> I would not have figured that out by myself!
>> 
>> The reason I want to use ssh for deploy is that using NFS pushes the
>> security boundary out to the network perimeter.
>> I'm just surprised/horrified this isn't more widely used. Or maybe people
>> do? I wish I knew more about how others actually use Maven.
>> 
>> Regards,
>> 
>> On Mon, 20 Oct 2025 at 16:24, Tamás Cservenák <[email protected]>
>> wrote:
>> 
>> > Howdy,
>> >
>> > First, I cannot reproduce your error, I get consistently:
>> > "[ERROR] Failed to execute goal
>> > org.apache.maven.plugins:maven-deploy-plugin:3.1.2:deploy
>> > (default-deploy) on project ssh: Failed to deploy artifacts/metadata:
>> > Cannot access sftp://localhost/server with type default
>> using the
>> > available connector factories: BasicRepositoryConnectorFactory: Cannot
>> > access sftp://localhost/server using the registered
>> transporter
>> > factories: HttpTransporterFactory, FileTransporterFactory,
>> > WagonTransporterFactory -> [Help 1]"
>> > (3.9.11 + Java 21) Please create a git repo with a reproducer.
>> >
>> > Second, as I see wagon-ssh-external still uses javadoc tags (yikes),
>> > and uses hint "scpexe":
>> >
>> >
>> https://github.com/apache/maven-wagon/blob/master/wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/ssh/external/ScpExternalWagon.java#L57
>> >
>> > So the protocol should be "scpexe" and not "sftp"?
>> >
>> > Thanks
>> > T
>> >
>> > On Mon, Oct 20, 2025 at 3:56 PM Delany <[email protected]>
>> wrote:
>> > >
>> > > Hi,
>> > >
>> > > Does anyone successfully use the Wagon SSH extension to deploy?
>> > >
>> > > I'm unable to get the wagon-ssh-external to work with Maven 3.
>> > >
>> > > It seems the ssh wagon is not registering the extension from the
>> > > ./.mvn/extensions.xml file:
>> > >
>> > > <extension>
>> > > <groupId>org.apache.maven.wagon</groupId>
>> > > <artifactId>wagon-ssh-external</artifactId>
>> > > <version>3.5.3</version>
>> > > </extension>
>> > >
>> > > Failed to deploy artifacts/metadata: Cannot access
>> > > sftp://10.1.1.221/repo/snapshots with type default
>> > > using the available connector factories:
>> > > BasicRepositoryConnectorFactory: Cannot access
>> > > sftp://10.1.1.221/repo/snapshots
>> > > using the registered transporter factories: HttpTransporterFactory,
>> > > HttpTransporterFactory, FileTransporterFactory,
>> > > FileTransporterFactory, WagonTransporterFactory -> [Help 1]
>> > >
>> > > Why are there only 5 and why are there are only 3 unique?
>> > >
>> > > Apache Maven 3.9.11
>> > >
>> > > Thanks,
>> >
>> > ---------------------------------------------------------------------
>> > 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