title: Azure release pipeline for Spring Boot app says it has no artifact to publish
body: <p>I want to deploy my Spring Boot (Java) app on Azure using Azure DevOps. However, I cant seem to get the release pipeline working.</p>
  
  <p>I already created an Azure build pipeline with the following azure-pipelines.yml:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>trigger:
  - master
  
  pool:
    vmImage: 'ubuntu-latest'
  
  steps:
  - task: Maven@3
    inputs:
      mavenPomFile: 'pom.xml'
      goals: 'package'
      options: '-Dmaven.test.skip=true'
      mavenOptions: '-Dmaven.test.skip=true'
      publishJUnitResults: false
      javaHomeOption: 'JDKVersion'
      mavenVersionOption: 'Default'
      mavenAuthenticateFeed: false
      effectivePomSkip: false
      sonarQubeRunAnalysis: false</code></pre>
  </div>
  </div>
  </p>
  
  <p>The build is successful, so the next step is to create a Release pipeline. I selected the option 'Deploy a Java app to Azure App Service'. When I try to add the artifact, then I see the following:
  <a href="https://i.stack.imgur.com/cFqPi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cFqPi.png" alt="Screenshot of Azure release pipeline"></a></p>
  
  <p>As you can see, I get the message <strong>'No version is available for  or the latest version has no artifacts to publish. Please check the source pipeline.'</strong>. This tells me that the build pipeline did not create the artifact or that some other setting is configure incorrectly. My initial thought is that I need to add a step to azure-pipelines.yml that actually puts the artifact somewhere. </p>
  
  <p>Does anyone know what is the solution?</p>