Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: virtualbox-plugin
    • Labels:
      None
    • Environment:
      Mac OSX 10.7.5, Maven 3.0.4, Java 1.6.0-35 (64bits)
    • Similar Issues:

      Description

      While trying to release VirtualBox Plugin 0.5.0 I encountered this error :

      mbp-rico:virtualbox-plugin henri$ mvn3 -s  ~/.m2/settings-std.xml -DdryRun=true release:prepare 
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Build Order:
      [INFO] 
      [INFO] Jenkins VirtualBox Parent
      [INFO] Jenkins VirtualBox Plugin
      [INFO] Jenkins VirtualBox Client
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Jenkins VirtualBox Parent 0.5-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ virtualbox-parent ---
      [INFO] Verifying that there are no local modifications...
      [INFO] Executing: /bin/sh -c cd /Users/henri/Documents/gits/virtualbox-plugin && git status
      [INFO] Working directory: /Users/henri/Documents/gits/virtualbox-plugin
      [INFO] Checking dependencies and plugins for snapshots ...
      What is the release version for "Jenkins VirtualBox Parent"? (org.jenkins-ci.plugins:virtualbox-parent) 0.5: : 
      What is the release version for "Jenkins VirtualBox Plugin"? (org.jenkins-ci.plugins:virtualbox) 0.5: : 
      What is the release version for "Jenkins VirtualBox Client"? (org.jenkins-ci.plugins:virtualbox-client) 0.5: : 
      What is SCM release tag or label for "Jenkins VirtualBox Parent"? (org.jenkins-ci.plugins:virtualbox-parent) virtualbox-parent-0.5: : 
      What is the new development version for "Jenkins VirtualBox Parent"? (org.jenkins-ci.plugins:virtualbox-parent) 0.6-SNAPSHOT: : 
      What is the new development version for "Jenkins VirtualBox Plugin"? (org.jenkins-ci.plugins:virtualbox) 0.6-SNAPSHOT: : 
      What is the new development version for "Jenkins VirtualBox Client"? (org.jenkins-ci.plugins:virtualbox-client) 0.6-SNAPSHOT: : 
      [INFO] Transforming 'Jenkins VirtualBox Parent'...
      [WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:1.64 is missing, no dependency information available
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] Jenkins VirtualBox Parent ......................... FAILURE [7.854s]
      [INFO] Jenkins VirtualBox Plugin ......................... SKIPPED
      [INFO] Jenkins VirtualBox Client ......................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 10.006s
      [INFO] Finished at: Thu Sep 20 22:21:14 CEST 2012
      [INFO] Final Memory: 7M/81M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project virtualbox-parent: Execution default-cli of goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare failed: Failed to build parent project for org.jenkins-ci.plugins:virtualbox-parent:pom:0.5-SNAPSHOT: Some problems were encountered while processing the POMs:
      [ERROR] [ERROR] Unresolveable build extension: Plugin org.jenkins-ci.tools:maven-hpi-plugin:1.64 or one of its dependencies could not be resolved: Failure to find org.jenkins-ci.tools:maven-hpi-plugin:jar:1.64 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @: 1 problem was encountered while building the effective model for org.jenkins-ci.plugins:plugin:1.399
      [ERROR] [ERROR] Unresolveable build extension: Plugin org.jenkins-ci.tools:maven-hpi-plugin:1.64 or one of its dependencies could not be resolved: Failure to find org.jenkins-ci.tools:maven-hpi-plugin:jar:1.64 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @
      [ERROR] -> [Help 1]
      [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/PluginExecutionException
      

      I'm using a basic settings.xml :

      <settings xmlns="http://maven.apache.org/POM/4.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
      http://maven.apache.org/xsd/settings-1.0.0.xsd">
      
        <interactiveMode>true</interactiveMode>
        <offline>false</offline>
      
      </settings>
      

      I started with an empty local repository (~/.m2/repository)

      Strange but maven-hpi-plugin-1.64.jar has been download and installed :

      mbp-rico:1.64 henri$ cd
      mbp-rico:~ henri$ cd .m2/repository/org/jenkins-ci/tools/maven-hpi-plugin/1.64/
      mbp-rico:1.64 henri$ ls -l
      total 200
      -rw-r--r--  1 henri  staff    221 20 sep 22:13 _maven.repositories
      -rw-r--r--  1 henri  staff  73385 20 sep 22:10 maven-hpi-plugin-1.64.jar
      -rw-r--r--  1 henri  staff    236 20 sep 22:15 maven-hpi-plugin-1.64.jar.lastUpdated
      -rw-r--r--  1 henri  staff     40 20 sep 22:10 maven-hpi-plugin-1.64.jar.sha1
      -rw-r--r--  1 henri  staff   4944 20 sep 22:09 maven-hpi-plugin-1.64.pom
      -rw-r--r--  1 henri  staff    236 20 sep 22:15 maven-hpi-plugin-1.64.pom.lastUpdated
      -rw-r--r--  1 henri  staff     40 20 sep 22:09 maven-hpi-plugin-1.64.pom.sha1
      
      MD5 (_maven.repositories) = ba31bcf61f89d7eee63a743857c40cdb
      MD5 (maven-hpi-plugin-1.64.jar) = 2ae8c03aa903fe8f59d2fd9724a25aa1
      MD5 (maven-hpi-plugin-1.64.jar.lastUpdated) = 7c4aa7c34aff1e2264c9fa6d96ea0ba1
      MD5 (maven-hpi-plugin-1.64.jar.sha1) = 817084865ded2814a05b835b506fdea2
      MD5 (maven-hpi-plugin-1.64.pom) = e1f620b3c501692930d07faebba70298
      MD5 (maven-hpi-plugin-1.64.pom.lastUpdated) = ddcd3c270f8d0c277a76d0c6d6ee4b9f
      MD5 (maven-hpi-plugin-1.64.pom.sha1) = d73ec6543784826883afe22e7232ad1b
      

        Attachments

          Activity

          Hide
          aheritier Arnaud Héritier added a comment -

          Reproduced locally

          Show
          aheritier Arnaud Héritier added a comment - Reproduced locally
          Hide
          aheritier Arnaud Héritier added a comment -

          I'm checking to the verison of Maven
          http://maven.apache.org/plugins/maven-release-plugin/
          We need to use 3.0.4 to avoid this issue
          I'm doing a test

          Show
          aheritier Arnaud Héritier added a comment - I'm checking to the verison of Maven http://maven.apache.org/plugins/maven-release-plugin/ We need to use 3.0.4 to avoid this issue I'm doing a test
          Hide
          aheritier Arnaud Héritier added a comment -

          Damned it's not only Maven 3.0.3 ....

          Show
          aheritier Arnaud Héritier added a comment - Damned it's not only Maven 3.0.3 ....
          Hide
          hgomez Henri Gomez added a comment -

          I used Maven 3.0.4

          Show
          hgomez Henri Gomez added a comment - I used Maven 3.0.4
          Hide
          hgomez Henri Gomez added a comment -

          Olivier kindly provide help and fixed pom.xml

          I also updated my settings.xml like this :

          <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
          http://maven.apache.org/xsd/settings-1.0.0.xsd">
          
                  <interactiveMode>true</interactiveMode>
                  <offline>false</offline>
          
                  <servers>
                          <server>
                                  <id>maven.jenkins-ci.org</id>
                                  <username>hgomez</username>
                                  <password>myverysecretpassword</password>
                          </server>
                  </servers>
          
                  <profiles>
                          <profile>
                                  <id>normal</id>
                                  <activation>
                                          <activeByDefault>true</activeByDefault>
                                  </activation>
                                  <repositories>
                                          <repository>
                                                  <id>repo.jenkins-ci.</id>
                                                  <url>http://repo.jenkins-ci.org/public/</url>
                                                  <releases>
                                                          <enabled>true</enabled>
                                                  </releases>
                                                  <snapshots>
                                                          <enabled>true</enabled>
                                                  </snapshots>
                                          </repository>
                                  </repositories>
                                  <pluginRepositories>
                                          <pluginRepository>
                                                  <id>repo.jenkins-ci.</id>
                                                  <url>http://repo.jenkins-ci.org/public/</url>
                                                  <releases>
                                                          <enabled>true</enabled>
                                                  </releases>
                                                  <snapshots>
                                                          <enabled>true</enabled>
                                                  </snapshots>
                                          </pluginRepository>
                                  </pluginRepositories>
                          </profile>
                  </profiles>
          
          </settings>
          
          Show
          hgomez Henri Gomez added a comment - Olivier kindly provide help and fixed pom.xml https://github.com/jenkinsci/virtualbox-plugin/commit/d4771c1e16cfd99275d6194260bb093fee196bf6 https://github.com/jenkinsci/virtualbox-plugin/commit/c2eba8535b6d9dbdb8f8f5c1a3e7259982abd01c I also updated my settings.xml like this : <settings xmlns= "http: //maven.apache.org/POM/4.0.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http: //maven.apache.org/POM/4.0.0 http: //maven.apache.org/xsd/settings-1.0.0.xsd"> <interactiveMode> true </interactiveMode> <offline> false </offline> <servers> <server> <id>maven.jenkins-ci.org</id> <username>hgomez</username> <password>myverysecretpassword</password> </server> </servers> <profiles> <profile> <id>normal</id> <activation> <activeByDefault> true </activeByDefault> </activation> <repositories> <repository> <id>repo.jenkins-ci.</id> <url>http: //repo.jenkins-ci.org/ public /</url> <releases> <enabled> true </enabled> </releases> <snapshots> <enabled> true </enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>repo.jenkins-ci.</id> <url>http: //repo.jenkins-ci.org/ public /</url> <releases> <enabled> true </enabled> </releases> <snapshots> <enabled> true </enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> </settings>
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: mirumpf
          Path:
          pom.xml
          http://jenkins-ci.org/commit/viewVC-plugin/bfbe4ec2456757b49ec2385564f31862a7c26408
          Log:
          Use fix from JENKINS-15260 for the org.jenkins-ci.tools:maven-hpi-plugin:1.64 issue

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: mirumpf Path: pom.xml http://jenkins-ci.org/commit/viewVC-plugin/bfbe4ec2456757b49ec2385564f31862a7c26408 Log: Use fix from JENKINS-15260 for the org.jenkins-ci.tools:maven-hpi-plugin:1.64 issue

            People

            • Assignee:
              aheritier Arnaud Héritier
              Reporter:
              hgomez Henri Gomez
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: