ottlinger opened a new pull request, #496:
URL: https://github.com/apache/creadur-rat/pull/496
@cstamas sorry to point to you directly - I'm trying to update RAT to use
the new doxia and reporting-API, but fail to properly wire in the stuff.
The integration tests fail with:
`
[WARNING] Error injecting: org.apache.rat.mp.RatReportMojo
com.google.inject.ProvisionException: Unable to provision, see the following
errors:
1) No implementation for Renderer was bound.
while locating RatReportMojo
1 error
======================
Full classname legend:
======================
RatReportMojo: "org.apache.rat.mp.RatReportMojo"
Renderer: "org.apache.maven.doxia.siterenderer.Renderer"
========================
End of classname legend:
========================
at
com.google.inject.internal.InternalProvisionException.toProvisionException
(InternalProvisionException.java:251)
at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1104)
at com.google.inject.internal.InjectorImpl.getInstance
(InjectorImpl.java:1139)
at org.eclipse.sisu.space.AbstractDeferredClass.get
(AbstractDeferredClass.java:50)
at com.google.inject.internal.ProviderInternalFactory.provision
(ProviderInternalFactory.java:86)
at
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision
(InternalFactoryToInitializableAdapter.java:57)
at com.google.inject.internal.ProviderInternalFactory$1.call
(ProviderInternalFactory.java:67)
at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision
(ProvisionListenerStackCallback.java:109)
at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision
(ProvisionListenerStackCallback.java:124)
at com.google.inject.internal.ProvisionListenerStackCallback.provision
(ProvisionListenerStackCallback.java:66)
at com.google.inject.internal.ProviderInternalFactory.circularGet
(ProviderInternalFactory.java:62)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get
(InternalFactoryToInitializableAdapter.java:47)
at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1101)
at org.eclipse.sisu.inject.Guice4$2.get (Guice4.java:235)
at org.eclipse.sisu.inject.LazyBeanEntry.getValue (LazyBeanEntry.java:83)
at org.eclipse.sisu.plexus.LazyPlexusBean.getValue
(LazyPlexusBean.java:53)
at org.codehaus.plexus.DefaultPlexusContainer.lookup
(DefaultPlexusContainer.java:267)
at org.codehaus.plexus.DefaultPlexusContainer.lookup
(DefaultPlexusContainer.java:259)
at
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo
(DefaultMavenPluginManager.java:491)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:114)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
(MojoExecutor.java:328)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
(MojoExecutor.java:316)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:174)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
(MojoExecutor.java:75)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
(MojoExecutor.java:162)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
(DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:159)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:105)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:73)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:53)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:118)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke
(DirectMethodHandleAccessor.java:103)
at java.lang.reflect.Method.invoke (Method.java:580)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:255)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:201)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:361)
at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:314)
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.496 s
[INFO] Finished at: 2025-07-11T23:59:19+02:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.rat:apache-rat-plugin:0.17-SNAPSHOT:rat (default-cli) on project
it4rat168: Execution default-cli of goal
org.apache.rat:apache-rat-plugin:0.17-SNAPSHOT:rat failed: Unable to load the
mojo 'rat' (or one of its required components) from the plugin
'org.apache.rat:apache-rat-plugin:0.17-SNAPSHOT':
com.google.inject.ProvisionException: Unable to provision, see the following
errors:
[ERROR]
[ERROR] 1) No implementation for Renderer was bound.
[ERROR] while locating RatReportMojo
[ERROR] at
ClassRealm[plugin>org.apache.rat:apache-rat-plugin:0.17-SNAPSHOT, parent:
ClassLoaders$AppClassLoader@63c12fb0]
[ERROR] \_ installed by: WireModule -> PlexusBindingModule
[ERROR] while locating Mojo annotated with
@Named("org.apache.rat:apache-rat-plugin:0.17-SNAPSHOT:rat")
[ERROR]
[ERROR] 1 error
[ERROR]
[ERROR] ======================
[ERROR] Full classname legend:
[ERROR] ======================
[ERROR] ClassLoaders$AppClassLoader:
"jdk.internal.loader.ClassLoaders$AppClassLoader"
[ERROR] Mojo: "org.apache.maven.plugin.Mojo"
[ERROR] Named: "com.google.inject.name.Named"
[ERROR] PlexusBindingModule:
"org.eclipse.sisu.plexus.PlexusBindingModule"
[ERROR] RatReportMojo: "org.apache.rat.mp.RatReportMojo"
[ERROR] Renderer:
"org.apache.maven.doxia.siterenderer.Renderer"
[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.rat:apache-rat-plugin:0.17-SNAPSHOT:rat
[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
`
Do you have a hint of what I'm doing wrong? Thanks
--
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]