问题描述
我怀疑我会完全以错误的方式来做这个事情.
我听说过 mvnsh ,并想尝试一下,以减少构建时的延迟.
但是我对如何做到这一点一无所知.我仍在学习Maven,并且在mvn
与gem
,cabal
或cpan
之类的工具之间绘制错误的相似之处仍在困扰我,因此我不确定安装命令需要做什么.线工具,例如mvnsh
.
将其作为依赖项放在某些任意项目的pom.xml
中似乎没有任何意义.
我从下载页面上下载了mvnsh-assembly-1.0.1.pom
,该理论到目前为止涉及的是这一理论,但是到目前为止,我尝试过的任何方法都没有奏效. mvn install -f mvnsh-assembly-1.0.1.pom
下载了一堆罐子,然后死了. mvn artifact:install -f mvnsh-assembly-1.0.1.pom
下载了更多的罐子,然后死了.
我真的不知道我在这里做什么.我甚至应该使用mvn
安装mvnsh
吗?
只需下载 http://repo1.maven.org/maven2/org/sonatype/maven/shell/dist/mvnsh-assembly/1.0 .1/mvnsh-assembly-1.0.1-bin.zip 或.tar.gz存档取决于您的操作系统,将其解压缩并将发行版的bin文件夹放到PATH中,之后您就可以启动mvnsh了. /p>
I suspect I'm going about this the wrong way entirely.
I heard about mvnsh, and wanted to give it a try, to decrease the lag when I build.
But I'm completely clueless about how one would do that. I'm still learning maven, and drawing false parallels between mvn
and tools like gem
, cabal
, or cpan
is still biting me, so I'm not sure what I need to do to install a command line tool like mvnsh
.
It doesn't seem to make sense to stick it as a dependency in some arbitrary project's pom.xml
.
I downloaded mvnsh-assembly-1.0.1.pom
from the download page on the theory that that was involved so far, but so far, nothing I've tried has worked. mvn install -f mvnsh-assembly-1.0.1.pom
downloaded a bunch of jars, then died. mvn artifact:install -f mvnsh-assembly-1.0.1.pom
downloaded more jars, then died.
I really have no idea what I'm doing here. Should I even be using mvn
to install mvnsh
?
Just download the http://repo1.maven.org/maven2/org/sonatype/maven/shell/dist/mvnsh-assembly/1.0.1/mvnsh-assembly-1.0.1-bin.zip or the .tar.gz archive depends on you OS unpack it and put the bin folder of the distribution to you PATH after that you can start mvnsh .
这篇关于Maven:如何安装mvnsh?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!