To make maven bootstrap its hibernatedoclet build (I mean that's why
you use it) put the following into your maven.xml file.
{{{<preGoal name="java:compile">
<j:set var="groupId" value="xdoclet"/>
<j:set var="artifactId" value="maven-xdoclet-plugin"/>
<j:set var="version" value="1.2"/>
<attainGoal name="plugin:download-artifact"/>
<m:installPlugin
file="${maven.repo.local}/${groupId}/plugins/${artifactId}-${version}.jar"
cache="true" />
<attainGoal name="xdoclet:hibernatedoclet"/>
</preGoal>}}}
This will make maven install the xdoclet plugin if it isn't already
and allows your build to work straight out of the (repository) box.
NB I use 1.2.2 but that isn't in the iblibio repository (yet) so if
you want to too you'll need to make your own repository. |