Re: Artifact installation and versions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Artifact installation and versions

Elliotte Rusty Harold
Thank you. That's exactly what I needed to know. The behavior did
indeed change from 3.0 to 3.1 so I should not be surprised that my PR
that updates the dependency plugin to 3.1 should have to update this
detail in the tests.

On Tue, Jul 7, 2020 at 2:52 PM Stephen Connolly
<[hidden email]> wrote:

>
> So there’s a setting for the repo which allows controlling whether to
> deploy plain snapshot or timestamp snapshots
>
> https://maven.apache.org/pom.html#repository
>
> Specifically `uniqueVersion`
>
> IIRC there was a deliberate break of that to always be true in Maven 3.0.x
> for reasons that only Benjamin knew, and I doubt we could entice him back
> to explain.
>
> It may be the case that we restored the behaviour in 3.1.x or it could be
> that it was an actual bug introduced in 3.0.x and then fixed for 3.1.x or
> maybe I’m imagining things and the two poms you’re comparing have a
> different uniqueVersion value
>
> HTH
>
> On Tue 7 Jul 2020 at 17:13, Anders Hammar <[hidden email]> wrote:
>
> > My understanding is that it's "SNAPSHOT" when installing to the local repo
> > but a snapshot version when deploying to a remote repo. But a rarely look
> > in the local repo so I could be wrong.
> >
> > /Anders (mobile)
> >
> > Den tis 7 juli 2020 13:08Elliotte Rusty Harold <[hidden email]> skrev:
> >
> > > Let me correct that. On further investigation it seems the Maven 3.1
> > > artifact installer writes
> > >
> > > expanded-snapshot-2.0-SNAPSHOT.jar
> > >
> > > whereas the Maven30Installer would write
> > >
> > > expanded-snapshot-2.0-20130710.122148-1.pom
> > >
> > > Is this working as intended?
> > >
> > > On Mon, Jul 6, 2020 at 5:05 PM Elliotte Rusty Harold <[hidden email]
> > >
> > > wrote:
> > > >
> > > > This is a long shot, but does anyone happen to know whether anything
> > > > changed with respect to pom installation between Maven 3.0 and 3.1? In
> > > > particular, I'm seeing in a test of the copy dependencies Mojo that
> > > >
> > > > expanded-snapshot-2.0.pom
> > > >
> > > > is written into the expected location but
> > > >
> > > > expanded-snapshot-2.0-20130710.122148-1.pom
> > > >
> > > > is not. Does this ring any bells with anyone? Is there any chance
> > > > we're deliberately no longer writing snapshot versions into the local
> > > > repository?
> > > >
> > > > Context: https://github.com/apache/maven-dependency-plugin/pull/78/
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Elliotte Rusty Harold
> > > > [hidden email]
> > >
> > >
> > >
> > > --
> > > Elliotte Rusty Harold
> > > [hidden email]
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> --
> Sent from my phone



--
Elliotte Rusty Harold
[hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Artifact installation and versions

Tamás Cservenák
https://issues.apache.org/jira/browse/MNG-4059
maybe?

On Tue, Jul 7, 2020 at 8:58 PM Elliotte Rusty Harold <[hidden email]>
wrote:

> Thank you. That's exactly what I needed to know. The behavior did
> indeed change from 3.0 to 3.1 so I should not be surprised that my PR
> that updates the dependency plugin to 3.1 should have to update this
> detail in the tests.
>
> On Tue, Jul 7, 2020 at 2:52 PM Stephen Connolly
> <[hidden email]> wrote:
> >
> > So there’s a setting for the repo which allows controlling whether to
> > deploy plain snapshot or timestamp snapshots
> >
> > https://maven.apache.org/pom.html#repository
> >
> > Specifically `uniqueVersion`
> >
> > IIRC there was a deliberate break of that to always be true in Maven
> 3.0.x
> > for reasons that only Benjamin knew, and I doubt we could entice him back
> > to explain.
> >
> > It may be the case that we restored the behaviour in 3.1.x or it could be
> > that it was an actual bug introduced in 3.0.x and then fixed for 3.1.x or
> > maybe I’m imagining things and the two poms you’re comparing have a
> > different uniqueVersion value
> >
> > HTH
> >
> > On Tue 7 Jul 2020 at 17:13, Anders Hammar <[hidden email]> wrote:
> >
> > > My understanding is that it's "SNAPSHOT" when installing to the local
> repo
> > > but a snapshot version when deploying to a remote repo. But a rarely
> look
> > > in the local repo so I could be wrong.
> > >
> > > /Anders (mobile)
> > >
> > > Den tis 7 juli 2020 13:08Elliotte Rusty Harold <[hidden email]>
> skrev:
> > >
> > > > Let me correct that. On further investigation it seems the Maven 3.1
> > > > artifact installer writes
> > > >
> > > > expanded-snapshot-2.0-SNAPSHOT.jar
> > > >
> > > > whereas the Maven30Installer would write
> > > >
> > > > expanded-snapshot-2.0-20130710.122148-1.pom
> > > >
> > > > Is this working as intended?
> > > >
> > > > On Mon, Jul 6, 2020 at 5:05 PM Elliotte Rusty Harold <
> [hidden email]
> > > >
> > > > wrote:
> > > > >
> > > > > This is a long shot, but does anyone happen to know whether
> anything
> > > > > changed with respect to pom installation between Maven 3.0 and
> 3.1? In
> > > > > particular, I'm seeing in a test of the copy dependencies Mojo that
> > > > >
> > > > > expanded-snapshot-2.0.pom
> > > > >
> > > > > is written into the expected location but
> > > > >
> > > > > expanded-snapshot-2.0-20130710.122148-1.pom
> > > > >
> > > > > is not. Does this ring any bells with anyone? Is there any chance
> > > > > we're deliberately no longer writing snapshot versions into the
> local
> > > > > repository?
> > > > >
> > > > > Context:
> https://github.com/apache/maven-dependency-plugin/pull/78/
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Elliotte Rusty Harold
> > > > > [hidden email]
> > > >
> > > >
> > > >
> > > > --
> > > > Elliotte Rusty Harold
> > > > [hidden email]
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> > >
> > --
> > Sent from my phone
>
>
>
> --
> Elliotte Rusty Harold
> [hidden email]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>