[ 
https://issues.apache.org/jira/browse/MNG-7642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17655065#comment-17655065
 ] 

ASF GitHub Bot commented on MNG-7642:
-------------------------------------

michael-o commented on code in PR #947:
URL: https://github.com/apache/maven/pull/947#discussion_r1062712956


##########
maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java:
##########
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.model.plugin;
+
+import javax.inject.Named;
+import javax.inject.Singleton;
+
+import org.apache.maven.model.Model;
+import org.apache.maven.model.building.ModelBuildingRequest;
+import org.apache.maven.model.building.ModelProblemCollector;
+
+/**
+ * Handles conversion of the <code>&lt;reporting&gt;</code> section into the 
configuration of Maven Site Plugin 3.x,
+ * i.e. <code>reportPlugins</code> and <code>outputDirectory</code> parameters.
+ *
+ * @author Benjamin Bentmann
+ * @deprecated since maven 4.0, this class is not used anymore and is only 
here for compatibility

Review Comment:
   Don't should say that this is a no-op





> 4.0.0-alpha 3 not compatible with flatten plugin
> ------------------------------------------------
>
>                 Key: MNG-7642
>                 URL: https://issues.apache.org/jira/browse/MNG-7642
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 4.0.0-alpha-3
>            Reporter: Olivier Lamy
>            Assignee: Guillaume Nodet
>            Priority: Critical
>
> when using flatten-m-p
> {code}
> [WARNING] ClassRealm[plugin>org.codehaus.mojo:flatten-maven-plugin:1.3.0, 
> parent: jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27]
> com.google.inject.CreationException: Unable to create injector, see the 
> following errors:
> 1) [Guice/MissingImplementation]: No implementation for 
> ModelBuilderThreadSafetyWorkaround annotated with interface 
> TypeArguments$Implicit was bound.
> Did you mean?
>     ModelBuilderThreadSafetyWorkaround bound at LocatorWiring
> Requested by:
> 1  : LocatorWiring
> Learn more:
>   https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION
> 1 error
> ======================
> Full classname legend:
> ======================
> LocatorWiring:                      "org.eclipse.sisu.wire.LocatorWiring"
> ModelBuilderThreadSafetyWorkaround: 
> "org.codehaus.mojo.flatten.ModelBuilderThreadSafetyWorkaround"
> TypeArguments$Implicit:             
> "org.eclipse.sisu.inject.TypeArguments$Implicit"
> ========================
> End of classname legend:
> ========================
>     at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist 
> (Errors.java:576)
>     at 
> com.google.inject.internal.InternalInjectorCreator.initializeStatically 
> (InternalInjectorCreator.java:163)
>     at com.google.inject.internal.InternalInjectorCreator.build 
> (InternalInjectorCreator.java:110)
>     at com.google.inject.Guice.createInjector (Guice.java:87)
>     at com.google.inject.Guice.createInjector (Guice.java:69)
>     at com.google.inject.Guice.createInjector (Guice.java:59)
>     at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector 
> (DefaultPlexusContainer.java:481)
>     at org.codehaus.plexus.DefaultPlexusContainer.discoverComponents 
> (DefaultPlexusContainer.java:460)
>     at 
> org.apache.maven.plugin.internal.DefaultMavenPluginManager.discoverPluginComponents
>  (DefaultMavenPluginManager.java:421)
>     at 
> org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm 
> (DefaultMavenPluginManager.java:403)
>     at 
> org.apache.maven.plugin.internal.DefaultMavenPluginManager.lambda$setupPluginRealm$2
>  (DefaultMavenPluginManager.java:351)
>     at org.apache.maven.plugin.DefaultPluginRealmCache.lambda$get$0 
> (DefaultPluginRealmCache.java:156)
>     at java.util.concurrent.ConcurrentHashMap.computeIfAbsent 
> (ConcurrentHashMap.java:1708)
>     at org.apache.maven.plugin.DefaultPluginRealmCache.get 
> (DefaultPluginRealmCache.java:154)
>     at 
> org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm 
> (DefaultMavenPluginManager.java:350)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm 
> (DefaultBuildPluginManager.java:206)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:103)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:334)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:322)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:172)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
> (MojoExecutor.java:75)
>     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
> (MojoExecutor.java:160)
>     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
> (DefaultMojosExecutionStrategy.java:37)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:157)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:106)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:74)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:58)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:130)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:304)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:226)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:151)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:854)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:281)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:197)
>     at jdk.internal.reflect.DirectMethodHandleAccessor.invoke 
> (DirectMethodHandleAccessor.java:104)
>     at java.lang.reflect.Method.invoke (Method.java:578)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
> {code}
> related issue https://github.com/mojohaus/flatten-maven-plugin/issues/330



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to