You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Michael Böckling <mi...@giniality.com> on 2006/02/09 11:20:39 UTC

How to make Continuum respect maven installation-wide settings.xml?

Hi,

in have a settings.xml in my maven installation directory where I define 
an active profile:
<activeProfile>dev</activeProfile>
My SCM information in the POM depend on a profile being activated, 
because I want to be able to switch between different repository roots 
depending on the environment (dev/int/prod).
When I try to import a project to Continuum, the profile does not get 
activated, because the settings.xml in the Maven installation directory 
is obviously not being read, resulting in a SCM url like this: 
"${curr-scm-root}Build/Parent-Project". The property ${curr-scm-root}is 
not interpolated, because the profile is not activated.
Is there a way to configure Continuum such that it reads 
maven-2.0.2/conf/settings.xml, or must I copy settings.xml somewhere in 
my continuum installation so it gets picked up?

Regards,
    Michael

-- 
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
michael.boeckling@giniality.ch; http://www.giniality.com/



Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Christian Mouttet <ch...@it2media.de>.
Wow, cool!
That sounds very nice.

-chris

Am Donnerstag, 9. Februar 2006 17:36 schrieb Emmanuel Venisse:
> Seems to be fixed locally. I'll can't full test with proxy but seems ok.
> profiles and mirrors are ok.
>
> Need to do some more tests before to commit fixes.
>
> Emmanuel


**********************************************************************
Diese E-Mail wurde auf Viren ueberprueft.
mailsweeper@it2media.de
**********************************************************************

Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Emmanuel Venisse <em...@venisse.net>.
Seems to be fixed locally. I'll can't full test with proxy but seems ok. profiles and mirrors are ok.

Need to do some more tests before to commit fixes.

Emmanuel

Christian Mouttet a écrit :
> Hi Michael,
> 
> my settings.xml is in Emmanuels' hands too :-)
> 
> -chris
> 
> Am Donnerstag, 9. Februar 2006 14:30 schrieb Michael Böckling:
> 
>>FYI, I just sent a testcase to Emmanuel. Would be great if this could
>>indeed be fixed.
>>
>>@chris: Thanks for the hint! I'm running SuSE 9.2, using jdk 1.5, maven
>>2.0.2 and continuum 1.0.2. Never even dreamt about that this problem
>>could be OS dependent....
>>
>>Regards,
>>    Michael
> 
> 
> 
> **********************************************************************
> Diese E-Mail wurde auf Viren ueberprueft.
> mailsweeper@it2media.de
> **********************************************************************
> 
> 
> 


Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Christian Mouttet <ch...@it2media.de>.
Hi Michael,

my settings.xml is in Emmanuels' hands too :-)

-chris

Am Donnerstag, 9. Februar 2006 14:30 schrieb Michael Böckling:
> FYI, I just sent a testcase to Emmanuel. Would be great if this could
> indeed be fixed.
>
> @chris: Thanks for the hint! I'm running SuSE 9.2, using jdk 1.5, maven
> 2.0.2 and continuum 1.0.2. Never even dreamt about that this problem
> could be OS dependent....
>
> Regards,
>     Michael


**********************************************************************
Diese E-Mail wurde auf Viren ueberprueft.
mailsweeper@it2media.de
**********************************************************************

Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Christian Mouttet <ch...@it2media.de>.
Great job, thank's. I'm looking forward to download 1.0.3.

-chris

Am Donnerstag, 9. Februar 2006 14:44 schrieb Emmanuel Venisse:
> My tests on Fedora was only with a new localRepository in continuum
> settings file, but i'm pretty sure it doesn't work too with profile and
> proxy. Will be fix in 1.0.3
>
> http://jira.codehaus.org/browse/CONTINUUM-590
>
> Emmanuel


**********************************************************************
Diese E-Mail wurde auf Viren ueberprueft.
mailsweeper@it2media.de
**********************************************************************

Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Emmanuel Venisse <em...@venisse.net>.
Continuum 1.0.3 will be release normally before end of Q1

Emmanuel

