1,开发插件,开发环境需安装Maven和JDK 6.0以上版本
2,配置maven的settings.xml配置文件
01 |
< settings > |
02 |
< pluginGroups > |
03 |
< pluginGroup >org.jenkins-ci.tools</ pluginGroup > |
04 |
</ pluginGroups > |
05 |
< profiles > |
06 |
<!-- Give access to Jenkins plugins --> |
07 |
< profile > |
08 |
< id >jenkins</ id > |
09 |
< activation > |
10 |
< activeByDefault >true</ activeByDefault > <!-- change this to false, if you don't like to have it on per default --> |
11 |
</ activation > |
12 |
< repositories > |
13 |
< repository > |
14 |
< id >repo.jenkins-ci.org</ id > |
15 |
< url >http://repo.jenkins-ci.org/public/</ url > |
16 |
</ repository > |
17 |
</ repositories > |
18 |
< pluginRepositories > |
19 |
< pluginRepository > |
20 |
< id >repo.jenkins-ci.org</ id > |
21 |
< url >http://repo.jenkins-ci.org/public/</ url > |
22 |
</ pluginRepository > |
23 |
</ pluginRepositories > |
24 |
</ profile > |
25 |
</ profiles > |
26 |
</ settings > |
3,mvn -cpu hpi:create
4,
|
cd newly-create-directory |
|
mvn package |
5,mvn -DdownloadSources=true
-DdownloadJavadocs=
true
-DoutputDirectory=target/eclipse-classes eclipse:eclipse
6,eclipse 添加工程。
参考:http://www.open-open.com/lib/view/open1341393917328.html