I am trying to evaluate my plugin on 10 projects in headless mode. One of the projects is JUnit and it has the default platform processor as well as the Eclipse and Maven processors. When I use ProjectUtil.openOrImport(), it tries to show dialog asking whether to use the Eclipse or Maven processor which throws an exception because it's in headless mode.
I tried deleting the .project and .classpath files in the project before trying to load it so it would only use the Maven processor but it still find these files. Is there a way to set the processor before trying to load the project, or do you have any suggestions as to where I should look to try to solve this issue?