mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 14:28:46 +00:00
修复更新仓库时产生的NPE错误 添加构建标识符...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
6c4811218c
commit
d755b700d1
4
pom.xml
4
pom.xml
@ -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.7.3</version>
|
<version>1.7.4</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>&3修复一个迭代错误 &a安装插件时命名为插件名称...</update.description>
|
<update.description>修复更新仓库时产生的NPE错误...</update.description>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
<repositories>
|
<repositories>
|
||||||
|
@ -48,7 +48,7 @@ public class RepositoryManager {
|
|||||||
|
|
||||||
public boolean addPackage(final CommandSender sender, final String urlstring) {
|
public boolean addPackage(final CommandSender sender, final String urlstring) {
|
||||||
final String json = getHtml(urlstring);
|
final String json = getHtml(urlstring);
|
||||||
if (json.isEmpty()) {
|
if (json == null || json.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
final PackageInfo pkg = jsonToPackage(json);
|
final PackageInfo pkg = jsonToPackage(json);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: ${project.artifactId}
|
name: ${project.artifactId}
|
||||||
description: ${project.description}
|
description: ${project.description}
|
||||||
main: ${project.groupId}.${project.artifactId}.${project.artifactId}
|
main: ${project.groupId}.${project.artifactId}.${project.artifactId}
|
||||||
version: ${project.version}
|
version: ${project.version}-Build#${env.BUILD_NUMBER}
|
||||||
author: 喵♂呜
|
author: 喵♂呜
|
||||||
website: ${jenkins.url}/job/${project.artifactId}/
|
website: ${jenkins.url}/job/${project.artifactId}/
|
||||||
commands:
|
commands:
|
||||||
|
Loading…
Reference in New Issue
Block a user