Re: How to configure the location of "settings.xml"?
I replied to your other thread. Please go read the documentation. Wayne On 1/2/08, Thomas Chang <[EMAIL PROTECTED]> wrote: > Your answer sounds good. But could the "profile.xml" be called? Have you an > example? > > > ** > It sounds like you should probably be using a profiles.xml file in > your project root directory (same dir as pom.xml), rather than > configuring a new location for your settings.xml file etc. > > Wayne > > On 1/2/08, Erez Nahir <[EMAIL PROTECTED]> wrote: > > you can use mvn -s < Alternate path for the user settings file > > > > > Erez. > > > > On Jan 2, 2008 5:05 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > > > > Normally the "settings.xml" is located under /m2_home/conf. Is it > > > possible to move this file anywhere for example /myproject/conf? If > yes, > > > how? > > > > > > Regards > > > > > > Thomas > > > > > > > > > - > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen > Sie´s > > > mit dem neuen Yahoo! Mail. > > > > > > > - > Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure the location of "settings.xml"?
assuming bash, add this to your .bashrc (substitute mvn absolute path as needed): alias mvn="/usr/bin/mvn -s $*" If you are using windows or not using bash you can create a bat file or a mvn shell script that occurs earlier in your PATH so that it gets picked up first. just make sure that the mvn in your file is fully qualified or else you get a nice infinite loop. -Andrew On Jan 2, 2008 8:19 AM, Thomas Chang <[EMAIL PROTECTED]> wrote: > Thanks for the reply. But I think this way is a little bit complecated since > everytime you run mvn you have to type the alternate path. > > > ** > you can use mvn -s < Alternate path for the user settings file > > > Erez. > > On Jan 2, 2008 5:05 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > Normally the "settings.xml" is located under /m2_home/conf. Is it > > possible to move this file anywhere for example /myproject/conf? If > yes, > > how? > > > > Regards > > > > Thomas > > > > > > - > Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to configure the location of "settings.xml"?
I've been following these threads and I think you're going way outside of what should be needed. You originally wanted to define a group and version as a property, presumably because you want to centrally control it rather than it would actually change it. The proper way to control the version is via a dependencyManagement section in a parent pom that is centrally controlled (and shared by all your projects). You could also define the properties in a parent pom as well. You do have the option of defining profiles in the pom.xml (again most likely from a commonly inherited one) or with the profiles.xml, but I don't think this is what you really need. --Brian -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 02, 2008 10:26 AM To: Maven Users List Subject: Re: How to configure the location of "settings.xml"? Your answer sounds good. But could the "profile.xml" be called? Have you an example? ** It sounds like you should probably be using a profiles.xml file in your project root directory (same dir as pom.xml), rather than configuring a new location for your settings.xml file etc. Wayne On 1/2/08, Erez Nahir <[EMAIL PROTECTED]> wrote: > you can use mvn -s < Alternate path for the user settings file > > > Erez. > > On Jan 2, 2008 5:05 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > Normally the "settings.xml" is located under /m2_home/conf. Is it > > possible to move this file anywhere for example /myproject/conf? If yes, > > how? > > > > Regards > > > > Thomas > > > > > > - > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s > > mit dem neuen Yahoo! Mail. > > - Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure the location of "settings.xml"?
Your answer sounds good. But could the "profile.xml" be called? Have you an example? ** It sounds like you should probably be using a profiles.xml file in your project root directory (same dir as pom.xml), rather than configuring a new location for your settings.xml file etc. Wayne On 1/2/08, Erez Nahir <[EMAIL PROTECTED]> wrote: > you can use mvn -s < Alternate path for the user settings file > > > Erez. > > On Jan 2, 2008 5:05 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > Normally the "settings.xml" is located under /m2_home/conf. Is it > > possible to move this file anywhere for example /myproject/conf? If yes, > > how? > > > > Regards > > > > Thomas > > > > > > - > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s > > mit dem neuen Yahoo! Mail. > > - Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.
Re: How to configure the location of "settings.xml"?
Thanks for the reply. But I think this way is a little bit complecated since everytime you run mvn you have to type the alternate path. ** you can use mvn -s < Alternate path for the user settings file > Erez. On Jan 2, 2008 5:05 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > Hi all, > > Normally the "settings.xml" is located under /m2_home/conf. Is it > possible to move this file anywhere for example /myproject/conf? If yes, > how? > > Regards > > Thomas > - Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.
Re: How to configure the location of "settings.xml"?
It sounds like you should probably be using a profiles.xml file in your project root directory (same dir as pom.xml), rather than configuring a new location for your settings.xml file etc. Wayne On 1/2/08, Erez Nahir <[EMAIL PROTECTED]> wrote: > you can use mvn -s < Alternate path for the user settings file > > > Erez. > > On Jan 2, 2008 5:05 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > Normally the "settings.xml" is located under /m2_home/conf. Is it > > possible to move this file anywhere for example /myproject/conf? If yes, > > how? > > > > Regards > > > > Thomas > > > > > > - > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s > > mit dem neuen Yahoo! Mail. > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure the location of "settings.xml"?
you can use mvn -s < Alternate path for the user settings file > Erez. On Jan 2, 2008 5:05 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > Hi all, > > Normally the "settings.xml" is located under /m2_home/conf. Is it > possible to move this file anywhere for example /myproject/conf? If yes, > how? > > Regards > > Thomas > > > - > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s > mit dem neuen Yahoo! Mail. >