Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-826

preparationGoals and git

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.4
    • None
    • Git, prepare
    • None
    • Apache Maven 3.0.4
      Java version: 1.6.0_37, vendor: Sun Microsystems Inc.
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux", version: "3.5.0-21-generic", arch: "amd64", family: "unix"

    Description

      • What I want achieve?
        Before release:prepare process I want change source. Filter some source file and put release version X.Y.Z (without SNAPSHOT)

      So I configured release plugin with
      <preparationGoals>android:manifest-update</preparationGoals>

      Goal: android:manifest-update change AndroidManifest.xml

      I suppose this change should be applied AFTER change version without SNAPSHOT and BEFORE commit changes to git repository.

      I see that goal is executed and valid version is propagated. But when I read log for commit/push commands I see:

      [INFO] Not removing release POMs
      [INFO] Checking in modified POMs...
      [INFO] Executing: /bin/sh -c cd /home/lstrzeleck/workspace/poc-android-release && git add -- pom.xml
      [INFO] Working directory: /home/lstrzeleck/workspace/poc-android-release
      [INFO] Executing: /bin/sh -c cd /home/lstrzeleck/workspace/poc-android-release && git status --porcelain
      [INFO] Working directory: /home/lstrzeleck/workspace/poc-android-release
      [INFO] Executing: /bin/sh -c cd /home/lstrzeleck/workspace/poc-android-release && git commit --verbose -F /tmp/maven-scm-1669056864.commit pom.xml
      [INFO] Working directory: /home/lstrzeleck/workspace/poc-android-release
      [INFO] Executing: /bin/sh -c cd /home/lstrzeleck/workspace/poc-android-release && git symbolic-ref HEAD
      [INFO] Working directory: /home/lstrzeleck/workspace/poc-android-release
      [INFO] Executing: /bin/sh -c cd /home/lstrzeleck/workspace/poc-android-release && git push git@github.com:lstrzelecki/poc-android-release.git master:master
      [INFO] Working directory: /home/lstrzeleck/workspace/poc-android-release
      [INFO] Release preparation complete.
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      

      I think what is missing is that we add ONLY pom.xml
      See this line:

      Executing: /bin/sh -c cd /home/lstrzeleck/workspace/poc-android-release && git add – pom.xml

      What I expect that plugin should add all files (by ie git add .)

      If you want some example you can fork github project:
      https://github.com/lstrzelecki/poc-android-release

      It requires android SDK.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            lstrzelecki Ɓukasz Strzelecki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: