简体   繁体   中英

There is a ArrayIndexOutOfBoundsException when I use `mvn hpi:run`

I'm trying to create a Jenkins plugin then I use maven to debug my plugin,I download the PlotPlugin to study how to write the code.But when I type mvn hpi:run under the directory of the PlotPlugun ,something is wrong after jenkins runs on my computer.There is an error like this:

错误

In this case ,I can use jenkins on localhost:8080 but I can't create a new item,when I create a new item there is something wrong:

在此处输入图片说明

My system environment is something like this :

在此处输入图片说明

Can someone help me?I don't know what happened.TAT

I fond the reason, the version of the jenkins is not suitable with this plugin,so I changed the version of the jenkins in parent tag.Then it worked for me.

I think there is a bug with xStream in the jenkins ver. 1.532.1.Because I use java -jar jenkins.war to run the war package of the jenkins ver. 1.532.1 there is the same error as I met.After I changed the version to the 1.500 or other version the error disappeared .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM