[ 
http://jira.codehaus.org/browse/MANTTASKS-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98665
 ] 

Herve Boutemy commented on MANTTASKS-71:
----------------------------------------

Technically, I fully agree: it should be possible to fire a Maven goal from an 
Ant build file. But I don't understand the purpose of such a m2 task

I'll try to explain.
Apart from dependencies resolution and download, running Maven goals runs a 
Maven build.
If someone is staying with Ant, I think that's precisely because he doesn't 
want to rely on Maven predefined build structure, and prefer to stay with your 
custom build process, with full control.
Running Maven through Ant would only mean to me typing "ant" instead of "mvn". 
The only win I see is perhaps that someone could write in an Ant build file 
useful goals you'd have to know if you'd have to run them directly with mvn.
For example, "site" Ant target is easily found in an Ant build file, but "mvn 
site:site" needs some Maven knowledge. Why not. But soon, you'll have "mvn 
site:deploy", "mvn site:stage", "mvn site:run": if each goal needs an Ant 
target, your buildfile will really grow fast.

No, I really don't see a good use case for the moment.

But it's feasible: if it's available, perhaps someone will find a usage for 
it...

> running m2 inside Ant
> ---------------------
>
>                 Key: MANTTASKS-71
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-71
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Task
>            Reporter: Brett Porter
>            Priority: Minor
>
> I'm thinking out loud now, but given that we have the artifact and pom tasks, 
> and m2 is embeddalbe - for those still using Ant as their primary 
> environment, but might want some m2 projects we could have an m2 task. The 
> artifact tasks (whould could hopefully install themselves a bit more easily 
> in future) could pull down the necessary m2 libraries and fire it up to run 
> goals.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to