English 中文(简体)
在MacOS X Mavericks,我的双倍
原标题:Where is my m2 folder on Mac OS X Mavericks

我似乎发现,在MacOS X mavericks上,当地有圆顶。 最好是在<代码>{用户.home}/.m2上,但我似乎无法找到。

Should I create it?

最佳回答

如果你用锅炉安装玉米,则制作平方米的目录,然后复制场面。

mkdir ~/.m2
cp /usr/local/Cellar/maven32/3.2.5/libexec/conf/settings.xml ~/.m2

You may need to change the maven version in the path, mine is 3.2.5

问题回答

在屏幕上,你可以找到护堤。 Click Go -> Go to Folder -> search ~/m2

If it is not found, as m2 is a hidden file you need to enable visibility by typing the following command in terminal:

defaults written com.apple.finder 页: 1 文件YES

Go to finder:

Press on key AT CMD+pad+G . 它将显示象这一那样的人群。

Enter path ~/.m2

报到。

“entergraph

它藏在你的家中,但却被缺席掩盖。

在终点站对以下指挥进行分类,使我能看到(只有>.m2的夹,不是所有其他隐藏的夹)。

> mv ~/.m2 ~/m2
> ln -s ~/m2 ~/.m2         

https://discussions.apple.com/message/5198803”rel=“noreferer”>

否则,就会隐藏在你的家名录中。 类型<代码>ls -a ~ to view that

在刚运行的Mac上安装了mvn Cleanstal>,假定装配已经安装,将自动产生m2。

你们可以通过在项目目录中使用指挥系统,尝试寻找当地存放点。

mvn help:evaluate -Dexpression=settings.localRepository

您的产出将与以下内容相类似,你可以看到以下地方的m2名录: 页: 1

Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar
Downloaded from central: https://repo.maven.apache.org/maven2/net/sf/jtidy/jtidy/r938/jtidy-r938.jar (250 kB at 438 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.11/commons-codec-1.11.jar (335 kB at 530 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar (305 kB at 430 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar (500 kB at 595 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/com/thoughtworks/xstream/xstream/1.4.11.1/xstream-1.4.11.1.jar (621 kB at 671 kB/s)
[INFO] No artifact parameter specified, using  org.apache.maven:standalone-pom:pom:1  as project.
[INFO]
/Users/arai/.m2/repository
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.540 s
[INFO] Finished at: 2019-01-23T13:57:54-05:00
[INFO] ------------------------------------------------------------------------
  1. Open your terminal
  2. Type open ~/.m2

它将在探索者中打开双倍。

亲切思考

Shift + Command + .

这样,你就可以看到所有隐藏的档案。 因为您的2号档案证明自己是藏匿的夹。





相关问题
Derby gets stuck closing?

I ve got unit tests (in maven) that use derby. At the end of the test run, there is a very long pause, with these log messages before the pause. INFO: Closing Hibernate SessionFactory Nov 16, 2009 8:...

Execute goal on parent after children complete

I have a multi-module maven project (several levels of nesting). Normally, when I execute a maven build (like mvn install or whatever), maven will run all the goals for the parent project before ...

Including dependencies in a jar with Maven

Is there a way to force maven(2.0.9) to include all the dependencies in a single jar file? I have a project the builds into a single jar file. I want the classes from dependencies to be copied into ...

Java Equivalent of distcc

Distcc makes it easy to distribute a C or C++ compile job across a number of machines, and is a godsend for working with large, frequently-built codebases. An increasing number of our large projects ...

Maven Assembly Problem

I have a maven multiple-module project, which is giving me headaches in the assembly:assembly phase. I have a module which has an assembly defined in it which works fine when I invoke mvn assembly:...

热门标签