Re: Compile classpath in case of dependency conflict

2022-04-12 Thread Alexander Kriegisch
I recommend taking control of the situation by yourself, specifying the desired version in your *dependencyManagement* section.-- Alexander Kriegisch Ursprüngliche Nachricht Von: Rimvydas Vaidelis Datum: 12.04.22 21:20 (GMT+07:00) An: Maven Users List Betreff: Re: Compile

Re: Compile classpath in case of dependency conflict

2022-04-12 Thread Rimvydas Vaidelis
Hello Tamas, Thank you for the reply. Reordering of dependencies includes guava-30.1-jre.jar into compile classpath. Dependency tree: org.example:dependency-conflict-example:jar:1.0-SNAPSHOT +- com.google.inject:guice:jar:5.1.0:compile | +- javax.inject:javax.inject:jar:1:compile | +-

Re: Shading, relocation and modules?

2022-04-12 Thread Robert Scholte
It is not clear to me what the problem is. As you shade antlr4 code, and they are only used by your own code, there's no need for exports or requirements, so I don't see why the module descriptor would be an issue. ... unless it is a cross-(Maven)module and you need to use these classes in a

Re: Compile classpath in case of dependency conflict

2022-04-12 Thread Tamás Cservenák
Howdy, seems is "known issue" https://issues.apache.org/jira/browse/MNG-6224 what happens if you reorder your dependencies in pom, first compile and then test scoped ones? HTH T On Tue, Apr 12, 2022 at 1:00 PM Rimvydas Vaidelis < rimvydas.vaide...@gmail.com> wrote: > Hello, > > I have 2

Compile classpath in case of dependency conflict

2022-04-12 Thread Rimvydas Vaidelis
Hello, I have 2 dependencies org.reflections:reflections:jar:0.9.8:test and com.google.inject:guice:jar:5.1.0:compile. org.reflections:reflections:jar:0.9.8 uses com.google.guava:guava:jar:11.0.2:compile com.google.inject:guice:jar:5.1.0 uses com.google.guava:guava:30.1-jre:compile During

Re: Shading, relocation and modules?

2022-04-12 Thread Slawomir Jaranowski
Hi, New transformer is a good idea. There is also similar issue https://issues.apache.org/jira/browse/MSHADE-262 wt., 12 kwi 2022 o 11:35 Delany napisał(a): > Hi Niels, > > I don't see an existing resource transformer for module-info > >

Re: Shading, relocation and modules?

2022-04-12 Thread Delany
Hi Niels, I don't see an existing resource transformer for module-info https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html Did you see this? https://stackoverflow.com/a/58097561/2746335 Delany On Tue, 12 Apr 2022 at 11:16, Niels Basjes wrote: > Thanks. > >

Re: Shading, relocation and modules?

2022-04-12 Thread Niels Basjes
Thanks. I was hoping for a "native" Java solution instead of an (apparently necessary) external plugin that hacks this in. Niels On Mon, Apr 11, 2022 at 11:32 PM Daniel B. Widdis wrote: > > My question is what is the correct/preferred/recommended way to do this? > > Not combine shading and

forking plugins

2022-04-12 Thread Delany
Hi all I've been having some issues with plugins that run out of lifecycle, or fork the lifecycle. For example mvn org.openrewrite.maven:rewrite-maven-plugin:4.22.2:run -Drewrite.activeRecipes=org.openrewrite.java.cleanup.NoPrimitiveWrappersForToStringOrCompareTo This fails on one of my modules