Just tried again by adding the following -Darguments="-s <path to my settings.xml file>"
Does not seem to work, apparently this is caught explicitly by the release plugin, see the warning message. So this seems to be part of the release plugin to prevent that you customize the build. I can understand, because one of the requirements is probably that you must be able to rebuild the jar, with exactly the same parameters. Is preventing an alternate user settings files the best solution? What if the settings.xml file changes (default maven settings.xml)? Maybe I should contact the developers of this plugin, to get a better understanding of it. [INFO] Executing: mvn deploy --no-plugin-updates -s C:\javadevC:\javadev\tools\maven\maven-2.0.4\conf\settings_local.xml -P defaultprofile -DperformRelease=true WARNING: Alternate user settings file: C:\javadevC:\javadev\tools\maven\maven-2.0.4\conf\settings_local.xml is invalid. Using default path. [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building MyProject Common [INFO] task-segment: [deploy] [INFO] ---------------------------------------------------------------------------- [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:checking for updates from central [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-resources-plugin' could not be retrieved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21 seconds [INFO] Finished at: Mon May 29 14:20:20 CEST 2006 [INFO] Final Memory: 1M/3M [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing Maven: Maven execution failed, exit code: '1' [INFO] ------------------------------------------------------------------------