Hi Julian,

Thank you. Good pointer.

I had a UTF-8 char in my password. To identify it I did echo <password> |
od -a which showed up 2 ? chars. Once that was removed mvn deploy works.
There must be a bug in maven relating to reading UTF8 either from the
command line or a file. The terminal is UTF-8 capable as echo <password> |
od -x dumps the correct UTF-8 bytes.

For others, and search engines, the symptoms were
mvn deploy fails with "Return code is: 401, ReasonPhrase: Unauthorized"
logging into https://repository.apache.org via a web browser works.

Best Regards
Ian

On 12 September 2016 at 20:57, Julian Sedding <[email protected]> wrote:

> Hi Ian
>
> I once had issues with a particular password and Maven and Nexus, IIRC
> because of some special characters. After changing the password it
> worked again. Maybe worth a try?
>
> Regards
> Julian
>
> On Mon, Sep 12, 2016 at 4:07 PM, Ian Boston <[email protected]> wrote:
> > Hi,
> >
> > On 12 September 2016 at 14:53, Robert Munteanu <[email protected]>
> wrote:
> >
> >> On Mon, 2016-09-12 at 12:52 +0100, Ian Boston wrote:
> >> > Hi,
> >> > I haven't done a release for years and so my setup may be out. I am
> >> > following [1] but hitting some problems. I am wondering if anyone
> >> > else has
> >> > had problems.
> >> >
> >> > Issues I am seeing 2 problems, possibly related
> >> >
> >> > gpg signing fails if I use an encrypted passphrase in setting.xml. It
> >> > works
> >> > ok if I use a clear text passphrase. The maven encrypted password
> >> > feature
> >> > doesn't provide any feedback and I am not seeing any errors relating
> >> > to it.
> >> > I can work round this issue, but would prefer to fix it. I have
> >> > already
> >> > tried re-creating my mvn master password, and re-encrypting the gpg
> >> > passphrase.
> >>
> >> FWIW I don't seet a passphrase at all and wait for the gpg-agent
> >> process to prompt for one (running Linux, but Macs should be close
> >> enough ). It only does so once per login session if I choose to cache
> >> it.
> >>
> >>
> > I'll give gpg-agent a go using the config Bertrand shared.
> >
> >
> >> >
> >> > mvn deploy fails for a snapshot with a 401. I can login to the UI at
> >> > https://repository.apache.org/ with no issues. Both encrypted and
> >> > clear
> >> > text passwords fail for mvn deploy. IIUC 401 indicates AuthN fail
> >> > rather
> >> > than AuthZ fail.
> >>
> >> Do you see the 'Staging Repositories' menu item once you log in?
> >>
> >
> >
> > yes, and I can navigate to the snapshots including an open one for the
> > teleporter bundles.
> >
> >
> > Best Regards
> > Ian
> >
> >
> >>
> >> Robert
> >>
>

Reply via email to