def maven_target(registry, xml_parent, data):
 maven = XML.SubElement(xml_parent, 'hudson.tasks.Maven')
 XML.SubElement(maven, 'targets').text = data['goals']
 prop_string = '\n'.join(data.get('properties', []))
 XML.SubElement(maven, 'properties').text = prop_string
 if ('maven-version' in data):
  XML.SubElement(maven, 'mavenName').text = str(data['maven-version'])
 if ('pom' in data):
  XML.SubElement(maven, 'pom').text = str(data['pom'])
 use_private = str(data.get('private-repository', False)).lower()
 XML.SubElement(maven, 'usePrivateRepository').text = use_private
 if ('java-opts' in data):
  javaoptions = ' '.join(data.get('java-opts', []))
  XML.SubElement(maven, 'jvmOptions').text = javaoptions
 config_file_provider_settings(maven, data)

def maven_target ( registry , xml_parent , data ) : maven = XML . SubElement ( xml_parent , 'hudson.tasks.Maven' ) XML . SubElement ( maven , 'targets' ) . text = data [ 'goals' ] prop_string = '\n' . join ( data . get ( 'properties' , [ ] ) ) XML . SubElement ( maven , 'properties' ) . text = prop_string if ( 'maven-version' in data ) : XML . SubElement ( maven , 'mavenName' ) . text = str ( data [ 'maven-version' ] ) if ( 'pom' in data ) : XML . SubElement ( maven , 'pom' ) . text = str ( data [ 'pom' ] ) use_private = str ( data . get ( 'private-repository' , False ) ) . lower ( ) XML . SubElement ( maven , 'usePrivateRepository' ) . text = use_private if ( 'java-opts' in data ) : javaoptions = ' ' . join ( data . get ( 'java-opts' , [ ] ) ) XML . SubElement ( maven , 'jvmOptions' ) . text = javaoptions config_file_provider_settings ( maven , data )
yaml: maven-target execute top-level maven targets .