public static File getM2Path(File m2Dir, PluginCoordinates coordinates) {
        String artifactSubPath = getMavenPath(coordinates);
        return new File(m2Dir, artifactSubPath);
    }
public static File getM2Path ( File m2Dir , PluginCoordinates coordinates ) { String artifactSubPath = getMavenPath ( coordinates ) ; return new File ( m2Dir , artifactSubPath ) ; }
Find the plugin artifact in the local .m2 directory.
@param m2Dir the maven m2 directory
@param coordinates the coordinates
@return the M2 path