You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2025/01/15 09:29:00 UTC

[jira] [Updated] (MBUILDCACHE-115) MojoExecution is not fully seeded, causes DI failure

     [ https://issues.apache.org/jira/browse/MBUILDCACHE-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tamas Cservenak updated MBUILDCACHE-115:
----------------------------------------
    Summary: MojoExecution is not fully seeded, causes DI failure  (was: MojoExecution is not seeded, causes DI failure)

> MojoExecution is not fully seeded, causes DI failure
> ----------------------------------------------------
>
>                 Key: MBUILDCACHE-115
>                 URL: https://issues.apache.org/jira/browse/MBUILDCACHE-115
>             Project: Maven Build Cache Extension
>          Issue Type: Bug
>            Reporter: Tamas Cservenak
>            Priority: Major
>
> It seems on "restore project" not everything is seeded in Guice session scope. Injecting {{org.apache.maven.plugin.MojoExecution}} is not possible, causes ISEx as is out of scope.
> Unsure why MBUILDCACHE-110 mentions "forces dependency on plexus utils", when the stack trace is about Guice scope issue.
> Example of failure point:
> https://github.com/ascopes/protobuf-maven-plugin/blob/aeff23cfae4cef0f18f2dd232c849febe4815bf1/protobuf-maven-plugin/src/main/java/io/github/ascopes/protobufmavenplugin/utils/TemporarySpace.java#L45
> Example of error message:
> https://github.com/ascopes/protobuf-maven-plugin/issues/472
> (but again, unsure how plexus-utils come into play here)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)