如下操做須要反編譯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包中的文件
五、關閉服務並重啓,便可破解完成