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

Gintas Grigelionis commented on IVY-1605:
-----------------------------------------

Hi Janusz,

Ivy 2.5.0-rc2 is able to resolve the artifact when executed from CLI
{code}
> java -jar ivy.jar -dependency org.glassfish.jersey.media 
> jersey-media-multipart 2.28

:: loading settings :: url = 
jar:file:/.../ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml

:: resolving dependencies :: 
org.glassfish.jersey.media#jersey-media-multipart-caller;working

confs: [default]

found org.glassfish.jersey.media#jersey-media-multipart;2.28 in public

found org.glassfish.jersey.core#jersey-common;2.28 in public

found jakarta.ws.rs#jakarta.ws.rs-api;2.1.5 in public

found jakarta.annotation#jakarta.annotation-api;1.3.4 in public

found org.glassfish.hk2.external#jakarta.inject;2.5.0 in public

found org.glassfish.hk2#osgi-resource-locator;1.0.1 in public

found org.jvnet.mimepull#mimepull;1.9.11 in public

found 
org.glassfish.jersey.test-framework.providers#jersey-test-framework-provider-bundle;2.28
 in public

found 
org.glassfish.jersey.test-framework.providers#jersey-test-framework-provider-grizzly2;2.28
 in public

found jakarta.servlet#jakarta.servlet-api;4.0.2 in public

found org.glassfish.jersey.test-framework#jersey-test-framework-core;2.28 in 
public

found org.glassfish.jersey.core#jersey-server;2.28 in public

found org.glassfish.jersey.core#jersey-client;2.28 in public

found org.glassfish.jersey.media#jersey-media-jaxb;2.28 in public

found javax.validation#validation-api;2.0.1.Final in public

found org.glassfish.jersey.containers#jersey-container-servlet-core;2.28 in 
public

found junit#junit;4.12 in default

found org.hamcrest#hamcrest-core;1.3 in default

found org.glassfish.jersey.containers#jersey-container-grizzly2-http;2.28 in 
public

found org.glassfish.grizzly#grizzly-http-server;2.4.4 in public

found org.glassfish.grizzly#grizzly-http;2.4.4 in public

found org.glassfish.grizzly#grizzly-framework;2.4.4 in public

found org.glassfish.jersey.containers#jersey-container-grizzly2-servlet;2.28 in 
public

found org.glassfish.jersey.containers#jersey-container-servlet;2.28 in public

found org.glassfish.grizzly#grizzly-http-servlet;2.4.4 in public

found 
org.glassfish.jersey.test-framework.providers#jersey-test-framework-provider-inmemory;2.28
 in public

found 
org.glassfish.jersey.test-framework.providers#jersey-test-framework-provider-external;2.28
 in public

found 
org.glassfish.jersey.test-framework.providers#jersey-test-framework-provider-jdk-http;2.28
 in public

found org.glassfish.jersey.containers#jersey-container-jdk-http;2.28 in public

found 
org.glassfish.jersey.test-framework.providers#jersey-test-framework-provider-simple;2.28
 in public

found org.glassfish.jersey.containers#jersey-container-simple-http;2.28 in 
public

found org.simpleframework#simple-http;6.0.1 in public

found org.simpleframework#simple-common;6.0.1 in public

found org.simpleframework#simple-transport;6.0.1 in public

found 
org.glassfish.jersey.test-framework.providers#jersey-test-framework-provider-jetty;2.28
 in public

found org.glassfish.jersey.containers#jersey-container-jetty-http;2.28 in public

found org.eclipse.jetty#jetty-server;9.4.12.v20180830 in public

found javax.servlet#javax.servlet-api;3.1.0 in public

found org.eclipse.jetty#jetty-http;9.4.12.v20180830 in public

found org.eclipse.jetty#jetty-util;9.4.12.v20180830 in public

found org.eclipse.jetty#jetty-io;9.4.12.v20180830 in public

found org.eclipse.jetty#jetty-continuation;9.4.12.v20180830 in public

found 
org.glassfish.jersey.test-framework.providers#jersey-test-framework-provider-netty;2.28
 in public

found org.glassfish.jersey.containers#jersey-container-netty-http;2.28 in public

found org.glassfish.jersey.connectors#jersey-netty-connector;2.28 in public

found io.netty#netty-all;4.1.5.Final in public

found org.glassfish.jersey.connectors#jersey-apache-connector;2.28 in public

found org.apache.httpcomponents#httpclient;4.5 in public

