You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Mick Knutson <mi...@gmail.com> on 2007/11/28 22:48:35 UTC

[c 1.0-beta-4] Error getting continuum to pick up settings.xml

I have my scm as:

    <scm>
        <connection>${scm.connection}</connection>
        <developerConnection>${scm.connection}</developerConnection>
        <url>${scm.url }</url>
    </scm>


*and in my continuum log I get this error:

*2243808566 [SocketListener0-1] ERROR
org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelper:default
- Cannot build maven project from /opt/continuum-
1.1-beta-3/temp/continuum/viewstore/esp_lynx_dap/esp/dap/pom.xml
(The POM expression: ${scm.connection} could not be evaluated. Reason:
Expression value '${scm.connection}' references itself in '
org.delta.esp:dap:pom:E1B-1.0-SNAPSHOT' .).

But I define these values in my [user hame]/.m2/settings.xml like:

                <scm.connection
>scm:local|/opt/viewstore/esp_lynx_dap/esp|dap</scm.connection>
                <scm.url>scm:local|/opt/viewstore/esp_lynx_dap/esp|dap</scm.url>
etc...

Do I need to define my settings.xml for continuum some place?
I have even tried to create another user with the same name as the user on
my machine that has Maven setup. But that did not seem to help either.
Currently I hardcoded the values into the <scm> tag....


-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---

Re: [c 1.0-beta-4] Error getting continuum to pick up settings.xml

Posted by Dennis Lundberg <de...@apache.org>.
When you use ${scm.connection} in your pom it is a direct reference to 
the <scm>/<connection> element itself. If you want to have a property 
for this, I recommend that you use CamelHump notation instead, like this 
in your pom:

   <scm>
     <connection>${scmConnection}</connection>
     ...

and this in your settings:

   <scmConnection>...</scmConnection>
   ...

Mick Knutson wrote:
> I have my scm as:
> 
>     <scm>
>         <connection>${scm.connection}</connection>
>         <developerConnection>${scm.connection}</developerConnection>
>         <url>${scm.url }</url>
>     </scm>
> 
> 
> *and in my continuum log I get this error:
> 
> *2243808566 [SocketListener0-1] ERROR
> org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelper:default
> - Cannot build maven project from /opt/continuum-
> 1.1-beta-3/temp/continuum/viewstore/esp_lynx_dap/esp/dap/pom.xml
> (The POM expression: ${scm.connection} could not be evaluated. Reason:
> Expression value '${scm.connection}' references itself in '
> org.delta.esp:dap:pom:E1B-1.0-SNAPSHOT' .).
> 
> But I define these values in my [user hame]/.m2/settings.xml like:
> 
>                 <scm.connection
>> scm:local|/opt/viewstore/esp_lynx_dap/esp|dap</scm.connection>
>                 <scm.url>scm:local|/opt/viewstore/esp_lynx_dap/esp|dap</scm.url>
> etc...
> 
> Do I need to define my settings.xml for continuum some place?
> I have even tried to create another user with the same name as the user on
> my machine that has Maven setup. But that did not seem to help either.
> Currently I hardcoded the values into the <scm> tag....
> 
> 


-- 
Dennis Lundberg