Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0.10
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
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.
Issue Links
- is duplicated by
-
MANTTASKS-122
Add maven ant task for calling maven build from ant
-
-
MANTTASKS-131
Add a task to run maven in a directory
-
-
MANTTASKS-135
Maven Tasks for Ant should provide an Ant task to launch Maven
-
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...