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

Bug 346098

Summary: [m2e-egit] Importing Maven Projects from Git doesn't Auto-Share
Product: z_Archived Reporter: Ron Ratovsky <webron>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: igor, stevemash, trajano, youngm
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ron Ratovsky CLA 2011-05-17 10:22:06 EDT
Build Identifier: 20110218-0911

Using the m2e-egit connector:   Maven SCM Handler for EGit	0.13.0.201103031543	org.sonatype.m2e.egit.feature.feature.group

When trying to 'Import Maven Project' from the Git Repository Exploring perspective, the projects are imported properly, but they are not automatically shared to be synchronized with git.

This can be manually done by right clicking the projects->Team->Share Project and eclipse automatically fills the proper connection.

Reproducible: Always
Comment 1 Steve Ash CLA 2011-12-27 12:28:34 EST
I hit this myself, but I _think_ (and someone should confirm) that an even better workaround is to check the "Auto Share Projects" option in Preferences -> Team -> Git -> Projects.  

Once I checked this, then used the "import maven projects" option, they showed as shared without any additional effort.
Comment 2 Ron Ratovsky CLA 2011-12-27 14:29:59 EST
Per your suggestion, I wanted to try it out myself, however, I don't see such an option in the preferences. Can you share which egit version you currently have installed?
Comment 3 Igor Fedorenko CLA 2011-12-27 14:34:56 EST
Auto-sharing was added in recently released EGit 1.2 according to [1]. I think it's fair to close this issue as WORKSFORME now (besides, m2e/egit is not part of m2e project, so eclipse bugzilla was not the right place for this feature request).

[1] http://wiki.eclipse.org/EGit/New_and_Noteworthy/1.2
Comment 4 Denis Roy CLA 2021-04-19 13:26:15 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/