2016-05-12 11:41:29 +00:00
|
|
|
## Introduction
|
2016-01-10 18:26:50 +00:00
|
|
|
|
2016-05-12 11:41:29 +00:00
|
|
|
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.
|
2016-01-10 18:26:50 +00:00
|
|
|
|
2016-05-12 11:41:29 +00:00
|
|
|
Enable it by adding `mvn` to the plugins array in your zshrc file:
|
|
|
|
```zsh
|
|
|
|
plugins=(... mvn)
|
|
|
|
```
|
2016-01-10 18:26:50 +00:00
|
|
|
|
|
|
|
## Aliases
|
|
|
|
|
2016-05-12 11:41:29 +00:00
|
|
|
| Alias | Command |
|
|
|
|
|:---------------------|:------------------------------------------------|
|
|
|
|
| `mvncie` | `mvn clean install eclipse:eclipse` |
|
|
|
|
| `mvnci` | `mvn clean install` |
|
|
|
|
| `mvncist` | `mvn clean install -DskipTests` |
|
|
|
|
| `mvne` | `mvn eclipse:eclipse` |
|
|
|
|
| `mvnd` | `mvn deploy` |
|
|
|
|
| `mvnp` | `mvn package` |
|
|
|
|
| `mvnc` | `mvn clean` |
|
|
|
|
| `mvncom` | `mvn compile` |
|
|
|
|
| `mvnct` | `mvn clean test` |
|
|
|
|
| `mvnt` | `mvn test` |
|
|
|
|
| `mvnag` | `mvn archetype:generate` |
|
|
|
|
| `mvn-updates` | `mvn versions:display-dependency-updates` |
|
|
|
|
| `mvntc7` | `mvn tomcat7:run` |
|
|
|
|
| `mvnjetty` | `mvn jetty:run` |
|
|
|
|
| `mvndt` | `mvn dependency:tree` |
|
|
|
|
| `mvns` | `mvn site` |
|
|
|
|
| `mvnsrc` | `mvn dependency:sources` |
|
|
|
|
| `mvndocs` | `mvn dependency:resolve -Dclassifier=javadoc` |
|