GitXplorerGitXplorer
m

centos-maven-install

public
3 stars
13 forks
0 issues

Commits

List of commits on branch master.
Unverified
8825f7bfe9789b4f1be6263245dc4c15853f754a

Updated the maven version

committed 7 years ago
Unverified
79bfea7d207fb201743f49fc4276e169c770ec5d

Fixed a line spacing issue

mmonksy committed 11 years ago
Unverified
c7022fcc7c6be8854cc84af61430012e3432dfd3

Added more todo items about environment setup to the readme

mmonksy committed 11 years ago
Unverified
c475c3139f0fa6bec0c115e2eb4f0d064463b834

Changed formating for readme

mmonksy committed 11 years ago
Unverified
c4061c1e5af13754a077b58ee2594920a56d7d57

more notes into the readme about environment and wrapping up with error handling. Added a note to the end of the shell script that the script was done.

mmonksy committed 11 years ago
Unverified
25a2028adfa2a057bf03f691ce332b258d31182c

Created scripts

mmonksy committed 11 years ago

README

The README file for this repository.

centos-maven-install

====================

This is a script that automates the download and installation of the latest maven

This was made with help from http://xmodulo.com/2012/05/how-to-install-maven-on-centos.html

How to run:

chmod +x maven-install.sh

sudo ./maven-install.sh

TODO:

  • Check to see if the profile.d directory exists before starting the script
  • Check to see if the distro is RHEL/Centos
  • Check to see if the user has permission to write to /usr/local
  • Check to see if the mvn command exists after fixing the environment variables
  • Better error messages
  • Check for a previous installation
  • If found prompt for removal
  • Argument to install a specific version
  • Detect the current version with regex and curl
  • Download to a temporary directory
  • Verify instalation
  • Handle all of the sudo access within the script
  • Handle mirrors
  • Fix the installing user's path and m2 variable after the install

Author assumes no responsiblity or liablity for this script, use at your own risk and ofcourse read/understand what this does before running.