I got the Maven embedder to execute a phase of the pom.xml's lifecycle.
However, I couldn't get it execute a specific goal.  For example, here
is my usage:
maven.execute(pom, Collections.singletonList("scm:checkout"),
eventMonitor, new ConsoleDownloadMonitor (),null,targetDirectory);
This results in an error.

However,
maven.execute(pom, Collections.singletonList("install"), eventMonitor,
new ConsoleDownloadMonitor (),null,targetDirectory); works fine.
Thus, the question is, can the Emedder be used to run specific goals, or
must the input be of the form of a phase?  Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

Reply via email to