提交 dc6f8b99 编写于 作者: O Olivier Lamy

Merge pull request #358 from mfriedenhagen/JENKINS-12529

[FIXED JENKINS-12529] M2 job: create links to codehaus maven plugins and their goals
nice idea thanks !
......@@ -187,12 +187,16 @@ public final class ExecutedMojo implements Serializable {
return Stapler.getCurrentRequest().getContextPath()+m.getUrl();
if(groupId.equals("org.apache.maven.plugins"))
return "http://maven.apache.org/plugins/"+artifactId+'/';
if (groupId.equals("org.codehaus.mojo"))
return "http://mojo.codehaus.org/"+artifactId+'/';
return null;
}
public String getGoalLink(Cache c) {
if(groupId.equals("org.apache.maven.plugins"))
return "http://maven.apache.org/plugins/"+artifactId+'/'+goal+"-mojo.html";
if (groupId.equals("org.codehaus.mojo"))
return "http://mojo.codehaus.org/"+artifactId+'/'+goal+"-mojo.html";
return null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册