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

Gintas Grigelionis commented on IVY-1598:
-----------------------------------------

Trying to exclude the conf explicitly fails
{code:sql}
java -jar org.apache.ivy_2.5.0.cr2_20190921121652.jar -confs default,\!test 
-dependency com.github.dblock.waffle waffle-jna 1.8.1
:: loading settings :: url = 
jar:file:org.apache.ivy_2.5.0.cr2_20190921121652.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: com.github.dblock.waffle#waffle-jna-caller;working
        confs: [default]
        found com.github.dblock.waffle#waffle-jna;1.8.1 in public
        found net.java.dev.jna#jna;4.2.1 in public
        found net.java.dev.jna#jna-platform;4.2.1 in public
        found org.slf4j#jcl-over-slf4j;1.7.14 in public
        found org.slf4j#slf4j-api;1.7.14 in public
        found com.google.guava#guava;19.0 in public
:: resolution report :: resolve 315ms :: artifacts dl 22ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   6   |   0   |   0   |   0   ||   5   |   0   |
        ---------------------------------------------------------------------

:: problems summary ::
:::: WARNINGS
                ::::::::::::::::::::::::::::::::::::::::::::::

                ::          UNRESOLVED DEPENDENCIES         ::

                ::::::::::::::::::::::::::::::::::::::::::::::

                :: com.github.dblock.waffle#waffle-jna;1.8.1: configuration not 
found in com.github.dblock.waffle#waffle-jna;1.8.1: '!test'. It was required 
from com.github.dblock.waffle#waffle-jna-caller;working default

                ::::::::::::::::::::::::::::::::::::::::::::::
{code}
It appears not to be a regression (2.4.0 behaves similarly), but rather a bug 
in the CLI parser.

> Ivy CLI resolve pulls in test scope from Maven parent pom
> ---------------------------------------------------------
>
>                 Key: IVY-1598
>                 URL: https://issues.apache.org/jira/browse/IVY-1598
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.0-rc1
>            Reporter: Gintas Grigelionis
>            Priority: Major
>
> Try e.g. java -jar ivy.jarĀ -dependency com.github.dblock.waffle waffle-jna 
> 1.7.5



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to