ghusta opened a new issue, #436:
URL: https://github.com/apache/maven-resources-plugin/issues/436

   ### Affected version
   
   4.0.0-beta-1
   
   ### Bug description
   
   Trying to use the maven-resources-plugin version 4.0.0-beta-1 with Maven 
4.0.0-rc-5 which result in this error:
   
   ```
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-1:resources 
(default-resources) on project demo-mvn-4: Execution default-resources of goal 
org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-1:resources failed: 
Unable to lookup Mojo: Error while initializing binding 
BindingToConstructor[@Named("org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-1:resources")
 ResourcesMojoFactory][]: Error while initializing binding 
BindingToConstructor[@Named 
DefaultMavenResourcesFiltering][Dependency[key=BuildContext, optional=false], 
Dependency[key=MavenFileFilter, optional=false]]: Error while initializing 
binding BindingToConstructor[@Named 
DefaultMavenFileFilter][Dependency[key=BuildContext, optional=false]]: Failed 
to call method static org.sonatype.plexus.build.incremental.BuildContext 
org.apache.maven.plugins.resources.Providers.buildContext(): 
org/codehaus/plexus/logging/AbstractLogEnabled: 
org.codehaus.plexus.logging.AbstractLogEna
 bled -> [Help 1]
   ```
   
   ## Steps to reproduce the error
   
   ### Create project
   
   Empty project + src sub-dirs + JDK 17.
   
   ### Use mvn 4.0.0-rc-5
   
   ```bash
   mvn wrapper:wrapper -Dmaven=4.0.0-rc-5
   ```
   
   ### Configure the plugin
   
   ```xml
       <build>
           <pluginManagement>
               <plugins>
                   <plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-resources-plugin</artifactId>
                       <version>4.0.0-beta-1</version>
                   </plugin>
               </plugins>
           </pluginManagement>
       </build>
   ```
   
   ### Exec maven phase
   
   ```bash
   .\mvnw process-resources
   ```
   


-- 
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]

Reply via email to