Re: Maven GroupID authority

2020-02-15 Thread herve . boutemy
see: - http://maven.apache.org/ref/3.6.3/maven-model/maven.html#class_relocation - https://maven.apache.org/guides/mini/guide-relocation.html Everything is there. I confess I never tried it myself, but there are POMs in central using it. - Mail original - De: "Elliotte Rusty Harold" À: "

Re: Maven GroupID authority

2020-02-15 Thread Elliotte Rusty Harold
On Sat, Feb 15, 2020 at 1:29 PM Jonathan Valliere wrote: > > If Central indicated a redirect/reallocation then there would never be the > duplicate classpath problem because Maven would resolve it internally. The > redirect then warns the user of the redirect and to update the pom. > I really do

Re: Maven GroupID authority

2020-02-15 Thread Jonathan Valliere
If Central indicated a redirect/reallocation then there would never be the duplicate classpath problem because Maven would resolve it internally. The redirect then warns the user of the redirect and to update the pom. On Sat, Feb 15, 2020 at 1:10 PM Elliotte Rusty Harold wrote: > On Sat, Feb 15

Re: Maven GroupID authority

2020-02-15 Thread Elliotte Rusty Harold
On Sat, Feb 15, 2020 at 10:55 AM Jonathan Valliere wrote: > > How would changing the GroupID cause diamond dependencies? The builds > would just fail everywhere until the GroupID is updated in the pom files. No, they wouldn't. What happens is two artifacts get added to the classpath, one with th

Re: Maven GroupID authority

2020-02-15 Thread Jonathan Valliere
How would changing the GroupID cause diamond dependencies? The builds would just fail everywhere until the GroupID is updated in the pom files. One thing I suggested was to create a new ID with all the old versions going back in time and simply redirect the old ID to the new one and mark it as dep

Re: Maven Wrapper

2020-02-15 Thread Robert Scholte
https://github.com/apache/maven-studies/blob/maven-wrapper/src/main/java/org/apache/maven/wrapper/MavenWrapperMain.java#L51 Here is the hard reference to the Maven Version. If this cannot be replaced, it'll be much easier to make maven wrapper part of Maven Core, so it can benefit from that ver

AW: AW: [ANN] Apache Maven Shade Plugin 3.2.2 Released

2020-02-15 Thread Markus KARG
Hervé, you won't believe how happy I actually am. Since more than one year I needed to tell the audience of my conference talks to rebuild their custom plugin just to get the few bug fixes I contributed long time ago (which are essential in the Jakarta EE environment). Now finally I can simply tel

Re: Maven GroupID authority

2020-02-15 Thread Robert Scholte
I'd prefer to make a clear distinction between the build tool and the shared repositories like Maven Central. Here the problem should be solved by the latter. And it is: https://central.sonatype.org/pages/choosing-your-coordinates.html Unlike module names, you must claim a groupId before pushing

Re: Maven GroupID authority

2020-02-15 Thread Tamás Cservenák
There are traces of it in resolver provider: https://github.com/apache/maven/blob/716cc1fe02661897232a7cc3e4c1bb3b3df3b832/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java#L316 And AFAIK, it _does_ obeys it... T On Sat, Feb 15, 2020