Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
meishi125478
ohmyzsh
提交
0e647904
O
ohmyzsh
项目概览
meishi125478
/
ohmyzsh
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
ohmyzsh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0e647904
编写于
2月 17, 2019
作者:
M
Marc Cornellà
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mvn: update documentation
上级
f4b2e460
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
9 deletion
+13
-9
plugins/mvn/README.md
plugins/mvn/README.md
+13
-9
未找到文件。
plugins/mvn/README.md
浏览文件 @
0e647904
#
# Introductio
n
#
mvn plugi
n
The
[
mvn plugin
](
https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/mvn
)
provides many
[
useful aliases
](
#aliases
)
as well as completion for the
`mvn`
command
.
The
mvn plugin provides many
[
useful aliases
](
#aliases
)
as well as completion for
the
[
Apache Maven
](
https://maven.apache.org/
)
command (
`mvn`
)
.
Enable it by adding
`mvn`
to the plugins array in your zshrc file:
```
zsh
...
...
@@ -10,7 +10,7 @@ plugins=(... mvn)
## Aliases
The plugin aliases mvn to a
either calls
`mvnw`
(
[
Maven Wrapper
](
https://github.com/takari/maven-wrapper
)
)
The plugin aliases mvn to a
function that calls
`mvnw`
(the
[
Maven Wrapper
](
https://github.com/takari/maven-wrapper
)
)
if it's found, or the mvn command otherwise.
| Alias | Command |
...
...
@@ -46,9 +46,13 @@ if it's found, or the mvn command otherwise.
## mvn-color
It's a function that wraps the mvn command to colorize it's output. Since Maven 3.5.0
the mvn command adds colored output, so this function will be soon removed from the
plugin.
It's a function that wraps the mvn command to colorize it's output. You can use it in place
of the
`mvn`
command. For example: instead of
`mvn test`
, use
`mvn-color test`
.
It also has a bug where it won't print when mvn prompts for user input, _e.g._ when
using
`archetype:generate`
. See
[
#5052
](
https://github.com/robbyrussell/oh-my-zsh/issues/5052
)
.
Since
[
Maven 3.5.0
](
https://maven.apache.org/docs/3.5.0/release-notes.html
)
the mvn command
has colored output, so this function will be soon removed from the plugin.
### Known bugs
It has a bug where it will swallow mvn prompts for user input, _e.g._ when using
`archetype:generate`
. See
[
#5052
](
https://github.com/robbyrussell/oh-my-zsh/issues/5052
)
.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录