Skip to content

Commit

Permalink
MAVEN:3.9.9 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
tecris authored Sep 14, 2024
1 parent a52a29b commit a755de5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Example Playbook
```
- hosts: all
roles:
- { role: tecris.ansible-maven, maven_major: 3, maven_version: 3.9.8, maven_home_parent_directory: /opt }
- { role: tecris.ansible-maven, maven_major: 3, maven_version: 3.9.9, maven_home_parent_directory: /opt }
```

Role Variables
Expand All @@ -23,9 +23,9 @@ Role Variables
|*Variable* | *Default Value* |*Description* |
| --- | --- | --- |
| maven_major | 3 | MAJOR [version](http://semver.org/) |
| maven_version | 3.9.8 | Version number|
| maven_version | 3.9.9 | Version number|
| maven_home_parent_directory | /opt | MAVEN_HOME parent directory|
| maven_download_url |http://www.apache.org/dist/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz| If using mirror/proxy (see [ansible.builtin.get_url](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/get_url_module.html)) |
| maven_download_url |http://www.apache.org/dist/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz| If using mirror/proxy (see [ansible.builtin.get_url](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/get_url_module.html)) |
|maven_download_username||see [url_username](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/get_url_module.html#parameter-url_username) parameter|
|maven_download_password||see [url_password](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/get_url_module.html#parameter-url_password) parameter|

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# defaults file for apache-maven
maven_major: 3
maven_version: 3.9.8
maven_version: 3.9.9
maven_home_parent_directory: /opt
maven_file_name: apache-maven-{{ maven_version }}-bin.tar.gz
maven_download_url: 'http://dlcdn.apache.org/maven/maven-{{ maven_major }}/{{ maven_version }}/binaries/{{ maven_file_name }}'
Expand Down
4 changes: 2 additions & 2 deletions molecule/resources/tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_maven_path(self):
self.assertEqual(f.group, "root", msg="maven profile file, incorrect group")
self.assertEqual(f.mode, 0o644, msg="maven profile file, incorrect mode")

self.assertTrue(f.contains("M2_HOME=/opt/apache-maven-3.9.8"))
self.assertTrue(f.contains("M2_HOME=/opt/apache-maven-3.9.9"))

self.assertTrue( f.contains("PATH=$PATH:$M2_HOME/bin"))

Expand All @@ -32,4 +32,4 @@ def test_maven_installed(self):

self.assertTrue(cmd.succeeded)
# https://maven.apache.org/install.html
self.assertEqual(self.host.check_output(". /etc/profile.d/java.sh && . /etc/profile.d/maven.sh && mvn --version | grep Apache"), 'Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)')
self.assertEqual(self.host.check_output(". /etc/profile.d/java.sh && . /etc/profile.d/maven.sh && mvn --version | grep Apache"), 'Apache Maven 3.9.9 (36645f6c9b5079805ea5009217e36f2cffd34256)')

0 comments on commit a755de5

Please sign in to comment.