如下操做须要反编译java
一、反编译的jar包lua
1)E:\JIRA安装路径\atlassian-jira\WEB-INF\atlassian-bundled-plugins\atlassian-universal-plugin-manager-plugin-4.0.1.jarspa
2)commons-codec-1.12.jar,这个须要自行下载code
二、破解文件路径ip
1)com.atlassian.extras.decoder.v2.Version2LicenseDecoder.classci
2)com.atlassian.license.LicenseManager.classget
三、修改方式it
1)新建com.atlassian.extras.decoder.v2.Version2LicenseDecoder.javaio
private Properties loadLicenseConfiguration(Reader text)
{
Properties props = new Properties();
try {
(new DefaultPropertiesPersister()).load(props, text);
if (props.containsKey("Description")) {
String desc = props.getProperty("Description");
props.put("Description",
desc.replace("Evaluation", "Commercial"));
if (desc.contains("Confluence")) {
props.put("conf.LicenseTypeName", "COMMERCIAL");
} else if (desc.contains("JIRA")) {
props.put("jira.LicenseTypeName", "COMMERCIAL");
} else if (desc.contains("FishEye")) {
props.put("fisheye.LicenseTypeName", "COMMERCIAL");
} else if (desc.contains("Bitbucket")) {
props.put("stash.LicenseTypeName", "COMMERCIAL");
}
props.put("Evaluation", "false");
props.put("MaintenanceExpiryDate", "2033-06-06");
props.put("LicenseExpiryDate", "2033-06-06");
}
return props;
} catch (IOException var3) {
throw new LicenseException("Could NOT load properties from reader", var3);
}
}编译
2) 新建com.atlassian.LicenseManager.java
public boolean hasValidLicense(String licenseKey) {
return true;
}
四、替换原jar包中的文件
五、关闭服务并重启,便可破解完成