Maven and snapshot numbers

View: New views
2 Messages — Rating Filter:   Alert me  

Maven and snapshot numbers

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

From what I can see, when installing/deploying a snapshot artifact, the
following is true:

Install:

        Maven:  replaces the SNAPSHOT with the date in the form yyyymmdd.hhmmss-n
        Maven Ant Task: just leaves the SNAPSHOT alone, i.e. no date.

Deploy:

        Maven:  replaces the SNAPSHOT with the date in the form yyyymmdd.hhmmss-n
        Maven Ant Task: replaces the SNAPSHOT with the date in the form yyyymmdd.hhmmss-n

As far as I can tell, using SNAPSHOTyymmddhhmmss as Gradle does at
present is never the case when using Maven or the Ant task.  I think at
the very least Gradle should use a full year and not just the last two
digits.

I have taken the liberty of re-opening GRADLE-650
(http://jira.codehaus.org/browse/GRADLE-650) even though Hans had marked
it as Won't Fix.  I don't currently agree with Hans that this is the way
Maven wants it.

I have taken a second liberty in ccing Jason and Jason as they are my de
facto Maven experts!


--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder@...
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


signature.asc (204 bytes) Download Attachment

Re: Maven and snapshot numbers

by Peter Niederwieser :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Russel Winder-4 wrote:
Install:
        Maven:  replaces the SNAPSHOT with the date in the form yyyymmdd.hhmmss-n
I've never seen a snapshot with a date in a local repository. I think it's always without date (at least until 2.1).

Russel Winder-4 wrote:
Deploy:
        Maven:  replaces the SNAPSHOT with the date in the form yyyymmdd.hhmmss-n
This is the default. Since I don't see much value in keeping old snapshots around, I always turn it off:

<snapshotRepository>
    ...
    <uniqueVersion>false</uniqueVersion>
</snapshotRepository>

Cheers,
Peter