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

旧城冷巷雨未停 提交于 2019-12-08 04:50:08

问题


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.


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!