You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Neil T Olson (JIRA)" <ji...@codehaus.org> on 2008/06/25 18:25:27 UTC

[jira] Commented: (MRELEASE-261) release:prepare shouls support flat directory multimodule projects

    [ http://jira.codehaus.org/browse/MRELEASE-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139570#action_139570 ] 

Neil T Olson commented on MRELEASE-261:
---------------------------------------

Here's what we did for a workaround:

In the example above, I would have created a POM.XML in the D:\TEMP\MYSTUFF directory with one sub module, ROOT\POM.XML.  No projects refer to it as a parent.  It is only a way to identify which sub-module is the "real" root.

When doing our development in eclipse, we don't have that new POM.XML available.  It only shows up when we checkout the whole project.  We then run the Manven release:branch and release:prepare mojos from that directory, and everything seems to work fine.

Example:
{noformat}
proj\+pom.xml (sub module: base)
        |
        |--base
        |    |+pom.xml (sub modules: ../client, ../server)
        |
        |--client
        |    |+pom.xml (parent: ../base)
        |
        |--server
             |+pom.xml (parent: ../base)
{noformat}

All maven release stuff is done from the proj directory, but all of the eclipse projects are at their specific project level.

If a fix is done for this, I would love to help out with the testing.  We have a relatively complicated configuration (3 levels of hierarchy) that I could test against.
Thanks - Neil

> release:prepare shouls support flat directory multimodule projects
> ------------------------------------------------------------------
>
>                 Key: MRELEASE-261
>                 URL: http://jira.codehaus.org/browse/MRELEASE-261
>             Project: Maven 2.x Release Plugin
>          Issue Type: Improvement
>         Environment: linux / maven2 / svn
>            Reporter: paul.whelan@gmail.com
>         Attachments: PrepareReleaseMojo.patch
>
>
> What I mean by flat file structure firstly.
> parent/pom.xml
> module1/pom.xml
> module2/pom.xml
> .
> .
> .
> module15/pom.xml
> the parent references the modules like so
> <modules>
> 		<module>../module1</module>
> 		<module>../module2</module>
> .
> .
> .
> 		<module>../module15</module>
> </modules>
> When i  release:prepare only the parent project is tagged the modules projects versions are incremented etc but the modules are not tagged in svn.
> I use this structure as i use eclipse as my IDE.
> I would love to see a fix for the issue marked as closed here http://jira.codehaus.org/browse/MRELEASE-138. I am currenrly tagging by hand each submodule of the projects but it would be so nice to have the release plugin do this for me.
> forgive my english.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira