I'm also trying to work out how to do this. I do use Eclipse, but i don't do plugins - i just want some Ant tasks.
The documentation has a section called
2.3. Ant, which says:
Quote:
To use the tools via Ant™ you need the hibernate-tools.jar file and associated libraries. The libraries are included in the distribution from the Hibernate™ website and the Eclipse™ update site. The libraries are located in the Eclipse™ plugins directory at /plugins/org.hibernate.eclipse.x.x.x/lib/tools/. These libraries are 100% independent from the Eclipse™ platform. How to use the Hibernate Tools™ via Ant™ tasks is described in Chapter 5, Ant Tools.
It's not clear what "the distribution from the Hibernate™ website" refers to; the Hibernate site has a distribution for Hibernate, which does not include Hibernate Tools, and the Hibernate Tools sub-site links to JBoss Tools for downloads. To me, it sounds like we need to download the Eclipse plugin, but then not use it.
If you go to
JBoss Tools Downloads, there is a section called 'Downloads', which has links to pages like
JBoss Tools 3.2.2.Final Stable Release from where you can get "A p2 repo (update site) bundle of all JBoss Tools plugins". This is a big zip. There is a warning in bright red letters telling you
DO NOT UNPACK THEM.
So, having downloaded this file, unpack it.
Inside, you will find a directory called 'plugins'. Inside that, a jar file with a name like org.hibernate.eclipse_..., where the latter part is a typically inscrutable Eclipse plugin version string.
Unpack that.
Finally, you will find the promised lib/tools/ directory, inside which are (in the 3.2 release) hibernate-tools.jar, freemarker.jar, and jtidy-r8-20060801.jar.
You don't need to unpack those!
Note that if you want to use the Ant tools to process JPA annotations, then "
you will need to specify some additional jars from Hibernate EntityManager". That will be another download to search for!