mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #161] Maven Step Fails #105
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aaron-goulet-bfg on GitHub (Mar 16, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/161
Expected behavior:
mvn) execute when usingact -P ubuntu-latest=nektos/act-environments-ubuntu:18.04-fullActual behavior:
The environments image appears to be either out-of-date, or does not install the same tools/dependencies as the GitHub virtual-environments. This means that currently, Java builds that can be executed directly from GitHub Actions cannot be ran locally.
@cplee commented on GitHub (Mar 16, 2020):
@aaron-goulet-bfg can you share a sample workflow file?
@aaron-goulet-bfg commented on GitHub (Mar 17, 2020):
Anything I can do to help! Here's the relevant portion of the actual workflow that resulted in the above:
And here's the CLI command used to run it:
@aaron-goulet-bfg commented on GitHub (Mar 17, 2020):
Here's the script that the Packer template uses to install Maven normally: [link]
@github-actions[bot] commented on GitHub (May 17, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@vroyer commented on GitHub (May 18, 2020):
I got the same error, how can i fix this ?
@github-actions[bot] commented on GitHub (Jul 18, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@github-actions[bot] commented on GitHub (Sep 19, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@garyarobinson commented on GitHub (Sep 22, 2020):
@vroyer @aaron-goulet-bfg
Temporary workaround until fix is released.
@jeff-miller-cfa commented on GitHub (Oct 16, 2020):
when can we expect a fix for this?
@garyarobinson commented on GitHub (Oct 16, 2020):
Another decent workaround @jeff-miller-cfa ; use the full docker image
act -j build -P ubuntu-latest=nektos/act-environments-ubuntu:18.04@dhowe commented on GitHub (Nov 6, 2020):
same problem here
@sammyrulez commented on GitHub (Nov 6, 2020):
same problem here
@neoromantique commented on GitHub (Dec 25, 2020):
Thank you, this helps!
@github-actions[bot] commented on GitHub (Jan 25, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@mteodori commented on GitHub (Feb 25, 2021):
this doesn't work for me, I chose Large image at install
and my
~/.actrccontains:but still I have the same issue when running
@mohankarthik commented on GitHub (May 11, 2021):
Same issue. A resolution would be very helpful
@brainstorm commented on GitHub (Sep 27, 2021):
Trying to run https://github.com/brainstorm/opencv/blob/apple_silicon/.github/workflows/build.yml locally with act, also fails in mvn with
ghcr.io/catthehacker/ubuntu:runner-18.04(should be fine image according to docs, @cplee ?) :-SI'm running on an M1 (Apple Silicon)... the
sudoanddockererrors are a bit confusing as well, but I guess I have to add--privilegedto the cmdline mix?@brainstorm commented on GitHub (Sep 28, 2021):
Huh, thanks!... I guess I'll be able to pull a refreshed image soon that fixes both the
mvnand sudo/docker stuff, @catthehacker? Let me know if you need some testing from my side, happy to help!@catthehacker commented on GitHub (Sep 28, 2021):
As long as you use image that includes all required software, it should work.
@brainstorm commented on GitHub (Sep 28, 2021):
act -j build_linux_arm64 -P ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64☝🏻 fails the same way (same with
-fullimage variant of ubuntu-18.04...mvnis installed and works fine in GitHub Actions when I push changes):I guess I should purge the ubuntu:runner-18.04 container and try again to pull in your new images/changes?
@catthehacker commented on GitHub (Sep 28, 2021):
proper command would be
act -j build_linux_arm64 -P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:runner-18.04 --container-architecture linux/amd64but from what I see, workflow is using
ubuntu-latestso it should be-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:runner-18.04@brainstorm commented on GitHub (Sep 28, 2021):
Thanks for the feedback @catthehacker, but I'm having the same issue
mvnissue with your proposed cmdline...@catthehacker commented on GitHub (Sep 28, 2021):
That's because
mvnis not installed in that image@brainstorm commented on GitHub (Apr 6, 2022):
Ok, is there an "official"
actimage that includesmvnor shall I just install it prior to running anything on it?@jamezp commented on GitHub (Jun 2, 2022):
Late reply, but @brainstorm yes if you use the "Full" image it will include Maven. That image is huge, but if you're a heavy Java/Maven user it's worth it. If you need to reset your original setting just delete or
~.actrcfile or modify to something like:@KnisterPeter commented on GitHub (Jun 2, 2022):
You can also create your own image to run act with which is not that huge or you can install the java version on demand.
@brainstorm commented on GitHub (Jun 6, 2022):
Thanks @jamezp, unfortunately using that full container seems to miss other things, since I have to add the following for other steps to work properly for the native C/C++/Rust parts:
@jamezp commented on GitHub (Jun 6, 2022):
FWIW I created an image which adds Maven https://quay.io/repository/jamezp/act-maven.
@Weinell commented on GitHub (Nov 9, 2022):
Omg, you are a god amongst men!
For anyone who is unsure on how to run the image - it took me a while to figure it out - then you have to run it like this:
act -P ubuntu-latest=quay.io/jamezp/act-maven@bivashy commented on GitHub (Jun 28, 2024):
This doesn't work now, because Maven
3.6.3binary corrupted/deleted.Simply update Maven version to
3.9.8