tags:

views:

338

answers:

2

Is it possible to call Maven goals from Java, for instance, can I do the equivalent of:

mvn clean package

from a Java class?

thanks, Nick

+8  A: 

absolutely, you need to use the Maven Embedder API.

dfa
+1 Thanks, I might need that.
KLE
Thanks - that should do the trick!
ned24
A: 

I can't use thi API. Do you have a Example that a can use?

Marapão