elharo opened a new issue, #307:
URL: https://github.com/apache/maven-source-plugin/issues/307

   In `AbstractSourceJarMojo.createArchiver()`, the shared archive resources 
directory is identified using `endsWith`:
   
   ```java
   if (r.getDirectory().endsWith("maven-shared-archive-resources")) {
       addDirectory(
               archiver.getArchiver(),
               Paths.get(r.getDirectory()),
               getCombinedIncludes(null),
               getCombinedExcludes(null));
   }
   ```
   
   A resource directory with a path like 
`/path/tmp-maven-shared-archive-resources-extra` or 
`/var/lib/maven-shared-archive-resources-backup` would falsely match. This 
should use exact filename matching (e.g., check the last path segment with 
`Paths.get(r.getDirectory()).getFileName().toString()`).


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