You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Martin Gilday (JIRA)" <ji...@codehaus.org> on 2006/06/16 17:01:41 UTC

[jira] Commented: (CONTINUUM-730) Properties not resolved in SCM

    [ http://jira.codehaus.org/browse/CONTINUUM-730?page=comments#action_67523 ] 

Martin Gilday commented on CONTINUUM-730:
-----------------------------------------

Forgot to mention.  I am loading the settings using the following in my application.xml
{noformat}
 <component>
         <role>org.apache.maven.settings.MavenSettingsBuilder</role>
         <implementation>org.apache.maven.settings.DefaultMavenSettingsBuilder</implementation>
         <configuration>
                 <globalSettingsPath>/usr/maven/maven-2.0.4/conf/settings.xml</globalSettingsPath>
                 <userSettingsPath>/home/continuum/.m2/settings.xml</userSettingsPath>
         </configuration>
 </component>
{noformat}
I can see them being loaded in the logs.

> Properties not resolved in SCM
> ------------------------------
>
>          Key: CONTINUUM-730
>          URL: http://jira.codehaus.org/browse/CONTINUUM-730
>      Project: Continuum
>         Type: Bug

>  Environment: Redhat 4, Continuum 1.03, JDK 1.5.06
>     Reporter: Martin Gilday

>
>
> Properties do not seem to be interpreted when I place them inside a SCM connection.
> My $MAVEN_HOME/conf/settings.xml contains
> {noformat}
> <activeProfiles>
> <activeProfile>property-overrides</activeProfile>
> </activeProfiles>
> {noformat}
> Then in my user settings file (/home/continuum/.m2/settings.xml) contains:
> {noformat}
> <profile>
> <id>property-overrides</id>
> <properties>
> <cvs-user>name</cvs-user>
> <cvs-pass>password</cvs-pass>
> </properties>
> </profile>
> {noformat}
> Finally my pom contains
> {noformat}
> <scm>		
> <developerConnection>scm:cvs:pserver:${cvs-user}:${cvs-pass}@10.0.0.3:/usr/share/cvs/cvsroot:UTL-GeneralUtilities</developerConnection>
> <connection>scm:cvs:pserver:${cvs-user}:${cvs-pass}@10.0.0.3:/usr/share/cvs/cvsroot:UTL-GeneralUtilities</connection>
> </scm>
> {noformat}
> When I run the build from Continuum I recieve the error 
> {noformat}
> Provider message: The cvs command failed.
> Command output: 
> -------------------------------------------------------------------------------
> Fatal error, aborting.
> ${cvs-user}: no such user
> -------------------------------------------------------------------------------
> {noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira