Confluence破解方法
为了方便文档的管理,最近装了Atlassian的Confluence,虽说是开源项目,但是仍需购买License才能长久使用,好奇心起,在网上搜索了一下破解之法,发现大多写得模棱两可,害人不浅,最后几经折腾终于破解成功。为了给后来人提供一点儿方便,发扬互联网共享之精神,决定整理一下,破解过程如下:
1) 首先在官方网站上下载并安装了JIRA和confluence:
atlassian-jira-enterprise-3.6.5-standalone.tar.gz
confluence-2.2.10.tar.gz
2) 启动后,可以看到页面下面有一条醒目的红色提醒,说明是Evaluation版本,用admin登录在License Details页面输入官方提供的试用版的License number(可在网站上得到),此时可以正常使用了。
3) 解压confluence-2.2.10.tar.gz包,反编译下列几个文件:
confluence-2.2.10\confluence\WEB-INF\classes\com\atlassian\confluence\upgrade\impl\DefaultUpgradeManager.class(c1)
confluence-2.2.10\confluence\WEB-INF\lib\atlassian-extras-0.7.20.jar(j1)中的:
atlassian-extras-0.7.20\com\atlassian\license\DefaultLicense.class(c2)
atlassian-extras-0.7.20\com\atlassian\license\LicenseManager.class(c3)
atlassian-extras-0.7.20\com\atlassian\license\LicenseUtils.class(c4)
4) 分别得到的四个Java文件,修改其中与Expire、License等有关的方法,然后再编译得到相应的class,分别替换原来的class,然后将(c1)和(j1)拷贝到安装目录的相应位置下(替换之前最好原文件先备份)。
5) 重启服务,红色提醒不见了,登陆进去,可看到License Details页面信息更新如下:
Organisation KFC
Date Purchased Feb 10, 3906
License Type Confluence: Commercial Server
Licensed Users Unlimited
Support Period Your commercial Confluence support and updates are available until Oct 10, 3911.
License ID (Atlassian sales or support may ask you to provide this ID)
License Partner Cocacola
附: 上述反编译的几个文件修改之处如下(只陈列了修改的部分):
(c1):
public boolean isUpgradeAllowed()
{
return true;
}
(c2):
public boolean isExpired()
{
return false;
}
public Date getExpiryDate()
{
return null;
}
(c3):
private static final Category log = Category.getInstance("com/atlassian/license/LicenseManager");
public boolean hasValidLicense(String licenseKey)
{
return true;
}
public License getLicense(String applicationName)
{
Date dateCreated = new Date(2007, 1, 10);
Date datePurchased = new Date(2006, 1, 10);
License license = new DefaultLicense(dateCreated, datePurchased, "KFC", ConfluenceLicenseTypeStore.FULL_LICENSE, 10000, "Cocacola");
return license;
}
public License setLicense(String license, String applicationName)
{
return null;
}
public LicensePair getLicensePair(String applicationName)
{
return null;
}
(c4):
public static long getSupportPeriodEnd(License license)
{
return (new Date(2010, 9, 9)).getTime() + 0x75cd78800L;
}
public static boolean isLicenseTooOldForBuild(License license, Date buildDate)
{
return false;
}
public static boolean confirmExtendLicenseExpired(Date dateConfirmed)
{
return false;
}
public static boolean confirmExtendLicenseExpired(String dateConfirmed)
throws NumberFormatException
{
return false;
}
private static long getNewBuildWithOldLicenseExpiryDate(Date dateConfirmed)
{
return dateConfirmed.getTime() + 0x9a7ec800L;
}
public static long getNewBuildWithOldLicenseExpiryDate(String dateConfirmed)
{
return getNewBuildWithOldLicenseExpiryDate(new Date(Long.parseLong(dateConfirmed)));
}
public static long getSupportPeriodAlmostExpiredDate(License license)
{
return getSupportPeriodEnd(license) - 0xd84b1800L;
}
特别声明:本文仅供个人爱好和学习使用,请勿用于商业用途,如有必要,请购买正版。
#end
原文:
http://javacnsuperman.blog.sohu.com/108768385.html
分享到:
相关推荐
Confluence破解文件 破解方法,请覆盖\Atlassian\Confluence\confluence\WEB-INF\lib的同名文件后重启服务,完成破解 亲测版本Confluence 6.1.1,其他版本请自行测试
在处理“confluence破解”时,需要注意的是,这涉及到违反Atlassian的许可协议,可能导致法律问题。强烈建议遵守软件授权政策,购买合法的许可证以支持软件开发者的工作。 总的来说,Confluence7的安装和插件部署是...
5. 破解 Crowd 程序与加载驱动:使用 `mysql` 命令破解 Crowd 的程序和加载驱动。 6. 启动 Crowd 服务:使用 `service` 命令启动 Crowd 服务。 7. Crowd 安装解析图:了解 Crowd 的安装过程和架构。 8. 安装过程...
备份一个系统的数据,在安装一个新系统时,直接导入此备份数据,在导入时让输入序列号,这时按照破解方法完成文件替换,然后把你的破解序列号放在输入框中,完成破解。 七、自定义字段在定义到项目时的操作要点 在...
使用说明:Crowd是用来集成Atlassian各类产品(如:jira、confluence、fisheye等)用户集成,实现单点登录(SSO)的系统,但是官方提供的是全英文版,对于有的同学使用起来比较困难,所以我利用一点业余时间翻译了...
- 插件需要自行破解使用,增强MyBatis开发体验。 - **CodeGlance**: - 提供代码预览侧边栏,方便快速导航。 - **Livetemplates**: - 通过`Ctrl+Alt+S > Live Templates`进行模板定制,加快编码速度。 - **...