Hi Michael, Is your profile "user-properties" actually *active*? mvn help:active-profiles
There are many ways of activating a profile (as described in the maven docs). The most direct one is: mvn -P user-properties ... Regards, Simon On Wed, 2006-04-26 at 10:52 +0200, [EMAIL PROTECTED] wrote: > Hi, > I was trying to replace properties in the settings.xml file as described > in the (really nice) book of mergere, p 205. Unfortunately this doesn't seem > to work for me. > The properties don't get replaced. In the ssh log i see that the user > ${website.username} > tried to log in. > Can anybody tell my why this doesn't work? > > In MAVEN_HOME\conf\settings.xml i have this: > <settings> > <servers> > <server> > <id>website</id> > <username>${website.username}</username> > <password>${website.password}</password> > </server> > </servers> > <activeProfiles> > <activeProfile>user-properties</activeProfile> > </activeProfiles> > </settings> > > In USER_HOME\.m2\settings.xml I have this: > <settings> > <profiles> > <profile> > <properties> > <!-- Login data for deploying the website --> > <website.username>mylogin</website.username> > <website.password>mypassword</website.password> > </properties> > <id>user-properties</id> > </profile> > </profiles> > </settings> > > The output of "mvn help:effective-settings" can be seen below: > > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'help'. > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Patrec Konverter > [INFO] task-segment: [help:effective-settings] > [INFO] > ---------------------------------------------------------------------------- > [INFO] [help:effective-settings] > [INFO] > Effective settings: > > <?xml version="1.0"?><settings> > <localRepository>C:\Dokumente und > Einstellungen\mim.HPLUSDOM\.m2\repository</localRepository> > <servers> > <server> > <username>${website.username}</username> > <password>${website.password}</password> > <id>website</id> > </server> > </servers> > <profiles> > <profile> > <properties> > <website.username>mylogin</website.username> > <website.password>mypassword</website.password> > </properties> > <id>user-properties</id> > </profile> > </profiles> > <activeProfiles> > <activeProfile>user-properties</activeProfile> > </activeProfiles> > </settings> > > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 1 second > [INFO] Finished at: Wed Apr 26 10:49:00 CEST 2006 > [INFO] Final Memory: 2M/5M > [INFO] > ------------------------------------------------------------------------ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]