apache / apache/lucene

Maven build: Simplify the way transitive dependency resolution is disabled, and increase the minimum supported Maven from 2.2.1 to 3.2.1 [LUCENE-8616]

Open
#9,662 8 comments 0 reactions 1 assignee Claimed by @sarowe View on GitHub
legacy-jira-priority:Major tool:build type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Right now the Maven build disables transitive dependency resolution for all dependencies by listing each dependency's dependencies in a nested `` section in the grandparent POM's `` section.

As of Maven 3.2.1, it's possible to use a wildcard syntax in nested `` sections to exclude all transitive deps: [MNG-2315](https://issues.apache.org/jira/browse/MNG-2315). This would make the grandparent POM much smaller and make the intent much clearer.

We would have to increase our minimum supported Maven (currently 2.2.1), but that seems reasonable, given that Maven 2.x has been EOL'd: https://maven.apache.org/maven-2.x-eol.html

---
Migrated from [LUCENE-8616](https://issues.apache.org/jira/browse/LUCENE-8616) by Steven Rowe (@sarowe), updated Mar 19 2019
Attachments: [LUCENE-8616.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-8616/LUCENE-8616.patch)
Linked issues:
- [SOLR-11579](https://issues.apache.org/jira/browse/SOLR-11579)

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.