-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep external annotations paths when updating the project configuration (fixes #391) #1635
Conversation
c1f8483
to
ba7b66c
Compare
@sebthom can you squash your commits and add a commit message that described the current and improved state? |
ba7b66c
to
1db97cd
Compare
@laeubi done |
1db97cd
to
e2f951b
Compare
@HannesWell @laeubi I would greatly appreciate it if this could be included in the next m2e release. 🤞 |
e2f951b
to
0464b1a
Compare
0464b1a
to
76776ba
Compare
Prior to this commit, the manually configured external annotation paths for the "JRE System Library" and "Maven Dependencies" classpath entries of an m2e managed Eclipse project were being unset when m2e updated the Eclipse project configuration, e.g. due to changes in the underlying Maven project or due to manual execution of "Maven -> Update project...". This commit ensures that the external annotation path settings are still present after m2e updated the Eclipse project configuration. Fixes eclipse-m2e#391
76776ba
to
9c9704d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sebthom thank you for this contribution, it looks good.
I just reworked it a bit to reduce code-duplication and to stream-line the creation of new classpath-entries, but the behavior should be the same (as your tests shows).
Btw. if you are concerned about changes in the configuration due to automated updates, the PR #1664 might be interesting for you.
@HannesWell Looks good to me. Thanks for reviewing/updating! |
Great. Thanks for the fast feedback. |
Prior to this commit, the manually configured external annotation paths for the "JRE System Library" and "Maven Dependencies" classpath entries of an m2e managed Eclipse project were being unset when m2e updated the Eclipse project configuration, e.g. due to changes in the underlying Maven project or due to manual execution of "Maven -> Update project...".
This commit ensures that the external annotation path settings are still present after m2e updated the Eclipse project configuration.
Fixes #391