fix get maven url error...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-09-01 14:11:46 +08:00
parent 7845a8ace5
commit 8f79263a19

View File

@ -12,7 +12,8 @@ public class PluginInfo {
public String repo; public String repo;
public String getMavenUrl() { public String getMavenUrl() {
return String.format(url + "/%1$s/%2$s/%3$s/%2$s-%3$s.jar", plugin.groupId.replace(".", "/"), plugin.artifactId, plugin.version); return String.format(url + (url.endsWith("/") ? "" : "/") + "%1$s/%2$s/%3$s/%2$s-%3$s.jar", plugin.groupId.replace(".", "/"),
plugin.artifactId, plugin.version);
} }
public String getFileName() { public String getFileName() {