我似乎发现,在MacOS X mavericks上,当地有圆顶。 最好是在<代码>{用户.home}/.m2上,但我似乎无法找到。
Should I create it?
我似乎发现,在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
它藏在你的家中,但却被缺席掩盖。
在终点站对以下指挥进行分类,使我能看到(只有>.m2
的夹,不是所有其他隐藏的夹)。
> mv ~/.m2 ~/m2
> ln -s ~/m2 ~/.m2
https://discussions.apple.com/message/5198803”rel=“noreferer”>
如果你直接搜查,请按以下步骤查找。 M2 储存通道。
Go-> Find folder -> type this "~/.m2" and click go
如果已经安装和使用Maven,则将列出m2。
否则,就会隐藏在你的家名录中。 类型<代码>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] ------------------------------------------------------------------------
open ~/.m2
它将在探索者中打开双倍。
亲切思考
Shift + Command + .
这样,你就可以看到所有隐藏的档案。 因为您的2号档案证明自己是藏匿的夹。
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:...
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 ...
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 ...
I m looking for a tool that given a maven pom.xml file tells me all the licenses that are used by the dependencies (and recursively their dependencies). Does such a thing exist? Ideally it would tell ...
Commons JCI project doesn t seem to be maintained since a long time. Are there other options?
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 ...
I am newbie with maven. Other than its use for managing dependencies, I am finding little use for it. It was getting so hard to write up a pom.xml, that I generated a ant build.xml from one of ...
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:...