title: How to run maven command from java?
body: <p>I'm new to java and wants to run maven command with attributes from java code. How can I achieve this?</p>
  
  <p>Here is command that is executing from script file.</p>
  
  <p>$MVN test -Dtest=$SCRIPT_PATH  -Dcapability.app=$APP_FILE_PATH -Dmaven.test.failure.ignore=true >> $LOGFILE_PATH;</p>
  
  <p>I want to execute this same thing from java code.</p>
  
  <p>please help me if any one knows.</p>
  
  <p>Thanks in advance</p>