java.io.IOException: Dependency git (2.2.7) doesn't exist

Jenkins JIRA | Christopher Orr | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    It seems that the plugin doesn't install the `jenkinsPlugins` dependencies when running the `server` task? For example, if I depend on the Git plugin and start the server, I get this output. The Git dependency is correctly downloaded and the server does start, but neither the Git plugin nor its dependencies are present under work/plugins/: {noformat} $ ./gradlew clean server Parallel execution is an incubating feature. :clean :localizer :stapler :compileJava :compileGroovy UP-TO-DATE :processResources :classes :server Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0 Running from: /home/chris/.m2/repository/org/jenkins-ci/main/jenkins-war/1.554/jenkins-war-1.554.war webroot: System.getProperty("JENKINS_HOME") Jenkins home directory: /home/chris/code/jenkins/foobar-plugin/work found at: System.getProperty("JENKINS_HOME") Failed Loading plugin foobar java.io.IOException: Dependency git (2.2.7) doesn't exist at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:488) at hudson.PluginManager$2$1$1.run(PluginManager.java:352) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:899) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {noformat} My build.gradle looks like this: {code} buildscript { repositories { mavenCentral() maven { url 'http://repo.jenkins-ci.org/releases/' } } dependencies { classpath 'org.jenkins-ci.tools:gradle-jpi-plugin:0.6.0' } } apply plugin: 'jpi' group = 'org.jenkins-ci.plugins' version = '0.1' jenkinsPlugin { coreVersion = '1.554' displayName = 'Jenkins XXX plugin' url = 'https://wiki.jenkins-ci.org/display/JENKINS/XXX+Plugin' gitHubUrl = 'https://github.com/jenkinsci/xxx-plugin' } dependencies { jenkinsPlugins 'org.jenkins-ci.plugins:git:2.2.7@jar' } task wrapper(type: Wrapper) { gradleVersion = '1.8' } {code} Am I missing something here?

    Jenkins JIRA | 2 years ago | Christopher Orr
    java.io.IOException: Dependency git (2.2.7) doesn't exist
  2. 0

    It seems that the plugin doesn't install the `jenkinsPlugins` dependencies when running the `server` task? For example, if I depend on the Git plugin and start the server, I get this output. The Git dependency is correctly downloaded and the server does start, but neither the Git plugin nor its dependencies are present under work/plugins/: {noformat} $ ./gradlew clean server Parallel execution is an incubating feature. :clean :localizer :stapler :compileJava :compileGroovy UP-TO-DATE :processResources :classes :server Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0 Running from: /home/chris/.m2/repository/org/jenkins-ci/main/jenkins-war/1.554/jenkins-war-1.554.war webroot: System.getProperty("JENKINS_HOME") Jenkins home directory: /home/chris/code/jenkins/foobar-plugin/work found at: System.getProperty("JENKINS_HOME") Failed Loading plugin foobar java.io.IOException: Dependency git (2.2.7) doesn't exist at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:488) at hudson.PluginManager$2$1$1.run(PluginManager.java:352) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:899) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {noformat} My build.gradle looks like this: {code} buildscript { repositories { mavenCentral() maven { url 'http://repo.jenkins-ci.org/releases/' } } dependencies { classpath 'org.jenkins-ci.tools:gradle-jpi-plugin:0.6.0' } } apply plugin: 'jpi' group = 'org.jenkins-ci.plugins' version = '0.1' jenkinsPlugin { coreVersion = '1.554' displayName = 'Jenkins XXX plugin' url = 'https://wiki.jenkins-ci.org/display/JENKINS/XXX+Plugin' gitHubUrl = 'https://github.com/jenkinsci/xxx-plugin' } dependencies { jenkinsPlugins 'org.jenkins-ci.plugins:git:2.2.7@jar' } task wrapper(type: Wrapper) { gradleVersion = '1.8' } {code} Am I missing something here?

    Jenkins JIRA | 2 years ago | Christopher Orr
    java.io.IOException: Dependency git (2.2.7) doesn't exist
  3. 0

    Jenkins Update Version 1.562 vers 1.563 — EjnTricks

    jouvinio.net | 1 year ago
    java.io.IOException: Dependency mapdb-api (1.0.1.0) doesn't exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Dependent plugins is not installing.

    GitHub | 4 months ago | harish-kumar-garg
    java.io.IOException: Jenkins SonarQube Plugin v2.4.4 failed to load. - jquery v1.11.2-0 is missing. To fix, install v1.11.2-0 or later.
  6. 0

    Getting error after deploying hpi in jenkins for the maven dependency mansion-cloud

    Stack Overflow | 3 years ago
    java.io.IOException: Dependency mansion-cloud (1.18) doesn't exist

  1. davidvanlaatum 11 times, last 6 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Dependency git (2.2.7) doesn't exist

    at hudson.PluginWrapper.resolvePluginDependencies()
  2. Hudson
    PluginManager$2$1$1.run
    1. hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:488)
    2. hudson.PluginManager$2$1$1.run(PluginManager.java:352)
    2 frames
  3. init
    Reactor.runTask
    1. org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    2. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
    2 frames
  4. jenkins.model
    Jenkins$7.runTask
    1. jenkins.model.Jenkins$7.runTask(Jenkins.java:899)
    1 frame
  5. init
    Reactor$Node.run
    1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
    2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    2 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames