[
https://issues.apache.org/jira/browse/MBUILDCACHE-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olivier Lamy reassigned MBUILDCACHE-115:
----------------------------------------
Assignee: Olivier Lamy
> MojoExecution is not seeded in session scope, causes DI failure
> ---------------------------------------------------------------
>
> Key: MBUILDCACHE-115
> URL: https://issues.apache.org/jira/browse/MBUILDCACHE-115
> Project: Maven Build Cache Extension (Moved to GitHub Issues)
> Issue Type: Bug
> Reporter: Tamas Cservenak
> Assignee: Olivier Lamy
> Priority: Major
> Labels: pull-request-available
>
> 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)