- Newest
- Most votes
- Most comments
Hello,
From query I can clearly see that “/target/spring-petclinic-2.3.0.jar": not found .
As you already mentioned that target folder was not there and as per Dockerfile command “ADD target/spring-petclinic-2.3.0.jar app.jar” it will search for spring-petclinic-2.3.0.jar in "target" folder in current directory .
As per shared document The compiled java classes were placed in spring-petclinic/target/classes, which is another standard convention employed by Maven.
Hence I will suggest you to please verify and see why target folder is not getting generated . If you need further assistance we need to dig deeper into logs. And I will request you to please reach out to us by opening a support case with us.
I will be more than happy to assist with that.
Thank you!!!
Hi Jeff,
before running the Docker Build
command, did you run the Package the application using Apache Maven?
cd ~/environment/aws-apprunner-terraform/petclinic
mvn package -Dmaven.test.skip=true
This will create the target folder and the "spring-petclinic-2.3.0.jar" that you are missing into your Docker Build process
Relevant content
- asked a year ago
- How do I turn on the EC2 serial console, SAC, and boot menu to troubleshoot my Windows EC2 instance?AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago