Remember to include the full path and try again. LocStartScript=$Įcho "The file you provided could not be found. Make sure on this before providing a value by consulting documentation for your system:" locStartScript Read -p "Please full path name of your local startup script ($defaultStartScript is the default). Note the build of scripts that can mount/unmount shared folders from the /usr/local/bin :) #!/bin/bash Maven remains the same if it runs on Windows or Unix, so you can use same Maven between both is this is your VirtualBox setup. I have made a new script that should not only install Maven + add it to bin, but picks up if you are using Ubuntu as a VirtualBox guest and then attempts to mount existing '.m2' and maven folder which may/may not contain existing settings. Java home: /usr/lib/jvm/java-7-openjdk-amd64/jreĭefault locale: de_DE, platform encoding: UTF-8 Java version: 1.7.0_75, vendor: Oracle Corporation Below you have an example of the returned values. With the issued command mvn -v you may verify, if the setting succeeded and whether you selected the correct version.
*0 /usr/share/maven2/bin/mvn 200 Auto-Modusġ /usr/share/maven/bin/mvn 150 manueller ModusĢ /usr/share/maven2/bin/mvn 200 manueller Modus You can distinguish the correct directories by selecting the path where maven2 is NOT part of it. With the 2nd command you're asked to set the used version. A solution at Ubuntu 14.04 LTS will be like: There is no need to use an unsecure repository, because maven3 is already included in the Ubuntu repos.