Question

Help required setting up Maven installation on Ubuntu

I am trying to install Maven on my Droplet. I have done my diligence on the user forum here and on the internet, but since this might be a Droplet specific question, I am on here, asking people if they can advise me So, I am trying to install Maven

I issued the following command: sudo apt-get install maven

However, it wants over 150 MB of additional disk space. There is a whole lot of stuff it wants to bring in. Is that necessary. I have copied over the output of the apt-get command

Is there a better command or a way to avoid getting in so much stuff. Please advise. Many thanks for your time.

evan@ubuntu-2gb-nyc3-01:~$ sudo apt-get install maven [sudo] password for evan: Reading package lists… Done Building dependency tree Reading state information… Done The following package was automatically installed and is no longer required: grub-pc-bin Use ‘sudo apt autoremove’ to remove it. The following additional packages will be installed: ant ant-optional ca-certificates-java default-jre-headless fontconfig-config fonts-dejavu-core java-common junit junit4 libaopalliance-java libapache-pom-java libasm4-java libatinject-jsr330-api-java libavahi-client3 libavahi-common-data libavahi-common3 libbsh-java libcdi-api-java libcglib3-java libclassworlds-java libcommons-cli-java libcommons-codec-java libcommons-httpclient-java libcommons-io-java libcommons-lang-java libcommons-lang3-java libcommons-logging-java libcommons-net-java libcommons-net2-java libcommons-parent-java libcups2 libdom4j-java libdoxia-core-java libeasymock-java libeclipse-aether-java libfontconfig1 libgeronimo-interceptor-3.0-spec-java libguava-java libguice-java libhamcrest-java libhttpclient-java libhttpcore-java libjaxen-java libjaxp1.3-java libjdom1-java libjetty-java libjpeg-turbo8 libjpeg8 libjsch-java libjsoup-java libjsr305-java liblcms2-2 liblog4j1.2-java libmaven-parent-java libmaven2-core-java libmaven3-core-java libnspr4 libnss3 libnss3-nssdb libobjenesis-java libpcsclite1 libplexus-ant-factory-java libplexus-archiver-java libplexus-bsh-factory-java libplexus-cipher-java libplexus-classworlds-java libplexus-classworlds2-java libplexus-cli-java libplexus-component-annotations-java libplexus-component-metadata-java libplexus-container-default-java libplexus-container-default1.5-java libplexus-containers-java libplexus-containers1.5-java libplexus-interactivity-api-java libplexus-interpolation-java libplexus-io-java libplexus-sec-dispatcher-java libplexus-utils-java libplexus-utils2-java libqdox2-java libservlet2.5-java libservlet3.1-java libsisu-inject-java libsisu-plexus-java libslf4j-java libwagon-java libwagon2-java libxalan2-java libxbean-java libxerces2-java libxi6 libxml-commons-external-java libxml-commons-resolver1.1-java libxom-java libxpp2-java libxpp3-java libxrender1 libxtst6 openjdk-8-jre-headless x11-common Suggested packages: ant-doc ant-gcj default-jdk | java-compiler | java-sdk ant-optional-gcj antlr javacc jython libbcel-java libbsf-java libgnumail-java libjdepend-java liboro-java libregexp-java default-jre junit-doc libaopalliance-java-doc libatinject-jsr330-api-java-doc libclassworlds-java-doc libcommons-httpclient-java-doc libcommons-io-java-doc libcommons-lang-java-doc libcommons-lang3-java-doc libavalon-framework-java libcommons-logging-java-doc libexcalibur-logkit-java libcommons-net-java-doc libcommons-net2-java-doc cups-common libdom4j-java-doc libeasymock-java-doc libcglib-java libjaxp1.3-java-gcj libjdom1-java-doc jetty libjetty-java-doc libjsoup-java-doc libjsr305-java-doc liblcms2-utils liblog4j1.2-java-doc libobjenesis-java-doc pcscd libplexus-cipher-java-doc libplexus-classworlds-java-doc libplexus-classworlds2-java-doc libplexus-cli-java-doc libplexus-container-default-java-doc libplexus-interactivity-api-java-doc libplexus-interpolation-java-doc libplexus-sec-dispatcher-java-doc libplexus-utils-java-doc libplexus-utils2-java-doc libqdox2-java-doc testng libwagon-java-doc libxalan2-java-doc libxsltc-java groovy2 libequinox-osgi-java libosgi-compendium-java libosgi-core-java libqdox-java libspring-beans-java libspring-context-java libspring-core-java libspring-web-java libxerces2-java-doc libxerces2-java-gcj libxml-commons-resolver1.1-java-doc libxom-java-doc openjdk-8-jre-jamvm libnss-mdns fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei fonts-wqy-zenhei fonts-indic The following NEW packages will be installed: ant ant-optional ca-certificates-java default-jre-headless fontconfig-config fonts-dejavu-core java-common junit junit4 libaopalliance-java libapache-pom-java libasm4-java libatinject-jsr330-api-java libavahi-client3 libavahi-common-data libavahi-common3 libbsh-java libcdi-api-java libcglib3-java libclassworlds-java libcommons-cli-java libcommons-codec-java libcommons-httpclient-java libcommons-io-java libcommons-lang-java libcommons-lang3-java libcommons-logging-java libcommons-net-java libcommons-net2-java libcommons-parent-java libcups2 libdom4j-java libdoxia-core-java libeasymock-java libeclipse-aether-java libfontconfig1 libgeronimo-interceptor-3.0-spec-java libguava-java libguice-java libhamcrest-java libhttpclient-java libhttpcore-java libjaxen-java libjaxp1.3-java libjdom1-java libjetty-java libjpeg-turbo8 libjpeg8 libjsch-java libjsoup-java libjsr305-java liblcms2-2 liblog4j1.2-java libmaven-parent-java libmaven2-core-java libmaven3-core-java libnspr4 libnss3 libnss3-nssdb libobjenesis-java libpcsclite1 libplexus-ant-factory-java libplexus-archiver-java libplexus-bsh-factory-java libplexus-cipher-java libplexus-classworlds-java libplexus-classworlds2-java libplexus-cli-java libplexus-component-annotations-java libplexus-component-metadata-java libplexus-container-default-java libplexus-container-default1.5-java libplexus-containers-java libplexus-containers1.5-java libplexus-interactivity-api-java libplexus-interpolation-java libplexus-io-java libplexus-sec-dispatcher-java libplexus-utils-java libplexus-utils2-java libqdox2-java libservlet2.5-java libservlet3.1-java libsisu-inject-java libsisu-plexus-java libslf4j-java libwagon-java libwagon2-java libxalan2-java libxbean-java libxerces2-java libxi6 libxml-commons-external-java libxml-commons-resolver1.1-java libxom-java libxpp2-java libxpp3-java libxrender1 libxtst6 maven openjdk-8-jre-headless x11-common 0 upgraded, 102 newly installed, 0 to remove and 5 not upgraded. Need to get 58.1 MB of archives. After this operation, 150 MB of additional disk space will be used.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Yes, if it’s asking to install it then it most likely needs installing.