I am using IvyDE in Eclipse and 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()"
and get the same error. I am using http://ant.apache.org/ivy/history/latest-milestone/settings/version-matchers.html as a guide.
I want to get the latest X.X.X.Final version of Hibernate.
Thank you for your help.
Your regular expression does not match any of revision numbers (You're looking for a non-existent "*" character).
Try this instead:
<version-matchers usedefaults="true">
<pattern-vm>
<match revision="final" pattern=".*Final$" matcher="regexp"/>
</pattern-vm>
</version-matchers>
来源:https://stackoverflow.com/questions/16394646/use-ivy-to-get-latest-x-x-x-final-hibernate