apache / apache/maven-assembly-plugin

[MASSEMBLY-680] Allow option to silently skip empty assemblies

Open
#896 5 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

**[Jeff Care](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=carej@us.ibm.com)** opened **[MASSEMBLY-680](https://issues.apache.org/jira/browse/MASSEMBLY-680?redirect=false)** and commented

I have a use case where many of my projects need to construct an "installation fragment" as a secondary artifact. I would like to define the assembly configuration for this installation fragment on a parent project such that it is automatically inherited by all of my projects. Certain projects though do not have any content that would get picked up by the assembly descriptor, thus assembly:single fails for these projects.

I would like to add an option to the single mojo such that empty assemblies can be silently skipped instead of failing the build. I have started researching how to accomplish this & would be willing to submit patches.

---

**Affects:** 2.4

**Attachments:**
- [massembly-680.zip](https://issues.apache.org/jira/secure/attachment/12738864/massembly-680.zip) (_2.29 kB_)
- [maven-assembly-plugin.patch](https://issues.apache.org/jira/secure/attachment/12740647/maven-assembly-plugin.patch) (_13.74 kB_)

1 votes, 3 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Maven Assembly Plugin's single mojo and review the attached massembly-680.zip and maven-assembly-plugin.patch for the proposed behavior. Check how an assembly with no matching content currently fails, then verify that the requested option skips only empty assemblies while preserving normal failures.

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.