apache / apache/maven-dependency-plugin

[MDEP-629] Unpack goal with includes/excludes does not honor marker files

Open
#1,068 2 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
175
Forks
196
Avg merge
19h 30m
Merged PRs (30d)
5

Description

**[Jörg Delker](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=joergd)** opened **[MDEP-629](https://issues.apache.org/jira/browse/MDEP-629?redirect=false)** and commented

When using the unpack goal to extract an artifact dependency, that action is performed regardless of any previous run which already created a marker file.

Consider this pom extract:

```

org.apache.maven.plugins
maven-dependency-plugin
3.1.1


unpack
generate-sources

unpack


${my.excludes}


groupid
artifactid
war
false




```

After executing "mvn generate-sources", the following marker file has been created:

`target/dependency-maven-plugin-markers/myartifactfile-1.01480985089`

Obviously, this file is not checked when this run is repeated.

---

**Affects:** 3.1.1

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the unpack goal with the shown Maven configuration and the target/dependency-maven-plugin-markers/myartifactfile-1.01480985089 marker path. Verify repeated mvn generate-sources behavior with includes or excludes; done means an existing marker is honored while the unpack operation still applies the configured filters.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.