ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik-Berndt Scheper (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IVY-835) <ivy:install> ant task downloads wrong jars from maven repositories
Date Thu, 19 Jun 2008 14:43:46 GMT

     [ https://issues.apache.org/jira/browse/IVY-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Erik-Berndt Scheper updated IVY-835:
------------------------------------

    Attachment: IVY-843.zip

Attached sample project as a zip file. 
Please update the properties files to connect to a running sftp server.
Using {{ant -verbose}} gives me the following output:

{noformat}
BUILD FAILED
D:\ws\eclipse-3.3.1\IVY-Bugreport\IVY-843\build.xml:18: impossible to install org.junit#junit;3.8.1:
java.lang.NullPointerException
        at org.apache.ivy.ant.IvyInstall.doExecute(IvyInstall.java:109)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NullPointerException
        at org.apache.ivy.plugins.repository.sftp.SFTPRepository.put(SFTPRepository.java:144)
        at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
        at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:214)
        at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:204)
        at org.apache.ivy.core.install.InstallEngine.install(InstallEngine.java:150)
        at org.apache.ivy.Ivy.install(Ivy.java:526)
        at org.apache.ivy.ant.IvyInstall.doExecute(IvyInstall.java:101)
        ... 17 more
--- Nested Exception ---
java.lang.NullPointerException
        at org.apache.ivy.plugins.repository.sftp.SFTPRepository.put(SFTPRepository.java:144)
        at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
        at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:214)
        at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:204)
        at org.apache.ivy.core.install.InstallEngine.install(InstallEngine.java:150)
        at org.apache.ivy.Ivy.install(Ivy.java:526)
        at org.apache.ivy.ant.IvyInstall.doExecute(IvyInstall.java:101)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 8 seconds
D:\ws\eclipse-3.3.1\IVY-Bugreport\IVY-843>
{noformat}

Commenting out {{<antcall target="ivy.clean" />}}, which ensures that the ivy cache
dirs are no longer purged, resolves the NPE.


> <ivy:install> ant task downloads wrong jars from maven repositories
> -------------------------------------------------------------------
>
>                 Key: IVY-835
>                 URL: https://issues.apache.org/jira/browse/IVY-835
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.0-RC1
>            Reporter: Erik-Berndt Scheper
>            Priority: Critical
>             Fix For: 2.0-RC1
>
>         Attachments: IVY-843.zip
>
>
> Using the latest build from trunk, which supports sources, javadoc and distribution artifacts,
wrong jars are downloaded from repo1.maven.org. 
> In the case below only spring-oxm-tiger-1.5.2-sources.jar is downloaded, which is published
as spring-oxm-1.5.2.jar (which should have been the 'standard' jar containing classfiles.
> Sample output:
> {noformat}
> [ivy:install] :: downloading artifacts to cache ::
> [ivy:install] 		tried http://repo1.maven.org/maven2/org/springframework/ws/spring-oxm-tiger/1.5.2/spring-oxm-tiger-1.5.2-sources.jar
> [ivy:install] downloading http://repo1.maven.org/maven2/org/springframework/ws/spring-oxm-tiger/1.5.2/spring-oxm-tiger-1.5.2-sources.jar
...
> [ivy:install] 	repo1.maven.org: downloading http://repo1.maven.org/maven2/org/springframework/ws/spring-oxm-tiger/1.5.2/spring-oxm-tiger-1.5.2-sources.jar
> [ivy:install] ...... (8kB)
> [ivy:install] 	repo1.maven.org: downloading http://repo1.maven.org/maven2/org/springframework/ws/spring-oxm-tiger/1.5.2/spring-oxm-tiger-1.5.2-sources.jar.sha1
> [ivy:install] .. (0kB)
> [ivy:install] sha1 OK for http://repo1.maven.org/maven2/org/springframework/ws/spring-oxm-tiger/1.5.2/spring-oxm-tiger-1.5.2-sources.jar
> [ivy:install] 	[SUCCESSFUL ] org.springframework.ws#spring-oxm-tiger;1.5.2!spring-oxm-tiger.jar(source)
(109ms)
> [ivy:install] 	[NOT REQUIRED] org.springframework.ws#spring-oxm-tiger;1.5.2!spring-oxm-tiger.jar
> [ivy:install] 	[NOT REQUIRED] org.springframework.ws#spring-oxm-tiger;1.5.2!spring-oxm-tiger.jar(javadoc)
> [ivy:install] 	[NOT REQUIRED] org.springframework.ws#spring-xml;1.5.2!spring-xml.jar
> [ivy:install] 	[NOT REQUIRED] org.springframework.ws#spring-oxm;1.5.2!spring-oxm.jar
> [ivy:install] 	[NOT REQUIRED] apache#commons-logging;1.1.1!commons-logging.jar
> [ivy:install] 	[NOT REQUIRED] org.springframework#spring-core;2.5.4!spring-core.jar
> [ivy:install] 	[NOT REQUIRED] org.springframework#spring-beans;2.5.4!spring-beans.jar
> [ivy:install] 	[NOT REQUIRED] org.apache.ws.commons.schema#XmlSchema;1.3.2!XmlSchema.jar
> [ivy:install] 	[NOT REQUIRED] org.springframework#spring-context;2.5.4!spring-context.jar
> [ivy:install] 	[NOT REQUIRED] aopalliance#aopalliance;1.0!aopalliance.jar
> [ivy:install] 	[NOT REQUIRED] com.thoughtworks.xstream#xstream;1.2.2!xstream.jar
> [ivy:install] 	[NOT REQUIRED] xpp3#xpp3_min;1.1.3.4.O!xpp3_min.jar
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message