hellokoding-courses icon indicating copy to clipboard operation
hellokoding-courses copied to clipboard

pom.xml could not be located

Open dchucks opened this issue 5 years ago • 0 comments

When I try to run the docker-compose up command, the pom.xml file could not be located and hence the maven command is not run.

C:\Dev\sandbox\hellokoding-courses\docker-examples\dockercompose-springboot-mysql-nginx>docker-compose up --build
Building app
Step 1/1 : FROM adoptopenjdk/maven-openjdk8
 ---> f167b3a06c25
Successfully built f167b3a06c25
Successfully tagged dockercompose-springboot-mysql-nginx_app:latest
Starting my-mysql ... done
Recreating my-app ... done
Recreating my-nginx ... done
Attaching to my-mysql, my-app, my-nginx
my-mysql | [Entrypoint] MySQL Docker Image 5.7.26-1.1.11
my-app   | [INFO] Scanning for projects...
my-app   | [INFO] ------------------------------------------------------------------------
my-app   | [INFO] BUILD FAILURE
my-app   | [INFO] ------------------------------------------------------------------------
my-app   | [INFO] Total time:  0.564 s
my-app   | [INFO] Finished at: 2019-06-17T08:23:53Z
my-app   | [INFO] ------------------------------------------------------------------------
my-app   | [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/app). Please verify you invoked Maven from the correct directory. -> [Help 1]

Do we need to copy the entire app folder first?

dchucks avatar Jun 17 '19 08:06 dchucks