The release plugin works well with multi-modules projects.
But it breaks with this kind of layout.

To make your layout works, you surely had to add in modules poms a
relativePath tag to ../Parent, e.g :
<parent>
    <groupId>yourGroupId</groupId>
    <artifactId>Parent</artifactId>
    <version>1.0-SNAPSHOT</version>
    *<relativePath>../Parent</relativePath>*
  </parent>

This is where the release plugin fails out.


On Mon, Jul 14, 2008 at 10:18 AM, Richard Chamberlain <
[EMAIL PROTECTED]> wrote:

>  Hi All,
>
>
>
> I've had some issues releasing our project, I hope you can help.
>
>
>
> The folder structure used to be like:
>
>
>
> Parent
>
>    +
>
> -          Module1
>
> -          Module2
>
>
>
> The three projects were mounted in eclipse and everything went fine,
> releasing was a breeze etc.
>
>
>
> However the perforce plugin got really confused with the same files
> appearing in 2 projects. So, we moved to:
>
>
>
> -          Parent
>
> -          Module1
>
> -          Module2
>
>
>
> This solved our eclipse perforce plugin issue and building was great. Until
> we came to do a release.
>
>
>
> It seems as though it takes the parent module and checks everything in the
> parent folder to:
>
> -          Parent/target/checkout
>
>
>
> And then builds from there. This used to work as modules were nested in the
> parent. This is no longer the case and the build breaks.
>
>
>
> This seems to be an issue with the release plugin not supporting the
> <modules> tag in pom.xml of the parent.
>
>
>
> Has anyone else experienced this? Is there a workaround? We're stuck
> between an issue with the perforce eclipse plugin and the
> maven-release-plugin
>
>
>
> I've attached a simple test project that illustrates the issue.
>
>
>
> Thanks,
>
>
>
> Richard
>
>
>
>
>
> *Richard Chamberlain *
> Software Engineer | Caplin Systems Ltd
>
> Office: +44 (0)20 7826 9639
> Mobile: +44 (0)7720 686 064
> www.caplin.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to