You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by ant elder <an...@gmail.com> on 2010/04/13 12:17:51 UTC
Building with non-default maven profiles?
We used to be able to build with one of the non-default maven profiles
by just specifiy the profile with -P, eg mvn -Pbase but that doesn't
work anymore as the default profile still gets used as well so it
fails with duplicate modules in the reactor, so you have to exclude
the default profile eg mvn -Pbase,!default. Does anyone know why this
is or how to fix it?
...ant
Re: Building with non-default maven profiles?
Posted by ant elder <an...@apache.org>.
On Tue, Apr 13, 2010 at 11:51 AM, Simon Laws <si...@googlemail.com> wrote:
> On Tue, Apr 13, 2010 at 11:28 AM, ant elder <an...@apache.org> wrote:
>> On Tue, Apr 13, 2010 at 11:23 AM, Simon Laws <si...@googlemail.com> wrote:
>>> On Tue, Apr 13, 2010 at 11:17 AM, ant elder <an...@gmail.com> wrote:
>>>> We used to be able to build with one of the non-default maven profiles
>>>> by just specifiy the profile with -P, eg mvn -Pbase but that doesn't
>>>> work anymore as the default profile still gets used as well so it
>>>> fails with duplicate modules in the reactor, so you have to exclude
>>>> the default profile eg mvn -Pbase,!default. Does anyone know why this
>>>> is or how to fix it?
>>>>
>>>> ...ant
>>>>
>>>
>>> What version of Maven are you using?
>>>
>>
>> I've now tried 2.0.11, 2.2.1, and 3.0-alpha6. Does it work for you?
>>
>> ...ant
>>
>
> At what stage does it fail for you?
>
> mvn -Pbase
> mvn -Peclipse
> mvn -Pdistribution
>
> All start up fine and begin building things for me.
>
> I'm on 2.2.1
>
> Simon
>
>
> --
> Apache Tuscany committer: tuscany.apache.org
> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>
Ok thanks, i found it it was a duff settings.xml file which had an old
activeProfiles including the default profile.
...ant
Re: Building with non-default maven profiles?
Posted by Simon Laws <si...@googlemail.com>.
On Tue, Apr 13, 2010 at 11:28 AM, ant elder <an...@apache.org> wrote:
> On Tue, Apr 13, 2010 at 11:23 AM, Simon Laws <si...@googlemail.com> wrote:
>> On Tue, Apr 13, 2010 at 11:17 AM, ant elder <an...@gmail.com> wrote:
>>> We used to be able to build with one of the non-default maven profiles
>>> by just specifiy the profile with -P, eg mvn -Pbase but that doesn't
>>> work anymore as the default profile still gets used as well so it
>>> fails with duplicate modules in the reactor, so you have to exclude
>>> the default profile eg mvn -Pbase,!default. Does anyone know why this
>>> is or how to fix it?
>>>
>>> ...ant
>>>
>>
>> What version of Maven are you using?
>>
>
> I've now tried 2.0.11, 2.2.1, and 3.0-alpha6. Does it work for you?
>
> ...ant
>
At what stage does it fail for you?
mvn -Pbase
mvn -Peclipse
mvn -Pdistribution
All start up fine and begin building things for me.
I'm on 2.2.1
Simon
--
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com
Re: Building with non-default maven profiles?
Posted by ant elder <an...@apache.org>.
On Tue, Apr 13, 2010 at 11:23 AM, Simon Laws <si...@googlemail.com> wrote:
> On Tue, Apr 13, 2010 at 11:17 AM, ant elder <an...@gmail.com> wrote:
>> We used to be able to build with one of the non-default maven profiles
>> by just specifiy the profile with -P, eg mvn -Pbase but that doesn't
>> work anymore as the default profile still gets used as well so it
>> fails with duplicate modules in the reactor, so you have to exclude
>> the default profile eg mvn -Pbase,!default. Does anyone know why this
>> is or how to fix it?
>>
>> ...ant
>>
>
> What version of Maven are you using?
>
I've now tried 2.0.11, 2.2.1, and 3.0-alpha6. Does it work for you?
...ant
Re: Building with non-default maven profiles?
Posted by Simon Laws <si...@googlemail.com>.
On Tue, Apr 13, 2010 at 11:17 AM, ant elder <an...@gmail.com> wrote:
> We used to be able to build with one of the non-default maven profiles
> by just specifiy the profile with -P, eg mvn -Pbase but that doesn't
> work anymore as the default profile still gets used as well so it
> fails with duplicate modules in the reactor, so you have to exclude
> the default profile eg mvn -Pbase,!default. Does anyone know why this
> is or how to fix it?
>
> ...ant
>
What version of Maven are you using?
Simon
--
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com