Community
Participate
Working Groups
Build Identifier: 20110916-0149 Whenever i update the project configuration of a simple maven project, the property 'org.eclipse.jdt.core.compiler.problem.forbiddenReference' gets changed to 'warning', even if i've set it to 'ignore'. Reproducible: Always Steps to Reproduce: 1. Create a new Maven Project (Simple, skip archetype selection 2. set the property org.eclipse.jdt.core.compiler.problem.forbiddenReference to 'ignore' (.settings/org.eclipse.jdt.core.prefs) 3. Run "Update Maven Configuration on the new project Expected: properties in .settings folder are not modified Actual: org.eclipse.jdt.core.compiler.problem.forbiddenReference ist set to 'warning' (.settings/org.eclipse.jdt.core.prefs)
I am able to reproduce the problem with latest 1.1 from master, but I am fairly certain m2e does not explicitly touch that preference so the problem almost certainly somewhere in jdt. I'll keep this bug open for now, but there are no plans to investigate it any further... and no plans to fix it unless a quality patch is provided.
(In reply to comment #1) > I am able to reproduce the problem with latest 1.1 from master, but I am fairly > certain m2e does not explicitly touch that preference so the problem almost > certainly somewhere in jdt. I'll keep this bug open for now, but there are no > plans to investigate it any further... and no plans to fix it unless a quality > patch is provided. thx for your reply Im not sure if i am lookin in the right corner, but this seems to be suspicious. http://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java In line 479 i'm finding this line of code options.put(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE, "warning");
(In reply to comment #2) > (In reply to comment #1) > > I am able to reproduce the problem with latest 1.1 from master, but I am fairly > > certain m2e does not explicitly touch that preference so the problem almost > > certainly somewhere in jdt. I'll keep this bug open for now, but there are no > > plans to investigate it any further... and no plans to fix it unless a quality > > patch is provided. > > thx for your reply > > Im not sure if i am lookin in the right corner, but this seems to be > suspicious. > > http://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java > > In line 479 i'm finding this line of code > options.put(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE, "warning"); True enough. Will try to fix this for juno m3.
Fixed. http://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=3d354e58f72f7385ed8a3f817cedec61106d32c1 https://github.com/sonatype/m2e-core-tests/commit/283614549024bd3a1097de30104c394110f59657
Moved to https://github.com/eclipse-m2e/m2e-core/issues/