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 16:59:41 UTC

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

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


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

Posted by "Martin Gilday (JIRA)" <ji...@codehaus.org>.
    [ 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


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

Posted by "Martin Gilday (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-730?page=comments#action_67565 ] 

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

Thank you for such a prompt reply.  Sorry if this was unsuitable for the JIRA.

> 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
>     Assignee: Emmanuel Venisse

>
>
> 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


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

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-730?page=all ]
     
Emmanuel Venisse closed CONTINUUM-730:
--------------------------------------

     Assign To: Emmanuel Venisse
    Resolution: Won't Fix

> 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
>     Assignee: Emmanuel Venisse

>
>
> 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


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

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-730?page=comments#action_67528 ] 

Emmanuel Venisse commented on CONTINUUM-730:
--------------------------------------------

the project (and profiles) are read on each build, but in your case, when you added the project the first time, properties weren't read, so continuum store data with non interpolated scm connection string.
The scm connection string is used for run an update command and before to reread the pom, so in your case, database contains always the non interpolated value, it's why you need to add the project in continuum after the written of profiles in settings.xml

> 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


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

Posted by "Martin Gilday (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-730?page=comments#action_67526 ] 

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

It seems that if I remove the project and then readd it then it will find the settings.  Are properties only read once when a project is first loaded?

> 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