Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

java autobuild overrides maven wrapper only-script distributionType

Open
#2,373 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
github-actions, java

Research direction

Start by reproducing the autobuild behavior with a Maven wrapper using distributionType only-script, comparing the shown Maven wrapper command and the linked Actions log. Inspect the check for maven-wrapper.jar and verify that a valid maven-wrapper.properties-based wrapper is not overridden; done means only-script projects retain their wrapper while bin projects continue to be handled correctly.

Written by the indexing model from the issue text.

Description

When using the maven wrapper distributionType only-script autobuild will override the wrapper:

[2024-07-13 09:29:53] [autobuild] > mvn -N org.apache.maven.plugins:maven-wrapper-plugin:3.3.0:wrapper -Dtype=bin 

See https://github.com/ArloL/chorito/actions/runs/9918944552/job/27404224920 for a full log.

My guess is that autobuild checks for the presence of the maven-wrapper.jar because if I add an empty file back autobuild will not trigger the override. Maybe the check can be changed to check for maven-wrapper.properties or similar?

In the meantime I will revert back to the bin distributionType.

Dominant language
TypeScript
Stars
1.6k
Forks
493
Avg merge
1d 13h
Merged PRs (30d)
44

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/codeql-action

All issues in github/codeql-action

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.