https://github.com/dockpack/base_maven
Ansible role to install one version of Maven on your development machines
https://github.com/dockpack/base_maven
ansible-role ci hacktoberfest java maven
Last synced: about 2 months ago
JSON representation
Ansible role to install one version of Maven on your development machines
- Host: GitHub
- URL: https://github.com/dockpack/base_maven
- Owner: dockpack
- License: mit
- Created: 2017-07-20T19:44:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-07T12:50:52.000Z (over 1 year ago)
- Last Synced: 2025-03-07T13:41:20.686Z (over 1 year ago)
- Topics: ansible-role, ci, hacktoberfest, java, maven
- Language: Jinja
- Homepage:
- Size: 79.1 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://galaxy.ansible.com/dockpack/base_maven)

Maven - Maven is good at building Java projects in a cross-platform way. It manages dependencies, and actually the whole life cycle of a project. This is an ansible-role to install Maven.
Requirements
------------
This role was built for Ubuntu Trusty or RedHat systems like RHEL/Centos 7. It needs dockpack.base_java8.
Role Variables
--------------
You can set the maven\_version:, now 3.6.3
There are 3 variables that you would store in a vault file:
mvn\_master\_password:
mvn\_repo\_username:
mvn\_repo\_password:
Dependencies
------------
Maven needs Java8. This role depends on dockpack.base_java8, which will be installed automatically if you use this one.
Manual use of Maven
```
mvn -X deploy:deploy-file -DgroupId=$GROUPID -DartifactId=$FILENAME -Dversion=$VERSION -DgeneratePom=true -Dpackaging=jar -DrepositoryId="0ss-releases" -Durl="https://repo.example.com/path/releases" -Dfile=redis.jar
```
Example Playbook
----------------
For a complete example with this role check out my buildserver:
git clone https://github.com/bbaassssiiee/buildserver.git
Example of how to use this role:
- hosts: servers
roles:
- { role: dockpack.base_java8 }
- { role: dockpack.base_maven }
License
-------
MIT
Author Information
------------------
Bas Meijer @bbaassssiiee