Re: Version poll results

2020-01-08 Thread Manfred Moser
Its part of the spec.. sure.However only the Maven spec .. and different specs and tools might behave differently. The Maven repository format and related aspects are used by MANY more tools than just Maven. Using the short version 2.1 causes issues such as mentioned earlier for no real benefit

Re: Version poll results

2020-01-08 Thread Matt Foley
>> So do NOT use a version like 2.1 .. instead use 2.1.0. The fact that 2.1 is identical to 2.1.0 is part of the spec, unambiguous, and quite important for expected behavior IMHO. See "Trimming Examples" in https://maven.apache.org/pom.html#Version_Order_Specification

Re: Version poll results

2020-01-07 Thread Manfred Moser
Elliotte Rusty Harold wrote on 2020-01-07 13:38 (GMT -08:00): > On Tue, Jan 7, 2020 at 4:00 PM Clemens Quoss wrote: >> >> artifactId-version-classifier.jar >> >> How do i separate the classifier? >> > > If all you have is the name of the jar, I don't think you can. You > need the repo metadata o

Re: Version poll results

2020-01-07 Thread Elliotte Rusty Harold
On Tue, Jan 7, 2020 at 4:00 PM Clemens Quoss wrote: > > artifactId-version-classifier.jar > > How do i separate the classifier? > If all you have is the name of the jar, I don't think you can. You need the repo metadata or the coordinates or the pom.xml to tell whether google-cloud-firestore-0.4

Re: Version poll results

2020-01-07 Thread Manfred Moser
To be honest I dont think this needs fixing on the Maven side. If we change behavior we just break other approaches. Instead users that want to use semver with three digits and want logic ordering should just do so. So do NOT use a version like 2.1 .. instead use 2.1.0. Problem solved. Also .

Re: Version poll results

2020-01-07 Thread Clemens Quoss
Hi Elliotte, OK. I understand.  Right now it is up to you to sync the doc to the implementation. Next step is to make improvements to the implementation. All this with regard to how the version comparison is handled. My question was: Given a jar named artifactId-version-classifier.jar How

Re: Version poll results

2020-01-07 Thread Robert Scholte
I'd mark the Fix version as 4.0.x-candidate On 7-1-2020 13:16:57, Elliotte Rusty Harold wrote: I've been looking at Maven 's version comparison algorithm: what it does, what it's documented to do, and what it should do. I ran a quick poll on my twitter feed to see what developers expect how versio

Re: Version poll results

2020-01-07 Thread Elliotte Rusty Harold
This is what we currently claim to implement: https://maven.apache.org/pom.html#Version_Order_Specification However, there are bugs in both the spec and the implementation. That is, there are cases the spec does not describe and other parts where the spec is ambiguous. There also cases where the

Re: Version poll results

2020-01-07 Thread Clemens Quoss
OK.  Found it myself: https://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-classifiers.html So classifier for sources, javadoc etc. Got it. But still:  What is the alogorithm to separate version from classifier when I only have the artifact name?  Seems not possible, ri

Re: Version poll results

2020-01-07 Thread Clemens Quoss
Consider this artifact: artifactId-1.0-alpha1-classifier.jar How to separate version (1.0-alpha1) from classifier (classifier), then? TIA Clemens Am 07.01.2020 um 16:12 schrieb Elliotte Rusty Harold: Classifiers are a separate part of the coordinates and are never part of the version string.

Re: Version poll results

2020-01-07 Thread Elliotte Rusty Harold
Classifiers are a separate part of the coordinates and are never part of the version string. "alpha1" is not a classifier and neither is "q". On Tue, Jan 7, 2020 at 9:57 AM Clemens Quoss wrote: > > Is 'q' considered a classifier or not? Classifier like 'alpha1', > 'beta2' and even 'SNAPSHOT' d

Re: Version poll results

2020-01-07 Thread Clemens Quoss
Is 'q' considered a classifier or not?  Classifier like 'alpha1', 'beta2' and even 'SNAPSHOT' denote a pre-production version, IMHO. With: artifactId-1.0.alpha1 < artifactId-1.0.beta2 < ... < artifactId-1.0.SNAPSHOT < ... Is there really a difference between putting a hyphen or a dot to sepa

Version poll results

2020-01-07 Thread Elliotte Rusty Harold
I've been looking at Maven 's version comparison algorithm: what it does, what it's documented to do, and what it should do. I ran a quick poll on my twitter feed to see what developers expect how version strings such as 2.1.q and 2.1 are compared. That is, what's the higher version? 2.1.q or 2.1?