[
https://issues.apache.org/jira/browse/MBUILDCACHE-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17955891#comment-17955891
]
ASF GitHub Bot commented on MBUILDCACHE-115:
--------------------------------------------
sebtiem opened a new pull request, #217:
URL: https://github.com/apache/maven-build-cache-extension/pull/217
Following this checklist to help us incorporate your
contribution quickly and easily:
- [x] Your pull request should address just one issue, without pulling in
other changes.
- [x] Write a pull request description that is detailed enough to understand
what the pull request does, how, and why.
- [x] Each commit in the pull request should have a meaningful subject line
and body.
Note that commits might be squashed by a maintainer on merge.
- [x] Write unit tests that match behavioral changes, where the tests fail
if the changes to the runtime are not applied.
This may not always be possible but is a best-practice.
- [x] Run `mvn verify` to make sure basic checks pass.
A more thorough check will be performed on your pull request automatically.
- [x] You have run the integration tests successfully (`mvn -Prun-its
verify`).
If your pull request is about ~20 lines of code you don't need to sign an
[Individual Contributor License
Agreement](https://www.apache.org/licenses/icla.pdf) if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the [Apache License Version 2.0, January
2004](http://www.apache.org/licenses/LICENSE-2.0)
you have to acknowledge this by using the following check-box.
- [x] I hereby declare this contribution to be licenced under the [Apache
License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
- [x] In any other case, please file an [Apache Individual Contributor
License Agreement](https://www.apache.org/licenses/icla.pdf).
> 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
> 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)