Issue created :
https://issues.apache.org/jira/browse/IVYDE-77
Nicolas Lalevée a écrit :
Le mercredi 20 février 2008, Johannes Stamminger a écrit :
Hi,
just a quick thought of this - maybe I'm completely wrong: but I guess with
http resolving for a dynamic revision, the resolver depends on the the
webserver allowing/supporting directory listing of the repository (the
resolver can not ask for a specific filename) ... ?
Here Guillaume uses a FTP resolver, so I don't see any reason why it should
not work. Might be a IvyDE bug.
Guillaume, could you open a Jira issue ?
cheers,
Nicolas
Regards,
Johannes Stamminger
On Wednesday 20 February 2008, guillaume wrote:
I have made another attempt using Eclipse 3.2 and IvyDE 1.2. The
settings file has been changed to :
<?xml version="1.0" encoding="ISO-8859-1"?>
<ivyconf>
<conf defaultCache="./ivy_cache2" defaultResolver="external-lib"
checkUpToDate="false" />
<resolvers>
<vfs name="external-lib" 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>
</ivyconf>
The results are the same than with Eclipse 3.3 and IvyDE 1.3 - nightly
build.
If i specify either junit 3.8.1 or 3.8.2, the ivy file and he jar are
properly resolved and retrieved. But when it comes to dynamic revision
3.8.+, it fails :
Could not determine the last modified timestamp of
"ftp://*******:[EMAIL PROTECTED]/external-lib/junit/junit/3.8.+/ivy-
3. 8.+.xml" because it does not exist.
listing all in
ftp://*******:[EMAIL PROTECTED]/external-lib/junit/junit/[revision]/
iv y-[revision].xml using external-lib to list all in
ftp://*******:[EMAIL PROTECTED]/external-lib/junit/junit/
list called for
URIftp://*******:[EMAIL PROTECTED]/external-lib/junit/junit/
resourceImpl=ftp://*******:[EMAIL PROTECTED]/external-lib/junit/juni
t resourceImpl.exists()false
resourceImpl.getType()imaginary
FileType.FOLDERfolder
found 0 resources
found revs: []
external-lib: no resource found for [ junit | junit | 3.8.+ ]:
pattern=ftp://*******:[EMAIL PROTECTED]/external-lib/[organisation]/
[m odule]/[revision]/[artifact]-[revision].xml external-lib: no ivy file
found for [ junit | junit | 3.8.+ ]
tried
ftp://*******:[EMAIL PROTECTED]/external-lib/junit/junit/3.8.+/ivy-3
.8 .+.xml tried
ftp://*******:[EMAIL PROTECTED]/external-lib/junit/junit/[3.8.+]/ivy
-[ 3.8.+].xml WARN: module not found: [ junit | junit | 3.8.+ ]
WARN: external-lib: tried
ftp://*******:[EMAIL PROTECTED]/external-lib/junit/junit/3.8.+/ivy-3
.8 .+.xml WARN: external-lib: tried
ftp://*******:[EMAIL PROTECTED]/external-lib/junit/junit/[3.8.+]/ivy
-[ 3.8.+].xml
It makes me think that my repository is somehow incorrect.
However, the user has proper rights to list content of
/external-lib/junit/junit/ directory. The dynamic revision works well
with the same ivy.xml and settings file using ant.
This directory has two subfolder named 3.8.1 and 3.8.2. Each folder
contains the junit-revision.jar and ivy-revision.xml file.
I'm confused. Is it possible to use dynamic revision with ivyde at all ?
Regards,
Guillaume
guillaume a écrit :
Thanks for pointing out the console.
The logs are pretty much the same. It seems ivyde is looking for a
fixed revision named 3.8.+ instead of the lastest 3.8.x
Actually i'm been forced to stick to fixed revisions in Eclipse which
will really slow down the adoption of ivy by my customer.
I've had a look to SVN but i'm not an expert in plugin development and
couldn't find out anything relevant.
:: problems summary ::
:::: WARNINGS
module not found: junit#junit;3.8.+
==== ftp: tried
ftp://********:[EMAIL PROTECTED]/external-lib/junit/junit/3.8.+/iv
y- 3.8.+.xml
ftp://********:[EMAIL PROTECTED]/external-lib/junit/junit/[revisio
n] /ivy-[revision].xml
:: UNRESOLVED DEPENDENCIES ::
::
:: junit#junit;3.8.+: not found
Nicolas Lalevée a écrit :
Le lundi 18 février 2008, guillaume a écrit :
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.+
Some of my colleagues did have the same issues in trying the 1.3
version of IvyDE. But they didn't had time to do further debugging or
test so I cannot help them.
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/[organi
sa tion
]/[module]/[revision]/[artifact]-[revision].xml" />
<artifact
pattern="ftp://**********:[EMAIL PROTECTED]/external-lib/[organi
sa tion
]/[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.
In fact the "Ivy console" is a "console". So see the console view,
and choose the "Ivy console" in the console's menu, menu containing
also "Java stack trace console", "CVS", etc...
And so you will have the proper Ivy debugging infos.
Nicolas
--
[EMAIL PROTECTED] [2FE783D0 http://wwwkeys.PGP.net]
------ ----<--{(@ ------------------ EADS ASTRIUM
Koenigsberger Str. 17, 28857 Barrien Ground System Eng. (TE55)
+49 4242 169582 (Tel + FAX) Airbus Allee 1, 28199 Bremen
+49 174 7731593 (Mobile) +49 421 539 4152 (Tel) / 4378 (FAX)
This email (including any attachments) may contain confidential and/or
privileged information or information otherwise protected from disclosure.
If you are not the intended recipient, please notify the sender
immediately, do not copy this message or any attachments and do not use it
for any purpose or disclose its content to any person, but delete this
message and any attachments from your system. Astrium disclaims any and all
liability if this email transmission was virus corrupted, altered or
falsified. ---------------------------------------------------------
Astrium GmbH Vorsitzender des Aufsichtsrates: Thomas Mueller -
Geschaeftsfuehrung: Evert Dudok (Vorsitzender), Dr. Reinhold Lutz, Pablo
Salame Fischer, Guenter Stamerjohanns Sitz der Gesellschaft: Muenchen -
Registergericht: Amtsgericht Muenchen, HRB Nr. 107 647
Weitere Informationen ueber EADS Astrium @ http://www.astrium.eads.net/