1

我在使用 Eclipse 调试 Jenkins 插件时遇到了这个问题,我想在这里发布解决方案,以便人们在谷歌上搜索它时,他们可以获得一个好的答案。我补充说:

<pluginRepositories>
    <pluginRepository>
      <id>repo.jenkins-ci.org</id>
      <url>http://repo.jenkins-ci.org/public/</url>
    </pluginRepository>
</pluginRepositories>
<dependencies>
  <dependency>
    <groupId>org.jenkins-ci.main</groupId>
    <artifactId>ui-samples-plugin</artifactId>
    <version>1.509</version>
   <scope>compile</scope>
  </dependency>
</dependencies>

对于我的paren pom,我能够构建和调试。我只是想让人们知道,因为经过几个小时的搜索,我找不到任何东西。

4

1 回答 1

1

http://jenkins-ci.org/changelog

What's new in 1.535 (2013/10/14) UI Samples plugin fully separated from core. To view samples during plugin development or at any other time, just install from the update center.

During plugin development, you may want to lock your Jenkins version to the an older version so you don't end up in latest and greatest hell, LTS is 1.509.

Do you have the proper parent definition?

Here is an example from the artifactory plugin pom that defines the Jenkins version to lock to (They lock against 1.428):

<parent>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.428</version>
</parent>
于 2013-10-17T16:27:35.620 回答