CL sent this to me privately, forwarding back to the list, I have nothing to add...
---------- Forwarded message ---------- Date: Tue, Feb 8, 2011 at 4:33 PM Subject: RE: Eclipse Plugin - how to remove M2_REPO classpath variable (re-post) > but nothing is stopping you from doing it manually by editing the dot > files (.classpath, .project, etc) in your project directory with=20 The .classpath file has a bunch of <classpathentry> entries but none have path pointing to the path set by the M2_REPO classpath variable. In the .project file, I see a <buildSpec> entry and a <natures> entry but nothing seems related to M2_REPO. So, since I originally set the M2_REPO by including the path to the specific (first) workspace using the cmd mvn -Declipse.workspace=<pathtoworkspace> eclipse:configure-workspace I wondered whether the M2_REPO setting should be found in some file in that specific workspace path (and not with the project files that are in an entirely different folder for my setup). Looking into my first workspace folder, I see this hierarchy of subfolders workspace1 > .metadata subfolder > .plugins subfolder > org.eclipse.core.runtime subfolder > .settings subfolder which contains a file org.eclipse.jdt.core.prefs which has a line org.eclipse.jdt.core.classpathVariable.M2_REPO=3DC:\\Users\\{myuser}\\.m2\\repository It sure looked like the smoking gun, but commenting out or even deleting that line did _not_ remove the M2_REPO setting. So I'm wondering whether the M2_REPO setting I see in Window > Preferences > Java > Build Path > Classpath Variables is global across all my workspaces in Eclipse, because my 2nd (new) workspace does have a project that uses Maven and requires setting M2_REPO with eclipse:configure-workspace Finally, following a suggestion by Ludwig, doing Reindex with Window > Preferences > Maven > User Settings > Local Repository (From merged user and global settings) > Reindex did not blank out or change that Local Repository path (which is indeed pointed to by M2_REPO classpath variable) Next step -- in the absence of any better suggestion, I'm thinking of deleting the (one) project in the first workspace, creating a new workspace, and starting over by importing that project, to see if I can lose the M2_REPO setting (hoping it is not global and does not appear in all workspaces). -CL -----Original Message----- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Monday, February 07, 2011 6:06 PM To: Maven Users List Subject: Re: Eclipse Plugin - how to remove M2_REPO classpath variable (re-post) > Re-post - Not seeing first post show up anywhere, sorry if this re-post > is spam. > > Does anyone know a way to remove the M2_REPO classpath variable that was > added using More than one person replied to your original post: http://maven.40175.n5.nabble.com/Maven-Eclipse-Plugin-how-to-remove-M2-REPO-classpath-variable-td3372552.html Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org