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"
À: "
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
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
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
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
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
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
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
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