On 4/14/06, EJ Ciramella <[EMAIL PROTECTED]> wrote: > > Just imagine that there is a new hire, they know nothing about > settings.xml (and I hate the thought of a template settings.xml or even > worse, people mailing each other various versions of settings.xml).
If this is really the problem you're trying to solve, then why not write a little script that your new hires use to install Maven on their local machines, instead of just assuming that they unzip the Maven distribution? Then your script can set up settings.xml, profiles.xml, etc., with whatever you want. -- Martin Cooper If there is a profile in profiles.xml, can that be activated from > pom.xml? > > And there's really no way to do something like > > Mvn gid:aid:compile? > > Where gid = group id > aid = artifact id > ... > > -----Original Message----- > From: Arik Kfir [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 13, 2006 9:04 PM > To: Maven Users List > Subject: Re: Two new questions > > You won't have to activate it - if you list it in <activeProfiles> it's > automatically activated...perhaps I misunderstood what you meant > originaly? > > On 4/14/06, EJ Ciramella <[EMAIL PROTECTED]> wrote: > > > > 1 - that's not quite what I had in mind. There's no way to activate > that > > profile in profiles.xml from the pom.xml? What if there are no > profiles > > in settings.xml? > > > > 2 - bummer - anyone else know? > > -----Original Message----- > > From: Arik Kfir [mailto:[EMAIL PROTECTED] > > Sent: Thu 4/13/2006 6:22 PM > > To: Maven Users List > > Subject: Re: Two new questions > > > > Hi EJ, > > > > 1. Yes - see the reference to settings.xml at > > http://maven.apache.org/maven-settings/settings.html - especially > about > > "<activeProfiles>". You can add your profile there (in settings.xml, > under > > "<profiles>") and then add this: > > <activeProfiles> > > <!-- you can add more than one active-by-default profiles here... > --> > > <activeProfile>myProfileName</activeProfile> > > </activeProfiles> > > > > 2. AFAIK, no. > > > > Hope this helps, > > Arik. > > > > On 4/14/06, EJ Ciramella <[EMAIL PROTECTED]> wrote: > > > > > > 1 - Is there any way to make a profile stored in profiles.xml the > > > default active profile? I don't see a way to do that unless the > profile > > > I want is in the pom.xml (I don't want to do this). > > > > > > 2 - Is there a way from a top level directory to say "compile > module-A > > > only", or do I have to change directories to module-A and do a mvn > > > compile each time? > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
