How can I run an Ant target in Maven?

2008-06-02 Thread youhaodeyi
/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

Re: How can I run an Ant target in Maven?

2008-06-02 Thread John Casey
You should be able to simply call the hibernatetool without a target. IIRC, the antrun plugin may not support targets. -john youhaodeyi wrote: I use Maven runant plugin to execute ant task, see below: build plugins plugin

Re: How can I run an Ant target in Maven?

2008-06-02 Thread [EMAIL PROTECTED]
Every maven plugin has documentation on the maven site. It is the best place to look for answers to questions like this. See: http://maven.apache.org/plugins/maven-antrun-plugin/plugin-info.html As the documentation says, writing a target tag is NOT allowed within the pom.xml file. So I would

Re: How can I run an Ant target in Maven?

2008-06-02 Thread Alan Gutierrez
Related question: In most of my projects I create command line tools. To get them up and running quickly, I use Ant and all the classpath configuration that is already defined in my build.xml. I've seen that you're supposed to use Profiles to switch out plugin configurations, so I could

Re: How can I run an Ant target in Maven?

2008-06-02 Thread [EMAIL PROTECTED]
Alan Gutierrez schrieb: Related question: In most of my projects I create command line tools. To get them up and running quickly, I use Ant and all the classpath configuration that is already defined in my build.xml. I've seen that you're supposed to use Profiles to switch out plugin

Re: How can I run an Ant target in Maven?

2008-06-02 Thread Alan Gutierrez
On Jun 2, 2008, at 10:06 AM, [EMAIL PROTECTED] wrote: Alan Gutierrez schrieb: Related question: In most of my projects I create command line tools. To get them up and running quickly, I use Ant and all the classpath configuration that is already defined in my build.xml. I've seen that