Michael Böckling a écrit :
> Thanks a lot for your effort Emmanuel!
> Is there an ETA for Continuum 1.0.3? I could temporarily work around 
> this issue, but I'd rather not want to...
> 
> Michael
> 
> 
>> My tests on Fedora was only with a new localRepository in continuum 
>> settings file, but i'm pretty sure it doesn't work too with profile 
>> and proxy. Will be fix in 1.0.3
>>
>> http://jira.codehaus.org/browse/CONTINUUM-590
>>
>> Emmanuel
>>
>> Michael Böckling a écrit :
>>
>>> FYI, I just sent a testcase to Emmanuel. Would be great if this could 
>>> indeed be fixed.
>>>
>>> @chris: Thanks for the hint! I'm running SuSE 9.2, using jdk 1.5, 
>>> maven 2.0.2 and continuum 1.0.2. Never even dreamt about that this 
>>> problem could be OS dependent....
>>>
>>> Regards,
>>>    Michael
>>>
>>>
>>>> I think i found the pb in Continuum.
>>>> If someone can send me sample files with profiles and or proxy 
>>>> settings, i'll can continue to investigate and resolve this problem
>>>>
>>>> Emmanuel
>>>>
>>>> Emmanuel Venisse a écrit :
>>>>
>>>>> Ok, seems to be a bug somewhere.
>>>>>
>>>>> Michael, can we have a little settings.xml with an active profile 
>>>>> and a pom that need a resolution? It will be perhaps more easy to 
>>>>> track the bug.
>>>>>
>>>>> Emmanuel
>>>>>
>>>>> Christian Mouttet a écrit :
>>>>>
>>>>>> Grüetzi Michael,
>>>>>>
>>>>>> it seems that you have the same problem as I have. You may take a 
>>>>>> look at http://jira.codehaus.org/browse/CONTINUUM-488 where a lot 
>>>>>> of comments and trials are listed.
>>>>>>
>>>>>> What's your system? If Linux - what distribution? Emmanuel 
>>>>>> sucessfully tested it with Fedora 4. For my SuSE SLES-9 it's not 
>>>>>> running.
>>>>>>
>>>>>> -chris
>>>>>>
>>>>>> Am Donnerstag, 9. Februar 2006 12:02 schrieb Michael Böckling:
>>>>>>
>>>>>>> Thank you Emmanuel for your help, but unfortunately, this isn't 
>>>>>>> working,
>>>>>>> it still says "${curr-scm-root}Build/Parent-Project" in the 
>>>>>>> Continuum
>>>>>>> project info page.
>>>>>>> When I go to 
>>>>>>> /opt/continuum-1.0.2/apps/continuum/working-directory/6817
>>>>>>> and type "mvn help:effective-pom", everything looks right, the 
>>>>>>> element
>>>>>>> "project.scm.connection" is properly interpolated. Could it be that
>>>>>>> Continuum does not interpolate pom values upon project import?
>>>>>>>
>>>>>>> Regards,
>>>>>>>    Michael
>>>>>>>
>>>>>>>
>>>>>>>> You must copy your settings.xml in
>>>>>>>> ${continuum.home}/bin/YOUR_OS/conf/settings.xml.
>>>>>>>> Absolute path of settings.xml is written in your continuum logs.
>>>>>>>>
>>>>>>>> Why don't you define it in ${user.home}/.m2/settings.xml?
>>>>>>>>
>>>>>>>> Emmanuel
>>>>>>>>
>>>>>>>> Michael Böckling a écrit :
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> in have a settings.xml in my maven installation directory where I
>>>>>>>>> define an active profile:
>>>>>>>>> <activeProfile>dev</activeProfile>
>>>>>>>>> My SCM information in the POM depend on a profile being activated,
>>>>>>>>> because I want to be able to switch between different repository
>>>>>>>>> roots depending on the environment (dev/int/prod).
>>>>>>>>> When I try to import a project to Continuum, the profile does 
>>>>>>>>> not get
>>>>>>>>> activated, because the settings.xml in the Maven installation
>>>>>>>>> directory is obviously not being read, resulting in a SCM url like
>>>>>>>>> this: "${curr-scm-root}Build/Parent-Project". The property
>>>>>>>>> ${curr-scm-root}is not interpolated, because the profile is not
>>>>>>>>> activated.
>>>>>>>>> Is there a way to configure Continuum such that it reads
>>>>>>>>> maven-2.0.2/conf/settings.xml, or must I copy settings.xml 
>>>>>>>>> somewhere
>>>>>>>>> in my continuum installation so it gets picked up?
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>>   Michael--
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>> Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
>>> P: +41 61 226 99 63 - F: +41 61 226 99 69
>>> michael.boeckling@giniality.ch; http://www.giniality.com/
>>
>>


Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Michael Böckling <mi...@giniality.com>.
Thanks a lot for your effort Emmanuel!
Is there an ETA for Continuum 1.0.3? I could temporarily work around 
this issue, but I'd rather not want to...

