tesla / m2eclipse-egit

Maven SCM Handler for EGit
29 stars 17 forks source link

"Can't rename" error when importing maven project #18

Open llowrey opened 6 years ago

llowrey commented 6 years ago

When importing a maven project via "Check out Maven Projects from SCM" I get the following error message:

Can't rename C:\Users\someuser\workspace\maven.1535821652864.

The reason is that eclipse has an open file handle on maven.1535821652864\.git\objects\pack\pack-4003d213f45b07aab4d6d45823d4ad40281dbeb3.pack.

This is probably only a problem on Windows systems.

Windows 10 Eclipse Photon 4.8.0 20180619-1200 egit 5.0.0.201806131550-r m2eclipse-egit 0.15.1.201806191431

Wolf2323 commented 6 years ago

I have the same problem. Is there any solution yet?

Spark4J commented 6 years ago

Any solution yet?

robstewart57 commented 5 years ago

I'm also experiencing this problem.

I tried selecting a clone location outside of the eclipse workspace, but this didn't fix it.

This bug can be worked around by importing the Maven project manually.

  1. Find out what your Eclipse workspace directory is: File -> Switch Workspace -> Other, where your the workspace directory listed.

  2. File -> Import -> Maven -> Existing Maven Projects, then navigate to your Eclipse workspace directory. In your workspace you'll see a directory called maven.XYZ.. (where XYZ are numbers). Select this directory then click OK to import it into Eclipse.

Although a fix to the bug would be a preferable solution.