Skip to content
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

"Update Maven Project" removes accessrules from JRE_CONTAINER #1887

Open
atnak opened this issue Nov 14, 2024 · 0 comments
Open

"Update Maven Project" removes accessrules from JRE_CONTAINER #1887

atnak opened this issue Nov 14, 2024 · 0 comments

Comments

@atnak
Copy link

atnak commented Nov 14, 2024

Running "Maven > Update Maven Project" removes <accessrules> for the <classpathentry path="org.eclipse.jdt.launching.JRE_CONTAINER/..."> entry in the .classpath file.

The symptoms are the same as this issue that was resolved in 2017. I assume perhaps the previous fix resolved the issue for <classpathentry path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> but not for org.eclipse.jdt.launching.JRE_CONTAINER.

Below is an example <classpathentry> that is affected:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
	<attributes>
		<attribute name="maven.pomderived" value="true"/>
	</attributes>
	<accessrules>
		<accessrule kind="discouraged" pattern="java/lang/StringBuffer"/>
		<accessrule kind="nonaccessible" pattern="com/sun/javafx/collections/**"/>
		<accessrule kind="nonaccessible" pattern="java/awt/List"/>
		<accessrule kind="nonaccessible" pattern="org/omg/**"/>
	</accessrules>
</classpathentry>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant