You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rick Mangi <rm...@yahoo.com> on 2005/01/17 20:46:42 UTC
Reactor ignores ignores and includes?
Hey all,
I'm trying to set up the reactor to do multi-project builds. I have a
setup with 3 modules, one of which is the main project. The problem is,
in my project workspace I have other projects at the same directory
level which I want to ignore from the builds. Like this:
/work/module1
/work/module2
/work/mainmodule
/work/another-non-included-module
So I'm trying to use the reactor to do builds across the projects, but
by default it will include the "another-non-included-module". So I'm
trying to use the include/ignore parameters to maven:reactor but it
doesn't seem to use these settings.
<goal name="cb:clean" prereqs="clean">
<maven:reactor basedir="${maven.mulitproject.basedir}"
goals="multiproject:clean"
includes="module1/project.xml, module2/project.xml"
excludes="mainmodule/*"
banner="Cleaning:"
ignoreFailures="false"/>
</goal>
Running this it tries to include another-non-included-module in the
multiproject set.
By the way, maven.multiproject.basedir is set to the parent directory
of all these modules.
Any ideas? I have a few other examples with similar issues.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Reactor ignores ignores and includes?
Posted by Brett Porter <br...@gmail.com>.
correct. Multiproject is a simple wrapper around the reactor - you
should probably use only one or the other.
If you set maven.multiproject.includes/excludes to the property you
included, then attainGoal multiproject:clean, you should get the
result expected.
On Mon, 17 Jan 2005 15:40:31 -0500, Rick Mangi <rm...@yahoo.com> wrote:
> I think my problem was that I was using multiproject goals inside of
> the reactor tag which seem to ignore parameters passed to the reactor.
>
>
> On Jan 17, 2005, at 3:15 PM, James Mitchell wrote:
>
> > Not sure about any maven.multiproject.basedir property, but I am
> > successfully doing this for the Apache Struts project.
> >
> > Here's how I fire off the reactor (this makes sure that "shared" gets
> > build first)
> >
> >
> > <goal name="apps:build-all">
> >
> > <maven:reactor basedir="${basedir}"
> > includes="shared/project.xml"
> > goals="java:compile, war:webapp, war:war"
> > banner="Building default mailreader app"
> > ignoreFailures="false"/>
> >
> > <maven:reactor basedir="${basedir}"
> > includes="*/project.xml"
> > excludes="shared/project.xml"
> > goals="java:compile, war:webapp, war:war"
> > banner="Building Struts apps"
> > ignoreFailures="false"/>
> > </goal>
> >
> >
> > --
> > James Mitchell
> > Software Engineer / Open Source Evangelist
> > EdgeTech, Inc.
> > 678.910.8017
> > AIM: jmitchtx
> >
> > ----- Original Message ----- From: "Rick Mangi" <rm...@yahoo.com>
> > To: "Maven Users List" <us...@maven.apache.org>
> > Sent: Monday, January 17, 2005 2:46 PM
> > Subject: Reactor ignores ignores and includes?
> >
> >
> >> Hey all,
> >>
> >> I'm trying to set up the reactor to do multi-project builds. I have
> >> a setup with 3 modules, one of which is the main project. The problem
> >> is, in my project workspace I have other projects at the same
> >> directory level which I want to ignore from the builds. Like this:
> >>
> >> /work/module1
> >> /work/module2
> >> /work/mainmodule
> >> /work/another-non-included-module
> >>
> >> So I'm trying to use the reactor to do builds across the projects,
> >> but by default it will include the "another-non-included-module". So
> >> I'm trying to use the include/ignore parameters to maven:reactor but
> >> it doesn't seem to use these settings.
> >>
> >> <goal name="cb:clean" prereqs="clean">
> >> <maven:reactor basedir="${maven.mulitproject.basedir}"
> >> goals="multiproject:clean"
> >> includes="module1/project.xml, module2/project.xml"
> >> excludes="mainmodule/*"
> >> banner="Cleaning:"
> >> ignoreFailures="false"/>
> >> </goal>
> >>
> >> Running this it tries to include another-non-included-module in the
> >> multiproject set.
> >>
> >> By the way, maven.multiproject.basedir is set to the parent directory
> >> of all these modules.
> >>
> >> Any ideas? I have a few other examples with similar issues.
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Reactor ignores ignores and includes?
Posted by Rick Mangi <rm...@yahoo.com>.
I think my problem was that I was using multiproject goals inside of
the reactor tag which seem to ignore parameters passed to the reactor.
On Jan 17, 2005, at 3:15 PM, James Mitchell wrote:
> Not sure about any maven.multiproject.basedir property, but I am
> successfully doing this for the Apache Struts project.
>
> Here's how I fire off the reactor (this makes sure that "shared" gets
> build first)
>
>
> <goal name="apps:build-all">
>
> <maven:reactor basedir="${basedir}"
> includes="shared/project.xml"
> goals="java:compile, war:webapp, war:war"
> banner="Building default mailreader app"
> ignoreFailures="false"/>
>
> <maven:reactor basedir="${basedir}"
> includes="*/project.xml"
> excludes="shared/project.xml"
> goals="java:compile, war:webapp, war:war"
> banner="Building Struts apps"
> ignoreFailures="false"/>
> </goal>
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
>
> ----- Original Message ----- From: "Rick Mangi" <rm...@yahoo.com>
> To: "Maven Users List" <us...@maven.apache.org>
> Sent: Monday, January 17, 2005 2:46 PM
> Subject: Reactor ignores ignores and includes?
>
>
>> Hey all,
>>
>> I'm trying to set up the reactor to do multi-project builds. I have
>> a setup with 3 modules, one of which is the main project. The problem
>> is, in my project workspace I have other projects at the same
>> directory level which I want to ignore from the builds. Like this:
>>
>> /work/module1
>> /work/module2
>> /work/mainmodule
>> /work/another-non-included-module
>>
>> So I'm trying to use the reactor to do builds across the projects,
>> but by default it will include the "another-non-included-module". So
>> I'm trying to use the include/ignore parameters to maven:reactor but
>> it doesn't seem to use these settings.
>>
>> <goal name="cb:clean" prereqs="clean">
>> <maven:reactor basedir="${maven.mulitproject.basedir}"
>> goals="multiproject:clean"
>> includes="module1/project.xml, module2/project.xml"
>> excludes="mainmodule/*"
>> banner="Cleaning:"
>> ignoreFailures="false"/>
>> </goal>
>>
>> Running this it tries to include another-non-included-module in the
>> multiproject set.
>>
>> By the way, maven.multiproject.basedir is set to the parent directory
>> of all these modules.
>>
>> Any ideas? I have a few other examples with similar issues.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Reactor ignores ignores and includes?
Posted by James Mitchell <jm...@apache.org>.
Not sure about any maven.multiproject.basedir property, but I am
successfully doing this for the Apache Struts project.
Here's how I fire off the reactor (this makes sure that "shared" gets build
first)
<goal name="apps:build-all">
<maven:reactor basedir="${basedir}"
includes="shared/project.xml"
goals="java:compile, war:webapp, war:war"
banner="Building default mailreader app"
ignoreFailures="false"/>
<maven:reactor basedir="${basedir}"
includes="*/project.xml"
excludes="shared/project.xml"
goals="java:compile, war:webapp, war:war"
banner="Building Struts apps"
ignoreFailures="false"/>
</goal>
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
----- Original Message -----
From: "Rick Mangi" <rm...@yahoo.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Monday, January 17, 2005 2:46 PM
Subject: Reactor ignores ignores and includes?
> Hey all,
>
> I'm trying to set up the reactor to do multi-project builds. I have a
> setup with 3 modules, one of which is the main project. The problem is, in
> my project workspace I have other projects at the same directory level
> which I want to ignore from the builds. Like this:
>
> /work/module1
> /work/module2
> /work/mainmodule
> /work/another-non-included-module
>
> So I'm trying to use the reactor to do builds across the projects, but by
> default it will include the "another-non-included-module". So I'm trying
> to use the include/ignore parameters to maven:reactor but it doesn't seem
> to use these settings.
>
> <goal name="cb:clean" prereqs="clean">
> <maven:reactor basedir="${maven.mulitproject.basedir}"
> goals="multiproject:clean"
> includes="module1/project.xml, module2/project.xml"
> excludes="mainmodule/*"
> banner="Cleaning:"
> ignoreFailures="false"/>
> </goal>
>
> Running this it tries to include another-non-included-module in the
> multiproject set.
>
> By the way, maven.multiproject.basedir is set to the parent directory of
> all these modules.
>
> Any ideas? I have a few other examples with similar issues.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org