Commit a5ee3756 by 钟明宏

Update DocumentUploadMojo.java

增加对邮箱空字段的判断
parent 9ace64ba
......@@ -235,6 +235,9 @@ public class DocumentUploadMojo extends AbstractMojo {
for (Developer developer : project.getDevelopers()) {
Element developerElement = new DefaultElement("developer");
developerElement.addAttribute("name", developer.getName());
if (StringUtils.isEmpty(developer.getEmail())) {
throw new NullPointerException(developer.getName() + "的邮箱为空");
}
developerElement.addAttribute("email", developer.getEmail());
developerElement.addAttribute("id", developer.getId());
Element roles = new DefaultElement("roles");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment