Nicolas Lalevée wrote:
Le 8 mai 08 à 17:11, Jose Noheda a écrit :
Hi,
The weird thing is anytime I add
<dependency org="org.springframework.security"
name="spring-security-taglibs" rev="2.0.1">
<artifact name="spring-security-taglibs" type="jar" />
</dependency>
The resolve fails with
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] [NOT FOUND ]
org.springframework.security#spring-security-acl;2.0.1!spring-
security-acl.bundle
(360ms)
[ivy:retrieve] ==== public: tried
[ivy:retrieve]
http://repo1.maven.org/maven2/org/springframework/security/spring-security-acl/2.0.1/spring-security-acl-2.0.1.bundle
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: FAILED DOWNLOADS ::
[ivy:retrieve] :: ^ see resolution messages for details ^ ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] ::
org.springframework.security#spring-security-acl;2.0.1!spring-
security-acl.bundle
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
So I tried adding and excluding spring-security-acl from the dependency
declaration to no avail. Of course, the spring-security- acl-2.0.1.jar is
actually downloaded and available in the .ivy2/cache folder
In fact your main problem is due to IVY-633. The declared packaging is
"bundle". Maven knows that it is actually a .jar. Ivy doesn't.
And as far as I know there is no workaround so it needs to be fixed in
Ivy.
The workaround is to add an artifact element with ext='jar' to your
dependenency.
From my post on 5/2:
http://marc.info/?l=ivy-user&m=120842825928326&w=2
http://marc.info/?l=ivy-user&m=120842941430186&w=2
Add this within the <dependency> element:
<artifact name="spring-security-core" ext="jar"/>
Jim