I would like to create a Maven assembly that contains the transitive dependencies of an artifact without actually including the artifact itself. I have tried to exclude the artifact from the assembly, but then its dependencies aren’t included as a result.
ArtifactA has DependencyA, DependencyB
Assembly should contain DependencyA, DependencyB (without ArtifactA)
And I would preferrably like to do this without having to explicitly specifiy what dependencies to be included in the assembly because this will be done with multiple projects that have many dependencies.
Thank you!
I finally got it to work. This will produce an artifact that only contains the dependencies of the depende
pom.xml
assembly.xml