Custom plugin can't copy files from jar because protocol is “jar”
问题 I am developing a plugin for SonarQube, and part of what it must do is copy files from itself to the SonarQube Server's directory. I am using Apache Commons IO, and have found that FileUtils.copyDirectory works wonderfully (after testing it with a main method). The trouble comes from trying to get the directory of files that I want to copy from the jar of the plugin itself. I have tried this: public File getSrcDir() { URL inputUrl = getClass().getResource("/images"); File srcDir = FileUtils