I was wondering if there is a Java API for Maven, from which to call mvn commands?  For instance, we would like to (OS agnostically - maybe the cd and rmdir cannot be OS agnostic) perform the following operations, checking for any errors that occur:
 
mvn archetype:create -DarchetypeArtifactId=stack-fuse -DarchetypeGroupId=abc.def.stack -DarchetypeVersion=2.0-SNAPSHOT -DartifactId=testproject -DgroupId=abc.def -DremoteRepositories=http://somelib:1234/maven2
 
cd testproject
 
mvn package site eclipse:eclipse -Dwtpversion=1.0
 
cd ..
 
rmdir testproject
 
Thanks,
 
Matt W.
 
 

Reply via email to