简体   繁体   English

当我使用`mvn hpi:run`时有一个ArrayIndexOutOfBoundsException

[英]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: 我正在尝试创建一个Jenkins插件,然后使用Maven调试我的插件,我下载了PlotPlugin以研究如何编写代码。但是当我在PlotPlugun目录下键入mvn hpi:run时, jenkins之后出现了某些问题在我的计算机上运行。出现这样的错误:

错误

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: 在这种情况下,我可以在localhost:8080上使用jenkins,但无法创建新项目,但是当我创建新项目时出现了问题:

在此处输入图片说明

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. 我喜欢这个原因,jenkins的版本不适用于此插件,所以我在父标记中更改了jenkins的版本。然后它对我有用。

I think there is a bug with xStream in the jenkins ver. 我认为jenkins ver中存在xStream错误。 1.532.1.Because I use java -jar jenkins.war to run the war package of the jenkins ver. 1.532.1。因为我使用java -jar jenkins.war来运行jenkins ver的war软件包。 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 . 1.532.1与我遇到的错误相同。将版本更改为1.500或其他版本后,错误消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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