A
A
Alex Lukyanets2020-11-19 13:12:55
Java
Alex Lukyanets, 2020-11-19 13:12:55

Why does docker maven not see the folder?

Maven starts by itself. The version is checked.

When you try to run the mount bind file with the SimpleTest .java test, it says that it does not see the directory.

Running
docker run --rm --mount type=bind,src=/dir_for_bind/,target=/bind/ -w /bind/ maven:3.6.3-ibmjava-8 mvn -Dtest=SimpleTest test

Specified additionally what to look for in the mounted directory -w /bind/

When I run, just to check for availability - everything is enabled
docker run -it --rm --mount type=bind,src=/dir_for_bind/,target=/bind/ -w /bind/ maven: 3.6.3-ibmjava-8bash
5fb6447907c10338913409.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2020-11-20
@mynameiswisethanyesturday

maven rightly swears at the absence pom.xmlin the directory in which you run it - the screenshot shows that pom.xmlit is not there. create and run

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question