// Make sure the groupId and artifactId are valid, the version may just default to
// the latest release.
if ( !definition.isPartiallyDefined() )
{
throw new ArchetypeSelectionFailure( "No valid archetypes could be found to choose." );
}
}
// finally update the request with gathered information
definition.updateRequest( request );