github / maven-plugins

Official GitHub Maven Plugins
MIT License
584 stars 198 forks source link

Fixes 404 getting user email since specific commit #87

Closed juanplopes closed 3 years ago

juanplopes commented 9 years ago

Since this commit:

https://github.com/github/maven-plugins/commit/66b1470df954651f9bc81d66c9ffde95cd8e3a53#diff-03ee24f45de9344b334ab56fa56a32f9R436

I'm not able to use the plugin anymore. If I revert exactly that line it works fine.

The error message is:

[ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.11:site (default) on project pipes-api: Error retrieving user info: Not Found (404) -> [Help 1]

That also doesn't work with the version in the master.

The error occurs both authenticating via settings.xml and directly in the pom.xml. I'm authenticating to push blobs to a public repository in an organization using my own credentials.

bguerin commented 9 years ago

I had to change the line

if (user.getEmail() != null)

to

if (user.getEmail() != null && !user.getEmail().isEmpty())

to get it to work ...

juanplopes commented 9 years ago

@bguerin Thanks, fixed that and still works for me. :)

jplock commented 8 years ago

I'm running into this problem as well