A: front-facing environment
1. jdk1.6+
2. MAVEN is installed
3. Jenkins has been built
4. Eclipse is installed (and the MAVEN plugin is installed)
The above environment can be Baidu search and install
My environment is WIN7 64-bit system
Two: Configure the environment
1. Modify the MAVEN configuration file Conf/settings.xml
Replace the original content with
<?XML version= "1.0" encoding= "UTF-8"?><Settings> <plugingroups> <Plugingroup>Org.jenkins-ci.tools</Plugingroup> </plugingroups><Profiles><!--Give access to Jenkins plugins - < Profile> <ID>Jenkins</ID> <activation> <Activebydefault>True</Activebydefault> <!--Change the this to false, if you don't like the it on per default - </activation> <repositories> <Repository> <ID>repo.jenkins-ci.org</ID> <URL>http://repo.jenkins-ci.org/public/</URL> </Repository> </repositories> <pluginrepositories> <pluginrepository> <ID>repo.jenkins-ci.org</ID> <URL>http://repo.jenkins-ci.org/public/</URL> </pluginrepository> </pluginrepositories> </ Profile> </Profiles></Settings>
cmd command line execution:
Mvn-cpu hpi:create
When the command executes, enter Groupid,artifactid as required, and the project I generate is Hxlplugin
Then import into Eclipse.
After the import is successful, you can see in eclipse
Not to be continued ...
Jenkins Plugin Development-This is the way I drive