Michael


> My tests on Fedora was only with a new localRepository in continuum 
> settings file, but i'm pretty sure it doesn't work too with profile 
> and proxy. Will be fix in 1.0.3
>
> http://jira.codehaus.org/browse/CONTINUUM-590
>
> Emmanuel
>
> Michael Böckling a écrit :
>
>> FYI, I just sent a testcase to Emmanuel. Would be great if this could 
>> indeed be fixed.
>>
>> @chris: Thanks for the hint! I'm running SuSE 9.2, using jdk 1.5, 
>> maven 2.0.2 and continuum 1.0.2. Never even dreamt about that this 
>> problem could be OS dependent....
>>
>> Regards,
>>    Michael
>>
>>
>>> I think i found the pb in Continuum.
>>> If someone can send me sample files with profiles and or proxy 
>>> settings, i'll can continue to investigate and resolve this problem
>>>
>>> Emmanuel
>>>
>>> Emmanuel Venisse a écrit :
>>>
>>>> Ok, seems to be a bug somewhere.
>>>>
>>>> Michael, can we have a little settings.xml with an active profile 
>>>> and a pom that need a resolution? It will be perhaps more easy to 
>>>> track the bug.
>>>>
>>>> Emmanuel
>>>>
>>>> Christian Mouttet a écrit :
>>>>
>>>>> Grüetzi Michael,
>>>>>
>>>>> it seems that you have the same problem as I have. You may take a 
>>>>> look at http://jira.codehaus.org/browse/CONTINUUM-488 where a lot 
>>>>> of comments and trials are listed.
>>>>>
>>>>> What's your system? If Linux - what distribution? Emmanuel 
>>>>> sucessfully tested it with Fedora 4. For my SuSE SLES-9 it's not 
>>>>> running.
>>>>>
>>>>> -chris
>>>>>
>>>>> Am Donnerstag, 9. Februar 2006 12:02 schrieb Michael Böckling:
>>>>>
>>>>>> Thank you Emmanuel for your help, but unfortunately, this isn't 
>>>>>> working,
>>>>>> it still says "${curr-scm-root}Build/Parent-Project" in the 
>>>>>> Continuum
>>>>>> project info page.
>>>>>> When I go to 
>>>>>> /opt/continuum-1.0.2/apps/continuum/working-directory/6817
>>>>>> and type "mvn help:effective-pom", everything looks right, the 
>>>>>> element
>>>>>> "project.scm.connection" is properly interpolated. Could it be that
>>>>>> Continuum does not interpolate pom values upon project import?
>>>>>>
>>>>>> Regards,
>>>>>>    Michael
>>>>>>
>>>>>>
>>>>>>> You must copy your settings.xml in
>>>>>>> ${continuum.home}/bin/YOUR_OS/conf/settings.xml.
>>>>>>> Absolute path of settings.xml is written in your continuum logs.
>>>>>>>
>>>>>>> Why don't you define it in ${user.home}/.m2/settings.xml?
>>>>>>>
>>>>>>> Emmanuel
>>>>>>>
>>>>>>> Michael Böckling a écrit :
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> in have a settings.xml in my maven installation directory where I
>>>>>>>> define an active profile:
>>>>>>>> <activeProfile>dev</activeProfile>
>>>>>>>> My SCM information in the POM depend on a profile being activated,
>>>>>>>> because I want to be able to switch between different repository
>>>>>>>> roots depending on the environment (dev/int/prod).
>>>>>>>> When I try to import a project to Continuum, the profile does 
>>>>>>>> not get
>>>>>>>> activated, because the settings.xml in the Maven installation
>>>>>>>> directory is obviously not being read, resulting in a SCM url like
>>>>>>>> this: "${curr-scm-root}Build/Parent-Project". The property
>>>>>>>> ${curr-scm-root}is not interpolated, because the profile is not
>>>>>>>> activated.
>>>>>>>> Is there a way to configure Continuum such that it reads
>>>>>>>> maven-2.0.2/conf/settings.xml, or must I copy settings.xml 
>>>>>>>> somewhere
>>>>>>>> in my continuum installation so it gets picked up?
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>>   Michael--
>>>>>>>
>>>>>>>
>>>>>>>
>> Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
>> P: +41 61 226 99 63 - F: +41 61 226 99 69
>> michael.boeckling@giniality.ch; http://www.giniality.com/
>
-- 
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
michael.boeckling@giniality.ch; http://www.giniality.com/



Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Emmanuel Venisse <em...@venisse.net>.
My tests on Fedora was only with a new localRepository in continuum settings file, but i'm pretty 
sure it doesn't work too with profile and proxy. Will be fix in 1.0.3

