I need to download a file from a secure nexus repository via passing, user and password with java.
URL website = new URL("http://user:password@nexus-repository/code/data/text.txt")
FileUtils.copyURLToFile(website, new File(directory), 10000, 10000);
I've tried aloft code but its downloading any random file not the actual file with actual content.