title: Unhandled: Not found mavenPOMFile - Azure DevOps pipeline for Java Function App
body: <p>I would like to create pipeline which deploy Java Azure Function, but failing. Please advice me.
  I'm following tutorial as base, but I'm using Git Repo of Azure DevOps instead of GitHub.
  <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/java-function?view=azure-devops" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/java-function?view=azure-devops</a></p>
  
  <p>POM File is located inside zip file of /pipelines-java-function-master/pom.xml</p>
  
  <p>My Error is:</p>
  
  <pre><code> Starting: Maven
   ==============================================================================
   Task         : Maven
   Description  : Build, test, and deploy with Apache Maven
   Version      : 3.168.0
   Author       : Microsoft Corporation
   Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/maven
   ==============================================================================
   ##[error] Unhandled: Not found mavenPOMFile: /home/vsts/work/1/s/pom.xml
   Finishing: Maven
  </code></pre>
  
  <p>My YAML is:</p>
  
  <pre><code>trigger:
  - master
  
  pool:
    vmImage: 'ubuntu-latest'
  
  # at the top of your YAML file 
  # set some variables that you'll need when you deploy
  variables:
    # the name of the service connection that you created above
    serviceConnectionToAzure: name-of-your-service-connection
    # the name of your web app here is the same one you used above
    # when you created the web app using the Azure CLI
    appName: JavaFuncApp
  
  # ...
  
  # Maven
  # Build your Java project and run tests with Apache Maven.
  # Add steps that analyze code, save build artifacts, deploy, and more:
  # https://docs.microsoft.com/azure/devops/pipelines/languages/java
  
  steps:
  - task: Maven@3
    inputs:
      mavenPomFile: 'pom.xml'
      mavenOptions: '-Xmx3072m'
      javaHomeOption: 'JDKVersion'
      jdkVersionOption: '1.8'
      jdkArchitectureOption: 'x64'
      publishJUnitResults: true
      testResultsFiles: '**/surefire-reports/TEST-*.xml'
      goals: 'package'
  
  
      # ...
  # add these as the last steps
  # to deploy to your app service
  - task: CopyFiles@2
    displayName: Copy Files
    inputs:
      SourceFolder: $(system.defaultworkingdirectory)/target/azure-functions/
      Contents: '**'
      TargetFolder: $(build.artifactstagingdirectory)   
  
  - task: PublishBuildArtifacts@1
    displayName: Publish Artifact
    inputs:
      PathtoPublish: $(build.artifactstagingdirectory)    
  
  
  - task: AzureWebApp@1
    inputs:
      azureSubscription: 'connection-to-MyTestRG-rg'
      appType: 'webApp'
      appName: '$(appName)'
      package: '$(System.DefaultWorkingDirectory)/pipelines-java-function-master.zip'
      deploymentMethod: 'auto'
  </code></pre>