Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14831

Environment setup fails & unable to build Jenkins

      I follow the instruction in Building Jenkins

      I configure maven according to Plugin tutorial:SettingUpEnvironment

      I install the latest version of nexus and add all repos as described in
      Jenkins Development Environment with Nexus
      I add repo.jenkins-ci.org as Nexus/maven doesn't find anything jenkins related otherwise.

      when I run:

      mvn -Plight-test install
      

      I get:

      mvn -Plight-test install 
      [INFO] Scanning for projects...
      Downloading: http://localhost:8081/nexus/content/groups/public/org/jenkins-ci/tools/maven-hpi-plugin/1.78/maven-hpi-plugin-1.78.pom
      [WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:1.78 is missing, no dependency information available
      Downloading: http://localhost:8081/nexus/content/groups/public/org/jenkins-ci/tools/maven-hpi-plugin/1.78/maven-hpi-plugin-1.78.jar
      [ERROR] The build could not read 2 projects -> [Help 1]
      [ERROR]   
      [ERROR]   The project org.jenkins-ci.main:maven-plugin:1.479-SNAPSHOT (/Users/admin/Documents/workspace/jenkins/maven-plugin/pom.xml) has 2 errors
      [ERROR]     Unresolveable build extension: Plugin org.jenkins-ci.tools:maven-hpi-plugin:1.78 or one of its dependencies could not be resolved: Could not find artifact org.jenkins-ci.tools:maven-hpi-plugin:jar:1.78 in nexus (http://localhost:8081/nexus/content/groups/public) -> [Help 2]
      [ERROR]     Unknown packaging: hpi @ line 36, column 14
      [ERROR]   
      [ERROR]   The project org.jenkins-ci.main:ui-samples-plugin:1.479-SNAPSHOT (/Users/admin/Documents/workspace/jenkins/ui-samples-plugin/pom.xml) has 2 errors
      [ERROR]     Unresolveable build extension: Plugin org.jenkins-ci.tools:maven-hpi-plugin:1.78 or one of its dependencies could not be resolved: Could not find artifact org.jenkins-ci.tools:maven-hpi-plugin:jar:1.78 in nexus (http://localhost:8081/nexus/content/groups/public) -> [Help 2]
      [ERROR]     Unknown packaging: hpi @ line 36, column 14
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
      

      If I search nexus I find the jar for maven-hpi-plugin-1.78. I download it and place it into my local repositor (on may workstation). The error persists stating that it's looking for the pom file? I look through all versions and none have a pom file.

          [JENKINS-14831] Environment setup fails & unable to build Jenkins

          sogabe added a comment -

          removed github from component.

          sogabe added a comment - removed github from component.

          Go to : [ http://localhost:8081/nexus/content/groups/public/] and try to browse to org, then jenkins-ci, tools, meven-hpi-plugin.
          If you can't see these folders is cause the Jenkins Release repository is not public and so Maven can't acess to the jars.

          The Jenkins Release repository should be in added in your Public Repositories
          http://www.sonatype.com/books/nexus-book/reference/config-sect-repo-group.html

          Daniel Petisme added a comment - Go to : [ http://localhost:8081/nexus/content/groups/public/ ] and try to browse to org , then jenkins-ci , tools , meven-hpi-plugin . If you can't see these folders is cause the Jenkins Release repository is not public and so Maven can't acess to the jars. The Jenkins Release repository should be in added in your Public Repositories http://www.sonatype.com/books/nexus-book/reference/config-sect-repo-group.html

          evernat added a comment -

          Resolving as incomplete, as there is no response from the reporter to the comments.
          Please reopen if there is still an issue.

          evernat added a comment - Resolving as incomplete, as there is no response from the reporter to the comments. Please reopen if there is still an issue.

          Dave Kelsey added a comment -

          I've reported this issue before. I follow the instruction to build Jenkins explicitly and it does not work.
          Thanks for responding. I'll have a looks at what you wrote and see if it makes a difference.

          Dave Kelsey added a comment - I've reported this issue before. I follow the instruction to build Jenkins explicitly and it does not work. Thanks for responding. I'll have a looks at what you wrote and see if it makes a difference.

            Unassigned Unassigned
            dkelsey Dave Kelsey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: