apache / apache/maven

[MNG-7005] Support Gradle style GAV form for dependencies

Open
#8,030 13 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Chris Caspanello](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ccaspanello)** opened **[MNG-7005](https://issues.apache.org/jira/browse/MNG-7005?redirect=false)** and commented

 

I'm currently migrating a project from Gradle to Maven.  One thing that makes pom files so large is the typical 5 lines for a dependnecy.  It would be nice to be able to define the dependency similar to Gradle

Instead of :

```java


  myGroup
myArtifact
1.0.0-SNAPSHOT


  anotherGroup
anotherArtifact
1.0.0-SNAPSHOT

```

 

 

It would be less verbose to use a \ block like this:

 

```java

myGruop:myArtifact:1.0.0-SNAPSHOT
anotherGroup:anotherArtifact:1.0.0-SNAPSHOT

```

 

I think an improvement like this would make Maven less verbose; one of the things that is attractive about Gradle.

I may be over simplifying this; but under the covers we'd just split the gav block on the semi colon and popoulate the existing dependency model.

 

---

1 votes, 4 watchers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.