public List < String > invoke ( File f , VirtualChannel channel ) throws IOException , InterruptedException { MavenProject mavenProject = getMavenProject ( f . getAbsolutePath ( ) ) ; return mavenProject . getModel ( ) . getModules ( ) ; }
This is needed when running on slaves .