Bug 418180 - m2e dependency resolution over scp (wagon-ssh)
Summary: m2e dependency resolution over scp (wagon-ssh)
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: core
Depends on:
Blocks:
 
Reported: 2013-09-27 08:52 EDT by Fernando Las CLA
Modified: 2021-04-19 13:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Las CLA 2013-09-27 08:52:07 EDT
I have a project with dependencies provided by scp repo.

When I run mvn comile from comand line everything works fine, but when i update the dependencies from eclipse (by using m2e) I get this error: 

9/27/13, 9:43:22 AM GMT-03:00: [WARN] Could not transfer metadata uy.xxx.xxx:xxx-xxx:2.0.13-SNAPSHOT/maven-metadata.xml from/to xxx.net (scp://xxx:22/usr/site/opt/maven2-repo): Cannot connect. Reason: timeout: socket is not established Could not transfer metadata uy.xxx.xxx:xxx-xxx:2.0.13-SNAPSHOT/maven-metadata.xml from/to xxx.net (scp://xxx:22/usr/site/opt/maven2-repo): Cannot connect. Reason: timeout: socket is not established
9/27/13, 9:43:22 AM GMT-03:00: [WARN] Failure to uy.xxx.xxx:xxx-xxx:2.0.13-SNAPSHOT/maven-metadata.xml from scp://xxx:22/usr/site/opt/maven2-repo was cached in the local repository, resolution will not be reattempted until the update interval of xxx.net has elapsed or updates are forced. Original error: Could not transfer metadata uy.xxx.xxx:xxx-xxx:2.0.13-SNAPSHOT/maven-metadata.xml from/to xxxx.net (scp://xxx:22/usr/site/opt/maven2-repo): Cannot connect. Reason: timeout: socket is not established Failure to transfer uy.xxx.xxx:xxx-xxx:2.0.13-SNAPSHOT/maven-metadata.xml from scp://xxx:22/usr/site/opt/maven2-repo was cached in the local repository, resolution will not be reattempted until the update interval of xxx.net has elapsed or updates are forced. Original error: Could not transfer metadata uy.xxx.xxx:xxx-xxx:2.0.13-SNAPSHOT/maven-metadata.xml from/to xxx.net (scp://xxx:22/usr/site/opt/maven2-repo): Cannot connect. Reason: timeout: socket is not established

I have this in my project pom:
	<extensions>
		<extension>
			<groupId>org.apache.maven.wagon</groupId>
			<artifactId>wagon-ssh</artifactId>
			<version>2.4</version>
		</extension>
	</extensions> 


I guess that is a embedded maven problem wich always is used to resolve dependencies, because when I run (project-> run as  -> maven install) it works fine.
Comment 1 Fernando Las CLA 2013-09-27 08:55:50 EDT
I use eclipse kepler with embedded maven 3.0.4. 
And my external maven version is 3.1.0. 

I also tested external maven 3.0.4 from comand line and everithing worked fine. I guess that is not a maven version problem.
Comment 2 Igor Fedorenko CLA 2013-10-16 11:11:48 EDT
Unless a quality patch is provided, m2e team has no plans to look into this.
Comment 3 Fernando Las CLA 2013-10-16 15:14:31 EDT
I could try to do it.  But this worked with maven integration for eclipse 0.12.1 (Sonatype) . Why not allow to choose the external maven to resolve eclipse project dependencies?  
Could you send me some information to start working on the patch?
Comment 4 Igor Fedorenko CLA 2013-10-16 15:25:22 EDT
(In reply to Fernando Las from comment #3)
> I could try to do it.  But this worked with maven integration for eclipse
> 0.12.1 (Sonatype) . Why not allow to choose the external maven to resolve
> eclipse project dependencies?  

I believe this is very hard to implement. 

If I were you, I'd look at adding scp wagon support first, which I believe should be relatively straightforward and I think does not require any changes to m2e core. Once you have this working and understand m2e codebase you can decide if want to look at using external maven runtime for dependency resolution.

> Could you send me some information to start working on the patch?

Start here http://wiki.eclipse.org/M2E_Development_Environment , then ask on m2e-dev@eclipse.org if you have questions.
Comment 5 Eclipse Genie CLA 2014-12-09 03:57:22 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Denis Roy CLA 2021-04-19 13:25:11 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/