http://jira.codehaus.org/browse/CONTINUUM-590

Emmanuel

Michael Böckling a écrit :
> FYI, I just sent a testcase to Emmanuel. Would be great if this could 
> indeed be fixed.
> 
> @chris: Thanks for the hint! I'm running SuSE 9.2, using jdk 1.5, maven 
> 2.0.2 and continuum 1.0.2. Never even dreamt about that this problem 
> could be OS dependent....
> 
> Regards,
>    Michael
> 
> 
>> I think i found the pb in Continuum.
>> If someone can send me sample files with profiles and or proxy 
>> settings, i'll can continue to investigate and resolve this problem
>>
>> Emmanuel
>>
>> Emmanuel Venisse a écrit :
>>
>>> Ok, seems to be a bug somewhere.
>>>
>>> Michael, can we have a little settings.xml with an active profile and 
>>> a pom that need a resolution? It will be perhaps more easy to track 
>>> the bug.
>>>
>>> Emmanuel
>>>
>>> Christian Mouttet a écrit :
>>>
>>>> Grüetzi Michael,
>>>>
>>>> it seems that you have the same problem as I have. You may take a 
>>>> look at http://jira.codehaus.org/browse/CONTINUUM-488 where a lot of 
>>>> comments and trials are listed.
>>>>
>>>> What's your system? If Linux - what distribution? Emmanuel 
>>>> sucessfully tested it with Fedora 4. For my SuSE SLES-9 it's not 
>>>> running.
>>>>
>>>> -chris
>>>>
>>>> Am Donnerstag, 9. Februar 2006 12:02 schrieb Michael Böckling:
>>>>
>>>>> Thank you Emmanuel for your help, but unfortunately, this isn't 
>>>>> working,
>>>>> it still says "${curr-scm-root}Build/Parent-Project" in the Continuum
>>>>> project info page.
>>>>> When I go to 
>>>>> /opt/continuum-1.0.2/apps/continuum/working-directory/6817
>>>>> and type "mvn help:effective-pom", everything looks right, the element
>>>>> "project.scm.connection" is properly interpolated. Could it be that
>>>>> Continuum does not interpolate pom values upon project import?
>>>>>
>>>>> Regards,
>>>>>    Michael
>>>>>
>>>>>
>>>>>> You must copy your settings.xml in
>>>>>> ${continuum.home}/bin/YOUR_OS/conf/settings.xml.
>>>>>> Absolute path of settings.xml is written in your continuum logs.
>>>>>>
>>>>>> Why don't you define it in ${user.home}/.m2/settings.xml?
>>>>>>
>>>>>> Emmanuel
>>>>>>
>>>>>> Michael Böckling a écrit :
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> in have a settings.xml in my maven installation directory where I
>>>>>>> define an active profile:
>>>>>>> <activeProfile>dev</activeProfile>
>>>>>>> My SCM information in the POM depend on a profile being activated,
>>>>>>> because I want to be able to switch between different repository
>>>>>>> roots depending on the environment (dev/int/prod).
>>>>>>> When I try to import a project to Continuum, the profile does not 
>>>>>>> get
>>>>>>> activated, because the settings.xml in the Maven installation
>>>>>>> directory is obviously not being read, resulting in a SCM url like
>>>>>>> this: "${curr-scm-root}Build/Parent-Project". The property
>>>>>>> ${curr-scm-root}is not interpolated, because the profile is not
>>>>>>> activated.
>>>>>>> Is there a way to configure Continuum such that it reads
>>>>>>> maven-2.0.2/conf/settings.xml, or must I copy settings.xml somewhere
>>>>>>> in my continuum installation so it gets picked up?
>>>>>>>
>>>>>>> Regards,
>>>>>>>   Michael--
>>>>>>
>>>>>>
> Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
> P: +41 61 226 99 63 - F: +41 61 226 99 69
> michael.boeckling@giniality.ch; http://www.giniality.com/
> 
> 
> 
> 
> 


Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Michael Böckling <mi...@giniality.com>.
FYI, I just sent a testcase to Emmanuel. Would be great if this could 
indeed be fixed.

