Java maven build fails
Nixpacks seems to be failing without running any of my build commands. Any help would be appreciated š
Solution:Jump to solution
fuck me.... I was in the middle of writing that locally 1.18 and 1.10 both don't work (fail for that
COPY .nixpacks/*
), but do work if I run build in my subdirectory with package.json. I thought it had something to do with Java at first, but I have then seen that I have .dockerignore in my root š¤¦āāļø
```
*
!target/-runner
!target/-runner.jar...14 Replies
Project ID:
30c1c37f-83bb-4aca-810c-1086679cb0a8
please provide full build logs https://bookmarklets.up.railway.app/log-downloader/
do you have a nixpacks.toml file?
no
railway.json?
nope
any kind of railway config or service variables that would modify the build
This is the one that is suggested in the console, but I don't have any config in the repo. Also no variables. I'm trying to deploy a clean maven project.
okay then ill have to pull in the java expert
@aleks - need help please š
tnx
This seems almost like it might be running the steps in the wrong order - would you be able to install Nixpacks locally and run
nixpacks plan
, and paste the output here?
Note that I have overriden the build and start command in the console. But the output was the same even before that. The build fails because that .nixpacks copy fails and the checksum cannot be calculated.
Solution
fuck me.... I was in the middle of writing that locally 1.18 and 1.10 both don't work (fail for that
COPY .nixpacks/*
), but do work if I run build in my subdirectory with package.json. I thought it had something to do with Java at first, but I have then seen that I have .dockerignore in my root š¤¦āāļø
Sorry for this time waste and thanks for the help!