rychkov opened a new issue, #3268: URL: https://github.com/apache/maven-surefire/issues/3268
### Affected version 3.5.4 ### Bug description I have simple pom ``` <?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>some.test</groupId> <artifactId>wtf</artifactId> <version>0.0.0</version> <packaging>pom</packaging> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.5.4</version> </plugin> </plugins> </build> </project> ``` After release 3.5.5 my build failed because `mvn surefire-report:report` uses maven-surefire-report:3.5.5 instead of expected 3.5.4 Error is [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-report-plugin:3.5.5:report (default-cli) on project wtf: Execution default-cli of goal org.apache.maven.plugins:maven-surefire-report-plugin:3.5.5:report failed: Unable to load the mojo 'report' (or one of its required components) from the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin:3.5.5': com.google.inject.ProvisionException: Unable to provision, see the following errors: [ERROR] [ERROR] 1) [Guice/NullInjectedIntoNonNullable]: null returned by binding at LocatorWiring [ERROR] but the 1st parameter of DefaultVelocityComponent.<init>(DefaultVelocityComponent.java:39) is not @Nullable [ERROR] at LocatorWiring [ERROR] at DefaultVelocityComponent.<init>(DefaultVelocityComponent.java:39) [ERROR] \_ for 1st parameter [ERROR] at ClassRealm[plugin>org.apache.maven.plugins:maven-surefire-report-plugin:3.5.5, parent: ClassLoaders$AppClassLoader@33909752] [ERROR] \_ installed by: WireModule -> PlexusBindingModule [ERROR] while locating DefaultVelocityComponent [ERROR] while locating Object annotated with * [ERROR] at LocatorWiring [ERROR] at DefaultSiteRenderer.velocity(DefaultSiteRenderer.java:122) [ERROR] \_ for field velocity [ERROR] at ClassRealm[plugin>org.apache.maven.plugins:maven-surefire-report-plugin:3.5.5, parent: ClassLoaders$AppClassLoader@33909752] [ERROR] \_ installed by: WireModule -> PlexusBindingModule [ERROR] while locating DefaultSiteRenderer [ERROR] while locating Object annotated with * [ERROR] while locating SurefireReport [ERROR] at ClassRealm[plugin>org.apache.maven.plugins:maven-surefire-report-plugin:3.5.5, parent: ClassLoaders$AppClassLoader@33909752] [ERROR] \_ installed by: WireModule -> PlexusBindingModule [ERROR] while locating Mojo annotated with @Named("org.apache.maven.plugins:maven-surefire-report-plugin:3.5.5:report") [ERROR] [ERROR] Learn more: [ERROR] https://github.com/google/guice/wiki/NULL_INJECTED_INTO_NON_NULLABLE [ERROR] [ERROR] 1 error [ERROR] [ERROR] ====================== [ERROR] Full classname legend: [ERROR] ====================== [ERROR] ClassLoaders$AppClassLoader: "jdk.internal.loader.ClassLoaders$AppClassLoader" [ERROR] DefaultSiteRenderer: "org.apache.maven.doxia.siterenderer.DefaultSiteRenderer" [ERROR] DefaultVelocityComponent: "org.codehaus.plexus.velocity.internal.DefaultVelocityComponent" [ERROR] LocatorWiring: "org.eclipse.sisu.wire.LocatorWiring" [ERROR] Mojo: "org.apache.maven.plugin.Mojo" [ERROR] Named: "com.google.inject.name.Named" [ERROR] PlexusBindingModule: "org.eclipse.sisu.plexus.PlexusBindingModule" [ERROR] SurefireReport: "org.apache.maven.plugins.surefire.report.SurefireReport" [ERROR] WireModule: "org.eclipse.sisu.wire.WireModule" [ERROR] ======================== [ERROR] End of classname legend: [ERROR] ======================== [ERROR] [ERROR] role: org.apache.maven.plugin.Mojo [ERROR] roleHint: org.apache.maven.plugins:maven-surefire-report-plugin:3.5.5:report [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
