maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Georgeson <JGeorge...@lgc.com>
Subject RE: [EXTERNAL] Re: help with version range
Date Sat, 24 Sep 2016 00:15:23 GMT
The Aether doc shows both bounds being inclusive with the min/max form, but you have an exclusive
upper bound. Using "[1.1.min,1.1.max]" is working for me with both 3.2.5 and 3.3.9. So that's
awesome! The .* form is working for me too. I'm using JDK 1.8.0_102, and my projects are pretty
much all Tycho packaging-types.

I am seeing these warnings

[WARNING] Failed to canonicalize path C:\Code\caches\m2\com\lgc\master\[1.1.*]\master-[1.1.*].pom.lastUpdated:
The filename, direc
tory name, or volume label syntax is incorrect
Downloading: http://cmartifacts3.lgc.com/artifactory/maven-virtual/com/lgc/master/%5B1.1.*%5D/master-%5B1.1.*%5D.pom
[WARNING] Failed to canonicalize path C:\Code\caches\m2\com\lgc\master\[1.1.*]\master-[1.1.*].pom.lastUpdated:
Invalid argument
[WARNING] Failed to create parent directories for tracking file C:\Code\caches\m2\com\lgc\master\[1.1.*]\master-[1.1.*].pom.lastUp
dated
[WARNING] Failed to build parent project for com.lgc.lowest:lowest-parent:pom:10.5.2-SNAPSHOT

Which are reported in the original JIRA ticket for the feature

https://issues.apache.org/jira/browse/MNG-2199

But it is ultimately working.

-----Original Message-----
From: Robert Patrick [mailto:robert.patrick@oracle.com] 
Sent: Friday, September 23, 2016 4:39 PM
To: Maven Users List <users@maven.apache.org>
Subject: RE: [EXTERNAL] Re: help with version range

This is nice, but it doesn’t work in Maven 3.3.9...

[ERROR] org.apache.maven.project.artifact.InvalidDependencyVersionException: Invalid version:
[0.8.min,0.8.max] found for: Dependency: myproject:util in project: myproject:zip-installer:pom:0.9-SNAPSHOT.
Reason: Range defies version ordering: [0.8.min,0.8.max) for project myproject:zip-installer:pom:0.9-SNAPSHOT
at C:\tmp\myproject\zipinstall\pom.xml -> [Help 1]

--
Robert Patrick <https://urldefense.proofpoint.com/v2/url?u=http-3A__robert.patrick-40oracle.com&d=DQIFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk&m=5-lYd2DM46_1xLARlg3yqwPE5xDzWM8s_z59bPNPfQU&s=euuADbCvIIw3JpW95OhsA08qkyKL4qdUHpADVL6v5R0&e=
> VP, OPC Development, Oracle Corporation
7460 Warren Pkwy, Ste. 300	Office: +1.972.963.2872
Frisco, TX 75034, USA		Mobile: +1.469.556.9450

Professional Oracle WebLogic Server
by Robert Patrick, Gregory Nyberg, and Philip Aston with Josh Bregman and Paul Done Book Home
Page: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.wrox.com_&d=DQIFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk&m=5-lYd2DM46_1xLARlg3yqwPE5xDzWM8s_z59bPNPfQU&s=pyMmnscielr3hC7gWtaVNqyUIqmy1jf4wWg996YlkUI&e=
Kindle Version: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.amazon.com_&d=DQIFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk&m=5-lYd2DM46_1xLARlg3yqwPE5xDzWM8s_z59bPNPfQU&s=hTJHlTeI3Pk6q1pSEHNHzc-xHC9n3wIYawL8FK3y5Qk&e=



-----Original Message-----
From: Christian Schulte [mailto:cs@schulte.it] 
Sent: Friday, September 23, 2016 4:23 PM
To: Maven Users List
Cc: info@soebes.de
Subject: Re: [EXTERNAL] Re: help with version range

Am 09/23/16 um 23:07 schrieb Robert Patrick:
> There is already a syntax to give you pre-release versions, right?  
> According to 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__maven.apache.org_ref_3.3.9_maven-2Dartifact_apidocs_org_apache_m&d=DQIFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk&m=5-lYd2DM46_1xLARlg3yqwPE5xDzWM8s_z59bPNPfQU&s=9TNP5ldPDafRzXnPjonmLhbp5M5SK1htUhzsTE-Xp4Y&e=

> aven/artifact/versioning/ComparableVersion.html, the range 
> [1.0,2.0-SNAPSHOT] will give you the newest release including all 2.0 
> prerelease versions but not the 2.0 GA release so there is no reason 
> you need [1.0,2.0) to do the exact same thing... :-)
> 

I haven't tested this but I think what is written here also applies to Maven. You would need
to test that yourself.

<https://urldefense.proofpoint.com/v2/url?u=http-3A__wiki.eclipse.org_Aether_New-5Fand-5FNoteworthy-23Version-5FRanges&d=DQIFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk&m=5-lYd2DM46_1xLARlg3yqwPE5xDzWM8s_z59bPNPfQU&s=pL6fPqzqpaj6n6xcY47JGzm-exhIOjBMxuNxWBVBD0U&e=
>

Regards,
--
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information
for the sole use of the intended recipient.  Any review, use, distribution, or disclosure
by others is strictly prohibited.  If you are not the intended recipient (or authorized to
receive information for the intended recipient), please contact the sender by reply e-mail
and delete all copies of this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Mime
View raw message