metro
  1. metro
  2. METRO-19

Move buildnumber-maven-plugin into a separate Maven profile.

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: 2.3
    • Component/s: code
    • Labels:
      None

      Description

      The bottom of each Metro download page for a specific Metro version gives a Subversion URL to check out the source code for hacking/debugging our web services. For example, bottom of here: http://metro.java.net/2.2.1-1/ tells us to run "svn export https://svn.java.net/svn/wsit~svn/tags/2.2.1-1 -r 7272 metro-sources". However, we cannot presently build the project via "mvn clean package" or import the project into our Eclipse IDE via "mvn eclipse:eclipse" because of the buildnumber-maven-plugin defined in metro-sources/pom.xml. Unless I comment out that plugin, I get this error:

      "[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create (default) on project metro-project: Cannot get the revision information from the scm repository :
      [ERROR] Exception while executing SCM command. svn: '/media/work1/blog-samples/metro-sources' is not a working copy"

      If I comment-out this plugin, the build works fine. I suspect this plugin is primarily for the Oracle team when they're making their new releases, not for the ordinary users who want to debug their Metro web services using Metro sources. I recommend placing this particular plugin in a new Maven profile, inactive by default, so your Oracle team can activate the profile for your work while letting the regular community run "mvn clean install" etc. to quickly get the sources built. Thanks!

        Activity

        Hide
        Martin Grebac added a comment -

        Added <revisionOnScmFailure>false</revisionOnScmFailure> to the plugin config, so this should be solved within next release.

        Show
        Martin Grebac added a comment - Added <revisionOnScmFailure>false</revisionOnScmFailure> to the plugin config, so this should be solved within next release.

          People

          • Assignee:
            Martin Grebac
            Reporter:
            gmazza
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: