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 ( ) ) ; } }
man what a hack!