gnodet opened a new pull request, #536:
URL: https://github.com/apache/maven-resources-plugin/pull/536

   ## Summary
   
   Exposes `maven-filtering`'s `gracefulBinaryHandling` option that was 
previously inaccessible from `maven-resources-plugin`.
   
   When set to `true`, binary files that trigger a `MalformedInputException` 
during filtering (i.e. unreadable as text in the configured charset) are 
silently copied as-is instead of failing the build. A `WARN` log is emitted for 
each skipped file, pointing users toward the preferred targeted approaches.
   
   ## Configuration
   
   ```xml
   <plugin>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-resources-plugin</artifactId>
     <configuration>
       <gracefulBinaryHandling>true</gracefulBinaryHandling>
     </configuration>
   </plugin>
   ```
   
   Or via property: `-Dmaven.resources.gracefulBinaryHandling=true`
   
   ## Guidance
   
   This is a **last-resort fallback** for heterogeneous resource directories 
where it is not practical to enumerate every binary extension. Prefer the 
targeted approaches:
   - `<nonFilteredFileExtensions>` — extension-based, mojo-level
   - `<nonFilteredFiles>` inside a `<resource>` block — glob-based, 
per-resource (see PR #534)
   
   ## Changes
   
   - `ResourcesMojo.java`: new `@Parameter(property = 
"maven.resources.gracefulBinaryHandling", defaultValue = "false")` wired to 
`MavenResourcesExecution.setGracefulBinaryHandling()`
   - IT `MRESOURCES-graceful-binary`: binary `.p12` in a filtered resource 
directory — build succeeds, binary copied byte-for-byte, text `.properties` 
file filtered normally


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