ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: .bundle extension in ivy retrieve... im so confused
Date Fri, 08 Aug 2008 14:39:55 GMT
Very strange indeed, maybe the reason why the springframework repository works is that you
use https for it, while for the other repositories you use http? Do you have the same proxy
for http and https? (if not, maybe you hit issue IVY-200 ?)

But that doesn't explain why it works for the not "bundle-artifacts".

Maarten




----- Original Message ----
From: rednix <zerobox@gmx.de>
To: ivy-user@ant.apache.org
Sent: Friday, August 8, 2008 3:27:55 PM
Subject: Re: .bundle extension in ivy retrieve... im so confused



Maarten Coene wrote:
> 
> I just did a quick test with current trunk, and it works form me.
> Could you try again with cleaning your cache: ${user.home}/.ivy2/
> 
> If that doesn't help, please create the JIRA ticket and also attach the
> debug output you get from ant.
> 
> Maarten
> 
> 

Looks like it's a problem with the proxy server we are using here at work. I
tried it at home (without any proxy) and it works fine - as you said.
The odd thing is that from the used resolver chain only the repository from
spring
(https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo)
works via the proxy - all other resolvers in the chain are returning errors:

[ivy:install] :::: ERRORS
[ivy:install]     Server access Error: Unexpected end of file from server
url=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.pom
[ivy:install]     Server access Error: Unexpected end of file from server
url=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]     Server access Error: Unexpected end of file from server
url=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-ivy.xml
[ivy:install]     Server access Error: Unexpected end of file from server
url=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]     Server access Error: Unexpected end of file from server
url=http://www.mvnsearch.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-ivy.xml
[ivy:install]     Server access Error: Unexpected end of file from server
url=http://www.mvnsearch.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]     Server access Error: Unexpected end of file from server
url=http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-ivy.xml
[ivy:install]     Server access Error: Unexpected end of file from server
url=http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]     Server access Error: Unexpected end of file from server
url=http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar

The detailed (debug/verbose) output says:

[ivy:install] :: installing
org.springframework.security#spring-security-cas-client;2.0.1 ::
[ivy:install] :: resolving dependencies ::
[ivy:install] resolving dependencies for configuration 'default'
[ivy:install] == resolving dependencies for apache#ivy-install;1.0 [default]
[ivy:install] loadData of apache#ivy-install;1.0 of rootConf=default
[ivy:install] == resolving dependencies
apache#ivy-install;1.0->org.springframework.security#spring-security-cas-client;2.0.1
[default->*]
[ivy:install] loadData of
org.springframework.security#spring-security-cas-client;2.0.1 of
rootConf=default
[ivy:install]     using resolverChain to resolve
org.springframework.security#spring-security-cas-client;2.0.1
[ivy:install] pre 1.3 ivy file: using exactOrRegexp as default matcher
[ivy:install]     found ivy file in cache for
org.springframework.security#spring-security-cas-client;2.0.1 (resolved by
resolverChain): C:\Documents and
Settings\[replaced]\.ivy2\cache\org.springframework.security\spring-security-cas-client\ivy-2.0.1.xml
[ivy:install] found module in cache but with a different resolver:
discarding: org.springframework.security#spring-security-cas-client;2.0.1;
expected resolver=ibiblio; resolver=resolverChain
[ivy:install]      trying
http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.pom
[ivy:install]         tried
http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.pom
[ivy:install] ERROR: Server access Error: Unexpected end of file from server
url=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.pom
[ivy:install]     ibiblio: resource not reachable for
org/springframework/security#spring-security-cas-client;2.0.1:
res=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.pom
[ivy:install]      trying
http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]         tried
http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install] ERROR: Server access Error: Unexpected end of file from server
url=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]     ibiblio: resource not reachable for
org/springframework/security#spring-security-cas-client;2.0.1:
res=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]     ibiblio: no ivy file nor artifact found for
org.springframework.security#spring-security-cas-client;2.0.1
[ivy:install] pre 1.3 ivy file: using exactOrRegexp as default matcher
[ivy:install]     found ivy file in cache for
org.springframework.security#spring-security-cas-client;2.0.1 (resolved by
resolverChain): C:\Documents and
Settings\[replaced]\.ivy2\cache\org.springframework.security\spring-security-cas-client\ivy-2.0.1.xml
[ivy:install] found module in cache but with a different resolver:
discarding: org.springframework.security#spring-security-cas-client;2.0.1;
expected resolver=repo1maven; resolver=resolverChain
[ivy:install]      trying
http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-ivy.xml
[ivy:install]         tried
http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-ivy.xml
[ivy:install] ERROR: Server access Error: Unexpected end of file from server
url=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-ivy.xml
[ivy:install]     repo1maven: resource not reachable for
org/springframework/security#spring-security-cas-client;2.0.1:
res=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-ivy.xml
[ivy:install]      trying
http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]         tried
http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install] ERROR: Server access Error: Unexpected end of file from server
url=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]     repo1maven: resource not reachable for
org/springframework/security#spring-security-cas-client;2.0.1:
res=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]      trying
http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]         tried
http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]     repo1maven: resource not reachable for
org/springframework/security#spring-security-cas-client;2.0.1:
res=http://repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/2.0.1/spring-security-cas-client-2.0.1.jar
[ivy:install]     repo1maven: no ivy file nor artifact found for
org.springframework.security#spring-security-cas-client;2.0.1

