В Пнд, 13/06/2005 в 17:37 -0400, Craig McDaniel пишет:
> After following the two minute introduction on the XDoclet2 website, I
> still can not get the Hibernate XDoclet stuff to work. Maven complains
> that it doesn't know about the <xdoclet> element below. Here is the
> clip from my maven.xml:
>
> <goal name="xdclt">
> <taskdef name="xdoclet" classname="org.xdoclet.ant.XDocletTask"
> classpathref="maven.dependency.classpath" />
> <xdoclet>
> <fileset dir="${pom.build.sourceDirectory}">
> <include name="**/*.java"/>
> </fileset>
> <component
> classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin"
> destdir="${maven.build.dir}/xdoclet/hibernatedoclet"/>
> <!-- add more plugins here! -->
> </xdoclet>
> </goal>
>
> Any clues?
>
There are more simple way, look at:
http://xdoclet.codehaus.org/maven-plugin/example-hibernate.html
after that, all what you need - attain goal "xdoclet2"
--
Roman Krutyakov