apache / apache/maven-dependency-plugin

[MDEP-661] Add option to exclude optional dependencies for copy-dependencies

Open
#1,097 0 comments 1 reaction 0 assignees View on GitHub
enhancement priority:minor
Dominant language
Java
Stars
175
Forks
196
Avg merge
19h 30m
Merged PRs (30d)
5

Description

**[David Smiley](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dsmiley)** opened **[MDEP-661](https://issues.apache.org/jira/browse/MDEP-661?redirect=false)** and commented

When using copy-dependencies, I would like to specify the exclusion of my project's optional dependencies.

I have some annotation libs marked optional, and these need not be shipped to production.
I need to compile against them.

---

**Issue Links:**
- [MDEP-266](https://issues.apache.org/jira/browse/MDEP-266) Add parameter to configure copy-dependencies to also copy optional dependencies

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the copy-dependencies goal and review the related MDEP-266 issue for existing optional-dependency behavior. Add a way to exclude optional dependencies from copied production artifacts while retaining them for compilation, and verify the goal's behavior with its existing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.