apache / apache/maven-resources-plugin

[MRESOURCES-301] nonFilteredFileExtension not taken into account

Open
#304 0 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
61
Forks
36
Avg merge
1d 1h
Merged PRs (30d)
3

Description

**[Patrick Reinhart](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=reinhapa)** opened **[MRESOURCES-301](https://issues.apache.org/jira/browse/MRESOURCES-301?redirect=false)** and commented

Specified

```java
jar
```

not taken into account.

Eventhough specified within the config block the extension `jar` is not taken into account:

Debug output:

```java
...
[DEBUG] Copying file border8.png
[DEBUG] file border8.png has a non filtered file extension
[DEBUG] Using 'UTF-8' encoding to copy filtered resource 'border8.png'.
[DEBUG] copy /home/pr/git/izpack/izpack/izpack-dist/src/main/resources/border8.png to /home/pr/git/izpack/izpack/izpack-dist/target/classes/border8.png
[DEBUG] Copying file lib/kunststoff.jar
[DEBUG] file kunststoff.jar has a filtered file extension
[DEBUG] Using 'UTF-8' encoding to copy filtered resource 'kunststoff.jar'.
[DEBUG] filtering /home/pr/git/izpack/izpack/izpack-dist/src/main/resources/lib/kunststoff.jar to /home/pr/git/izpack/izpack/izpack-dist/target/classes/lib/kunststoff.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for IzPack dist module 5.2.1-SNAPSHOT:
[INFO]
[INFO] IzPack dist module ................................. FAILURE [ 0.884 s]
[INFO] IzPack install/uninstall test listeners ............ SKIPPED
[INFO] IzPack test module ................................. SKIPPED
[INFO] IzPack aggregated reports .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.075 s
[INFO] Finished at: 2023-09-19T20:04:08+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources (default-cli) on project izpack-dist: filtering /home/pr/git/izpack/izpack/
```

 

I woud expect the kunststoff.jar has a **non** filtered file extension...

---

**Affects:** 3.3.1

**Issue Links:**
- [MRESOURCES-82](https://issues.apache.org/jira/browse/MRESOURCES-82) nonFilteredFileExtension does not work for exluding files during filter

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.