{
String projectSubdir = "basic-pom";
List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectSubdir);
File projectRoot = projects.get(0).getBasedir();
FlowReleaseManager relman = getReleaseManager();
ReleaseContext ctx = new ReleaseContext(projectRoot);
ctx.setDefaultReleaseVersion("1.0");
ctx.setInteractive(false).setNoTag(true);
try
{
MavenSession session = new MavenSession(getContainer(), new Settings(), localRepository, null, null, null, projectRoot.getAbsolutePath(), new Properties(), new Properties(), null);
relman.start(ctx, projects, session);
}
catch (MavenJGitFlowException e)
{
assertEquals(DirtyWorkingTreeException.class, e.getCause().getClass());
throw e;