openrewrite / openrewrite/rewrite-github-actions
Change Maven commands to use the maven wrapper
Open
Nobody has claimed this yet.
recipe
- Dominant language
- Java
- Stars
- 1
- Forks
- 9
- Avg merge
- 5h 27m
- Merged PRs (30d)
- 12
Description
This recipe can be part of https://github.com/openrewrite/rewrite/issues/1565 and change all the maven references to the maven wrapper
Example:
name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
Unix runners:
name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build with Maven
run: ./mvn --batch-mode --update-snapshots package
Windows Runners:
name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build with Maven
run: mvn.cmd --batch-mode --update-snapshots package
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides GitHub Actions YAML examples for Maven commands on Unix and Windows runners, but names no recipe file or tests. Start by locating the recipe that matches Maven commands, then determine the wrapper command for each runner; done means all relevant Maven references use the wrapper and the existing tests cover the change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, java
- Domain
- build-system, ci-cd
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100