@chris: Thanks for the hint! I'm running SuSE 9.2, using jdk 1.5, maven 
2.0.2 and continuum 1.0.2. Never even dreamt about that this problem 
could be OS dependent....

Regards,
    Michael


> I think i found the pb in Continuum.
> If someone can send me sample files with profiles and or proxy 
> settings, i'll can continue to investigate and resolve this problem
>
> Emmanuel
>
> Emmanuel Venisse a écrit :
>
>> Ok, seems to be a bug somewhere.
>>
>> Michael, can we have a little settings.xml with an active profile and 
>> a pom that need a resolution? It will be perhaps more easy to track 
>> the bug.
>>
>> Emmanuel
>>
>> Christian Mouttet a écrit :
>>
>>> Grüetzi Michael,
>>>
>>> it seems that you have the same problem as I have. You may take a 
>>> look at http://jira.codehaus.org/browse/CONTINUUM-488 where a lot of 
>>> comments and trials are listed.
>>>
>>> What's your system? If Linux - what distribution? Emmanuel 
>>> sucessfully tested it with Fedora 4. For my SuSE SLES-9 it's not 
>>> running.
>>>
>>> -chris
>>>
>>> Am Donnerstag, 9. Februar 2006 12:02 schrieb Michael Böckling:
>>>
>>>> Thank you Emmanuel for your help, but unfortunately, this isn't 
>>>> working,
>>>> it still says "${curr-scm-root}Build/Parent-Project" in the Continuum
>>>> project info page.
>>>> When I go to 
>>>> /opt/continuum-1.0.2/apps/continuum/working-directory/6817
>>>> and type "mvn help:effective-pom", everything looks right, the element
>>>> "project.scm.connection" is properly interpolated. Could it be that
>>>> Continuum does not interpolate pom values upon project import?
>>>>
>>>> Regards,
>>>>    Michael
>>>>
>>>>
>>>>> You must copy your settings.xml in
>>>>> ${continuum.home}/bin/YOUR_OS/conf/settings.xml.
>>>>> Absolute path of settings.xml is written in your continuum logs.
>>>>>
>>>>> Why don't you define it in ${user.home}/.m2/settings.xml?
>>>>>
>>>>> Emmanuel
>>>>>
>>>>> Michael Böckling a écrit :
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> in have a settings.xml in my maven installation directory where I
>>>>>> define an active profile:
>>>>>> <activeProfile>dev</activeProfile>
>>>>>> My SCM information in the POM depend on a profile being activated,
>>>>>> because I want to be able to switch between different repository
>>>>>> roots depending on the environment (dev/int/prod).
>>>>>> When I try to import a project to Continuum, the profile does not 
>>>>>> get
>>>>>> activated, because the settings.xml in the Maven installation
>>>>>> directory is obviously not being read, resulting in a SCM url like
>>>>>> this: "${curr-scm-root}Build/Parent-Project". The property
>>>>>> ${curr-scm-root}is not interpolated, because the profile is not
>>>>>> activated.
>>>>>> Is there a way to configure Continuum such that it reads
>>>>>> maven-2.0.2/conf/settings.xml, or must I copy settings.xml somewhere
>>>>>> in my continuum installation so it gets picked up?
>>>>>>
>>>>>> Regards,
>>>>>>   Michael--
>>>>>
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
michael.boeckling@giniality.ch; http://www.giniality.com/



Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Emmanuel Venisse <em...@venisse.net>.
I think i found the pb in Continuum.
If someone can send me sample files with profiles and or proxy settings, i'll can continue to 
investigate and resolve this problem

