Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353241

Summary: Missing dependency in pom causes eclipse to lose subversion/subversive connection
Product: z_Archived Reporter: Stephen Cooper <coop4711>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: major    
Priority: P3 CC: igor, matthew
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Stephen Cooper CLA 2011-07-27 14:27:53 EDT
If a project is checked in with a dependency which cannot be resolved, e.g. a SNAPSHOT which the user doesn't have locally and which has been removed from the central repository, then checking out the project results in Eclipse losing knowledge of the fact that the project was checked out from subversion.

This has been a nagging issue for years/multiple releases of m2eclipse/m2e. Only now figured out the cause.

Here's my current configuration where I can reliably re-create the issue:
Mac OS X 10.7
Eclipse 3.7 Indigo 20110615-0604
m2e 1.0.0.20110607-2117
Subversive SVN Team Provider (Incubation) 0.7.9.I20110724-1700
SVNKit 1.3.5 r7406

However, this has been created on linux and Windows as well, and in versions 3.5 and 3.6 of eclipse as well.

Steps to re-create:
Outside of eclipse, create a project with a dependency on a SNAPSHOT which does not exist. Check in that project to SVN.
Inside eclipse, enable SVN label decorations to more easily see the problem.
Chose to Check out as Maven project in the SVN repository explorer
Once the check-out is complete, notice that the SVN version decorations do not appear. Also notice that under the Team menu there are no SVN commands, only e.g. apply a patch

Steps to work-around:
Fix the pom.xml to reference a valid dependency
Delete the project without deleting from the file system
Import existing maven project
Notice that the SVN label decorations are visible for the project.

I get the same issue regardless of if I check out as a maven project or import existing maven project. I chose to report the bug against m2e instead of against subversive because repairing the pom resolves the issue.
Comment 1 Matthew Piggott CLA 2011-07-27 15:54:14 EDT
You can also use Team > Share Project   to connect it with SVN
Comment 2 Stephen Cooper CLA 2011-07-28 23:12:37 EDT
(In reply to comment #1)
> You can also use Team > Share Project   to connect it with SVN

Yes - I just wanted to keep the number of steps done inside Eclipse to a minimum in order to isolate the issue. But yes, Eclipse is perfectly capable of pushing a project to SVN. :)
Comment 3 Igor Fedorenko CLA 2012-05-21 11:09:37 EDT
Closing old/stale projects.
Comment 4 Denis Roy CLA 2021-04-19 13:22:31 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/