Hi All, I was uploading pig artifacts to my private repository. I assume I just need to generate ~/.m2/settings.xml and run target mvn-deploy. Here is one server seting in settings.xml: <server> <id>private-open-source-components-snapshots</id> <username>deployment</username> <password> {Q77+1Rnh7XUHUVXiCTPIBAu5VhTDyitH9ow530M0n58WpIqJAN11XYqm4HwAKKJgCPT9TjQPn6FurIeehQzqd4X+HYi9/FWnxL9P9BVD9Vs//B+6Cn3fdB4O5e8GgEvY} </password> </server>
Before running "mvn-deploy". I also update "asfrepo" and "asfsnapshotrepo" to my local private repository. <property name="asfrepo" value="http://private:8081/nexus"/> <property name="asfsnapshotrepo" value="${asfrepo}/content/repositories/private-open-source-components-snapshots"/> But I alwayse failed with "401 error" like following. /root/ff/git/pig/build.xml:1285: Error deploying artifact 'org.apache.pig:pig:jar': Error deploying artifact: Failed to transfer file: http://private:8081/nexus/content/repositories/private-open-source-components-snapshots/org/apache/pig/pig/0.13.1-SNAPSHOT/pig-0.13.1-20140814.080436-1.jar. Return code is: 401 With the same settings.xml, I can upload artifacts generated via "mvn", like avro. So maybe the problem is not at setting.xml. Is there any step I missed? Please give your suggestions. Thanks FangFang