-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Description
When I run mvnd clean install -Dmaven.build.cache.skipCache
, the build is successful sometimes, but other times I get the following error. If I re-run the build, the issue resolves itself (sometimes) or if I manually run poetry lock --regenerate
within the failed module, the command works without an issue. I suspect this is a race condition that we need to account when using mvnd
to run poetry lock --regenerate
.
[INFO] --- habushu:3.0.0-SNAPSHOT:install-dependencies (default-install-dependencies) @ habushu-default-python-strategy ---
[INFO] Executing poetry command: poetry config virtualenvs.in-project --local
[INFO] Locking dependencies specified in pyproject.toml...
[INFO] Executing poetry command: poetry lock --regenerate
[INFO] Updating dependencies
[INFO] Resolving dependencies...
[INFO]
[INFO] Because habushu-default-python-strategy depends on ruff (>=0.9.9) which doesn't match any versions, version solving failed.
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.187 s (Wall Clock)
[INFO] Finished at: 2025-05-14T10:58:37-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.technologybrewery.habushu:habushu-maven-plugin:3.0.0-SNAPSHOT:install-dependencies (default-install-dependencies) on project habushu-default-python-strategy: Execution default-install-dependencies of goal org.technologybrewery.habushu:habushu-maven-plugin:3.0.0-SNAPSHOT:install-dependencies failed: Error occurred while performing poetry command: poetry lock --regenerate: org.technologybrewery.habushu.HabushuException: Could not invoke command! See output above. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
Metadata
Metadata
Assignees
Labels
No labels