##### SUMMARY
As of 2019-01-15 Maven Central now requires `https`. 

https://support.sonatype.com/hc/en-us/articles/360041287334

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
* maven_repository

##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
It's in the build system. Full out not relevant.

ANSIBLE_VERSION=2.8.5
```

##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
Not relevant
```

##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. 
Ubuntu 18.04 CIS
-->


##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->

Attempt to get an artifact from Maven Central using `http` instead of `https`

<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: Download latest agent from maven central
  maven_artifact:
    group_id: com.contrastsecurity
    artifact_id: contrast-agent
    version: "{{ contrast_agent_version }}"
    dest: "{{ contrast_agent_path }}/contrast/contrast.jar"
    owner: tomcat
    group: tomcat 
    mode: 0644
```

<!--- HINT: You can paste gist.github.com links for larger files -->

##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->

I expected the artifact to be copied to the AMI as it has done for years before this :-)

##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->

amazon-ebs: TASK [contrast : Download latest agent from maven central] *********************
    amazon-ebs: fatal: [teamserver-intuit-1579469195]: FAILED! => {"changed": false, "msg": "Failed to download artifact com.contrastsecurity:contrast-agent:3.6.9.11819 because of HTTP Error 501: HTTPS Requiredfor URL http://repo1.maven.org/maven2/com/contrastsecurity/contrast-agent/3.6.9.11819/contrast-agent-3.6.9.11819.jar"}
    amazon-ebs:
 
http://repo1.maven.org/maven2/com/contrastsecurity/contrast-agent/3.6.9.11819/contrast-agent-3.6.9.11819.jar

<!--- Paste verbatim command output between quotes -->
```paste below
Not sure what command you are referring to?
```

),
        add_file_common_args=True,
        mutually_exclusive=([('version', 'version_by_spec')])
    )
    if not HAS_LXML_ETREE:
        module.fail_json(msg=missing_required_lib('lxml'), exception=LXML_ETREE_IMP_ERR)
    if module.params['version_by_spec'] and not HAS_SEMANTIC_VERSION:
        module.fail_json(msg=missing_required_lib('semantic_version'), exception=SEMANTIC_VERSION_IMP_ERR)
    repository_url = module.params["repository_url"]
    if not repository_url:
        repository_url = "http://repo1.maven.org/maven2"
    try:
        parsed_url = urlparse(repository_url)
    except AttributeError as e:
        module.fail_json(msg='url parsing went wrong %s' % e)
    local = parsed_url.scheme == "file"
    if parsed_url.scheme == 's3' and not HAS_BOTO:
        module.fail_json(msg=missing_required_lib('boto3', reason='when using s3:// repository URLs'),
                         exception=BOTO_IMP_ERR)
    group_id = module.params["group_id"]
    artifact_id = module.params["artifact_id"]
    version = module.params["version"]
    version_by_spec = module.params["version_by_spec"]
    classifier = module.params["classifier"]
    extension = module.params["extension"]
    headers = module.params['headers']
    state = module.params["state"]
    dest = module.params["dest"]
    b_dest = to_bytes(dest, errors='surrogate_or_strict')
    keep_name = module.params["keep_name"]