提交 069c24bc 编写于 作者: K kohsuke

added doc.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2108 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0202466b
......@@ -74,6 +74,19 @@ class MavenUtil {
project.setCollectedProjects(modules);
}
/**
* When we run in Jetty during development, embedded Maven will end up
* seeing some of the Maven class visibel through Jetty, and this confuses it.
*
* <p>
* Specifically, embedded Maven will find all the component descriptors
* visible through Jetty, yet when it comes to loading classes, classworlds
* still load classes from local realms created inside embedder.
*
* <p>
* This classloader prevents this issue by hiding the component descriptor
* visible through Jetty.
*/
private static final class MaskingClassLoader extends ClassLoader {
public MaskingClassLoader(ClassLoader parent) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册