GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — [MPLUGIN-522] Prerequisites should be opt-in by cstamas · Pull Request #282 · apache/maven-plugin-tools Conversation
|
I disagree with this statement, and also disagree that they should be opt in. Details in the JIRA: https://issues.apache.org/jira/browse/MPLUGIN-522?focusedCommentId=17844188&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17844188 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think enforcing and explicitly stating prerequisites is a good thing and the default matches for 99% of the cases. For other cases just overwrite with explicit values. Not stating prerequisites should no longer be supported because it is frustratring for users to figure out the implicit prerequisites through trial and error...
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ok, then we have similar situation as with prefix: fail the build. Plugin should be modified to:
We must make users aware of this requirement (hence the build failure), as otherwise they implicitly use "auto" and end result is wrong. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Putting prerequisites which are greater than the one actually used to build are, at first, very weird. For example, if you project requires jdk 11, you build with jdk 11, test it with jdk 11, but your prerequisites ends up with jdk 22... ? That's really unexpected, and the user has no real knowledge about the value used. The prerequisites should not be higher than the target JDK. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Also, unsure how then this thing works? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Let's focus on issue with the automatic detection. Please point me to a concrete example where this is the case and where it is wrong. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Just to repeat myself, the prerequisites are documented, so no need for user trial-and-error. This table shows Maven and Java prerequisites clearly: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR should be redone once Maven3 and Maven4 m-p-p are split (into maven-3.x and master) branch. And then:
Originally, the lack of prerequisite meant "it works with Maven3" (no range specified). IMO, using "3.2.5" today is completely okay, it covers 10 years of history. If users wants to go more backward, it can explicitly configure prerequisite to "3.1.1" or whatever. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
But just for the record: current m-p-p releases produce broken Maven Plugin XML, in a way that plugin works just fine with Maven3, while Maven4 explodes with invalid error messages. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
For the record: The automatic detection in this case was not wrong it was just that the referenced artifact (JLine3) states it is Java8 compatible but contains Java22 bytecode classes (https://the-asf.slack.com/archives/C7Q9JB404/p1715084058873669?thread_ts=1715069202.024659&cid=C7Q9JB404). I think this edge case justifies that the automatic detection should be explicitly overwritten! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Am unsure here... as I do not control is my transitive (2nd level, 3rd level) dependency uses multi-release or not. For me this is magic, and the bad kind of it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Resolve #825 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This pull request is stale because it has been waiting for feedback for 60 days. Remove the stale label or comment on this PR, or it will be automatically closed in 30 days. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This pull request has been closed because no response was received within 90 days. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.