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

Maven 3.0.3, Release Plugin 2.2.1 fails running release;perform

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.2.1
    • None
    • perform
    • None
    • Windows 7 x64, Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode), Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000), Maven Release Plugin 2.2.1

    Description

      I have a flat structured multi-module project as follows:

      on SVN:

      base-project/trunk/pom.xml
      test-lib/trunk/pom.xml
      test-ejb/trunk/pom.xml
      

      on Eclipse:

      base-project/pom.xml
      test-lib/pom.xml
      test-ejb/pom.xml
      

      pom.xml files follows as attachments, but basically base-project's pom.xml references both test-lib and test-ejb projects like this:

      <modules>
        <module>../test-ejb</module>
        <module>../test-lib</module>
      </modules>
      

      When running mvn release:prepare only base-project get tagged:

      D:\timwe\workspace\workspace-test\base-project>mvn release:prepare 
      [INFO] Scanning for projects...
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for com.mindergy.gim.test:test-ejb:ejb:1.0.4
      -SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-ejb-plugin is missing. @ line 34, column 12
      [WARNING]
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING]
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [WARNING]
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Build Order:
      [INFO]
      [INFO] base-project
      [INFO] test-lib
      [INFO] test-ejb
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building base-project 1.0.4-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-release-plugin:2.2.1:prepare (default-cli) @ base-project ---
      [INFO] Verifying that there are no local modifications...
      [INFO]   ignoring changes on: pom.xml.next, release.properties, pom.xml.releaseBackup, pom.xml.backup, pom.xml.branch, pom.xml.tag
      [INFO] Executing: cmd.exe /X /C "svn --username delio.guerra --password ***** --no-auth-cache --non-interactive status"
      [INFO] Working directory: D:\timwe\workspace\workspace-test\base-project
      [INFO] Checking dependencies and plugins for snapshots ...
      What is the release version for "base-project"? (com.mindergy.gim.test:base-project) 1.0.4: :
      What is the release version for "test-lib"? (com.mindergy.gim.test:test-lib) 1.0.4: :
      What is the release version for "test-ejb"? (com.mindergy.gim.test:test-ejb) 1.0.4: :
      What is SCM release tag or label for "base-project"? (com.mindergy.gim.test:base-project) base-project-1.0.4: :
      What is the new development version for "base-project"? (com.mindergy.gim.test:base-project) 1.0.5-SNAPSHOT: :
      What is the new development version for "test-lib"? (com.mindergy.gim.test:test-lib) 1.0.5-SNAPSHOT: :
      What is the new development version for "test-ejb"? (com.mindergy.gim.test:test-ejb) 1.0.5-SNAPSHOT: :
      [INFO] Transforming 'base-project'...
      [INFO] Transforming 'test-lib'...
      [INFO] Transforming 'test-ejb'...
      [INFO] Updating test-lib to 1.0.4
      [INFO] Not generating release POMs
      [INFO] Executing goals 'clean install'...
      [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
      [INFO] [INFO] Scanning for projects...
      [INFO] [WARNING]
      [INFO] [WARNING] Some problems were encountered while building the effective model for com.mindergy.gim.test:test-ejb:ejb:1.0.4
      [INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-ejb-plugin is missing. @ line 34, column 12
      [INFO] [WARNING]
      [INFO] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [INFO] [WARNING]
      [INFO] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [INFO] [WARNING]
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] Reactor Build Order:
      [INFO] [INFO]
      [INFO] [INFO] base-project
      [INFO] [INFO] test-lib
      [INFO] [INFO] test-ejb
      [INFO] [INFO]
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] Building base-project 1.0.4
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO]
      [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ base-project ---
      [INFO] [INFO] Deleting D:\timwe\workspace\workspace-test\base-project\target
      [INFO] [INFO]
      [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ base-project ---
      [INFO] [INFO] Installing D:\timwe\workspace\workspace-test\base-project\pom.xml to C:\Users\delio.guerra\.m2\repository\com\mindergy\gim\test\base-project\1.0.4\base-project-1.0.4.pom
      [INFO] [INFO]
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] Building test-lib 1.0.4
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO]
      [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ test-lib ---
      [INFO] [INFO] Deleting D:\timwe\workspace\workspace-test\test-lib\target
      [INFO] [INFO]
      [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ test-lib ---
      [INFO] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
      
      [INFO] [INFO] Copying 0 resource
      [INFO] [INFO] Copying 0 resource
      [INFO] [INFO]
      [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ test-lib ---
      [INFO] [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
      [INFO] [INFO] Compiling 1 source file to D:\timwe\workspace\workspace-test\test-lib\target\classes
      [INFO] [INFO]
      [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ test-lib ---
      [INFO] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
      
      [INFO] [INFO] skip non existing resourceDirectory D:\timwe\workspace\workspace-test\test-lib\src\test\resources
      [INFO] [INFO]
      [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ test-lib ---
      [INFO] [INFO] Not compiling test sources
      [INFO] [INFO]
      [INFO] [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ test-lib ---
      [INFO] [INFO] Tests are skipped.
      [INFO] [INFO]
      [INFO] [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ test-lib ---
      [INFO] [INFO] Building jar: D:\timwe\workspace\workspace-test\test-lib\target\test-lib.jar
      [INFO] [INFO]
      [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ test-lib ---
      [INFO] [INFO] Installing D:\timwe\workspace\workspace-test\test-lib\target\test-lib.jar to C:\Users\delio.guerra\.m2\rep
      ository\com\mindergy\gim\test\test-lib\1.0.4\test-lib-1.0.4.jar
      [INFO] [INFO] Installing D:\timwe\workspace\workspace-test\test-lib\pom.xml to C:\Users\delio.guerra\.m2\repository\com\mindergy\gim\test\test-lib\1.0.4\test-lib-1.0.4.pom
      [INFO] [INFO]
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] Building test-ejb 1.0.4
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO]
      [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ test-ejb ---
      [INFO] [INFO] Deleting D:\timwe\workspace\workspace-test\test-ejb\target
      [INFO] [INFO]
      [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ test-ejb ---
      [INFO] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
      
      [INFO] [INFO] Copying 0 resource
      [INFO] [INFO] Copying 0 resource
      [INFO] [INFO]
      [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ test-ejb ---
      [INFO] [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
      [INFO] [INFO] Compiling 5 source files to D:\timwe\workspace\workspace-test\test-ejb\target\classes
      [INFO] [INFO]
      [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ test-ejb ---
      [INFO] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
      
      [INFO] [INFO] skip non existing resourceDirectory D:\timwe\workspace\workspace-test\test-ejb\src\test\resources
      [INFO] [INFO]
      [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ test-ejb ---
      [INFO] [INFO] Not compiling test sources
      [INFO] [INFO]
      [INFO] [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ test-ejb ---
      [INFO] [INFO] Tests are skipped.
      [INFO] [INFO]
      [INFO] [INFO] --- maven-ejb-plugin:2.3:ejb (default-ejb) @ test-ejb ---
      [INFO] [INFO] Building EJB test-ejb with EJB version 3.1
      [INFO] [INFO] Building jar: D:\timwe\workspace\workspace-test\test-ejb\target\test-ejb.jar
      [INFO] [INFO] Building EJB client test-ejb-client
      [INFO] [INFO] Building jar: D:\timwe\workspace\workspace-test\test-ejb\target\test-ejb-client.jar
      [INFO] [INFO]
      [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ test-ejb ---
      [INFO] [INFO] Installing D:\timwe\workspace\workspace-test\test-ejb\target\test-ejb.jar to C:\Users\delio.guerra\.m2\rep
      ository\com\mindergy\gim\test\test-ejb\1.0.4\test-ejb-1.0.4.jar
      [INFO] [INFO] Installing D:\timwe\workspace\workspace-test\test-ejb\pom.xml to C:\Users\delio.guerra\.m2\repository\com\
      mindergy\gim\test\test-ejb\1.0.4\test-ejb-1.0.4.pom
      [INFO] [INFO] Installing D:\timwe\workspace\workspace-test\test-ejb\target\test-ejb-client.jar to C:\Users\delio.guerra\
      .m2\repository\com\mindergy\gim\test\test-ejb\1.0.4\test-ejb-1.0.4-client.jar
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] Reactor Summary:
      [INFO] [INFO]
      [INFO] [INFO] base-project ...................................... SUCCESS [0.395s]
      [INFO] [INFO] test-lib .......................................... SUCCESS [1.058s]
      [INFO] [INFO] test-ejb .......................................... SUCCESS [0.606s]
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] BUILD SUCCESS
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] Total time: 2.184s
      [INFO] [INFO] Finished at: Wed Sep 07 19:01:11 BST 2011
      [INFO] [INFO] Final Memory: 11M/120M
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] Checking in modified POMs...
      [INFO] Executing: cmd.exe /X /C "svn --username delio.guerra --password ***** --no-auth-cache --non-interactive commit -
      -file C:\Users\DELIO~1.GUE\AppData\Local\Temp\maven-scm-28757149.commit --targets C:\Users\DELIO~1.GUE\AppData\Local\Tem
      p\maven-scm-422926751752735949-targets"
      [INFO] Working directory: D:\timwe\workspace\workspace-test\base-project
      [INFO] Executing: cmd.exe /X /C "svn --username delio.guerra --password ***** --no-auth-cache --non-interactive commit -
      -file C:\Users\DELIO~1.GUE\AppData\Local\Temp\maven-scm-1951816047.commit --targets C:\Users\DELIO~1.GUE\AppData\Local\T
      emp\maven-scm-3382482011219731653-targets"
      [INFO] Working directory: D:\timwe\workspace\workspace-test\test-lib
      [INFO] Executing: cmd.exe /X /C "svn --username delio.guerra --password ***** --no-auth-cache --non-interactive commit -
      -file C:\Users\DELIO~1.GUE\AppData\Local\Temp\maven-scm-1061034808.commit --targets C:\Users\DELIO~1.GUE\AppData\Local\T
      emp\maven-scm-1037585249045535470-targets"
      [INFO] Working directory: D:\timwe\workspace\workspace-test\test-ejb
      [INFO] Tagging release with the label base-project-1.0.4...
      [INFO] Executing: cmd.exe /X /C "svn --username delio.guerra --password ***** --no-auth-cache --non-interactive copy --f
      ile C:\Users\DELIO~1.GUE\AppData\Local\Temp\maven-scm-829117986.commit --revision 164800 http://pan.timwe.com/svn/main/m
      iit/region/gim/test/base-project http://pan.timwe.com/svn/main/miit/region/gim/test/tags/base-project-1.0.4"
      [INFO] Working directory: D:\timwe\workspace\workspace-test
      [INFO] Transforming 'base-project'...
      [INFO] Transforming 'test-lib'...
      [INFO] Transforming 'test-ejb'...
      [INFO] Updating test-lib to 1.0.5-SNAPSHOT
      [INFO] Not removing release POMs
      [INFO] Checking in modified POMs...
      [INFO] Executing: cmd.exe /X /C "svn --username delio.guerra --password ***** --no-auth-cache --non-interactive commit -
      -file C:\Users\DELIO~1.GUE\AppData\Local\Temp\maven-scm-600981714.commit --targets C:\Users\DELIO~1.GUE\AppData\Local\Te
      mp\maven-scm-6323277941993340887-targets"
      [INFO] Working directory: D:\timwe\workspace\workspace-test\base-project
      [INFO] Executing: cmd.exe /X /C "svn --username delio.guerra --password ***** --no-auth-cache --non-interactive commit -
      -file C:\Users\DELIO~1.GUE\AppData\Local\Temp\maven-scm-1046435573.commit --targets C:\Users\DELIO~1.GUE\AppData\Local\T
      emp\maven-scm-8058852810125600268-targets"
      [INFO] Working directory: D:\timwe\workspace\workspace-test\test-lib
      [INFO] Executing: cmd.exe /X /C "svn --username delio.guerra --password ***** --no-auth-cache --non-interactive commit -
      -file C:\Users\DELIO~1.GUE\AppData\Local\Temp\maven-scm-1428381555.commit --targets C:\Users\DELIO~1.GUE\AppData\Local\T
      emp\maven-scm-8328268241779555488-targets"
      [INFO] Working directory: D:\timwe\workspace\workspace-test\test-ejb
      [INFO] Release preparation complete.
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] base-project ...................................... SUCCESS [12.385s]
      [INFO] test-lib .......................................... SKIPPED
      [INFO] test-ejb .......................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 12.805s
      [INFO] Finished at: Wed Sep 07 19:01:15 BST 2011
      [INFO] Final Memory: 6M/120M
      [INFO] ------------------------------------------------------------------------
      
      tags for test-lib and test-ejb are not being created. 
      
      when running release:perform...
      
      D:\timwe\workspace\workspace-test\base-project>mvn release:perform 
      [INFO] Scanning for projects...
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for com.mindergy.gim.test:test-ejb:ejb:1.0.5
      -SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-ejb-plugin is missing. @ line 34, column 12
      [WARNING]
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING]
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [WARNING]
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Build Order:
      [INFO]
      [INFO] base-project
      [INFO] test-lib
      [INFO] test-ejb
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building base-project 1.0.5-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-release-plugin:2.2.1:perform (default-cli) @ base-project ---
      [INFO] Checking out the project to perform the release ...
      [INFO] Executing: cmd.exe /X /C "svn --username delio.guerra --password ***** --no-auth-cache --non-interactive checkout
       http://pan.timwe.com/svn/main/miit/region/gim/test/tags/base-project-1.0.4 D:\timwe\workspace\workspace-test\base-project\target\checkout"
      [INFO] Working directory: D:\timwe\workspace\workspace-test\base-project\target
      [INFO] Invoking perform goals in directory D:\timwe\workspace\workspace-test\base-project\target\checkout\trunk
      [INFO] Executing goals 'deploy'...
      [WARNING] Base directory is a file. Using base directory as POM location.
      [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] base-project ...................................... FAILURE [1.653s]
      [INFO] test-lib .......................................... SKIPPED
      [INFO] test-ejb .......................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.083s
      [INFO] Finished at: Wed Sep 07 19:01:24 BST 2011
      [INFO] Final Memory: 6M/120M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.1:perform (default-cli) on project base-project: Error executing Maven. Working directory "D:\timwe\workspace\workspace-test\base-project\target\checkout\trunk
      \base-project" does not exist! -> [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/MojoExecutionException
      

      I'm trying to use this plugin to setup up a controled release process for the company I work for.
      Help would be appreciated,

      Thanks,
      Délio Guerra

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rfscholte Robert Scholte
            delio.guerra@timwe.com Délio Filipe Russo Guerra
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment