Re: activeProfiles

2013-03-25 Thread Eric Kolotyluk
On Mon, Mar 25, 2013 at 7:14 AM, Jörg Schaible wrote: > Eric Kolotyluk wrote: > > > > > On 2013-03-25 3:49 AM, Jörg Schaible wrote: > >> Hi Eric, > >> > >> Eric Kolotyluk wrote: > >> > >>> I have two development environments: work and personal. > >>> > >>> I am trying to set up my projects so that

Re: activeProfiles

2013-03-25 Thread Jörg Schaible
Eric Kolotyluk wrote: > > On 2013-03-25 3:49 AM, Jörg Schaible wrote: >> Hi Eric, >> >> Eric Kolotyluk wrote: >> >>> I have two development environments: work and personal. >>> >>> I am trying to set up my projects so that the POM knows which profile to >>> activate, but it seems you cannot put

Re: activeProfiles

2013-03-25 Thread Eric Kolotyluk
On 2013-03-25 3:49 AM, Jörg Schaible wrote: Hi Eric, Eric Kolotyluk wrote: I have two development environments: work and personal. I am trying to set up my projects so that the POM knows which profile to activate, but it seems you cannot put in a POM, only in a settings.xml file. Is there s

Re: activeProfiles

2013-03-25 Thread Jörg Schaible
Hi Eric, Eric Kolotyluk wrote: > I have two development environments: work and personal. > > I am trying to set up my projects so that the POM knows which profile to > activate, but it seems you cannot put in a POM, only in > a settings.xml file. Is there some reason for this? > > Is there som

Re: activeProfiles

2013-03-24 Thread Joachim Van der Auwera
I adjusted my maven startup script to automatically use project specific settings.xml file: see http://blog.progs.be/311/project-specific-maven-settings-xml Kind regards, Joachim On 03/24/2013 05:25 PM, Wayne Fay wrote: I was trying to avoid having two setting.xml files. I was also thinking of

Re: activeProfiles

2013-03-24 Thread Eric Kolotyluk
Yes, I have VMWare Workstation 9. I can get our IT department to give me an image so I can join the work domain. Excellent suggestion :-) Cheers, Eric On 2013-03-24 9:25 AM, Wayne Fay wrote: I was trying to avoid having two setting.xml files. I was also thinking of having two login accounts

Re: activeProfiles

2013-03-24 Thread Eric Kolotyluk
Sweet! I was wondering if there was some way to activate a profile conditionally. Can the property be defined in a pom.xml, or does it have to be defined elsewhere.? Cheers, Eric On 2013-03-24 7:46 AM, Robert Scholte wrote: For our mojo-projects we often have a profile for integration-tests,

Re: activeProfiles

2013-03-24 Thread Wayne Fay
> I was trying to avoid having two setting.xml files. I was also thinking of > having two login accounts each with their own settings.xml as role based > login makes more sense. Thanks for confirming my thinking. Even better is using a VM for your work environment on the personal machine. This is

Re: activeProfiles

2013-03-24 Thread Robert Scholte
For our mojo-projects we often have a profile for integration-tests, which is active by default with the following trick: skipTests !true This means that if and only if there's a property skipTests and its value is true, the profile is deact

Re: activeProfiles

2013-03-24 Thread Eric Kolotyluk
I was trying to avoid having two setting.xml files. I was also thinking of having two login accounts each with their own settings.xml as role based login makes more sense. Thanks for confirming my thinking. Seriously too bad that cannot be in a pom.xml file. Cheers, Eric On Mar 23, 2013 7:15 AM,

activeProfiles

2013-03-23 Thread Wayne Fay
> I am trying to set up my projects so that the POM knows which profile to > activate, but it seems you cannot put in a POM, only in a > settings.xml file. Is there some reason for this? > > Is there some other Maven way to do what I want to do? How do other people > separate work development from

activeProfiles

2013-03-22 Thread Eric Kolotyluk
I have two development environments: work and personal. I am trying to set up my projects so that the POM knows which profile to activate, but it seems you cannot put in a POM, only in a settings.xml file. Is there some reason for this? Is there some other Maven way to do what I want to do?

Re: Disabling profile that is present in settings.xml activeProfiles section

2012-05-09 Thread Laird Nelson
On Wed, May 9, 2012 at 5:42 PM, Laird Nelson wrote: > I invoke a build elsewhere like this (in part): > > mvn clean help:effective-settings -P"!foo" > > I get back this (in part): > > http://maven.apache.org/SETTINGS/1.1.0";> > > foo > > > > ...and of COURSE I do. Please disregard. I wante

Disabling profile that is present in settings.xml activeProfiles section

2012-05-09 Thread Laird Nelson
Hello; I am seeing behavior that I had a question about regarding deactivating profiles. I have a settings file that contains: foo I invoke a build elsewhere like this (in part): mvn clean help:effective-settings -P"!foo" I get back this (in part): http://maven.apache.org/SETTINGS/1.1.0";

activeProfiles and maven-invoker-plugin problem

2007-08-31 Thread S . Bloch
Hi I've got a problem. When I'm running invoker:run with active profile defined in settings.xml evrything works fine. But when i want to activate profile through commandline "-P profile", invoker don't get it. Is there a way to get current profile name from some varible like ${settings.activeP