mojoDescriptor.setDependencyResolutionRequired(mojo.requiresDependencyResolution().value);
mojoDescriptor.setProjectRequired(mojo.requiresProject());
mojoDescriptor.setAggregator(mojo.aggregator());
mojoDescriptor.setDirectInvocationOnly(mojo.requiresDirectInvocation());
mojoDescriptor.setOnlineRequired(mojo.requiresOnline());
mojoDescriptor.setInheritedByDefault(mojo.inheritByDefault());
if (mojo.deprecated().trim().length() > 0) {
mojoDescriptor.setDeprecated(mojo.deprecated());
}
// extract parameters working back through the inheritancce hierarchy
while (!clazz.equals(Object.class)) {