apache / apache/maven-resources-plugin

[MRESOURCES-281] allow different encodings for files inside the same resource-directory

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

Description

**[Carsten Rohde](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER284599)** opened **[MRESOURCES-281](https://issues.apache.org/jira/browse/MRESOURCES-281?redirect=false)** and commented

Currently each resource-directory has a single encoding, with the recent exception of properties (MRESOURCES-171).

If you need to filter differently encoded files, this can become quite a hazzle: The only way (at least that I'm aware of) is to have different modules or non-resource directories as the source for copy-resources. Apart from bloating the pom, it also forces you to have related files at different locations if they are encoded differently.

 

What I'm suggesting is to generalize what has been done for properties by allowing to override the \ for specific files/patterns.

Ideally this would be part of the resource-declaration but being able to configure the resources plugin accordingly would already help a lot:

```java



UTF-16
**/*.myfile


iso-latin-1
**/*.other

What do you think?
```

---

**Affects:** 3.2.0

**Issue Links:**
- [MRESOURCES-88](https://issues.apache.org/jira/browse/MRESOURCES-88) Allow specific encoding per group of files

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.