[ https://issues.apache.org/jira/browse/MDEP-952 ]
Elliotte Rusty Harold deleted comment on MDEP-952:
--------------------------------------------
was (Author: elharo):
(base) ~/maven-dependency-plugin$ git bisect good
421daceaa1ba0e57a88af52e00638621ad845913 is the first bad commit
commit 421daceaa1ba0e57a88af52e00638621ad845913
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Sun Mar 31 20:31:00 2024 +0200
[MDEP-915] Bump commons-io:commons-io from 2.15.1 to 2.16.0 (#369)
---
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot]
<49699333+dependabot[bot]@users.noreply.github.com>
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
> Unpack fails if extension of artifact is used
> ---------------------------------------------
>
> Key: MDEP-952
> URL: https://issues.apache.org/jira/browse/MDEP-952
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: unpack
> Affects Versions: 3.7.0, 3.7.1
> Reporter: Pascal Schumacher
> Assignee: Elliotte Rusty Harold
> Priority: Major
> Labels: regresion
>
> With 3.6.0 this works:
> {quote}
> mvn org.apache.maven.plugins:maven-dependency-plugin:3.6.0:unpack
> -Dartifact=org.apache.commons:commons-lang3:LATEST::jar -DoutputDirectory=.
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------< org.apache.maven:standalone-pom
> >-------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO] --------------------------------[ pom
> ]---------------------------------
> [INFO]
> [INFO] --- dependency:3.6.0:unpack (default-cli) @ standalone-pom ---
> [INFO] Configured Artifact: org.apache.commons:commons-lang3:LATEST:jar
> Downloading from artifactory-dms-maven-virtual:
> https://REPO/org/apache/commons/commons-lang3/maven-metadata.xml
> Downloaded from artifactory-dms-maven-virtual:
> https://REPO/org/apache/commons/commons-lang3/maven-metadata.xml (1.8 kB at
> 4.2 kB/s)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2.231 s
> [INFO] Finished at: 2024-08-21T16:59:57+02:00
> [INFO]
> ------------------------------------------------------------------------
> {quote}
> but it fails with 3.7.0 and 3.7.1:
> {quote}
> mvn org.apache.maven.plugins:maven-dependency-plugin:3.7.1:unpack
> -Dartifact=org.apache.commons:commons-lang3:LATEST::jar -DoutputDirec
> tory=.
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------< org.apache.maven:standalone-pom
> >-------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO] --------------------------------[ pom
> ]---------------------------------
> [INFO]
> [INFO] --- dependency:3.7.1:unpack (default-cli) @ standalone-pom ---
> [INFO] Configured Artifact: org.apache.commons:commons-lang3:jar:LATEST:null
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 0.859 s
> [INFO] Finished at: 2024-08-21T17:00:12+02:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-dependency-plugin:3.7.1:unpack (default-cli)
> on project standalone-pom: Execution default-cli of goal
> org.apache.maven.plugins:maven-dependency-plugin:3.7.1:unpack failed.:
> NullPointerException -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
> {quote}
> If the extension is omitted it works with all version (This is a simplified
> example, the real use case is a private zip artifact.)
> I tried it with Maven 3.9.5 and 3.9.9 on both Linux and Windows.
> By the way: Thank you very much for developing/providing the Maven Dependency
> Plugin.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)