You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Gintas Grigelionis (Jira)" <ji...@apache.org> on 2019/09/02 16:57:00 UTC

[jira] [Commented] (IVY-1605) Ivy can't resolve dependency on maven2 artifact "jersey-media-multipart"

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

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

Hi Janusz,

sorry about the pause. When I modify {{src\example\configurations\multi-projects\filter-framework\ivy.xml}} as suggested above (by adding a dependency on jersey-core) and run Ivy from command line, I get
{code:bash}
:: loading settings :: url = jar:file:~/.ant/lib/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.apache#filter-framework;working@xxxxxx.local
	confs: [api, homemade-impl, cc-impl, test]
	found org.glassfish.jersey.core#jersey-common;2.28 in default
	found jakarta.ws.rs#jakarta.ws.rs-api;2.1.5 in default
	found jakarta.annotation#jakarta.annotation-api;1.3.4 in default
	found org.glassfish.hk2.external#jakarta.inject;2.5.0 in default
	found org.glassfish.hk2#osgi-resource-locator;1.0.1 in default
	found org.osgi#org.osgi.core;4.2.0 in public
	found org.jmockit#jmockit;1.41 in default
	found com.google.code.findbugs#jsr305;3.0.2 in default
	found junit#junit;4.12 in default
	found org.hamcrest#hamcrest-core;1.3 in default
	found org.hamcrest#hamcrest-library;1.3 in public
	found org.apache.commons#commons-collections4;4.1 in public
:: resolution report :: resolve 549ms :: artifacts dl 26ms
	---------------------------------------------------------------------
	|                  |            modules            ||   artifacts   |
	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
	---------------------------------------------------------------------
	|        api       |   11  |   0   |   0   |   0   ||   13  |   0   |
	|   homemade-impl  |   11  |   0   |   0   |   0   ||   13  |   0   |
	|      cc-impl     |   12  |   0   |   0   |   0   ||   14  |   0   |
	|       test       |   12  |   0   |   0   |   0   ||   14  |   0   |
	---------------------------------------------------------------------
{code}
My guess is that you might be experiencing problems with Ivy cache.

> 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
(v8.3.2#803003)