JIRA开发(三):插件开发基本命令
2013-01-18 17:49
281 查看
1. 生成插件框架;
$SDK_HOME/bin/atlas-create-jira-plugin \
--artifactId myplugin \
--groupId com.mycompany.jira.plugins \
--version 4.2.0 \
--package com.mycompany.jira.plugins.myplugin
--non-interactive
2.构建/发布插件(编译/打包/发布)
(1)运行$SDK_HOME/bin/atlas-package产生插件JAR包,然后直接"Administration->Plugin->Manage Plugin->Upload Plugin"上传并安装插件。
(2)运行$SDK_HOME/bin/atlas-run以单独运行插件专用的JIRA环境,并自动发布插件,配合$SDK_HOME/bin/atlas-cli,可以在开发环境快速发布插件。
使用说明如下:
Using atlas-run and atlas-cli
The SDK also provides another way to build and deploy a JIRA plugin. If you type:
$SDK_HOME/bin/atlas-run
instead of atlas-package, then a brand new instance of JIRA is automatically configured
in the target directory. Then the plugin .jar file is deployed there and the new JIRA
instance is started up at http://localhost:2990/jira. You can log in with the user name
admin and password admin and test your plugin directly there.
This second approach takes a little longer to start up the first time, but you don’t have
to configure anything such as a license. The other benefit of this approach is that in
some cases it allows for much faster redeployment of plugins. If you open another
separate window from the same top-level directory and type:
$SDK_HOME/bin/atlas-cli
then a maven2> prompt appears. Typing pi for “plugin install” at the prompt will rebuild
and redeploy your plugin in a few seconds instead of the minute or so it can take to
restart JIRA.
This is the fastest way to develop plugins—but prior to JIRA 4.4, it only works if a
plugin is using certain plugin module types. The list of which types do and do not work
with pi can be found at http://confluence.atlassian.com/display/DEVNET/Plugins+that +Cannot+be+Reloaded+with+pi. The good news is that as of JIRA 4.4, almost all plugins
can be reloaded using pi or from the Administration menu, which will save everyone
a lot of time during development.
$SDK_HOME/bin/atlas-create-jira-plugin \
--artifactId myplugin \
--groupId com.mycompany.jira.plugins \
--version 4.2.0 \
--package com.mycompany.jira.plugins.myplugin
--non-interactive
2.构建/发布插件(编译/打包/发布)
(1)运行$SDK_HOME/bin/atlas-package产生插件JAR包,然后直接"Administration->Plugin->Manage Plugin->Upload Plugin"上传并安装插件。
(2)运行$SDK_HOME/bin/atlas-run以单独运行插件专用的JIRA环境,并自动发布插件,配合$SDK_HOME/bin/atlas-cli,可以在开发环境快速发布插件。
使用说明如下:
Using atlas-run and atlas-cli
The SDK also provides another way to build and deploy a JIRA plugin. If you type:
$SDK_HOME/bin/atlas-run
instead of atlas-package, then a brand new instance of JIRA is automatically configured
in the target directory. Then the plugin .jar file is deployed there and the new JIRA
instance is started up at http://localhost:2990/jira. You can log in with the user name
admin and password admin and test your plugin directly there.
This second approach takes a little longer to start up the first time, but you don’t have
to configure anything such as a license. The other benefit of this approach is that in
some cases it allows for much faster redeployment of plugins. If you open another
separate window from the same top-level directory and type:
$SDK_HOME/bin/atlas-cli
then a maven2> prompt appears. Typing pi for “plugin install” at the prompt will rebuild
and redeploy your plugin in a few seconds instead of the minute or so it can take to
restart JIRA.
This is the fastest way to develop plugins—but prior to JIRA 4.4, it only works if a
plugin is using certain plugin module types. The list of which types do and do not work
with pi can be found at http://confluence.atlassian.com/display/DEVNET/Plugins+that +Cannot+be+Reloaded+with+pi. The good news is that as of JIRA 4.4, almost all plugins
can be reloaded using pi or from the Administration menu, which will save everyone
a lot of time during development.
相关文章推荐
- 嵌入式软件开发培训笔记——shell基本命令
- 五步掌握Git的基本开发使用命令
- Jira 插件开发
- 开发环境入门 linux基础 基本操作命令(部分) 文本结构和基本命令
- Git 开发基本流程与命令
- VS Addin插件基本开发入门
- 五步掌握Git的基本开发使用命令
- JIRA开发(四):插件模块类型(JIRA Plugin Module Types)
- JIRA插件开发(二)
- vim开发的基本命令使用
- 以太坊代币智能合约底层开发教程Geth基本命令
- 区块链开发(二)以太坊客户端基本操作命令
- 关于java 的基本开发工具:命令控制台的使用
- Chrome插件开发之一: 搭建基本结构
- JIRA插件开发
- jira插件开发远程调试
- atlassian JIRA 插件开发(六) — JIRA系统的插件体系,总体一瞥
- 无插件定制web vim开发环境基本版
- 从expo开发的RN程序构建原生app-基于最基本的命令