Hello,
I'm having troubles with dynamic revision in IvyDE. The following
configuration works fine with Ant but fails with IvyDE
(org.apache.ivyde.eclipse_1.3.0.20071209120000.jar).
JUnit 3.8.+ gets resolved to the latest 3.8.x version available on my
repository (3.8.2 in this test) with an ant resolve task. But it isn't
resolved at all with IvyDE.
In ant, the related logs are pretty simple (ant ivy settings are
pointing to the same ivy settings file than ivyde) :
[ivy:retrieve] found junit#junit;3.8.2 in ftp
[ivy:retrieve] [3.8.2] junit#junit;3.8.+
Thanks for any hint !
Regards.
Guillaume
Here are various configuration files and logs :
Project ivy.xml
<ivy-module version="2.0">
<info organisation="customer" module="IvyTestProject"
revision="1.0.0" status="integration"/>
<configurations>
<conf name="default"/>
<conf name="test" extends="default"/>
</configurations>
<publications>
<artifact name="ivytestproject" type="jar" ext="jar" conf="*"/>
</publications>
<dependencies>
<dependency org="junit" name="junit" rev="3.8.+" conf="default"/>
<dependency org="junit-addons" name="junit-addons" rev="1.4"
conf="test->master;test->runtime" />
<dependency org="org.springframework" name="spring" rev="2.0.6"
conf="default"/>
</dependencies>
</ivy-module>
Ivy settings
<ivysettings>
<settings defaultResolver="ftp" checkUpToDate="true"
defaultCache="./ivy_cache" />
<resolvers>
<vfs name="ftp" allownomd="false">
<ivy
pattern="ftp://**********:[EMAIL PROTECTED]/external-lib/[organisation]/[module]/[revision]/[artifact]-[revision].xml"
/>
<artifact
pattern="ftp://**********:[EMAIL PROTECTED]/external-lib/[organisation]/[module]/[revision]/[artifact]-[revision].jar"
/>
</vfs>
</resolvers>
</ivysettings>
Repository structure :
The folder <ftpuser_home>\external-lib\junit\junit exists and has two
subfolders named after version numbers :
3.8.1 which contains ivy-3.8.1.xml, jars and so on
3.8.2 which contains ivy-3.8.2.xml, jars and so on
IvyDE says :
Impossible to resolve dependencies of dexiabil#IvyTestProject;1.0.0:
unresolved dependency: junit#junit;3.8.+: not found
unresolved dependency: junit#junit;3.8.+: not found
See IvyConsole for further details
--> I couldn't found a eclipse view / logfile named IvyConsole. Eclipse
error log states that no stacktrace is available.
FTP logs :
notice "/external-lib/junit/junit/3.8.+": directory not found...
(000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> Connected,
sending welcome message...
(000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)>
220-FileZilla Server version 0.9.24 beta
(000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)>
220-written by Tim Kosse ([EMAIL PROTECTED])
(000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 220 Please
visit http://sourceforge.net/projects/filezilla/
(000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> USER
repo-central
(000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 331
Password required for repo-central
(000765) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> PASS
************
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 230 Logged on
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> TYPE I
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 200 Type set to I
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD external-lib
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 250 CWD
successful. "/external-lib" is current directory.
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD junit
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 250 CWD
successful. "/external-lib/junit" is current directory.
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD junit
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 250 CWD
successful. "/external-lib/junit/junit" is current directory.
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD 3.8.+
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 550 CWD
failed. "/external-lib/junit/junit/3.8.+": directory not found.
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD external-lib
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 550 CWD
failed. "/external-lib/junit/junit/external-lib": directory not found.
(000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> Connected,
sending welcome message...
(000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)>
220-FileZilla Server version 0.9.24 beta
(000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)>
220-written by Tim Kosse ([EMAIL PROTECTED])
(000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 220 Please
visit http://sourceforge.net/projects/filezilla/
(000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> USER
repo-central
(000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> 331
Password required for repo-central
(000766) 2/18/2008 15:05:34 PM - (not logged in) (127.0.0.1)> PASS
************
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 230 Logged on
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> TYPE I
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 200 Type set to I
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD external-lib
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 250 CWD
successful. "/external-lib" is current directory.
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD junit
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 250 CWD
successful. "/external-lib/junit" is current directory.
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> EPSV ALL
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 229 Entering
Extended Passive Mode (|||2324|)
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> EPSV
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 229 Entering
Extended Passive Mode (|||2325|)
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> RETR junit
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 550 File not
found
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> CWD external-lib
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> 550 CWD
failed. "/external-lib/junit/external-lib": directory not found.
(000766) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> disconnected.
(000765) 2/18/2008 15:05:34 PM - repo-central (127.0.0.1)> disconnected.