[ http://jira.codehaus.org/browse/SCM-241?page=comments#action_76819 ] Dan Tran commented on SCM-241: ------------------------------
mvn -s settings-file scm:bootstrap works at first, but internally scm:bootstrap also invoke a shell to run the goal but it does not include the settings option. Work around is to include "-s settings-file" to your %BUILD_GOALLS% > scm:bootstrap does not propogate --settings or -s command line option > --------------------------------------------------------------------- > > Key: SCM-241 > URL: http://jira.codehaus.org/browse/SCM-241 > Project: Maven SCM > Issue Type: Bug > Components: maven-plugin > Environment: Windows XP Professional, Maven 2.0.4, mvn.bat > Reporter: L Northrop > Priority: Minor > > Local override of settings file using either -s or --settings option on the > DOS command line is not propogated to build. For example > mvn --settings my_settings.xml scm:bootstrap "-DcheckoutDirectory=%WKDIR%" > "-DworkingDirectory=%WKDIR%" > -DconnectionUrl=scm:cvs:pserver:%CVS_USERNAME%:@%CVS_SERVER%:%CVS_ROOT%:%CVS_MODULE% > -Dgoals=%BUILD_GOALS% -Dtag=%CVS_BRANCH% > Following scm:bootstrap checkout the subsequent build is not picking up the > settings from the specified settings file. -- 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