提交 2f23b277 编写于 作者: K kohsuke

code often runs in a thread that Hudson created, and those threads won't...

code often runs in a thread that Hudson created, and those threads won't inherit the web application classloader.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2101 71c3de6d-444a-0410-be80-ed276b4c234a
上级 95d8a960
......@@ -23,7 +23,7 @@ class MavenUtil {
public static MavenEmbedder createEmbedder(TaskListener listener) throws MavenEmbedderException {
MavenEmbedder maven = new MavenEmbedder();
ClassLoader cl = Thread.currentThread().getContextClassLoader();
ClassLoader cl = MavenUtil.class.getClassLoader();
maven.setClassLoader(cl);
maven.setLogger( new EmbedderLoggerImpl(listener) );
// if we let Plexus find components, there's no guaranteed ordering,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册