You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stan Devitt <sd...@rim.com> on 2010/07/01 15:10:30 UTC

RE: standardized Maven GAV URN?

Such a notation would be much more useful if it were 

	1. standardized and 
	2. unambiguous 

My personal preference would be "something like"    

	groupId:artifactId(classifier):version;extension[scope]

This way, the classifier, the extension, and the scope could be optional simplifying this to

	groupId:artifactId:version    (defaulting to no classifier, extension=jar, scope=compile)

Examples:

	junit:junit:3.8.1
	junit:junit():3.8.1
	junit:junit:3.8.1;jar
	junit:junit:3.8.1;[compile]
	junit:junit:3.8.1;jar[compile]
	junit:junit():3.8.1;jar[compile] 

Whatever is done, having multiple conflicting ambiguous versions of this is just bad design.  The final choice should probably be consistent with the URI specification http://labs.apache.org/webarch/uri/rfc/rfc3986.html   (in this case, a path with scheme=GAV, a blank authority, and no query or fragment)  .  It should be registered.

	i.e., GAV:junit:junit:3.8.1

Stan

PS.  The full set of coordinates falls into two categories:

	1. name the artifact  (group,artifact,version,classifier)
	2. meta-data about the artifact 
		- assistance to help find it in a repo  (extension)  
		- restrict its use  (scope)

Here, I have deliberately separated (1) from (2) by a ";"  

> Luke Patterson wrote:
> I was looking more for a URN for Maven coordinates, which is slightly
> different than the flattened form of <dependency> elements.  e.g. the
> <scope> portion isn't part of what I'm looking for, it is more a statement
> of how I rely upon it

>> Brian Fox-3 wrote:
>> Group:artifact:version:classifier:extension is pretty common
>> 



---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

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