title: Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build Exception caught: basedir src/main/docker does not exist
body: <p>Deploy <code>Spring Cloud</code> project with <code>docker</code>, some code in the <code>pom.xml</code>:</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
          &lt;!-- tag::plugin[] --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;com.spotify&lt;/groupId&gt;
              &lt;artifactId&gt;docker-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;imageName&gt;${docker.image.prefix}/${project.artifactId}&lt;/imageName&gt;
                  &lt;dockerDirectory&gt;src/main/docker&lt;/dockerDirectory&gt;
                  &lt;resources&gt;
                      &lt;resource&gt;
                          &lt;targetPath&gt;/&lt;/targetPath&gt;
                          &lt;directory&gt;${project.build.directory}&lt;/directory&gt;
                          &lt;include&gt;${project.build.finalName}.jar&lt;/include&gt;
                      &lt;/resource&gt;
                  &lt;/resources&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;!-- end::plugin[] --&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;skipTests&gt;true&lt;/skipTests&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>when i run the command: <code>mvn package docker:build</code>, it throws the error:</p>
  
  <pre><code>[INFO] 
  [INFO] --- spring-boot-maven-plugin:1.5.2.RELEASE:repackage (default) @ eureka-server ---
  [INFO] 
  [INFO] --- docker-maven-plugin:1.0.0:build (default-cli) @ eureka-server ---
  [INFO] Using authentication suppliers: [ConfigFileRegistryAuthSupplier]
  [INFO] Copying /Users/eureka-server/target/eureka-server-0.0.1-SNAPSHOT.jar -&gt; /Users/eureka-server/target/docker/eureka-server-0.0.1-SNAPSHOT.jar
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 6.728 s
  [INFO] Finished at: 2017-11-15T20:51:07+08:00
  [INFO] Final Memory: 41M/361M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default-cli) on project eureka-server: Exception caught: basedir src/main/docker does not exist -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  
  <p>my project has this file <code>src/main/docker</code>, how to solve it?</p>