File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes ant target in maven.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "ant target in maven.xml" Watch "ant target in maven.xml" New topic
Author

ant target in maven.xml

kbidy stephane
Greenhorn

Joined: Apr 08, 2004
Posts: 3
Is it possible to call a target, defined in my own build.xml script ANT, in a goal Maven (in maven.xml)??
thank you for response
Don Stadler
Ranch Hand

Joined: Feb 10, 2004
Posts: 451
It's possible to write a Maven plugin to use an Ant target if that is what you are asking....
kbidy stephane
Greenhorn

Joined: Apr 08, 2004
Posts: 3
I don't know if I need to create a new plug-in...
I have a build.xml (ant script), and I just need to call, in my maven.xml, a target which is described in my ant file...
actually, I use the target "exec" to do this
(like "<exec executable="ant.bat" os="Windows 2000">
<arg line="-f"/>
<arg line="'mybuild.xml'"/>
<arg line="mytarget"/>"
I've got a pb with the "<ant>" target in maven...),
but, it create a new java process, and I don't want that! I want to execute my target ant in the same process as maven....
Have you got an idea to do that??
perhaps, a plugin is necessary... I don't know
 
 
subject: ant target in maven.xml
 
Threads others viewed
How to manage a IDEA project in Eclipse?
Using ANT
Maven Home
Extracting jars: Maven
How to make mavenide work with minimal project?
developer file tools