apache / apache/maven-assembly-plugin

[MASSEMBLY-853] jar which are not transitive is not excluding.

Open
#1,057 2 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

**[S Boot](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bhuman.vyas@gmail.com)** opened **[MASSEMBLY-853](https://issues.apache.org/jira/browse/MASSEMBLY-853?redirect=false)** and commented

So here is the thing what I am trying is :

I have parent pom and I am using maven-assembly-plugin in that like below.

\
\maven-assembly-plugin\




src/main/assembly/domainApi.xml




dist-assembly
package

single




I also have assembley file which is listed below.

\
\domainApi\
\
\jar\
\

false


target/classes/com/cac/customer/api
.

*.class







false
false
false
false

\

Now while building assembley jar I am getting only .class file which I want exactly and pushing this jar
to nexus.

While using this jar with below notation it also download some other jar which is not detect by \

Please suggest whats the way to exclude parent jar which are not TransitiveDependencies.

---

**Affects:** 2.4, 3.0.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Maven configuration and assembly descriptor shown in the issue, especially dependencySets and useTransitiveDependencies. Reproduce the package build with domainApi.xml and inspect which dependencies are included in the generated JAR and published metadata. Done means the behavior is understood and the requested non-transitive dependency exclusion is either corrected or precisely documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.