Closed
Description
Affected version
3.8.1
Bug description
unpack and unpack dependencies goals supports marker files.
When markerDirectory is configured in pom, it works as expected. Find below pom for reference:
4.0.0org.apache.maven.plugins
sample-pom
1.0
pom
But when same configuration is provided from command line, it does not work:
mvn org.apache.maven.plugins:maven-dependency-plugin:3.8.1:unpack -Dartifact=org.springframework:spring-webmvc:6.2.8 -DoutputDirectory=./ -DmarkersDirectory=./../markerDir
It still generates marker file in the default location:
${project.build.directory}/dependency-maven-plugin-markers
Reason for the issue:
- This is because property attribute is missing in @parameter annotation from markersDirectory attribute in unpack goal whereas it's mentioned in unpack dependencies goal.
Difference between unpack and unpack dependencies goal:
- unpack goal -
- unpack dependencies goal -