-
Notifications
You must be signed in to change notification settings - Fork 268
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
[Bug] The command line 'mvn versions:set' returns exit code 1 with the last maven version 3.8.2 #483
Comments
Can you show output of:
I can't see a problem - works for me 😄 |
I reproduce the problem with the minimum of files. |
ok, last simply test:
|
I don't have any more quick idea ... can you share your test project |
See in attachment my test project. But it is very simple. Not sure it can help you. |
I can't reproduce wrong behavior on macos system ... so maybe it is connected with windows os can you test on maven you can also try to write on "Maven User List" or "Maven Developer List" |
I also have had this problem. I was on Maven 3.8.1 which was fine. After upgrading to 3.8.2, I started having my scripts failing and noticed the problem. Was able to reproduce it with a very minimalist project with no code and just a pom as follows:
All these are done on the same version of Same with the previous posts on this issue, the output of |
Only out of my curiosity - can anyone trigger build on master branch - now GitHub runners should have Maven 3.8.2 |
You can also create issue at Apache Jira for Maven project: |
@slawekjaranowski So, you are sure the problem is at Maven and is not at versions plugin ? |
I'm not sure - where is the problem but Maven 3.8.2 exposes it ... Maybe someone else can help with it, I think it is good idea to post on Maven Developers list or create issue at Maven jira. I heard that new Maven version 3.8.x will be prepared to the end of month - so maybe fix (if needed) will be catched |
Issue at Apache Maven : |
Need to take a look at it. This is weird. There have been virtually no changes to the startup scripts of Maven in 3.8.2. |
Hmmm:
Will try MinGW... |
MinGW:
Confirmed, but don't understand it yet. |
OK, here is the bug (swallowed exceptions) and it in Cygwin only. @gnodet needs to take a look. Invalid handle... |
Note that happens only in MinGW. It does not fail in PowerShell as well as Windows Command Prompt. |
Debugged a bit further, MinGW (MSYS2) assignes handles 1112 to both |
@michael-o which call throws the invalid handle exception exactly ? |
When I enter |
I think the problem is located here: The |
See codehaus-plexus/plexus-interactivity#3 for a possible fix. |
Thank you @gnodet I will check tomorrow. |
Checked now. I can confirm @gnodet's analysis and it correct. Thank you for that. So this is not a bug in Maven or Jansi, they just trigger the bug in Plexus Interactivity. |
Plexus Interactivity 1.1 has been pushed to Central. Please update at the earliest convenience. |
This issue has been fixed since r2.9.0 by #488. To assert that, execute the following commands:
IMO, this issue could be closed. |
Hi,
I have a shell script who runs the command line 'mvn versions:set' and verify the exit code. With my previous Maven 3.6.3, everything works fine.
But I recently upgraded maven to 3.8.2, and now the command line 'mvn versions:set' returns exit code 1 systematically. I precise that the result of the mvn command is BUILD SUCCESS of course.
Any idea ?
Kind regards,
Romain
The text was updated successfully, but these errors were encountered: