6 months ago
What am I missing here?
The build is failing for my Backend Spring Boot App
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 9 source files with javac [debug parameters release 21] to target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.423 s
[INFO] Finished at: 2025-06-05T07:51:05Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project arfath: Fatal error compiling: error: release version 21 not supported -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
16 Replies
6 months ago
Easy fix. Assuming you're using Java 17 for this. Please let me know if you're not.
Set the variable RAILPACK_JDK_VERSION to 17.
samgordon
Easy fix. Assuming you're using Java 17 for this. Please let me know if you're not.Set the variable RAILPACK_JDK_VERSION to 17.
6 months ago
Hi thanks for the response,
I’m using Java 21 in my project.
arfath-abbas
Hi thanks for the response,I’m using Java 21 in my project.
6 months ago
Alright, well, you're going to have to share some files then.
Can you send pom.xml please. Or the whole repository if it's public.
samgordon
Alright, well, you're going to have to share some files then.Can you send pom.xml please. Or the whole repository if it's public.
6 months ago
https://github.com/arfath-abbas/personal-finance-tracker
My project is in a public repository, please, you may go through it.
arfath-abbas
https://github.com/arfath-abbas/personal-finance-trackerMy project is in a public repository, please, you may go through it.
6 months ago
I can totally build this fine with no variables setup. (project)
Can you delete any variables that may change build behavior?
6 months ago
Sure let me know what is to be done here.
Or you may do it in my repo
arfath-abbas
Sure let me know what is to be done here.Or you may do it in my repo
6 months ago
I am unable to change whatever variables you may have setup in Railway.
6 months ago
I haven’t done any changes in Railway, I just connected my Git repo.
I am new to this, and I’m not sure where or what to do?
arfath-abbas
I haven’t done any changes in Railway, I just connected my Git repo.I am new to this, and I’m not sure where or what to do?
6 months ago
Hm. You have nothing set up in the Variables tab? No start commands either? Just a blank GitHub service linked to the repo?
samgordon
Hm. You have nothing set up in the Variables tab? No start commands either? Just a blank GitHub service linked to the repo?
6 months ago
Correct.
No commands from my side.
arfath-abbas
Correct.No commands from my side.
6 months ago
Are you sure there's an issue, lol?
Attachments
6 months ago
You actually do not need a Dockerfile at all for Railway. Railpack manages it entirely. If you're not building and deploying anywhere else you can delete that Dockefile. It's not being used anyways because it has a .txt extension.
6 months ago
Does anyone even write their own code anymore? Your whole repository is AI generated.
samgordon
Are you sure there's an issue, lol?
6 months ago
Yep there is still issue, ohh Okk I’ll delete the docker file.
Attachments
6 months ago
That deployment is from 44 hours ago. Are you sure you're viewing the latest? Please delete the Dockerfile and see if it initiates a new one.
6 months ago
I'm very confused now... the deployment link on your GitHub leads to my project...