apache / apache/maven

[MNG-5227] The 'optional' flag of a dependency should be manageable.

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

Description

**[Christian Schulte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=schulte77)** opened **[MNG-5227](https://issues.apache.org/jira/browse/MNG-5227?redirect=false)** and commented

```



groupId
artifactId
version
false

```

---

**Affects:** 3.0.3

**Attachments:**
- [MNG-5227.patch](https://issues.apache.org/jira/secure/attachment/12786051/MNG-5227.patch) (_1.67 kB_)
- [MNG-5227.patch](https://issues.apache.org/jira/secure/attachment/12786047/MNG-5227.patch) (_2.06 kB_)

**Issue Links:**
- [MRESOLVER-9](https://issues.apache.org/jira/browse/MRESOLVER-9) DefaultDependencyCollector does not correctly handle dependency management
(_**"is blocked by"**_)
- [MNG-5632](https://issues.apache.org/jira/browse/MNG-5632) Optional tag in dependencyManagement not inherited - disallow and/or document
(_**"is duplicated by"**_)
- [HIVE-27338](https://issues.apache.org/jira/browse/HIVE-27338) JDBC drivers are transitively inherited although declared optional
(_**"causes"**_)
- [MNG-5600](https://issues.apache.org/jira/browse/MNG-5600) Dependency management import should support exclusions.

- [MNG-2984](https://issues.apache.org/jira/browse/MNG-2984) Allow more control around the configuration and use of optional dependencies

- [MNG-6139](https://issues.apache.org/jira/browse/MNG-6139) Addition of command line option 'legacy-dependency-management'.
(_**"is required by"**_)
- [MNG-4600](https://issues.apache.org/jira/browse/MNG-4600) [regression] Optional flag from dependency management applied to dependencies
(_**"supercedes"**_)
- [MNG-1977](https://issues.apache.org/jira/browse/MNG-1977) Global dependency exclusions
(_**"supercedes"**_)
- [MNG-5959](https://issues.apache.org/jira/browse/MNG-5959) Can maven provide a features that exclude dependency gloablly
(_**"supercedes"**_)
- [MNG-5935](https://issues.apache.org/jira/browse/MNG-5935) Optional true getting lost in managed dependencies when transitive
(_**"is depended upon by"**_)

**Remote Links:**
- [Page
](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=67636510)

6 votes, 14 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.