Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: oops, messed up the declaration of cl


An alternative design could be:

Code Block
ClassLoaderMavenClassLoader cl = new MavenClassLoader(); // << Contain it all in one .class file?
cl.allowRemoteDownload(true); // Defaults to false for security?
cl.loadSelfDependencies(); // opens META-INF/maven folders for this artifacts dependencies
cl.loadDependency(MavenClassLoader.RUNTIME, "groupid", "artifactid", "version"); // Could have more args for other artifact resolving keys
cl.loadDependencyNonTransitive("groupid", "artifactid", "version"); // non-transitive version
// some code to set the current thread classloader not shown...