Skip to content

pom.xml could not be located #6

@dchucks

Description

@dchucks

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions