title: Docker run unable to access JAR file
body: <p>I am using XML Configuration method to generate Dockerfile for my project.The generated Dockerfile looks OK and it gets built fine. However when I run it it always fails with the error.
  We have created an internal base image for java that I'll call as baseImage</p>
  
  <p>Error: Unable to access jarfile echo-0.0.1.jar
  Description
  Info</p>
  
  <pre><code>f-m-p version : 3.5.31
  Maven version (mvn -v) : Apache Maven 3.3.9
  Kubernetes / OpenShift setup and version : N/A
  </code></pre>
  
  <p>My POM file:</p>
  
  <p>`
  io.fabric8
  fabric8-maven-plugin
  3.5.31</p>
  
  <pre><code>        &lt;configuration&gt;
              &lt;images&gt;
                  &lt;image&gt;
                      &lt;name&gt;echo-image:latest&lt;/name&gt;
                      &lt;build&gt;
                          &lt;entryPoint&gt;
                              &lt;arg&gt;java&lt;/arg&gt;
                              &lt;arg&gt;-jar&lt;/arg&gt;
                              &lt;arg&gt;/deployments/echo-0.0.1.jar&lt;/arg&gt;
                          &lt;/entryPoint&gt;
                          &lt;from&gt;com/baseimage&lt;/from&gt;
  
                          &lt;tags&gt;
                              &lt;tag&gt;latest&lt;/tag&gt;
                          &lt;/tags&gt;
                          &lt;ports&gt;
                              &lt;port&gt;7000&lt;/port&gt;
                          &lt;/ports&gt;
                          &lt;env&gt;
                              &lt;JAVA_LIB_DIR&gt;/deployments&lt;/JAVA_LIB_DIR&gt;
                          &lt;/env&gt;
                          &lt;assembly&gt;
                              &lt;basedir&gt;/deployments&lt;/basedir&gt;
                              &lt;descriptorRef&gt;artifact&lt;/descriptorRef&gt;
                          &lt;/assembly&gt;
  
                      &lt;/build&gt;
  
                  &lt;/image&gt;
              &lt;/images&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;`
  </code></pre>
  
  <p>Generated Docker File:</p>
  
  <pre><code>FROM com/baseImage 
  ENV JAVA_LIB_DIR=/deployments 
  EXPOSE 7000 
  COPY maven /deployments/ 
  ENTRYPOINT ["java","-jar","/deployments/echo-0.0.1.jar"] 
  </code></pre>
  
  <p>mvn build:</p>
  
  <pre><code>mvn clean package fabric8:build
  </code></pre>
  
  <p>Docker run output:</p>
  
  <blockquote>
    <p>Error: Unable to access jarfile /deployments/echo-0.0.1.jar</p>
  </blockquote>
  
  <p>What am I missing? It is frustrating to not able to get this to work. Please help!</p>