Emmanuel

Emmanuel Venisse a écrit :
> Ok, seems to be a bug somewhere.
> 
> Michael, can we have a little settings.xml with an active profile and a 
> pom that need a resolution? It will be perhaps more easy to track the bug.
> 
> Emmanuel
> 
> Christian Mouttet a écrit :
> 
>> Grüetzi Michael,
>>
>> it seems that you have the same problem as I have. You may take a look 
>> at http://jira.codehaus.org/browse/CONTINUUM-488 where a lot of 
>> comments and trials are listed.
>>
>> What's your system? If Linux - what distribution? Emmanuel sucessfully 
>> tested it with Fedora 4. For my SuSE SLES-9 it's not running.
>>
>> -chris
>>
>> Am Donnerstag, 9. Februar 2006 12:02 schrieb Michael Böckling:
>>
>>> Thank you Emmanuel for your help, but unfortunately, this isn't working,
>>> it still says "${curr-scm-root}Build/Parent-Project" in the Continuum
>>> project info page.
>>> When I go to /opt/continuum-1.0.2/apps/continuum/working-directory/6817
>>> and type "mvn help:effective-pom", everything looks right, the element
>>> "project.scm.connection" is properly interpolated. Could it be that
>>> Continuum does not interpolate pom values upon project import?
>>>
>>> Regards,
>>>    Michael
>>>
>>>
>>>> You must copy your settings.xml in
>>>> ${continuum.home}/bin/YOUR_OS/conf/settings.xml.
>>>> Absolute path of settings.xml is written in your continuum logs.
>>>>
>>>> Why don't you define it in ${user.home}/.m2/settings.xml?
>>>>
>>>> Emmanuel
>>>>
>>>> Michael Böckling a écrit :
>>>>
>>>>> Hi,
>>>>>
>>>>> in have a settings.xml in my maven installation directory where I
>>>>> define an active profile:
>>>>> <activeProfile>dev</activeProfile>
>>>>> My SCM information in the POM depend on a profile being activated,
>>>>> because I want to be able to switch between different repository
>>>>> roots depending on the environment (dev/int/prod).
>>>>> When I try to import a project to Continuum, the profile does not get
>>>>> activated, because the settings.xml in the Maven installation
>>>>> directory is obviously not being read, resulting in a SCM url like
>>>>> this: "${curr-scm-root}Build/Parent-Project". The property
>>>>> ${curr-scm-root}is not interpolated, because the profile is not
>>>>> activated.
>>>>> Is there a way to configure Continuum such that it reads
>>>>> maven-2.0.2/conf/settings.xml, or must I copy settings.xml somewhere
>>>>> in my continuum installation so it gets picked up?
>>>>>
>>>>> Regards,
>>>>>   Michael
>>
>>
>>
>>
>> **********************************************************************
>> Diese E-Mail wurde auf Viren ueberprueft.
>> mailsweeper@it2media.de
>> **********************************************************************
>>
>>
>>
> 
> 
> 
> 


Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Emmanuel Venisse <em...@venisse.net>.
Ok, seems to be a bug somewhere.

