Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Why does Eclipse's Maven Integration not memorize my settings.xml setting?

Hi,

Do you see my response ? https://www.eclipse.org/lists/m2e-users/msg05800.html

Laurent

Le 10/11/2019 à 22:36, Michael Moser a écrit :

This issue is driving me bonkers!

EACH and EVERY time I restart Eclipse the value of Preferences -> Maven -> User Settings is again pointing to <HOME>\.m2\settings.xml, while for my current project it has to point to a specific settings-file that defines repos, env-vars, profiles and what not. With the wrong settings file when I build my project I always get 5000+ compile errors.

 

Why does this field keep changing all the time???

 

Yes - I have reported this a couple of months ago and only got answers that essentially said "works for me", i.e. the setting is kept with the project. But that is obviously not true or not working here in my case.

 

Where is that setting kept in the eclipse workspace? I mean: in which file? I am considering making this file write-protected so that it can't change any more. Or can one script that somehow that after Eclipse's startup the first thing that happens is that this Preference's value is overwritten again? Or any idea what other tool or approach might help me to bolt down this field's value?

 

Regards,

Michael

 

 

From: Michael Moser <michael.moser@xxxxxxxxxx>
Sent: Sunday, September 15, 2019 10:02 PM
To: 'm2e-users@xxxxxxxxxxx' <m2e-users@xxxxxxxxxxx>
Subject: Why does Eclipse's Maven Integration not memorize my settings.xml setting?

 

I am using different workspaces and each must have its own Maven settings.

 

According to misc. descriptions I found by googling re. this problem, that should be feasible and the Maven preferences (specifically the User Settings) should be saved within the workspace, i.e. switching the workspace should also switch the Maven settings.

 

But not so in my environment (Eclipse JEE, Version 2019-03 (4.11.0) / Build id: 20190314-1200)!

Not only when switching the workspace but even each time after restarting Eclipse the User Settings field AGAIN points to <HOME>\.m2\settings.xml, i.e. EACH and EVERY TIME I have to re-enter these settings again and that gets mighty annoying!

 

What could be wrong here? And how can I convince/force Eclipse to not only keep my user settings but also switch it when switching workspaces?

 


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/m2e-users

Back to the top