Re: Settings.xml not being recognized by Continuum
Continuum is running as a service, but there's always a user associated with it. On Windows, your service is probably running as Local Service which means the user is Administrator. Or you can specify the user in the Services configuration. On Linux, the service is probably owned by root, unless you've set up a local user and group to own/run the service (which is a good practice). Wayne On 3/1/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Alexander, You can start continuum as a service or via the command line interface. Check who is running the continuum service, and simply put the settings.xmlfile in the .m2 directory relative to that user's home directory. I have no other way of explaining it, it's just like that.. Good luck Jo On 3/1/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Hi. I am running Continuum as a service. I put in active profile into the settings.xml. I put this into ~/.m2/settings.xml, maven_home/conf, but no success. How else can I start Continuum and have this work? Please help. -Original Message- From: Jo Vandermeeren [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 6:11 PM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Hi Alexander, When continuum runs maven, maven will look for its settings.xml file in the maven directory of the user that has started the continuum process (~/.m2/settings.xml). Define your profile in settings.xml and specify activation: profile iddev-mine/id activation property namefoo/name valuetrue/value /activation ... /profile Then define the property when you specify the command that continuum should call: mvn -Dfoo=true deploy.. If you want the profile to be active all the time, activate it in the settings.xml file. settings ... activeProfiles activeProfiledev-mine/activeProfile /activeProfiles ... /settings Cheers Jo On 2/28/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: I have a profile called dev-mine which contains version specific information and scm specific information which needs to be loaded during adding the Maven 2 Project POM. How can I add the project and pass the name of the profile with -P dev-mine to be read from the settings.xml file? Also, where should I place the settings.xml file for Continuum to read it? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Settings.xml not being recognized by Continuum
Yes, I didn't quite go this far in my email but its really a good idea to set up local user accounts with very limited functionality for each product/service and then install services and have them run under that account. Then if we discover a root exploit in Continuum, you don't really have to worry too much about your entire server getting compromised and losing all your data since the damage would be limited to only the data your Continuum instance has access to. This is a best practice on any operating system for a server. Wayne On 3/1/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Excellent, thank you for your help. -Original Message- From: Jo Vandermeeren [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 12:08 PM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Hi Alexander, Actually it's good practice to create an appropriate user for the service.. So, you should create a user on the local machine called continuum for example.. Then, log in as user continuum on the machine and make sure that maven and subversion client (or whatever scm client you use) works appropriately. Build your application and if everything works, install continuum as a service (on windows it's bin/win32/InstallService.bat or something).. You can save your settings.xml file as C:\Documents and Settings\continuum\.m2\settings.xml.. Then, go to the StartRun... , type services.msc and press enter.. This will bring up a window with services settings.. You can now assign the continuum user to service continuum, enter the password for the user, and voila.. it works.. Good luck Jo On 3/1/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Yes, I just verified this and it is running as a service under Local Service. Does this mean that I should add the settings.xml file to: C:\Documents and Settings\Administrator\.m2\ ? I appreciate your help. Thanks. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 11:29 AM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Continuum is running as a service, but there's always a user associated with it. On Windows, your service is probably running as Local Service which means the user is Administrator. Or you can specify the user in the Services configuration. On Linux, the service is probably owned by root, unless you've set up a local user and group to own/run the service (which is a good practice). Wayne On 3/1/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Alexander, You can start continuum as a service or via the command line interface. Check who is running the continuum service, and simply put the settings.xmlfile in the .m2 directory relative to that user's home directory. I have no other way of explaining it, it's just like that.. Good luck Jo On 3/1/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Hi. I am running Continuum as a service. I put in active profile into the settings.xml. I put this into ~/.m2/settings.xml, maven_home/conf, but no success. How else can I start Continuum and have this work? Please help. -Original Message- From: Jo Vandermeeren [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 6:11 PM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Hi Alexander, When continuum runs maven, maven will look for its settings.xml file in the maven directory of the user that has started the continuum process (~/.m2/settings.xml). Define your profile in settings.xml and specify activation: profile iddev-mine/id activation property namefoo/name valuetrue/value /activation ... /profile Then define the property when you specify the command that continuum should call: mvn -Dfoo=true deploy.. If you want the profile to be active all the time, activate it in the settings.xml file. settings ... activeProfiles activeProfiledev-mine/activeProfile /activeProfiles ... /settings Cheers Jo On 2/28/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: I have a profile called dev-mine which contains version specific information and scm specific information which needs to be loaded during adding the Maven 2 Project POM. How can I add the project and pass the name of the profile with -P dev-mine to be read from the settings.xml file? Also, where should I place the settings.xml file for Continuum to read it? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you
RE: Settings.xml not being recognized by Continuum
Excellent point, thank you. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 12:20 PM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Yes, I didn't quite go this far in my email but its really a good idea to set up local user accounts with very limited functionality for each product/service and then install services and have them run under that account. Then if we discover a root exploit in Continuum, you don't really have to worry too much about your entire server getting compromised and losing all your data since the damage would be limited to only the data your Continuum instance has access to. This is a best practice on any operating system for a server. Wayne On 3/1/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Excellent, thank you for your help. -Original Message- From: Jo Vandermeeren [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 12:08 PM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Hi Alexander, Actually it's good practice to create an appropriate user for the service.. So, you should create a user on the local machine called continuum for example.. Then, log in as user continuum on the machine and make sure that maven and subversion client (or whatever scm client you use) works appropriately. Build your application and if everything works, install continuum as a service (on windows it's bin/win32/InstallService.bat or something).. You can save your settings.xml file as C:\Documents and Settings\continuum\.m2\settings.xml.. Then, go to the StartRun... , type services.msc and press enter.. This will bring up a window with services settings.. You can now assign the continuum user to service continuum, enter the password for the user, and voila.. it works.. Good luck Jo On 3/1/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Yes, I just verified this and it is running as a service under Local Service. Does this mean that I should add the settings.xml file to: C:\Documents and Settings\Administrator\.m2\ ? I appreciate your help. Thanks. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 11:29 AM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Continuum is running as a service, but there's always a user associated with it. On Windows, your service is probably running as Local Service which means the user is Administrator. Or you can specify the user in the Services configuration. On Linux, the service is probably owned by root, unless you've set up a local user and group to own/run the service (which is a good practice). Wayne On 3/1/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Alexander, You can start continuum as a service or via the command line interface. Check who is running the continuum service, and simply put the settings.xmlfile in the .m2 directory relative to that user's home directory. I have no other way of explaining it, it's just like that.. Good luck Jo On 3/1/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Hi. I am running Continuum as a service. I put in active profile into the settings.xml. I put this into ~/.m2/settings.xml, maven_home/conf, but no success. How else can I start Continuum and have this work? Please help. -Original Message- From: Jo Vandermeeren [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 6:11 PM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Hi Alexander, When continuum runs maven, maven will look for its settings.xml file in the maven directory of the user that has started the continuum process (~/.m2/settings.xml). Define your profile in settings.xml and specify activation: profile iddev-mine/id activation property namefoo/name valuetrue/value /activation ... /profile Then define the property when you specify the command that continuum should call: mvn -Dfoo=true deploy.. If you want the profile to be active all the time, activate it in the settings.xml file. settings ... activeProfiles activeProfiledev-mine/activeProfile /activeProfiles ... /settings Cheers Jo On 2/28/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: I have a profile called dev-mine which contains version specific information and scm specific information which needs to be loaded during adding the Maven 2 Project POM. How can I add the project and pass
RE: Settings.xml not being recognized by Continuum
Thanks. I would like to as ask what permissions should the continuum user have? -Original Message- From: Jo Vandermeeren [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 12:08 PM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Hi Alexander, Actually it's good practice to create an appropriate user for the service.. So, you should create a user on the local machine called continuum for example.. Then, log in as user continuum on the machine and make sure that maven and subversion client (or whatever scm client you use) works appropriately. Build your application and if everything works, install continuum as a service (on windows it's bin/win32/InstallService.bat or something).. You can save your settings.xml file as C:\Documents and Settings\continuum\.m2\settings.xml.. Then, go to the StartRun... , type services.msc and press enter.. This will bring up a window with services settings.. You can now assign the continuum user to service continuum, enter the password for the user, and voila.. it works.. Good luck Jo On 3/1/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Yes, I just verified this and it is running as a service under Local Service. Does this mean that I should add the settings.xml file to: C:\Documents and Settings\Administrator\.m2\ ? I appreciate your help. Thanks. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 11:29 AM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Continuum is running as a service, but there's always a user associated with it. On Windows, your service is probably running as Local Service which means the user is Administrator. Or you can specify the user in the Services configuration. On Linux, the service is probably owned by root, unless you've set up a local user and group to own/run the service (which is a good practice). Wayne On 3/1/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi Alexander, You can start continuum as a service or via the command line interface. Check who is running the continuum service, and simply put the settings.xmlfile in the .m2 directory relative to that user's home directory. I have no other way of explaining it, it's just like that.. Good luck Jo On 3/1/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Hi. I am running Continuum as a service. I put in active profile into the settings.xml. I put this into ~/.m2/settings.xml, maven_home/conf, but no success. How else can I start Continuum and have this work? Please help. -Original Message- From: Jo Vandermeeren [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 6:11 PM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Hi Alexander, When continuum runs maven, maven will look for its settings.xml file in the maven directory of the user that has started the continuum process (~/.m2/settings.xml). Define your profile in settings.xml and specify activation: profile iddev-mine/id activation property namefoo/name valuetrue/value /activation ... /profile Then define the property when you specify the command that continuum should call: mvn -Dfoo=true deploy.. If you want the profile to be active all the time, activate it in the settings.xml file. settings ... activeProfiles activeProfiledev-mine/activeProfile /activeProfiles ... /settings Cheers Jo On 2/28/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: I have a profile called dev-mine which contains version specific information and scm specific information which needs to be loaded during adding the Maven 2 Project POM. How can I add the project and pass the name of the profile with -P dev-mine to be read from the settings.xml file? Also, where should I place the settings.xml file for Continuum to read it? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
RE: Settings.xml not being recognized by Continuum
Hi. I am running Continuum as a service. I put in active profile into the settings.xml. I put this into ~/.m2/settings.xml, maven_home/conf, but no success. How else can I start Continuum and have this work? Please help. -Original Message- From: Jo Vandermeeren [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 6:11 PM To: continuum-users@maven.apache.org Subject: Re: Settings.xml not being recognized by Continuum Hi Alexander, When continuum runs maven, maven will look for its settings.xml file in the maven directory of the user that has started the continuum process (~/.m2/settings.xml). Define your profile in settings.xml and specify activation: profile iddev-mine/id activation property namefoo/name valuetrue/value /activation ... /profile Then define the property when you specify the command that continuum should call: mvn -Dfoo=true deploy.. If you want the profile to be active all the time, activate it in the settings.xml file. settings ... activeProfiles activeProfiledev-mine/activeProfile /activeProfiles ... /settings Cheers Jo On 2/28/07, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: I have a profile called dev-mine which contains version specific information and scm specific information which needs to be loaded during adding the Maven 2 Project POM. How can I add the project and pass the name of the profile with -P dev-mine to be read from the settings.xml file? Also, where should I place the settings.xml file for Continuum to read it? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]