You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joshua Caplan (Jira)" <ji...@apache.org> on 2022/02/04 01:42:00 UTC
[jira] [Commented] (MDEP-650) dependency:unpack doesn't seem to handle version ranges
[ https://issues.apache.org/jira/browse/MDEP-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17486776#comment-17486776 ]
Joshua Caplan commented on MDEP-650:
------------------------------------
does any other workaround exist? this issue has been open for nearly 3 years, with the fix already provided.
> dependency:unpack doesn't seem to handle version ranges
> -------------------------------------------------------
>
> Key: MDEP-650
> URL: https://issues.apache.org/jira/browse/MDEP-650
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: unpack
> Affects Versions: 3.1.1
> Reporter: Andy Lehane
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> This call is a reopened version of MDEP-50.
>
> I have a maven-dependency-plugin configuration of:
> {code:java}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <executions>
> <execution>
> <id>unpack commons-lang example</id>
> <phase>process-resources</phase>
> <goals>
> <goal>unpack</goal>
> </goals>
> <configuration>
> <artifactItems>
> <artifactItem>
> <groupId>commons-lang</groupId>
> <artifactId>commons-lang</artifactId>
> <version>[0,)</version>
> <type>jar</type>
> <overWrite>true</overWrite>
> <outputDirectory>${project.build.directory}/test</outputDirectory>
> </artifactItem>
> </artifactItems>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> When this is run using maven 3.6.0 and the maven-dependency-plugin version 3.1.1, the following error is produced:
>
> {code:java}
> [INFO] --- maven-dependency-plugin:3.1.1:unpack (unpack commons-lang example) @ MavenDependencyPluginTestBed ---
> [INFO] Configured Artifact: common-lang:commons-lang:[0,):jar
> Downloading from central-proxy: http://internal-repo/repository/central/commons-lang/commons-lang/%5B0,)/commons-lang-%5B0,).pom
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ---------------------------------------------------------------
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)