[ https://issues.apache.org/jira/browse/MBUILDCACHE-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17948153#comment-17948153 ]
Sebastian Tiemann commented on MBUILDCACHE-115: ----------------------------------------------- Hey there, thanks for creating the issue. I read across your discussion and MBUILDCACHE-110. But I am unable to reproduce any of those errors you mentioned. Maybe you could provide a small project so I can try to analyze, what's going on? I tried to reproduce the issue [in a small repo|https://github.com/sebtiem/mbuildcache-115-repoduction] but my mvn package is successfull with a build-cache entry and a generated Test.java under target/generated-sources, created from a test.proto from src/main/protobuf. The build itself is successfull. > 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)