Michael, can we have a little settings.xml with an active profile and a pom that need a resolution? 
It will be perhaps more easy to track the bug.

Emmanuel

Christian Mouttet a écrit :
> Grüetzi Michael,
> 
> it seems that you have the same problem as I have. You may take a look at 
> http://jira.codehaus.org/browse/CONTINUUM-488 where a lot of comments and 
> trials are listed.
> 
> What's your system? If Linux - what distribution? Emmanuel sucessfully tested 
> it with Fedora 4. For my SuSE SLES-9 it's not running.
> 
> -chris
> 
> Am Donnerstag, 9. Februar 2006 12:02 schrieb Michael Böckling:
> 
>>Thank you Emmanuel for your help, but unfortunately, this isn't working,
>>it still says "${curr-scm-root}Build/Parent-Project" in the Continuum
>>project info page.
>>When I go to /opt/continuum-1.0.2/apps/continuum/working-directory/6817
>>and type "mvn help:effective-pom", everything looks right, the element
>>"project.scm.connection" is properly interpolated. Could it be that
>>Continuum does not interpolate pom values upon project import?
>>
>>Regards,
>>    Michael
>>
>>
>>>You must copy your settings.xml in
>>>${continuum.home}/bin/YOUR_OS/conf/settings.xml.
>>>Absolute path of settings.xml is written in your continuum logs.
>>>
>>>Why don't you define it in ${user.home}/.m2/settings.xml?
>>>
>>>Emmanuel
>>>
>>>Michael Böckling a écrit :
>>>
>>>>Hi,
>>>>
>>>>in have a settings.xml in my maven installation directory where I
>>>>define an active profile:
>>>><activeProfile>dev</activeProfile>
>>>>My SCM information in the POM depend on a profile being activated,
>>>>because I want to be able to switch between different repository
>>>>roots depending on the environment (dev/int/prod).
>>>>When I try to import a project to Continuum, the profile does not get
>>>>activated, because the settings.xml in the Maven installation
>>>>directory is obviously not being read, resulting in a SCM url like
>>>>this: "${curr-scm-root}Build/Parent-Project". The property
>>>>${curr-scm-root}is not interpolated, because the profile is not
>>>>activated.
>>>>Is there a way to configure Continuum such that it reads
>>>>maven-2.0.2/conf/settings.xml, or must I copy settings.xml somewhere
>>>>in my continuum installation so it gets picked up?
>>>>
>>>>Regards,
>>>>   Michael
> 
> 
> 
> **********************************************************************
> Diese E-Mail wurde auf Viren ueberprueft.
> mailsweeper@it2media.de
> **********************************************************************
> 
> 
> 


Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Christian Mouttet <ch...@it2media.de>.
Grüetzi Michael,

it seems that you have the same problem as I have. You may take a look at 
http://jira.codehaus.org/browse/CONTINUUM-488 where a lot of comments and 
trials are listed.

What's your system? If Linux - what distribution? Emmanuel sucessfully tested 
it with Fedora 4. For my SuSE SLES-9 it's not running.

-chris

