s4u / pgpverify-maven-plugin

Verify Open PGP / GPG signatures plugin
https://www.simplify4u.org/pgpverify-maven-plugin/
Apache License 2.0
49 stars 20 forks source link

Execution default of goal o.s.p:pgpverify-m-p:1.18.1:check failed: Could not acquire lock(s) #554

Closed pzygielo closed 4 months ago

pzygielo commented 4 months ago

Describe the bug

In the maven (3.9.7 + Java Corretto 21.0.3-9.1/x64, ubuntu) project built with -T 2C I've got:

Error:  Failed to execute goal org.simplify4u.plugins:pgpverify-maven-plugin:1.18.1:check (default) on project XXX: Execution default of goal org.simplify4u.plugins:pgpverify-maven-plugin:1.18.1:check failed: Could not acquire lock(s) -> [Help 1]
Error:  Failed to execute goal org.simplify4u.plugins:pgpverify-maven-plugin:1.18.1:check (default) on project YYY: Execution default of goal org.simplify4u.plugins:pgpverify-maven-plugin:1.18.1:check failed: Could not acquire lock(s) -> [Help 1]

At https://www.simplify4u.org/pgpverify-maven-plugin/check-mojo.html the goal is marked as thread-safe and I've never encountered issues with that before.

To Reproduce TBD

Expected behavior

Additional context As for now I don't know if related: happened after upgrading maven-shade-plugin from 3.5.3 to 3.6.0.

pzygielo commented 4 months ago

On second run of CI all was fine.

Unfortunately the first (failed) run was without -X flag, so I can't share stack trace now.

pzygielo commented 4 months ago

Found this: https://issues.apache.org/jira/browse/MNG-7868

pzygielo commented 4 months ago

The exception could come from: https://github.com/s4u/pgpverify-maven-plugin/blob/f5fbc245e64091a41ba0926a6958b98bf0b29eb3/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/synccontext/named/NamedLockFactoryAdapter.java#L219 (resolver 1.9.20 - used by maven)

pzygielo commented 4 months ago

Closing as after reading MNG-7868 it seems to be the upstream cause.