[ 
https://issues.apache.org/jira/browse/MDEP-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16512320#comment-16512320
 ] 

Dimitri R commented on MDEP-620:
--------------------------------

bq. I am taking out the profile handling and the interpolation of the base 
directory until we spec this out properly.

What do you mean, will you align the behaviour as to what happens with - for 
instance - {{mvn dependency:copy}}?

> mvn dependency:unpack via CLI generates ${project.basedir} folder
> -----------------------------------------------------------------
>
>                 Key: MDEP-620
>                 URL: https://issues.apache.org/jira/browse/MDEP-620
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: unpack
>         Environment: * Maven 3.5.3
> * CLI
> * macOS and CentOS
>            Reporter: Dimitri R
>            Priority: Major
>
> h3. Steps to reproduce
> 1. Get a sample dependency first
> {noformat}
> mvn dependency:get -DgroupId=org.apache.ant -DartifactId=ant -Dversion=1.8.3 
> -Dpackaging=jar
> {noformat}
> 2. Delete the file 
> *~/.m2/repository/org/apache/ant/ant/1.8.3/_remote.repositories*
>  3. Unpack the dependency somewhere
> {noformat}
> cd /tmp
> mkdir unpack
> mvn dependency:unpack -Dartifact=org.apache.ant:ant:1.8.3:jar 
> -DoutputDirectory=./unpack
> {noformat}
> 4. Observe that *${project.basedir}* was created
> {noformat}
> $ ls -l /tmp/unpack
> total 0
> ... ${project.basedir}
> ... unpack
> {noformat}
> *_Note_* Step 2 is only necessary because of _getting_ the dependency, this 
> wouldn't have to be done if it had been _installed_. This doesn't affect 
> whether the bug occurs or not.
> h3. Workarounds
> The closest would be to use {{mvn dependency:copy}} and _then_ unpack 
> manually through a subsequent command. Interestingly this shows that the bug 
> doesn't affect {{mvn dependency:copy}}.
> ----
> Similar/related issues (their fixes don't apply here):
>  - [https://stackoverflow.com/q/11669446/321797]
>  - [https://netbeans.org/bugzilla/show_bug.cgi?id=221560]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to