* @return
* @throws CoreException
*/
public static boolean runBuild(List<String> goals, Properties serverProperties, IModule module, IProgressMonitor monitor) throws CoreException {
IMaven maven = MavenPlugin.getMaven();
IMavenExecutionContext executionContext = maven.createExecutionContext();
MavenExecutionRequest executionRequest = executionContext.getExecutionRequest();
executionRequest.setPom(getModelFile(module));
if (serverProperties != null && serverProperties.isEmpty() == false) {
Server fabric8Server = new Server();
fabric8Server.setId(serverProperties.getProperty(SERVER_ID));
fabric8Server.setUsername(serverProperties.getProperty(SERVER_USER));