Docker registry naming convention problem

I am trying to build my image using this plugin: https://github.com/spotify/docker-maven-plugin#use-a-dockerfile

When I run mvn clean package docker:build

I get this error:

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.2.3:build (defa
ult-cli) on project demo: Exception caught: Request error: POST https://192.168.
99.100:2376/v1.12/build?t=DevOpsClient: 500: HTTP 500 Internal Server Error -> [
Help 1]
When I check the docker daemon logs, I see this:

Handler for POST /build returned error: repository name component must match “[a-z0-9]+(?:[._-][a-z0-9]+)*”" statusCode=500

Apparently you cannot have any upper case letters.

I am trying to build a spring boot application image by following the guide on their official website.

However, I am using a SNAPSHOT release of spring boot and I have a directory named demo-0.1.1-SNAPSHOT. I believe this may be causing the problem.

Also I am working on windows and my project directory path is like:

C:\Users\myname\UserRegistrationClient\git… etc
Would this also affect the repository naming convention?

And how would I change it?