惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
V
V2EX
博客园_首页
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Recent Announcements
Recent Announcements
博客园 - 司徒正美
Microsoft Security Blog
Microsoft Security Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Latest news
Latest news
Vercel News
Vercel News
The Register - Security
The Register - Security
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
N
Netflix TechBlog - Medium
WordPress大学
WordPress大学
小众软件
小众软件
L
Lohrmann on Cybersecurity
GbyAI
GbyAI
P
Privacy & Cybersecurity Law Blog
T
Tor Project blog
AWS News Blog
AWS News Blog
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
K
Kaspersky official blog
B
Blog RSS Feed
G
Google Developers Blog
量子位
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
Scott Helme
Scott Helme
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
I
Intezer
雷峰网
雷峰网
Martin Fowler
Martin Fowler
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
F
Full Disclosure
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 【当耐特】
The Hacker News
The Hacker News
U
Unit 42
S
SegmentFault 最新的问题
I
InfoQ
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
罗磊的独立博客
Spread Privacy
Spread Privacy
C
CERT Recently Published Vulnerability Notes

博客园 - 封封

.net解决数据导出excel时的格式问题 用户中心 - 博客园 呼出窗口 gvim的查找替换 windows下GVim的块选择方式 PDF Xchange Pro 3.6.0120的注册码 Commons-logging + Log4j入门指南 Linux通过802.1X认证 如何用Maven来管理Java项目的Library 用户中心 - 博客园 非常好的Struts2.0 Blog 标准展BOM语句 [摘]Hibernate 与 SQL Server BLOB Subversion的权限控制 IBatis.NET 与 FireBird2.0的问题 浅谈.NET中的版本管理 FireBird 1.5 Quick Start Log4Net使用指南 Excel SP2 分类汇总的总计错乱问题
破解JIRA3.3
封封 · 2007-02-14 · via 博客园 - 封封

以下原文转自http://www.blogjava.net/freddychu/archive/2005/11/05/18319.html

昨天发现缺陷管理工具JIRA,目前版本是3.3.3,安装使用了一下。感觉很好。
下载地址:http://www.atlassian.com/software/jira/
我下载的是JIRA Enterprise: Evaluation版本,同时申请一个30的Licence。
破解比较简单,有关Licence的代码在atlassian-extras-0.7.10.jar中。
1、反编译包中的文件:com.atlassian.license.DefaultLicense.class。改成下面:

// Decompiled by DJ v3.8.8.85 Copyright 2005 Atanas Neshkov  Date: 2005-11-5 17:41:28
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name:   DefaultLicense.java

package com.atlassian.license;

import java.util.*;

// Referenced classes of package com.atlassian.license:
//            License, LicenseType

public class DefaultLicense
    implements License
{

    public DefaultLicense(Date dateCreated, Date datePurchased, String organisation, LicenseType licenseType, int users)
    {
        this.dateCreated = dateCreated;
        this.datePurchased = datePurchased;
        this.organisation = organisation;
        this.licenseType = licenseType;
        this.users = users;
    }

    public Date getDateCreated()
    {
        return dateCreated;
    }

    public Date getDatePurchased()
    {
        return datePurchased;
    }

    public String getOrganisation()
    {
        return organisation;
    }

    public LicenseType getLicenseType()
    {
        return licenseType;
    }

    public String toString()
    {
        return licenseType.getNiceName() + " licensed to " + organisation;
    }

    public boolean isExpired()
    {
        return false;

    }

    public Date getExpiryDate()
    {
        return null;
    }

    public boolean isLicenseLevel(Collection levels)
    {
        for(Iterator iterator = levels.iterator(); iterator.hasNext();)
        {
            String level = (String)iterator.next();
            if(getLicenseType().getDescription().toLowerCase().indexOf(level.toLowerCase()) != -1)
                return true;
        }

        return false;
    }

    public int getUsers()
    {
        if(licenseType.requiresUserLimit())
            return users;
        else
            return -1;
    }

    public static long EVALUATION_PERIOD = 0x9fa52400L;
    protected Date dateCreated;
    protected Date datePurchased;
    protected String organisation;
    protected LicenseType licenseType;
    private int users;

}


其实就该了两个方法:

    public boolean isExpired()
    {
        return false;

    }

    public Date getExpiryDate()
    {
        return null;
    }

2、把编译好的class文件复制到atlassian-extras-0.7.10.jar中,覆盖原来文件。
3、启动服务器,成功。
我把我破解后的class附上:http://www.blogjava.net/Files/freddychu/DefaultLicense.zip