Skip to content

Could not Perform Maven Update #28585

Closed

Description

@kesavan22

I recently created Jhipster app using generator version 8.7.3, while generating files noticed log Cannot start maven from wrapper. But the files were generated successfully i could see the execution completion log.

Is this anything wrong in my system wondering due to the space between my PC Username?

Please share your thoughts on this.

Thank you.

Image

-----------------*****----------------------

Image

Below is the error occurred on performing maven update, i have checked the .m2 folder dependency was downloaded from central maven repo.

Image

Activity

  1. kesavan22 commented on Jan 29, 2025

    @kesavan22
    Author

    Adding some more observations

    Created a new app with the older generator version 7.9.4. I could see the libraries downloading from central repo without error

    Image

  2. atomfrede commented on Jan 29, 2025

    @atomfrede
    Member

    Can you execute the wrapper directly via cli? Regarding the space, at least I rembemer some issues with spaces (in particular on windows) with node/npm we use to execute the task during generation.

  3. kesavan22 commented on Jan 29, 2025

    @kesavan22
    Author

    No, I can't execute this via cli, but the downgraded version I can

  4. ps10xgit commented on Feb 6, 2025

    @ps10xgit
    Contributor

    In my case, with Maven on Windows, I was also to fix the error by adding quotes around the %MVNW_CMD% in the generated mvnw.cmd.

    I changed:
    @IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*)
    to:
    @IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)

    Maybe this fix could be applied to the generator template (line 43) https://github.com/jhipster/generator-jhipster/blob/main/generators/maven/templates/mvnw.cmd

  5. mshima commented on Feb 6, 2025

    @mshima
    Member

    Release is pending: apache/maven-wrapper#152

    @ps10xgit can you contribute with a PR?

  6. added 3 commits that reference this issue on Feb 8, 2025
    2e481e8
    38dc4da
    d723c35
  7. added this to the 8.9.0 milestone on Feb 8, 2025
  8. added a commit that references this issue on Feb 8, 2025
    22b44b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions