提交 ccd0e9f1 编写于 作者: K kohsuke

[FIXED HUDSON-2373] in 1.316.

    Fixed "incomplete LifecycleExecutor" warning with Maven 2.2
    (<a href="https://hudson.dev.java.net/issues/show_bug.cgi?id=2373">issue 2373</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19573 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5534f633
......@@ -351,7 +351,7 @@ public class Maven extends Builder {
}
/**
* Is this Maven 2.1.x?
* Is this Maven 2.1.x or later?
*
* @param launcher
* Represents the node on which we evaluate the path.
......@@ -362,7 +362,7 @@ public class Maven extends Builder {
File[] jars = new File(getHomeDir(),"lib").listFiles();
if(jars!=null) // be defensive
for (File jar : jars)
if(jar.getName().startsWith("maven-2.1.") && jar.getName().endsWith("-uber.jar"))
if(jar.getName().startsWith("maven-2.") && !jar.getName().startsWith("maven-2.0") && jar.getName().endsWith("-uber.jar"))
return true;
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册