-
Notifications
You must be signed in to change notification settings - Fork 112
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
Unresolved systemPropertyVariables in surefire break launch configs #1832
Comments
Hello @hd42, I don't see any issue here. Unset properties are null unlike empty properties which are "" Why not setting default properties with empty values like
If i'm not mistaken, properties set using command line parameters will override them so your jenkins build will still work |
@treilhes: I see two problems:
Adding empty properties to my pom.xml is a workaround I can use, but I believe this is still a bug. |
@hd42 |
The test run from the cli as well, because not setting the properties leads to them being not set (NULL) instead of setting them to the String "null", as happens in the launch config with m2e. |
I have a problem related to the same new feature as #1824, but I believe different enough to warrant its own entry:
In my surefire plugin configuration, I have the following lines, configuring where to find the application under test for some UI tests:
These properties are set in the .Jenkinsfile in our build jobs. When I run the tests locally without providing the properties, computed defaults for a local setup are used, which I don't want to duplicate in the POM.
Everytime I run a Maven Update in eclipse, these get added to my launch config as
That leads to exceptions like
java.lang.NumberFormatException: For input string: "null"
when parsing the port. I believe it would be better to not writenull
as a property value - either just writing the property name or probably better leaving it out altogether.-Dm2e.process.test.configuration=false
as suggested by @HannesWell in #1824 works, but of course disables this otherwise cool feature for the whole workspace.The text was updated successfully, but these errors were encountered: