title: Maven's target jar does not exist on Docker Hub
body: <p>I have built a simple hello world rest service using spring boot. On my local machine (Ubuntu 14.04) when I run <code>mvn package</code> command, a runnable jar is getting created under target folder: <code>equation-1.0-SNAPSHOT.jar</code>. When I run this jar using <code>java -jar equation-1.0-SNAPSHOT.jar</code> I can see the hello world message via browser.</p>
  
  <p>Then I build a docker image using <code>docker build -t hello:0.1 .</code>. My Dockerfile looks like below.</p>
  
  <pre><code>FROM java:8
  
  COPY ./target/equation-1.0-SNAPSHOT.jar ./app.jar
  
  EXPOSE 8080
  
  CMD java -jar app.jar
  </code></pre>
  
  <p>Image gets built successfully and when I run this image using <code>docker run -it -p 5000:8080 hello:0.1</code> I can see hello world message on <code>http://localhost:5000/hello</code>.</p>
  
  <p>So far so good....</p>
  
  <p>Code exists on github and I linked this github repo to Docker Hub. When I trigger an automated build on Docker Hub it is failing with a <code>target/equation-1.0-SNAPSHOT.jar: no such file or directory</code> message. Below is all Logs I see.</p>
  
  <pre><code>Starting to clone
  Cloning into '.'... 
  Cloning done 
  Starting Build 
  KernelVersion: 3.13.0-40-generic 
  Os: linux 
  BuildTime: 2016-02-22T21:37:01.910365059+00:00 
  ApiVersion: 1.22 
  Version: 1.10.2 
  GitCommit: c3959b1 
  Arch: amd64 
  GoVersion: go1.5.3 
  Starting build of index.docker.io/mehmetatas/equation-solver:latest... 
  Step 1 : FROM java:8
   ---&gt; 80a9d37df88e 
  Step 2 : COPY ./target/equation-1.0-SNAPSHOT.jar ./app.jar 
  lstat target/equation-1.0-SNAPSHOT.jar: no such file or directory
  </code></pre>