修复自动获取版本错误...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-11-21 02:41:27 +08:00
parent e1541c27b8
commit 84295a46de
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>cn.citycraft</groupId> <groupId>cn.citycraft</groupId>
<artifactId>Yum</artifactId> <artifactId>Yum</artifactId>
<version>1.8.1</version> <version>1.8.2</version>
<name>Yum</name> <name>Yum</name>
<description>Minecraft 服务器插件管理系统</description> <description>Minecraft 服务器插件管理系统</description>
<build> <build>
@ -55,7 +55,7 @@
</build> </build>
<properties> <properties>
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url> <jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<update.description>&amp;b新增自动获取最新版本功能...</update.description> <update.description>&amp;c修复自动获取版本错误...</update.description>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<repositories> <repositories>

View File

@ -37,7 +37,7 @@ public class PluginInfo {
} }
} }
} else if (pom != null && !pom.isEmpty()) { } else if (pom != null && !pom.isEmpty()) {
pom = pom.replace("[name]", plugin.name).replace("[branch]", branch); pom = pom.replace("[name]", name).replace("[branch]", branch);
sender.sendMessage("§6版本: §b尝试从在线POM文件获取最新版本..."); sender.sendMessage("§6版本: §b尝试从在线POM文件获取最新版本...");
ver = IOUtil.getXMLTag(pom, "version", plugin.version); ver = IOUtil.getXMLTag(pom, "version", plugin.version);
if (ver != null) { if (ver != null) {