Ubuntu上Maven的安装位置 [英] Where is Maven Installed on Ubuntu

查看:1291
本文介绍了Ubuntu上Maven的安装位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用命令sudo apt-get install maven

现在我需要知道它的安装位置,以便在IntelliJ中对其进行配置.

Now I need to know where it is installed in order to configure the same in IntelliJ..

推荐答案

Ubuntu是Debian的衍生版本,在安装软件包时遵循非常精确的结构.换句话说,通过打包工具安装的所有软件(例如apt-get或synaptic)都将这些东西放置在相同的位置.如果您熟悉这些位置,您将始终知道在哪里可以找到您的东西.

Ubuntu, which is a Debian derivative, follows a very precise structure when installing packages. In other words, all software installed through the packaging tools, such as apt-get or synaptic, will put the stuff in the same locations. If you become familiar with these locations, you'll always know where to find your stuff.

作为捷径,您始终可以打开类似synaptic的工具,找到已安装的软件包,然后检查属性".在属性下,您将看到所有已安装文件的列表.同样,您可以期望它们始终遵循Debian/Ubuntu约定.这些是高度有序的Linux发行版.简而言之,二进制文件将位于/usr/bin或路径中的其他位置(在命令行上尝试"echo $ PATH"以查看可能的位置).配置始终位于/etc的子目录中.而且,主目录"通常位于/usr/lib或/usr/share中.

As a short cut, you can always open a tool like synaptic, find the installed package, and inspect the "properties". Under properties, you'll see a list of all installed files. Again, you can expect these to always follow the Debian/Ubuntu conventions; these are highly ordered Linux distributions. IN short, binaries will be in /usr/bin, or some other location on your path ( try 'echo $PATH' on the command line to see the possible locations ). Configuration is always in a subdirectory of /etc. And the "home" is typically in /usr/lib or /usr/share.

例如,根据 http://www. mkyong.com/maven/how-to-install-maven-in-ubuntu/,maven的安装方式如下:

For instance, according to http://www.mkyong.com/maven/how-to-install-maven-in-ubuntu/, maven is installed like:

将安装Apt-get安装 所有必需的文件 以下文件夹结构

The Apt-get installation will install all the required files in the following folder structure

/usr/bin/mvn

/usr/bin/mvn

/usr/share/maven2/

/usr/share/maven2/

/etc/maven2

/etc/maven2

P.S Maven配置存储 在/etc/maven2

P.S The Maven configuration is store in /etc/maven2

注意,不仅仅是apt-get可以做到这一点,它还是任何.deb软件包安装程序.

Note, it's not just apt-get that will do this, it's any .deb package installer.

这篇关于Ubuntu上Maven的安装位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