|
|
|
@ -59,7 +59,7 @@ options:
|
|
|
|
|
- The URL of the Maven Repository to download from.
|
|
|
|
|
- Use s3://... if the repository is hosted on Amazon S3, added in version 2.2.
|
|
|
|
|
- Use file://... if the repository is local, added in version 2.6
|
|
|
|
|
default: http://repo1.maven.org/maven2
|
|
|
|
|
default: https://repo1.maven.org/maven2
|
|
|
|
|
username:
|
|
|
|
|
description:
|
|
|
|
|
- The username to authenticate as to the Maven Repository. Use AWS secret key of the repository is hosted on S3
|
|
|
|
@ -553,7 +553,7 @@ def main():
|
|
|
|
|
version_by_spec=dict(default=None),
|
|
|
|
|
classifier=dict(default=''),
|
|
|
|
|
extension=dict(default='jar'),
|
|
|
|
|
repository_url=dict(default='http://repo1.maven.org/maven2'),
|
|
|
|
|
repository_url=dict(default='https://repo1.maven.org/maven2'),
|
|
|
|
|
username=dict(default=None, aliases=['aws_secret_key']),
|
|
|
|
|
password=dict(default=None, no_log=True, aliases=['aws_secret_access_key']),
|
|
|
|
|
headers=dict(type='dict'),
|
|
|
|
@ -577,7 +577,7 @@ def main():
|
|
|
|
|
|
|
|
|
|
repository_url = module.params["repository_url"]
|
|
|
|
|
if not repository_url:
|
|
|
|
|
repository_url = "http://repo1.maven.org/maven2"
|
|
|
|
|
repository_url = "https://repo1.maven.org/maven2"
|
|
|
|
|
try:
|
|
|
|
|
parsed_url = urlparse(repository_url)
|
|
|
|
|
except AttributeError as e:
|
|
|
|
|