Skip to content

Conversation

@desruisseaux
Copy link
Contributor

This pull request combines 3 tasks in 3 separated commits:

  • Upgrade from Maven 4.0.0-rc-2 to 4.0.0-rc-4.
  • Remove the useDefaultManifestFile configuration parameter, which was deprecated since Maven 3.0.0.
  • Edition in Javadoc (mostly formatting) and minor code simplifications.

The changes in this pull request should not cause significant change in the plugin behaviour, except for the removal of the useDefaultManifestFile option and when a null argument is given to the AbstractJarMojo.getJarFile(Path, String, String) method. In the latter case, the IllegalArgumentException has been replaced by NullPointerException.

@desruisseaux
Copy link
Contributor Author

We have an approval and I saw no objection. Should we process with the merge?

This commit should not change the behaviour of the Maven JAR plugin,
except when a null argument is given to `getJarFile` in which case the
`IllegalArgumentException` has been replaced by `NullPointerException`.
@desruisseaux desruisseaux merged commit f63b266 into apache:master Oct 17, 2025
8 checks passed
@github-actions
Copy link

@desruisseaux Please assign appropriate label to PR according to the type of change.

@github-actions github-actions bot added this to the 4.0.0-beta-2 milestone Oct 17, 2025
@desruisseaux desruisseaux deleted the upgrade-and-editions branch October 17, 2025 08:38
@desruisseaux desruisseaux added dependencies Pull requests that update a dependency file removed Pull requests that remove features labels Oct 17, 2025
@slawekjaranowski
Copy link
Member

On jenkins we have Maven 4-rc-3 ....
https://cwiki.apache.org/confluence/display/INFRA/Maven+Installation+Matrix

We should ask infra for update .... or disable jenkis build ...

@slawekjaranowski slawekjaranowski linked an issue Nov 11, 2025 that may be closed by this pull request
@elharo
Copy link
Contributor

elharo commented Nov 12, 2025

This PR seems to have broken the CI, and should not have been merged yet.

@desruisseaux
Copy link
Contributor Author

This PR seems to have broken the CI, and should not have been merged yet.

At the time that this pull request was submitted, the GitHub checks were successful. The failure that we observe in #503 came later. Strangely, Jenkins also fails to build the master branch of maven-clean-plugin and maven-compiler-plugins for the same reason, but those failures do not appear in GitHub actions (contrarily to this maven-jar-plugin).

@slachiewicz
Copy link
Member

no way - merging PR if build is failing?

@slawekjaranowski
Copy link
Member

Jenkins is used only for branches from repo ... for PR from forks is not used ... so PR can pass without jenkins build

@elharo
Copy link
Contributor

elharo commented Nov 15, 2025

So can we turn on Jenkins for PRs from forks too? If not, maybe we can just move everything to GitHub actions and disable Jenkins completely? Whether you use a fork or a branch, shouldn't change which checks are run.

@desruisseaux
Copy link
Contributor Author

no way - merging PR if build is failing?

The build was not failing when this PR was merged, at least not on GitHub actions. It was failing on Jenkins, but I was not aware of that. Looking at the Jenkins page, Jenkins builds were failing for the master branches of many projects for more than 4 months, and I don't know if anyone paid attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file removed Pull requests that remove features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MJAR-312] failed: An API incompatibility was encountered

6 participants