I found following problems in uploadArchives with maven plugin: 1, uploadArchives should not do local install before upload, but it does 2, during install into maven localRepository, it could not understand ${user.home} environment variable in the maven settings.xml, which caused wrong folder being used 3, If localRepository both defined in M2_HOME/conf/setttings.xml and user.home/.m2/settings.xml, the one from M2_HOME read twice and over-ride the value from user’s settings.xml.
As I could not change the localRepository in M2_HOME/conf/setttings.xml, I could not do the upload!
I am using gradle 1.10