regex - Use Ivy to get latest X.X.X.Final Hibernate -


i using ivyde in eclipse , getting

unresolved dependency: org.hibernate#hibernate-core;final: not found 

using code:

ivysettings.xml

<ivysettings>     <settings defaultresolver="maven2"/>     <resolvers>         <ibiblio name="maven2" m2compatible="true"/>     </resolvers>     <version-matchers>         <pattern-vm>             <match revision="final" pattern="\*final" matcher="regexp"/>         </pattern-vm>     </version-matchers> </ivysettings> 

ivy.xml

... <dependency org="org.hibernate" name="hibernate-core" rev="final"/> ... 

i have tried rev="final()" , same error. using http://ant.apache.org/ivy/history/latest-milestone/settings/version-matchers.html guide.

i want latest x.x.x.final version of hibernate.

thank help.

your regular expression not match of revision numbers (you're looking non-existent "*" character).

try instead:

<version-matchers usedefaults="true">     <pattern-vm>         <match revision="final" pattern=".*final$" matcher="regexp"/>     </pattern-vm> </version-matchers> 

Comments