apache / apache/maven-assembly-plugin

[MASSEMBLY-880] Maven assembly per-extension file permissions

Open
#1,084 0 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

**[Marco Brandizi](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=zakmck)** opened **[MASSEMBLY-880](https://issues.apache.org/jira/browse/MASSEMBLY-880?redirect=false)** and commented

I often have to write the following when using the Maven Assembly plug-in, in order to have file permissions correctly set for executable and non-executable files:

\
\src/main/assembly/resources\
\\
\
\
\**/*.sh\
\
\0644\
\0755\
\
\
\src/main/assembly/resources\
\\
\
\**/*.sh\
\
\0755\
\0755\
\
This is redundant and cumbersome, I wonder if there is a simpler way to do the same, e.g., by specifying maps of file pattern => fileMode. It doesn't seem that anything like that is available, so I'm filing this as a new feature proposal.

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

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue describes Maven Assembly Plugin configuration for assigning file permissions by file pattern, but names no source files, tests, or entry points. Start by reviewing the plugin's existing fileSet permission configuration and determine how pattern-to-fileMode mappings should be specified; done means the feature is defined and supported without duplicated fileSet declarations.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.