a month 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
a month 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
.
loudbook
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.
a month 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.
a month 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.
loudbook
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.
a month 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.
a month ago
I can totally build this fine with no variables setup. (project)
Can you delete any variables that may change build behavior?
a month 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
a month ago
I am unable to change whatever variables you may have setup in Railway.
a month 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?
a month ago
Hm. You have nothing set up in the Variables tab? No start commands either? Just a blank GitHub service linked to the repo?
loudbook
Hm. You have nothing set up in the Variables tab? No start commands either? Just a blank GitHub service linked to the repo?
a month ago
Correct.
No commands from my side.
arfath-abbas
Correct.No commands from my side.
a month ago
Are you sure there's an issue, lol?
Attachments
a month 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.
a month ago
Does anyone even write their own code anymore? Your whole repository is AI generated.
loudbook
Are you sure there's an issue, lol?
a month ago
Yep there is still issue, ohh Okk I’ll delete the docker file.
Attachments
a month 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.
a month ago
I'm very confused now... the deployment link on your GitHub leads to my project...