apache / apache/maven-assembly-plugin

[MASSEMBLY-856] Ability to overwrite existing files

Open
#1,050 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
110
Forks
75
Avg merge
12h 54m
Merged PRs (30d)
10

Description

**[Kamal Mettananda](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=lkamal)** opened **[MASSEMBLY-856](https://issues.apache.org/jira/browse/MASSEMBLY-856?redirect=false)** and commented

This is a request to add \ element to \ in assembly file.

Currently, it is not possible to overwrite the already existing files inside the expected archive with new files.

e.g.:
Expectation of below assembly file is to have the conf.properties file in dir2 after the zip file is generated.

```xml

dist

zip

false



dir1
release



dir2
release
true

```

---

**Affects:** 2.2-beta-5, 2.5.4, 3.0.0

1 votes, 4 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the assembly descriptor's and handling, using the example in this issue to reproduce the archive contents. The work is done when a later fileSet with true places dir2/conf.properties in the release directory instead of retaining dir1/conf.properties.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.