Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?
JIRA的搭建及其与subversion的集成
一、        JIRA介绍
1、        介绍:先看看JIRA官方网站对jira的定位:JIRA is a bug tracking, issuetracking, and project management application developed to make thisprocess easier for your team.可见,jira除了除了常规bug追踪系统的bugtracking功能外还包含了issue tracking,project management等强大功能。
2、        相关资源:
官方网站[url=http://www.atlassian.com/]http://www.atlassian.com/[/url]
官方文档[url=http://www.atlassian.com/software/jira/docs/latest/install.html]http://www.atlassian.com/software/jira/docs/latest/install.html[/url]
中国代理商网站[url=http://www.czsm.com.cn/]http://www.czsm.com.cn/[/url](号称是官方代理商)
破解方法:涉及知识产权,确实需要请联系我:msn: quejinlong@hotmail.com

二、        JIRA的安装(Linux下)
1、        下载
JIRA当前最新版本是3.6.5,JIRA有Standard, Professional andEnterprise三种版本,发布包有Standalone(Bundled with an application server anddatabase, the standalone distribution runs out of thebox.)和WAR/EAR(Deployable as a WAR or EAR inside any J2EE applicationserver or servletcontainer.)两种,官方推荐下载standalone,所以本文我们以当前最新版本enterprise-3.6.5-standalone为例,下载地址:[url=http://downloads.atlassian.com/software/jira/downloads/atlassian-jira-enterprise-3.6.5-standalone.tar.gz]http://downloads.atlassian.com/software/jira/downloads/atlassian-jira-enterprise-3.6.5-standalone.tar.gz[/url],下载之前要你先注册,注册后就可以下载了,下载完成后点击Viewyour license keys可以获得你的体验版的key(可以使用一个月)
2、        安装:
1)        安装jdk并设置环境变量(如果已经安装请跳过)
./jdk-1_5_0_03-linux-i586-rpm.bin(假设安装这个版本)
一段声明后输入yes即开始安装,默认安装在/usr/java/jdk1.5.0_03下
接下来设置环境变量:
vi /etc/profile在expore PATH 前面加上如下三行
JAVA_HOME= /usr/java/jdk1.5.0_03
PATH=$PATH:$JAVA_HOME/bin
Expore JAVA_HOME
保存退出(linux技巧:按esc键后按shift+ZZ即可快速保存退出)后
Source /etc/profile使配置立即生效

2)        解压:把下载后的文件拷到/usr/local(linux技巧:人们都习惯把软件安装在/usr/local下,该目录相当于windows的program files目录)目录下
cd /usr/local
tar zxvf   atlassian-jira-enterprise-3.6.5-standalone.tar.gz(linux技巧:敲完atlassian后按tab键会自动补齐后面的字符串)
3)        安装
cd atlassian-jira-enterprise-3.6.5-standalone
cd bin
./startup.sh
4)        配置
打开浏览器,访问你装jira的那台机器,假如是192.168.16.156,那么访问192.168.16.156:8080,那么你会打开如下配置页面,总共有3步,按照里面的配置即可。配置完成后

5)        测试
最后,你在你的浏览器输入192.168.16.156:8080,就可以看到JIRA的登录界面,OK,至此你已经搭建好一个可以用的bug追踪系统了!

三、        JIRA与subversion的集成
Quick Install Instructions
--------------------------
1. Copy into JIRA's WEB-INF/lib (removing any existing older versions):
- lib/atlassian-subversion-plugin-0.9.4.jar
- lib/javasvn-*.jar
- lib/ganymed.jar (only used if you are using ssh authentication for your subversion repository)

2. Edit for your installation:
- subversion-jira-plugin.properties

NOTE: Multiple Subversion repositories are supported. You can specify a default repository (svn.root = {svn root},
etc...) and additional repositories with: svn.root.1=..., svn.root.2=..., and so on. If you do not specify the username,
password, view url, revision indexing, and revision indexing cache size for you additional repository entries then the
values will be taken from your default repository entry (in this way you do not need to copy username and password over
and over if they are the same).

3. Copy into JIRA's WEB-INF/classes
- subversion-jira-plugin.properties

4. If you are upgrading from an older version of the plugin, please delete the Subversion index directory
($jira's_index_dir}/plugins/atlassian-subversion-revisions/). The plugin will recreate it when its service first runs.

5. Restart JIRA - whew, you're done! :)
If you are using JIRA Standalone you can copy the files under the atlassian-jira sub-directory. That is, the jar files into
atlassian-jira/WEB-INF/lib and the .properties file into atlassian-jira/WEB-INF/classes.

If using the WAR distribution, create the directory edit-webapp/WEB-INF/lib and copy the jar files into it. Then copy the
.properties file into edit-webapp/WEB-INF/classes and rebuild and redeploy the JIRA war file.

(note: the first time the service runs it will take a while to index all of your existing issues - be patient)
四、        JIRA与mysql等数据库的集成
五、        JIRA晋阶
六、        参考资料:

港湾 2006-12-25 14:01

本文先详细介绍了jira的安装,与subversion的集成就偷懒,用官方文档的了。如果有必要,我会写详细一点的。后面的
四、        JIRA与mysql等数据库的集成
五、        JIRA晋阶

就等有时间再写吧!

近期老大突然给我开了一个subversion 集成的板块,要我写点东西。真的任重道远啊~今天开始写一点点,发现写作实在不是

我的强项啊,有些东西现场演示一下,或者说一下也许很简单,却不知道该如何用文字表达出来,咳~!

rocksun 2006-12-25 14:24

呵呵,不错阿

中国人的思维方式不善于归纳总结,所以我们更应该好好学习,东西能写出来,说明你的理解更深刻了。

http://www.subversion.org.cn/bbs/archiver/?tid-411.html


posted on 2011-07-03 12:28  Angelo Lee  阅读(590)  评论(0编辑  收藏  举报