protected URL [ ] getCompileClasspathElementURLs ( ) throws DependencyResolutionRequiredException { // build class loader to get classes to generate resources for return project . getCompileClasspathElements ( ) . stream ( ) . map ( path -> { try { return new File ( path ) . toURI ( ) . toURL ( ) ; } catch ( MalformedURLException ex ) { throw new RuntimeException ( ex ) ; } } ) . toArray ( size -> new URL [ size ] ) ; }
Get a List of URLs of all compile dependencies of this project .