inside the claspath, add
<ant:pathelement location="${maven.build.dest}" />


On Tue, 28 Sep 2004 23:52:37 +0200, Jose Gonzalez Gomez
<[EMAIL PROTECTED]> wrote:
> 
>     Hi there,
> 
>     I'm trying to use the update schema functionality of hibernate
> inside maven, but I'm not able to do it. I have the following:
> 
>     <goal name="myProject:update-schema">
>         <ant:taskdef name="schemaupdate"
> classname="net.sf.hibernate.tool.hbm2ddl.SchemaUpdateTask">
>             <ant:pathelement location="${basedir}/target/classes"/>
>             <ant:classpath><ant:path
> refid="maven.dependency.classpath"/></ant:classpath>
>         </ant:taskdef>
>         <ant:schemaupdate properties="hibernate.properties" quiet="no">
>             <ant:fileset
> dir="${maven.xdoclet.hibernatedoclet.destDir}"><ant:include
> name="**/*.hbm.xml"/></ant:fileset>
>         </ant:schemaupdate>
>     </goal>
> 
>     The scchema update needs access to compiled classes, but I haven't
> been able to make those compiled classes available to the task. I have
> tried ${basedir}/target/classes, ${maven.build.dest} with no success. I
> have also taken a look at the hibernate plugin, and they manually change
> the class loader so the plugin is able to access the compiled classes.
> Is this impossible to do just using maven.xml?
> 
>     Thanks in advance, best regards
>     Jose
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to