Hi, FangFang, Unfortunately only Pig committers can publish Apache snapshot.
Thanks, Daniel On Thu, Aug 14, 2014 at 7:22 PM, lulynn_2008 <lulynn_2...@163.com> wrote: > 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 > > > -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.