found org.apache.httpcomponents#httpcore;4.4.1 in public

found commons-logging#commons-logging;1.2 in public

found commons-codec#commons-codec;1.9 in public

found org.glassfish.jersey.connectors#jersey-grizzly-connector;2.28 in public

found org.glassfish.grizzly#grizzly-http-client;1.16 in public

found org.glassfish.grizzly#connection-pool;2.4.4 in public

found org.glassfish.grizzly#grizzly-websockets;2.4.4 in public

found org.slf4j#slf4j-api;1.7.12 in public

found org.glassfish.jersey.connectors#jersey-jetty-connector;2.28 in public

found org.eclipse.jetty#jetty-client;9.4.12.v20180830 in public

found org.jmockit#jmockit;1.41 in public

found com.google.code.findbugs#jsr305;3.0.2 in public

found org.glassfish.jersey.inject#jersey-hk2;2.28 in public

found org.glassfish.hk2#hk2-locator;2.5.0 in public

found org.glassfish.hk2.external#aopalliance-repackaged;2.5.0 in public

found org.glassfish.hk2#hk2-api;2.5.0 in public

found org.glassfish.hk2#hk2-utils;2.5.0 in public

found org.javassist#javassist;3.22.0-GA in default

:: resolution report :: resolve 1709ms :: artifacts dl 68ms

---------------------------------------------------------------------

|                  |            modules            ||   artifacts   |

|       conf       | number| search|dwnlded|evicted|| number|dwnlded|

---------------------------------------------------------------------

|      default     |   66  |   0   |   0   |   0   ||   68  |   0   |

---------------------------------------------------------------------{code}
 I tried to use your settings and I could not reproduce the failure. Could you 
please try rc2 or post you complete ivy.xml dependency section?

> Ivy can't resolve dependency on maven2 artifact "jersey-media-multipart"
> ------------------------------------------------------------------------
>
>                 Key: IVY-1605
>                 URL: https://issues.apache.org/jira/browse/IVY-1605
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core, Maven Compatibility
>    Affects Versions: 2.5.0-rc1
>         Environment: OS: Windows 10
> Java : Java 1.8
> Apache Ant(TM) version 1.9.14 compiled on March 12 2019
> Apache Ivy 2.5.0-rc1 - 20180412005306
>            Reporter: Janusz Dalecki
>            Priority: Major
>
> Hi,
> I am reprting this as a bug as I have published the problem on ivy forum and 
> I was asked to submit it as a possible problem in ivy.
> It is reproducible as I desribe it below:
>  
> I have an ivy.xml file that includes just one dependency like this:
> {code:java}
> <dependency org="org.glassfish.jersey.media" name="jersey-media-multipart" 
> rev="2.28"/>
> {code}
> My ivysettings.xml looks like this:
> {code:java}
> <ivysettings>
> <properties file="${ivy.settings.dir}/ivysettings.properties"/>
> <settings defaultResolver="maven-repos"/>
> <resolvers>
> <filesystem name="local">
> <ivy pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" />
> <artifact 
> pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}" />
> </filesystem>
> <chain name="maven-repos">
> <ibiblio name="libraries" m2compatible="true"/>
> </chain>
> </resolvers>
> </ivysettings>
> {code}
> After I run the build.xml (below is my resolve statement extract from 
> build.xml that looks like this):
> {code:java}
> <!-- =================================
> target: resolve
> ================================= -->
> <target name="resolve" description="--> retrieve dependencies with ivy">
> <!-- conf="*" will copie artifacts defined for each conf in a dir matching 
> conf name -->
> <ivy:retrieve 
> pattern="${ivy.lib.dir}/[conf]/[artifact]-[type]-[revision].[ext]"/>
> </target>
> {code}
> ... I get this error:
> {code:java}
> [ivy:retrieve]
> [ivy:retrieve] :: problems summary ::
> [ivy:retrieve] :::: WARNINGS
> [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] :: UNRESOLVED DEPENDENCIES ::
> [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve] :: org.glassfish.jersey.media#jersey-media-multipart;2.28: 
> org.glassfish.jersey.media#project;2.28->org.glassfish.jersey#project;2.28->org.eclipse.ee4j#project;1.0.5
> [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve]
> [ivy:retrieve]
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> {code}
> I have checked that in the central repository there is a pom.xml in 
> https://repo1.maven.org/maven2/org/eclipse/ee4j/project/1.0.5/ repository 
> called project-1.0.5.pom .
> Kind Regards,
> Janusz



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

Reply via email to