Hi,
Thanks for you detailed explanation. I got the scope of "maven ant tasks".
case 1 is what I am looking for.
Definitely now I will try with <exec> ant task.

Just for curiosity, Is there any plan to in maven 3 to give such facility to
build any maven (pom.xml) project from ant build.xml file?

Thanks once again for your great explanation.

regards
Vikas


Hervé BOUTEMY wrote:
> 
> Hi,
> 
> I thought Tim's reply didn't need any addition, but it seems that even the 
> documentation is still not clear enough (multiple people did a lot of work
> on 
> it, though...).
> Let's try to understand your problem, then improve the doc.
> 
> Perhaps 2 examples will help us to understand each other.
> 
> 1. Maven Ant Tasks have a sample.build.xml [2] to unit-test the components 
> features
> As stated before, Maven Ant Tasks are not meant to really *build* a
> project, 
> but only get dependencies. So you won't see in this example anything
> really 
> building: only getting dependencies in multiple forms, installing an
> artifact 
> into local repository and deploying to a remote repo (how the artifact 
> installed/deployed is really build is not shown, since once again, it's
> not 
> the purpose of the tasks)
> 
> 2. Maven itself can be bootstrapped using Maven Ant Tasks: see build.xml
> in 
> Maven Core sources [3]
> This time, this is really a project (Maven Core) built by Ant, getting its 
> multiple dependencies with Maven Ant Tasks: seems to be what you want to
> do 
> with your project.
> As you can see in the build file, most content is about building a
> specific 
> project: there is only a little part that is about getting dependencies,
> ie 
> the "pull" target (with its depends).
> 
> 
> Are these examples more clear?
> 
> 
> Regards,
> 
> Hervé
> 
> 
> [2] 
> http://svn.apache.org/viewvc/maven/ant-tasks/branches/maven-ant-tasks-2.0.x/sample.build.xml?view=markup
> 
> [3] 
> http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/build.xml?view=markup
> 
> Le mercredi 11 février 2009, vikask a écrit :
>> Hi
>>
>> I am also facing same problem. Have anyone found solution?
>>
>> Thanks
>>
>> regards
>> Vikas
>>
>> Tim Kettler wrote:
>> > Hi,
>> >
>> > halsafar schrieb:
>> >> I am trying to write an ant script to automate some maven tasks and
>> >> hopefully
>> >> decide not to rebuild the entire thing if it detects no changes.  Just
>> >> to give an idea I am working with Jasig CAS Server which has several
>> >> modules all which are Maven projects.  The build time is brutal on
>> this
>> >> beast and it
>> >> will always rebuild no matter what it seems.  So even if Ant won't
>> help
>> >> I am
>> >> still stuck using Ant as I need to auto-deploy the CAS Server to both
>> a
>> >> Tomcat and Glassfish server.  Now everything has been done and Maven
>> is
>> >> being run from a simple <exec> call in the build.xml for the ant
>> script.
>> >> I
>> >> did find some Official Maven Ant Tasks jar I would like to try. 
>> However
>> >> I
>> >> have been unable to find any examples which actually show this maven
>> ant
>> >> tasks   building a maven project.  Any help?
>> >
>> > The maven ant tasks bring the dependency management features of maven
>> to
>> > ant, they don't enable ant to build a maven project. Anyway, here [1]
>> is
>> > the link to the official homepage containing usage instructions.
>> >
>> > -Tim
>> >
>> > [1] http://maven.apache.org/ant-tasks.html
>> >
>> > ---------------------------------------------------------------------
>> > 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Ant-Task---Build-maven-pom.xml-tp17657445p21951942.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