gnodet opened a new issue, #12306:
URL: https://github.com/apache/maven/issues/12306

   ## Description
   
   Building `tomcat-taglibs-rdc` with Maven from the `maven-4.0.x` branch 
causes `maven-resources-plugin:3.3.1` to fail with a `NoSuchFileException` when 
copying resource files that use `<targetPath>`.
   
   The same build succeeds with Maven 3.x.
   
   ## Error
   
   ```
   [ERROR] Failed to execute goal
     org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources 
(default-resources)
     on project taglibs-rdc:
     copying 
.../src/main/resources/org/apache/taglibs/rdc/resources/RDCBundle_en_US.properties
     to /org/apache/taglibs/rdc/resources/RDCBundle_en_US.properties
     failed with NoSuchFileException -> [Help 1]
   ```
   
   Note the target path starts with `/org/apache/...` — this appears to be a 
`<targetPath>` configuration in the resource definition. Maven 4 may be 
resolving the target path differently, causing the directory to not exist when 
the copy is attempted.
   
   ## Reproducer
   
   ```bash
   git clone https://github.com/apache/tomcat-taglibs-rdc.git
   cd tomcat-taglibs-rdc
   mvn -B -e clean package -DskipTests
   ```
   
   ## Environment
   
   - Maven: built from `maven-4.0.x` branch (bootstrapped with 4.0.0-rc-5)
   - JDK: 17 (Temurin)
   
   ## Context
   
   Found during [Maven 4 compatibility 
testing](https://github.com/gnodet/maven4-testing/issues/20677).
   
   _Claude Code on behalf of Guillaume Nodet_


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