- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
Contenus pertinents
- Réponse acceptéedemandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 3 ans