surefire.forkNumber undefined variable
Closed this issue · 3 comments
surefire.forkNumber generates an error when junit test is run from with in eclipse.
Basically in a pom.xml surefire plugin section, you can configure to fork. This works on the command line using mvn directly, this also worked in prior versions of eclipse. I'm unsure when it broke but I think it was with in the last month or so.
Reverting back to a much earlier version of eclipse (the only one I had was 2024-03) shows it worked back then.
The reason I didn't notice it the day it happened was because you must right click the project -> maven -> update project, before it breaks (or after you install a new eclipse), if your system was working with an older version it would continue working until you had to do an update-project.
attached as a simple project showing this.
I should add, to un-break it, you have to downgrade to an older version of eclipse and delete the working directories .metadata directory or it will continue to appear broken even on older versions.
We also tested jdk 17,21,23 and it happens on all versions. It happened on multiple fedora 40 machines. It happened with both the eclipse-installer with bundled jdk and binary untar-gz versions with separately downloaded openjdks.
the download was tagged eclipse-jee-2024-09-R-linux-gtk-x86_64.tar.gz
I've seen this in other projects where in the pom.xml you've configure it use certain system properties and m2e seems to thing that should be converted to use a string substitution in the launcher. You could define the value in Window -> Preferences -> Run/Debug -> String Substitutions.
In any case, this isn't something the Platform can fix. You might ask the m2e folks about this, but with details of how one might reproduce the problem:
thanks, I've sent it that way.
for anyone finding this bug on google it's : eclipse-m2e/m2e-core#1884