apache / apache/maven-resources-plugin

[MRESOURCES-274] set overwrite per resource

Open
#286 0 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

**[Caleb Cushing](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=xenoterracide)** opened **[MRESOURCES-274](https://issues.apache.org/jira/browse/MRESOURCES-274?redirect=false)** and commented

I have this StackOverflow question https://stackoverflow.com/q/65892723/206466
The problem is caused not by maven resources but by IntelliJ that's documented here https://youtrack.jetbrains.com/issue/IDEABKL-6745

Currently I am doing this workaround with `maven-resources-plugin`.

```xml



maven-resources-plugin


copy-resources
process-test-resources

copy-resources




true
${main.basedir}/configuration/runtime/default
${pom.basedir}/target/classes

saml.properties
dex-*-metadata.xml

false


${pom.basedir}/target
false



copy-resources
process-test-resources

copy-resources


false


false
${h2.db.dir}

dex_dev_unittest.mv.db



${pom.basedir}/target
false




```

but it would be nice if you could simply do

```xml

false

```

---
No further details from [MRESOURCES-274](https://issues.apache.org/jira/browse/MRESOURCES-274?redirect=false)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the maven-resources-plugin implementation of the copy-resources goal and any tests covering resource configuration. Trace how the global overwrite setting is handled, then determine how a resource-level overwrite value should take precedence. Done means the XML resource setting supports overwrite independently for each resource and tests cover both true and false cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.