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