minor
#29197
Eclipse error after dependency update: maven-jar-plugin 3.5.0 causes "outside of a scoping block" error in m2e
**Description** After updating the maven-jar-plugin from version 3.3.0 to 3.5.0, errors of the following type occur in Eclipse:
Cannot access Key[type=org.apache.maven.project.MavenProject, annotation=[none]] outside of a scoping block
All projects in the workspace are affected, each in the pom.xml. Maven CLI builds (mvn clean package) are not affected and continue to run without errors.
**Cause** This is a known incompatibility between maven-jar-plugin 3.5.0 and the Eclipse-Maven-Integration (m2e). The plugin tries to inject MavenProject outside of a Guice scoping block, which m2e does not support.
Reference: https://github.com/eclipse-m2e/m2e-core/issues/2084
**Reproduction**
- Set maven-jar-plugin in the POM to version 3.5.0
- In Eclipse: Run Maven → Update Project
- The above errors appear in the problem view for all affected projects
**Workaround (currently in use)** Downgrade the maven-jar-plugin to version 3.4.2 in the parent POM:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
</plugin>
**Acceptance criterion** Version 3.5.0 (or higher) of the maven-jar-plugin can be used without errors in Eclipse as soon as a compatible m2e fix is available and introduced.