It might be a bug -- sounds like the localRepo setting cannot be overridden on the CLI like many/most other properties. This may be on purpose, or it may be an accident, unsure.
Check JIRA for a bug report/enhancement request and vote/watch it, or file one if you can't find one already posted. Wayne On 9/10/06, jiangshachina <[EMAIL PROTECTED]> wrote:
Hello, I have set localRepository parameter in Maven_Home/conf/settings.xml. For install files, I use command mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> Defaultly, the file will be install to local repository. If I use command mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> -DlocalRepository=<another-local-repository> I still install files to the local repo set in settings.xml, but the another-local-repository set in the upper command. -- View this message in context: http://www.nabble.com/Install-file-to-other-repositories--tf2249926.html#a6240205 Sent from the Maven - Users forum at Nabble.com. --------------------------------------------------------------------- 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]