You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Fallows <jo...@gmail.com> on 2005/08/11 00:50:52 UTC
[m2] trunk, r231316 clean:clean does not recurse by default
Is this expected?
It seems that the old behavior can be achieved using m2 -r clean:clean.
Perhaps a new lifecycle will be added so that one can just do m2 clean?
Kind Regards,
John Fallows.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] trunk, r231316 clean:clean does not recurse by default
Posted by Trygve Laugstøl <tr...@codehaus.org>.
On Thu, Aug 11, 2005 at 12:07:45AM +0000, John Fallows wrote:
> Thanks Trygve, but I am seeing a change in behavior for a "pom"
> packaged top level project with modules.
>
> There is no recursion of the "clean:clean" goal for this case on the
> trunk, which is a change in behavior from the last release.
It seems to work for me with my current version of trunk which I updated
some time earlier today.
> From your description, this seems unintentional, or is it a deliberate change?
If it indeed m2 doesn't clean all sub-projects if you have packaging="pom"
and a set of <modules> in your pom it's a bug. It is supposed to clean the
same project as it's building and if you are really sure that it's not
please file a bug here[1], preferably with a set of pom.xml files to show
the problem as it seems to work at least some cases.
[1]: http://jira.codehaus.org/browse/MNG
--
Trygve
Re: [m2] trunk, r231316 clean:clean does not recurse by default
Posted by John Fallows <jo...@gmail.com>.
Thanks Trygve, but I am seeing a change in behavior for a "pom"
packaged top level project with modules.
There is no recursion of the "clean:clean" goal for this case on the
trunk, which is a change in behavior from the last release.
>From your description, this seems unintentional, or is it a deliberate change?
Kind Regards,
John Fallows.
On 8/10/05, Trygve Laugstøl <tr...@codehaus.org> wrote:
> On Wed, Aug 10, 2005 at 10:50:52PM +0000, John Fallows wrote:
> > Is this expected?
>
> For non-POM projects (packaging == "pom") this is the default and has
> always been link that. For project with packaging="pom" it will execute
> the clean:clean goal in all project listed inside the <modules> section of
> the POM.
>
> >
> > It seems that the old behavior can be achieved using m2 -r clean:clean.
>
> That's correct.
>
> >
> > Perhaps a new lifecycle will be added so that one can just do m2 clean?
>
> I think that how it is today will suffice.
>
> $ m2 install
>
> will install all projects in the <modules> section and
>
> $ m2 clean:clean
>
> will likewise clean the same set of projects.
>
> --
> Trygve
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFC+oaM4EbM92cyCUURAltfAKCei1vAJkSDZMBY/BA50Y8AZ4ueTACfVjPr
> QwOsh2ozKS9pOFE1VTvHBJI=
> =t9Ox
> -----END PGP SIGNATURE-----
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] trunk, r231316 clean:clean does not recurse by default
Posted by Trygve Laugstøl <tr...@codehaus.org>.
On Wed, Aug 10, 2005 at 10:50:52PM +0000, John Fallows wrote:
> Is this expected?
For non-POM projects (packaging == "pom") this is the default and has
always been link that. For project with packaging="pom" it will execute
the clean:clean goal in all project listed inside the <modules> section of
the POM.
>
> It seems that the old behavior can be achieved using m2 -r clean:clean.
That's correct.
>
> Perhaps a new lifecycle will be added so that one can just do m2 clean?
I think that how it is today will suffice.
$ m2 install
will install all projects in the <modules> section and
$ m2 clean:clean
will likewise clean the same set of projects.
--
Trygve