R
Railway2y ago
root

Spring Boot: "no main manifest attribute"

Project ID: 56d9c164-0476-4afa-a370-4f5fa5bb0520 I'm trying to deploy a Spring Boot application, and the deploy logs say "no main manifest attribute, in build/libs/<project>.jar". This seems similar to <#1042504739323138119>. I've already tried setting both springBoot.mainClass and bootJar.mainClass in my build.gradle, but neither worked.
5 Replies
Percy
Percy2y ago
Project ID: 56d9c164-0476-4afa-a370-4f5fa5bb0520
Percy
Percy2y ago
No search results found.
⚠️ experimental feature
root
rootOP2y ago
I fixed it! Not entirely sure how, I think what fixed it was creating a nixpacks.toml to change the build task from build to bootJar
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
root
rootOP2y ago
It should be:
[phases.build]
cmds = ["./gradlew bootJar -x check"]
[phases.build]
cmds = ["./gradlew bootJar -x check"]
The start command is the default, I didn't have to customize that.
Want results from more Discord servers?
Add your server