Am Donnerstag, 9. Februar 2006 12:02 schrieb Michael Böckling:
> Thank you Emmanuel for your help, but unfortunately, this isn't working,
> it still says "${curr-scm-root}Build/Parent-Project" in the Continuum
> project info page.
> When I go to /opt/continuum-1.0.2/apps/continuum/working-directory/6817
> and type "mvn help:effective-pom", everything looks right, the element
> "project.scm.connection" is properly interpolated. Could it be that
> Continuum does not interpolate pom values upon project import?
>
> Regards,
>     Michael
>
> > You must copy your settings.xml in
> > ${continuum.home}/bin/YOUR_OS/conf/settings.xml.
> > Absolute path of settings.xml is written in your continuum logs.
> >
> > Why don't you define it in ${user.home}/.m2/settings.xml?
> >
> > Emmanuel
> >
> > Michael Böckling a écrit :
> >> Hi,
> >>
> >> in have a settings.xml in my maven installation directory where I
> >> define an active profile:
> >> <activeProfile>dev</activeProfile>
> >> My SCM information in the POM depend on a profile being activated,
> >> because I want to be able to switch between different repository
> >> roots depending on the environment (dev/int/prod).
> >> When I try to import a project to Continuum, the profile does not get
> >> activated, because the settings.xml in the Maven installation
> >> directory is obviously not being read, resulting in a SCM url like
> >> this: "${curr-scm-root}Build/Parent-Project". The property
> >> ${curr-scm-root}is not interpolated, because the profile is not
> >> activated.
> >> Is there a way to configure Continuum such that it reads
> >> maven-2.0.2/conf/settings.xml, or must I copy settings.xml somewhere
> >> in my continuum installation so it gets picked up?
> >>
> >> Regards,
> >>    Michael


**********************************************************************
Diese E-Mail wurde auf Viren ueberprueft.
mailsweeper@it2media.de
**********************************************************************

Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Michael Böckling <mi...@giniality.com>.
Thank you Emmanuel for your help, but unfortunately, this isn't working, 
it still says "${curr-scm-root}Build/Parent-Project" in the Continuum 
project info page.
When I go to /opt/continuum-1.0.2/apps/continuum/working-directory/6817 
and type "mvn help:effective-pom", everything looks right, the element 
"project.scm.connection" is properly interpolated. Could it be that 
Continuum does not interpolate pom values upon project import?

Regards,
    Michael


> You must copy your settings.xml in 
> ${continuum.home}/bin/YOUR_OS/conf/settings.xml.
> Absolute path of settings.xml is written in your continuum logs.
>
> Why don't you define it in ${user.home}/.m2/settings.xml?
>
> Emmanuel
>
> Michael Böckling a écrit :
>
>> Hi,
>>
>> in have a settings.xml in my maven installation directory where I 
>> define an active profile:
>> <activeProfile>dev</activeProfile>
>> My SCM information in the POM depend on a profile being activated, 
>> because I want to be able to switch between different repository 
>> roots depending on the environment (dev/int/prod).
>> When I try to import a project to Continuum, the profile does not get 
>> activated, because the settings.xml in the Maven installation 
>> directory is obviously not being read, resulting in a SCM url like 
>> this: "${curr-scm-root}Build/Parent-Project". The property 
>> ${curr-scm-root}is not interpolated, because the profile is not 
>> activated.
>> Is there a way to configure Continuum such that it reads 
>> maven-2.0.2/conf/settings.xml, or must I copy settings.xml somewhere 
>> in my continuum installation so it gets picked up?
>>
>> Regards,
>>    Michael
>
-- 
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
michael.boeckling@giniality.ch; http://www.giniality.com/



Re: How to make Continuum respect maven installation-wide settings.xml?

Posted by Emmanuel Venisse <em...@venisse.net>.
You must copy your settings.xml in ${continuum.home}/bin/YOUR_OS/conf/settings.xml.
Absolute path of settings.xml is written in your continuum logs.

Why don't you define it in ${user.home}/.m2/settings.xml?

Emmanuel

Michael Böckling a écrit :
> Hi,
> 
> in have a settings.xml in my maven installation directory where I define 
> an active profile:
> <activeProfile>dev</activeProfile>
> My SCM information in the POM depend on a profile being activated, 
> because I want to be able to switch between different repository roots 
> depending on the environment (dev/int/prod).
> When I try to import a project to Continuum, the profile does not get 
> activated, because the settings.xml in the Maven installation directory 
> is obviously not being read, resulting in a SCM url like this: 
> "${curr-scm-root}Build/Parent-Project". The property ${curr-scm-root}is 
> not interpolated, because the profile is not activated.
> Is there a way to configure Continuum such that it reads 
> maven-2.0.2/conf/settings.xml, or must I copy settings.xml somewhere in 
> my continuum installation so it gets picked up?
> 
> Regards,
>    Michael
>