in src/main/java/org/apache/maven/plugin/doap/DoapMojo.java [1261:1277]
private void writeMailingList(XMLWriter writer, MavenProject project) {
String ml = DoapUtil.interpolate(doapOptions.getMailingList(), project, settings);
if (ml == null || ml.isEmpty()) {
messages.addMessage(
new String[] {"doapOptions", "mailingList"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
return;
}
try {
new URL(ml);
DoapUtil.writeComment(writer, "Mailing lists.");
DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "mailing-list", ml);
} catch (MalformedURLException e) {
messages.addMessage(new String[] {"doapOptions", "mailingList"}, ml, UserMessages.INVALID_URL);
}
}