Maven:如何安装mvnsh? [英] Maven: How do I install mvnsh?

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

问题描述

我怀疑我会完全以错误的方式来做这个事情.

我听说过 mvnsh ,并想尝试一下,以减少构建时的延迟.

但是我对如何做到这一点一无所知.我仍在学习Maven,并且在mvngemcabalcpan之类的工具之间绘制错误的相似之处仍在困扰我,因此我不确定安装命令需要做什么.线工具,例如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吗?

解决方案

只需下载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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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