[
https://issues.apache.org/jira/browse/MBUILDCACHE-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17948178#comment-17948178
]
Gili commented on MBUILDCACHE-115:
----------------------------------
[~sebtiem] I'm glad you were able to reproduce the problem, but I don't fully
understand your reply. Are we in agreement that there is a bug in build-cache
extension (or its dependency) that needs to be fixed or are you saying that
there is a bug in protobuf-maven-plugin?
Thanks.
> 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
> 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)