apache / apache/maven-assembly-plugin

[MASSEMBLY-614] useTransitiveFiltering implemented contrarily

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

Description

**[Joerg Schaible](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=joehni)** opened **[MASSEMBLY-614](https://issues.apache.org/jira/browse/MASSEMBLY-614?redirect=false)** and commented

useTransitiveFiltering is implemented wrongly, it filters when set to false and does not filter when set to true.

One of the declared dependencies in the project is this:

```xml

com.sun.xml.ws
jaxws-rt
2.2.6

```

The assembly descriptor is:

```xml

false
false
true
false

*:jaxws*

```

The result contains only the jar for jaxws-rt, but not its dependencies. Setting useTransitiveFiltering to true, then all dependencies are included. It works quite contrary to the documentation and the implicit property name.

---

**Affects:** 2.3

**Issue Links:**
- [MASSEMBLY-864](https://issues.apache.org/jira/browse/MASSEMBLY-864) Dependencies specified in activeByDefault profile not picked up.

4 votes, 10 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the implementation and tests for the dependencySet useTransitiveFiltering option in the Maven Assembly Plugin. Reproduce the XML example with jaxws-rt, compare both true and false settings with the documented behavior, and consider the issue done when filtering semantics and coverage match the documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
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.