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

release:prepare fails when checking in modified POMs of a multi-modules project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Auto Closed
    • 2.0-beta-4
    • None
    • scm
    • None
    • WinXP + Eclipse

    Description

      Here is the project structure on the disk :

      c:\javadev\prj\myproject\module1
      c:\javadev\prj\myproject\module2
      c:\javadev\prj\myproject\master
      

      These 3 folders represent the 3 eclipse projects, each one containing a pom.xml.
      The master project's pom is the parent of the modules.

      When I execute the release:prepare goal, Everything works fine (it asks to me the tag name, the next dev version, ...) until I receive this error :

      [INFO] Checking in modified POMs...
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] An error is occurred in the checkin process: C:\javadev\prj\myproject\module1\pom.xml was not contained in C:\javadev\prj\myproject\master
      
      [INFO] ------------------------------------------------------------------------
      [DEBUG] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: An error is occurred in the checkin process: C:\javadev\prj\myproject\module1\pom.xml was not contained in C:\javadev\prj\myproject\master
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
      ....
      

      The problem is that the project structure is the only one that can be used with eclipse.

      Attachments

        1. MRELEASE-138.patch
          21 kB
          Robert Scholte

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              ol ol
              Votes:
              12 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: