You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "slachiewicz (via GitHub)" <gi...@apache.org> on 2026/08/04 11:35:32 UTC
[PR] Pass siteMvn as a String so the site stage runs on Maven 4 [maven-jar-plugin]
slachiewicz opened a new pull request, #575:
URL: https://github.com/apache/maven-jar-plugin/pull/575
`siteMvn` is passed to `doCreateTask` whole, while `maven` is iterated:
```groovy
for (def mvn in mavens) { ... doCreateTask(os, jdk, mvn, ...) } // maven: a List is correct
...
doCreateTask( os, jdk, siteMvn, tasks, first, 'site', taskContext ) // siteMvn passed whole
```
and `doCreateTask` does `jenkinsEnv.mvnFromVersion(os, "${maven}")`. A Groovy List stringifies to the literal `"[4.0.x]"`, which matches no `case` in `mvnFromVersion` and falls through to `default: return 'maven_3_latest'`. It is not null either, so the `mvnName == null` skip never fires — the site stage just quietly runs Maven 3.
`maven: [ "4.0.x" ]` stays a List; only `siteMvn` needs to be a String. apache/maven-deploy-plugin already does it this way.
Verified by reading the shared library, not by running a build — the pipeline cannot be executed locally. It also does not make Jenkins green on its own: `maven_4_latest` still resolves to 4.0.0-rc-5 on the build nodes. This makes the configuration do what it already says.
Same fix as apache/maven-clean-plugin#331.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Pass siteMvn as a String so the site stage runs on Maven 4 [maven-jar-plugin]
Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz merged PR #575:
URL: https://github.com/apache/maven-jar-plugin/pull/575
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org