hi PJ. You can do like this: <promoteTransitiveDependencies>true</promoteTransitiveDependencies> <artifactSet> <includes> <include>org.apache.avro:avro</include> </includes> </artifactSet>
Kind regards, Delany On Sun, 4 Sept 2022 at 19:05, PJ Fanning <fannin...@yahoo.com.invalid> wrote: > Hi everyone, > Apologies if this has been answered before but I searched around and > couldn't find an answer. > For Apache Hadoop, I'm looking to shade Apache Avro jar, relocating the > avro classes to a new package name. > This new jar would be published to Maven Central and used by Hadoop. > The aim is not to include Jackson and other classes from transitive > dependencies of Avro but that the pom file for the new jar would include > the transitive dependencies from Avro. > > My PR is at https://github.com/apache/hadoop-thirdparty/pull/21 > > Neither the pom.xml nor the dependency-reduced-pom.xml have the transitive > dependencies listed. > > Would anyone be able to suggest how the dependencies excluded from the > shade jar can be exposed as dependencies in the pom.xml? > > Regards, > PJ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >