##### 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?
```

r"^\[(?P<lower_bound>[0-9.]*),\s*(?P<upper_bound>[0-9.]*)\]$": ">={lower_bound},<={upper_bound}",
            
            r"^\[(?P<lower_bound>[0-9.]*),\s*(?P<upper_bound>[0-9.]+)\)$": ">={lower_bound},<{upper_bound}",
            
            r"^\[(?P<lower_bound>[0-9.]*),\)$": ">={lower_bound}",
        }
        for regex, spec_format in parse_versions_syntax.items():
            regex_result = match(regex, artifact.version_by_spec)
            if regex_result:
                spec = Spec(spec_format.format(**regex_result.groupdict()))
                selected_version = spec.select(versions)
                if not selected_version:
                    raise ValueError("No version found with this spec version: {0}".format(artifact.version_by_spec))
                
                if str(selected_version) not in original_versions:
                    selected_version.patch = None
                return str(selected_version)
        raise ValueError("The spec version {0} is not supported! ".format(artifact.version_by_spec))
    def find_latest_version_available(self, artifact):
        if self.latest_version_found:
            return self.latest_version_found
        path = "/%s/%s" % (artifact.path(False), self.metadata_file_name)
        content = self._getContent(self.base + path, "Failed to retrieve the maven metadata file: " + path)
        xml = etree.fromstring(content)
        v = xml.xpath("/metadata/versioning/versions/version[last()]/text()")
        if v:
            self.latest_version_found = v[0]
            return v[0]
    def find_uri_for_artifact(self, artifact):