mirror of https://github.com/apache/maven.git
Fixing some missing descriptor description fields.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@315026 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
856fc889df
commit
7df3803ef7
|
@ -63,6 +63,8 @@ public class PluginDescriptorGenerator
|
|||
|
||||
w.startElement( "plugin" );
|
||||
|
||||
element( w, "description", pluginDescriptor.getDescription() );
|
||||
|
||||
element( w, "groupId", pluginDescriptor.getGroupId() );
|
||||
|
||||
element( w, "artifactId", pluginDescriptor.getArtifactId() );
|
||||
|
@ -118,6 +120,21 @@ public class PluginDescriptorGenerator
|
|||
//
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
String description = mojoDescriptor.getDescription();
|
||||
|
||||
if ( description != null )
|
||||
{
|
||||
w.startElement( "description" );
|
||||
|
||||
w.writeText( mojoDescriptor.getDescription() );
|
||||
|
||||
w.endElement();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
if ( mojoDescriptor.isDependencyResolutionRequired() != null )
|
||||
{
|
||||
element( w, "requiresDependencyResolution", mojoDescriptor.isDependencyResolutionRequired() );
|
||||
|
|
Loading…
Reference in New Issue