//document parent
Parent parent = project.getModel().getParent();
if (parent instanceof BoostedParent){
BoostedParent par = (BoostedParent) parent;
MavenProject parentProject = PomUtils.readMavenProjectFromRepository(par.getGroupId(), par.getArtifactId(), par.getVersion());
if (Boolean.TRUE.equals( par.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION))){
documentProjectIfNecessary(parentProject, type, documentationParent, context, documentationParentOfNewArtifacts, documentationParent);
}
}
//use enhanced description
if (DocumentationResourecesId.DOCUMENTATION_DEVELOPER.equals(type)){
//write description
if ( project.getDescription() != null){
String description = project.getDescription().trim();
if (! "".equals(description)){
BookUtils.createDiv(documentationParent, description);
}
}
//write additional developer documentation
if (model != null){
Map<String,String> develDoku = (Map<String,String>) model.getAttributes().getFromMap(DocumentationResourecesId.DOCUMENTATION_DEVELOPER);
if (develDoku != null)
{
if (develDoku.containsKey(GeneralConstants.DESCRIPTION)){
BookUtils.createDiv(documentationParent, develDoku.get(GeneralConstants.DESCRIPTION));
}
}
}
//write packaging type
BookUtils.createDiv(documentationParent, "This artifact is of type " + project.getPackaging() + ".");
//write aggregator artifact
if (moduleAggregator != null)
BookUtils.createDiv(documentationParent, "The module aggregator (the artifact in the parent directory) of this artifact is " + createArtifactIdentifierForDocumentation(moduleAggregator));
//write parent infos
if (parent instanceof BoostedParent){
BoostedParent par = (BoostedParent) parent;
if (Boolean.TRUE.equals( par.getAttributes().getFromMap(GeneralConstants.USE_IN_DOCUMENTATION))){
BookUtils.createDiv(documentationParent, "The parent of this artifact is " + createArtifactIdentifierForDocumentation(par));
}
}
//write plugin execution infos