Matt Pavlovich created MNG-7039:
-----------------------------------
Summary: [RFC] Reducing GAV verbosity by using URI syntax
Key: MNG-7039
URL: https://issues.apache.org/jira/browse/MNG-7039
Project: Maven
Issue Type: Improvement
Reporter: Matt Pavlovich
Provide the ability to reference maven artifacts using a uri-like syntax
reduces verbosity.
Reasoning:
1. The XML elements for groupId, artifactId, version, classifier and type are
never extended
2. Reducing lines of text improves maintenance of pom's
3. URI is a first-class citizen in XML schema and can be strongly typed, and
regex'd.
Option 1-- classifier and type as query params (probably more useful):
{noformat}
Given:
<dependency>
<groupId>com.company</groupId>
<artifactId>foo-api</artifactId>
<version>1.0.1-SNAPSHOT</version>
<classifier>default</classifier>
<type>jar</jar>
</dependency>
Maven 4.x feature:
<dependency
uri="mvn://com.company/foo-api/1.0.1-SNAPSHOT?classifier=default&type=jar"
scope="compile"/>
{noformat}
Option 2-- classifier and type as path params:
{noformat}
<dependency uri="mvn://com.company/foo-api/1.0.1-SNAPSHOT/default/jar"
scope="compile"/>
{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)