diff --git a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java index 453889f..bbfc30e 100644 --- a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java +++ b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java @@ -278,11 +278,17 @@ public class PluginReport String goalDocumentationLink = "./" + mojo.getGoal() + "-mojo.html"; String description = mojo.getDescription(); - if ( StringUtils.isEmpty( mojo.getDescription() ) ) + if ( StringUtils.isEmpty( description ) ) { description = getBundle( locale ).getString( "report.plugin.goal.nodescription" ); } + String deprecated = mojo.getDeprecated(); + if ( StringUtils.isNotEmpty( deprecated ) ) + { + description = "" + getBundle( locale ).getString( "report.plugin.goal.deprecated" ) + " " + description; + } + sink.tableRow(); tableCell( createLinkPatternedText( goalName, goalDocumentationLink ) ); tableCell( description, true ); diff --git a/maven-plugin-plugin/src/main/resources/plugin-report.properties b/maven-plugin-plugin/src/main/resources/plugin-report.properties index 262d0b3..241929c 100644 --- a/maven-plugin-plugin/src/main/resources/plugin-report.properties +++ b/maven-plugin-plugin/src/main/resources/plugin-report.properties @@ -26,6 +26,7 @@ report.plugin.goals.intro=Goals available for this plugin: report.plugin.goals.column.goal=Goal report.plugin.goals.column.description=Description report.plugin.goal.nodescription=No description. +report.plugin.goal.deprecated=Deprecated. report.plugin.systemrequirements=System Requirements report.plugin.systemrequirements.intro=The following specifies the minimum requirements to run this Maven plugin: diff --git a/maven-plugin-plugin/src/main/resources/plugin-report_fr.properties b/maven-plugin-plugin/src/main/resources/plugin-report_fr.properties index b61e526..2195287 100644 --- a/maven-plugin-plugin/src/main/resources/plugin-report_fr.properties +++ b/maven-plugin-plugin/src/main/resources/plugin-report_fr.properties @@ -26,6 +26,7 @@ report.plugin.goals.intro=Goals disponibles pour ce plugin: report.plugin.goals.column.goal=Goal report.plugin.goals.column.description=Description report.plugin.goal.nodescription=Pas de description. +report.plugin.goal.deprecated=Obsol\u00e8te. report.plugin.systemrequirements=Exigences Syst\u00e8mes report.plugin.systemrequirements.intro=Ce qui suit sp\u00e9cifie les exigences minimales pour \u00e9x\u00e9cuter ce plugin Maven: