code: private void addCP() throws DependencyResolutionRequiredException, MalformedURLException, InvocationTargetException, NoSuchMethodException, IllegalAccessException {
          List runtimeClasspathElements = project.getRuntimeClasspathElements();
  
          for (Object runtimeClasspathElement : runtimeClasspathElements) {
              String element = (String) runtimeClasspathElement;
              addUrl(new File(element).toURI().toURL());
          }
      }
docs: man, what a hack!