Skip to content

markersDirectory is not working when unpack goal is executed from command line #536

Closed
@vaibhavbatra15

Description

@vaibhavbatra15

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.0

org.apache.maven.plugins
sample-pom
1.0
pom

org.apache.maven.plugins maven-dependency-plugin 3.8.1 unpack package unpack **${project.build.directory}/../../../markerDir** org.springframework spring-webmvc 6.2.8 ${project.build.directory}/output

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:

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions