github / maven-plugins

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

Error deploying when email address not public #77

Closed ghost closed 9 years ago

ghost commented 9 years ago

The plugin fails to deploy to the mvn-repo branch unless the deployer's email address is public. This is a major inconvenience for users who do not wish to publicize their email address. Adding a public email address mitigates this problem.

The error manifests as follows:

[ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.10:site (default) on project api: Error creating commit: Server Error (500) -> [Help 1]
ggeorgovassilis commented 9 years ago

@vedrankr I noticed the same 500 error. Out of curiosity, how did you debug that?

mprins commented 9 years ago

this is the result of #72 and a duplicate of #73

zsxwing commented 9 years ago

@mprins So the user must set an email address in his or hers profile? Is it possible to get the email from local git settings?

mprins commented 9 years ago

@zsxwing yes, It seems that the fix proposed in the comments in #69 (near the end)

author.setEmail(userService.getEmails().get(0));

works when there is no public email; I've not tried it.