title: gcloud deployment fails with BadFileExceptions
body: <p>I migrated an AppEngine project to Google Cloud Endpoints V2 and started using Google Cloud SDK and Maven for this project. </p>
  
  <p>Unfortunately, deployment always fails. When <code>mvn appengine:deploy</code> is done, I get similar errors for (all) files that are uploaded:</p>
  
  <p><strong>[INFO] GCLOUD: MaxRetrialsException: last_result=(None, (class 'googlecloudsdk.calliope.exceptions.BadFileException', BadFileException('Cloud storage upload failure. Uploaded file does not match local
  file: XXX\target\appengine-staging\__static__/scripts/modules.js. Please retry.',), traceback object at 0x0AE158A0)), last_retrial=3, time_pass
  ed_ms=2522,time_to_wait=0</strong></p>
  
  <p>I wonder why the uploaded files don't the match local files at my machine.</p>
  
  <p>I retried it several times, but it always failed. Between the deploy attempts the target directory and the staging area in <a href="https://console.cloud.google.com/storage" rel="nofollow noreferrer">https://console.cloud.google.com/storage</a> were deleted, but this did not help. </p>
  
  <p>Development environment:</p>
  
  <ul>
  <li>Google Cloud SDK 218.0.0 </li>
  <li>Eclipse Java EE IDE for Web Developers Version: 2018-09 (4.9.0) </li>
  <li>Apache Maven 3.5.4</li>
  <li>Maven project.build.sourceEncoding is UTF-8 </li>
  <li>All files (modules.js for example) are UTF-8</li>
  </ul>
  
  <p>Anyone an idea? Thanks in advance.</p>