protected MavenProject getRootProject() {
        MavenProject project = getProject();
        while (project != null) {
            MavenProject parent = project.getParent();
            if (parent == null) {
                break;
            }
            project = parent;
        }
        return project;
    }
protected MavenProject getRootProject ( ) { MavenProject project = getProject ( ) ; while ( project != null ) { MavenProject parent = project . getParent ( ) ; if ( parent == null ) { break ; } project = parent ; } return project ; }
Returns the root project folder