2016-05-12 13:41:29 +02:00
|
|
|
## Introduction
|
2016-01-10 19:26:50 +01:00
|
|
|
|
2016-05-12 13:41:29 +02: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 19:26:50 +01:00
|
|
|
|
2016-05-12 13:41:29 +02:00
|
|
|
Enable it by adding `mvn` to the plugins array in your zshrc file:
|
|
|
|
```zsh
|
|
|
|
plugins=(... mvn)
|
|
|
|
```
|
2016-01-10 19:26:50 +01:00
|
|
|
|
|
|
|
## Aliases
|
|
|
|
|
2016-05-12 13:41:29 +02:00
|
|
|
| Alias | Command |
|
|
|
|
|:---------------------|:------------------------------------------------|
|
|
|
|
| `mvncie` | `mvn clean install eclipse:eclipse` |
|
|
|
|
| `mvnci` | `mvn clean install` |
|
|
|
|
| `mvncist` | `mvn clean install -DskipTests` |
|
2016-06-15 05:42:48 +02:00
|
|
|
| `mvncisto` | `mvn clean install -DskipTests --offline` |
|
2016-05-12 13:41:29 +02:00
|
|
|
| `mvne` | `mvn eclipse:eclipse` |
|
2017-11-01 14:21:49 +01:00
|
|
|
| `mvncv` | `mvn clean verify` |
|
2016-05-12 13:41:29 +02:00
|
|
|
| `mvnd` | `mvn deploy` |
|
2017-01-31 10:10:53 +01:00
|
|
|
| `mvncd` | `mvn clean deploy` |
|
2016-05-12 13:41:29 +02:00
|
|
|
| `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` |
|