Couldn't read from pom.xml

It’s just simple case
After running action for MR by command

    - name: Build with Maven
      run: mvn -B verify --file pom.xml

gets error
Non-readable POM /home/runner/work/Testset/testset/pom.xml: /home/runner/work/Testset/testset/pom.xml (No such file or directory)

Try to tun with:

- name: Debug only
      run: pwd && ls -lhaR

but in console prints without pwd.
Can somebody help me ?

Hi @Junusova,

Glad to see you in Github Community Forum!

Please follow below points for checking:
a. Make sure you checkout the repository before the ‘mvn command’. (via actions/checkout@v2)
b. Please confirm whether the pom.xml is in the ROOT directory of your repository. If it’s not, add the folder name before pom.xml in the command.
eg:

run: mvn -B verify --file folder/pom.xml    # pom.xml is in the folder directory.

Regarding the pwd checking, please keep align to fix the syntax error.

      - name: Debug only
        shell: bash
        run: |
            pwd && ls -lhaR

If the issue persists, please share your repo for further investigation.

Thanks

Hi @Junusova,

I think i find your issue repo, there is no pom.xml on the root directory of your repository.
Could you please add it and confirm whether it’s resolved?

Thanks.