0

I am creating a container in docker using the below command.I need to use the below command from a .bat file when I execute the command from the command line it runs but does not work with the batch file.What am I doing wrong here.

Batch File

call mvnw.cmd spring-boot:build-image -Dspring-boot.build-image.imageName=service

Error:

'mvnw.cmd' is not recognized as an internal or external command,operable program or batch file.

Wasif
  • 14,755
  • 3
  • 14
  • 34
Mr Ajay
  • 399
  • 1
  • 4
  • 18

1 Answers1

0

Windows does not know where the mvnw.cmd is, either use an environment variable, with relative path, or use an absolute path, or navigate to the directory, before running the command.

Shaqil Ismail
  • 1,794
  • 1
  • 4
  • 5