You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Asmann, Roland" <Ro...@adesso.at> on 2012/01/13 15:09:26 UTC

Disabling Profiles during release

Hi all,

I have this company-wide POM that has several profiles that are 
activated when running on Jenkins. Now during the normal build of this 
POM, I tell Jenkins to deactivate several profiles, because they just 
can't run.

Today I needed to make a release of this POM, and I tried to deactivate 
the profiles as well -- using -Darguments=-P!profile1,!profile2 etc. 
This does not seem to work however, so I am now unable to release this 
POM using Jenkins!

Before, when I had to activate profiles, this worked just fine! Is it 
just not possible to deactivate profiles or am I missing something here?

Thanks,

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock              T +43 1 2198790-27
Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
A-1210 Wien                         M +43 664 88657566
                                    E roland.asmann@adesso.at
                                    W www.adesso.at

-------------------------------------------------------------
             >>> business. people. technology. <<<
-------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Disabling Profiles during release

Posted by Guillaume Polet <gu...@gmail.com>.
Not sure this is the right place to put your question and not sure I 
understand what's your question exactly.

Yes it is possible to deactivate profiles.

As for jenkins, in the "goals and options" box, just put:
-P !profile1,!profile2

Have you tried running mvn from the command line? If yes, then your 
problem needs to be answered here. Otherwise, I would ask jenkins guys.

Cheers,
Guillaume
Le 13/01/2012 15:09, Asmann, Roland a écrit :
> Hi all,
>
> I have this company-wide POM that has several profiles that are
> activated when running on Jenkins. Now during the normal build of this
> POM, I tell Jenkins to deactivate several profiles, because they just
> can't run.
>
> Today I needed to make a release of this POM, and I tried to deactivate
> the profiles as well -- using -Darguments=-P!profile1,!profile2 etc.
> This does not seem to work however, so I am now unable to release this
> POM using Jenkins!
>
> Before, when I had to activate profiles, this worked just fine! Is it
> just not possible to deactivate profiles or am I missing something here?
>
> Thanks,
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org