3 Replies Latest reply on Apr 5, 2007 11:36 AM by Paul Gier

    How do  I do a jbossxb 2.0.0.CR4

    Scott Stark Master

      If I set the jbossxb pom.xml to a new version and test the prepare step, it fails with this error:

      [starksm@succubus jbossxb]$ mvn -Dtestmode=true release:prepare
      ...
      way too much crap pulled from external repos
      ...
      [INFO] [release:prepare]
      [INFO] ------------------------------------------------------------------------[ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------[INFO] The project jboss:jbossxb isn't a snapshot (2.0.0.CR4).
      [INFO] ------------------------------------------------------------------------[INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------[INFO] Total time: 23 seconds
      [INFO] Finished at: Wed Apr 04 17:38:00 PDT 2007
      [INFO] Final Memory: 9M/107M
      [INFO] ------------------------------------------------------------------------[starksm@succubus jbossxb]$
      



        • 1. Re: How do  I do a jbossxb 2.0.0.CR4
          Paul Gier Master

          You don't need to set the version in the pom. If you run
          "mvn release:prepare -DdryRun=true"
          Then it will prompt you for the release version (2.0.0.CR4) and the new trunk version (2.0.0-SNAPSHOT).

          See this also:
          http://maven.apache.org/plugins/maven-release-plugin/howto.html

          Using the dryRun property, it won't actually commit anything.
          Next, run
          "mvn release:clean"
          This will clean up the stuff that the dryRun option created. I think it's a bug in the release plugin because the version and svn URL get messed up if you do a dry run and then a prepare without clean.

          The steps to actually do the release are:
          mvn release:prepare
          mvn release:perform

          Prepare does the tag, and perform does the build from the tag.
          Last step is you have to commit to cvs in the maven and buildmagic repositories.

          I keep meaning to create a wiki entry describing these steps, I just haven't gotten around to it yet. :)

          • 2. Re: How do  I do a jbossxb 2.0.0.CR4
            Scott Stark Master

            Is there a way to use a java svn impl? Its not working on my box because the rhel4 svn client is out of date with respect to the eclipse version.

            [starksm@succubus jbossxb]$ mvn release:prepare -DdryRun=true
            [INFO] Scanning for projects...
            [INFO] Searching repository for plugin with prefix: 'release'.
            [INFO] ----------------------------------------------------------------------------
            [INFO] Building JBoss XML Binding
            [INFO] task-segment: [release:prepare] (aggregator-style)
            [INFO] ----------------------------------------------------------------------------
            [INFO] [release:prepare]
            [INFO] Verifying that there are no local modifications...
            [INFO] Executing: svn --non-interactive status
            [INFO] Working directory: /home/svn/Common/trunks/jbossxb
            [INFO] ------------------------------------------------------------------------[ERROR] BUILD FAILURE
            [INFO] ------------------------------------------------------------------------[INFO] Unable to check for local modifications
            Provider message:
            The svn command failed.
            Command output:
            svn: This client is too old to work with working copy ''; please get a newer Subversion client
            
            [INFO] ------------------------------------------------------------------------[INFO] For more information, run Maven with the -e switch
            [INFO] ------------------------------------------------------------------------[INFO] Total time: 1 second
            [INFO] Finished at: Wed Apr 04 18:55:07 PDT 2007
            [INFO] Final Memory: 11M/169M
            [INFO] ------------------------------------------------------------------------[starksm@succubus



            • 3. Re: How do  I do a jbossxb 2.0.0.CR4
              Paul Gier Master

              It looks like for now your only option for now is to upgrade the command line client. There was some work done on a javasvn client, but apparently the license of svnkit is now incompatible with the apache license, so the java svn client was never fully integrated into maven (http://jira.codehaus.org/browse/SCM-13).

              There is another maven plugin that uses svnkit which should be available in a few weeks.

              How would the license of svnkit affect us? Is there any problem with using it?