https://maven.apache.org/plugins/maven-shade-plugin/shade-mojo.html#createDependencyReducedPom
On Tue, Nov 16, 2021, 10:47 PM Clebert Suconic <clebert.suco...@gmail.com> wrote: > I’m not sure how you mean. > > Just get the Pom at the source level or am intermediate build process ? > > > How to do that ? > > On Tue, Nov 16, 2021 at 11:34 PM Matt Benson <mben...@apache.org> wrote: > > > You probably want to rewrite the pom, using the property provided by the > > shade goal for this purpose. > > > > Matt > > > > On Tue, Nov 16, 2021, 7:48 PM Clebert Suconic <clebert.suco...@gmail.com > > > > wrote: > > > > > I am trying to create a component within ActiveMQ Artemis that would > > > shade johnzon and javax.json. > > > > > > That component should then be used by other components within Artemis. > > > > > > I'm doing that because some users want to use javax.json and others > > > want to use jakarta.json on their runtimes. Since we only use json > > > internally I am trying to shade our own usage and not relay on either > > > one of these package names. > > > > > > > > > However I'm getting crazy on this. I can't make shade to hide the > > > dependency. mvn dependency:tree still shows the libraries. and shade > > > will not work if I make them provided.e. > > > > > > > > > What is the right way to shade within my own project? > > > > > > > > > I have the project available on my own github fork here: > > > > > > https://github.com/clebertsuconic/activemq-artemis/tree/commons-json > > > > > > (type this if you can download my branch: > > > > > > git clone https://github.com/clebertsuconic/activemq-artemis.git > > > cd activemq-artemis > > > git clone commons-json > > > mvn install -DskipTests=true > > > mvn dependency:tree > > > > > > and here is what gets interesting. > > > if I go to artemis-selector (a package that relied on > > > artemis-commons-json) and type mvn dependency:tree on that package, > > > the dependency does not show up. > > > > > > > > > The issue is only when building the whole project... > > > > > > > > > and I have played with quite a few options! ) > > > > > > > > > > > > Any help would be appreciated ! :) > > > > > > > > > Thanks > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > > > -- > Clebert Suconic >