w/o proxy from @home the dependencies are already found on ibiblio in the
chain. But why the POM from spring repo is not parsed correctly ... I don't
know. I'll try the spring repo explicitly @home later the day to check if
the POM there is correct.

Using just the ibiblio resolver instead of a resolverChain results in the
same errors (but the resolve is aborted without an artefact result and a
build error):

BUILD FAILED
C:\workspaces\eclipseEuropa\ivy-test\build.xml:118: Problem happened while
installing modules - see output for details
    at org.apache.ivy.ant.IvyInstall.doExecute(IvyInstall.java:113)
    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor3.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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

My used ant target with the install task:

    <target name="copyToProject">
        <ivy:install organisation="org.springframework.security"
module="spring-security-cas-client" revision="2.0.1" from="repo1maven"
to="my-repository" transitive="true" overwrite="true" />
    </target>

A little excerpt of the console log:

...
repo1maven: no namespace defined: using system
repo1maven: no latest strategy defined: using default
...
Setting project property: http.proxyHost -> [replaced].net
Setting project property: http.proxyHost.ivy.instance -> [replaced].net
Setting project property: file.encoding.ivy.instance -> Cp1252
Setting project property: https.proxyHost -> [replaced].net
Setting project property: https.proxyHost.ivy.instance -> [replaced].net
Setting project property: ivy.cache.dir -> C:\Documents and
Settings\[replaced]\.ivy2\cache
Setting project property: ivy.cache.dir.ivy.instance -> C:\Documents and
Settings\[replaced]\.ivy2\cache
Setting project property: https.proxyPort -> [replaced]
Setting project property: https.proxyPort.ivy.instance -> [replaced]
Setting project property: java.io.tmpdir.ivy.instance ->
C:\DOCUME~1\[replaced]\LOCALS~1\Temp\
Setting project property: ftp.proxyHost -> [replaced].net
Setting project property: ftp.proxyHost.ivy.instance -> [replaced].net
Setting project property: ftp.proxyPort -> [replaced]
Setting project property: ftp.proxyPort.ivy.instance -> [replaced]
Setting project property: http.proxyUser -> 
Setting project property: http.proxyUser.ivy.instance -> 
Setting project property: http.proxyPort -> [replaced]
Setting project property: http.proxyPort.ivy.instance -> [replaced]
Setting project property: http.proxyPassword -> 
Setting project property: http.proxyPassword.ivy.instance -> 
...
    default cache: C:\Documents and Settings\[replaced]\.ivy2\cache
    default resolver: ibiblio
    default latest strategy: latest-revision
    default conflict manager: latest-revision
    circular dependency strategy: warn
    validate: true
    check up2date: true
    -- 26 resolvers:
    repo1maven [url]
        cache: null
        m2compatible: true
        ivy patterns:
          
http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[module]-ivy.xml
        artifact patterns:
          
http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
          
http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]
        repository: repo1maven
...

Clearing the local ivy cache folder doesn't help either. 
For other artifacts defined not as bundles the ibiblio etc. resolvers are
working fine via the proxy. So any idea what could be the reason for this
"Server access Error: Unexpected end of file from server"?
-- 
View this message in context: http://www.nabble.com/.bundle-extension-in-ivy-retrieve...-im-so-confused-tp18562574p18891854.html
Sent from the ivy-user mailing list archive at Nabble.com.


      

Mime
View raw message