Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"The goal you specified requires a project to execute but there is no POM in this directory" #43

Closed
KPull opened this issue Mar 2, 2021 · 3 comments

Comments

@KPull
Copy link

KPull commented Mar 2, 2021

I've having trouble executing this resource with the following pipeline:

jobs:
  - name: build
    plan:
      - get: source-code
        trigger: true

      - task: maven-package
        config:
          platform: linux
          image_resource:
            type: registry-image
            source:
              repository: maven
              tag: 3.6.3-openjdk-11
          inputs:
            - name: source-code
              path: source-code
          outputs:
            - name: binaries
              path: source-code/target
          run:
            dir: source-code
            path: mvn
            args:
              - package

      - put: package
        params:
          file: binaries/application-*.jar
          pom_file: source-code/pom.xml

    on_failure:
      put: notification
      params:
        message: ":warning: `application` has failed tests"

However, when running the Pipeline in Concourse, I get the following error:

The goal you specified requires a project to execute but there is no POM in this directory (/tmp/build/put). Please verify you invoked Maven from the correct directory. -> [Help 1]`

I've tried version 1.3.6 and the latest versions of this resource however both are giving us the same error. Can you please point out what I'm doing wrong, please?

@KPull
Copy link
Author

KPull commented Mar 2, 2021

Sorry, for posting an empty issue. I've now updated it with the relevant details.

@EndzeitBegins
Copy link

Hello @KPull,

sadly this resource seems to no longer being maintained actively by the author.
This issue is most likely due to more than one .jar-fie being picked up by your wildcard query for the file parameter: binaries/application-*.jar
The same happened to me when building a project with javadoc or sources.

This issue is known for some time, see #28.
Also there is a pull request to improve the error message but it hasn't been merged, see #39.

I hope this helps you somewhat.

@KPull
Copy link
Author

KPull commented Mar 16, 2021

Thanks for your help @EndzeitBegins.

This is a pity, given that this resource is "officially" one of the recommended resources on the Concourse homepage. It doesn't bode well for Concourse as a project if the recommended resources are not maintained.

@KPull KPull closed this as completed Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants