I use Maven runant plugin to execute ant task, see below:

<build>
                <plugins>
                        <plugin>
                                <artifactId>maven-antrun-plugin</artifactId>
                                <configuration>
                                        <tasks>
                                                <property name="output" 
value="target/classes" />
                                                <taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
                                                        />

                                                <target name="schema-recreate">
                                                        <hibernatetool 
destdir="${output}">
                                                                <configuration 
configurationfile="${output}/hibernate.cfg.xml" />
                                                                <hbm2ddl 
drop="true" create="true" export="true" update="false" />
                                                        </hibernatetool>
                                                </target>
                                        </tasks>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
How can I run the target schema-recreate? I don't want o attach this into
any Maven lifecycle.
-- 
View this message in context: 
http://www.nabble.com/How-can-I-run-an-Ant-target-in-Maven--tp17596941p17596941.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to