my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
3.3 KiB

3 years ago
  1. # mvn plugin
  2. The mvn plugin provides many [useful aliases](#aliases) as well as completion for
  3. the [Apache Maven](https://maven.apache.org/) command (`mvn`).
  4. Enable it by adding `mvn` to the plugins array in your zshrc file:
  5. ```zsh
  6. plugins=(... mvn)
  7. ```
  8. ## Aliases
  9. The plugin aliases mvn to a function that calls `mvnw` (the [Maven Wrapper](https://github.com/takari/maven-wrapper))
  10. if it's found, or the mvn command otherwise.
  11. | Alias | Command |
  12. |:---------------------|:------------------------------------------------|
  13. | `mvn!` | `mvn -f <root>/pom.xml` |
  14. | `mvnag` | `mvn archetype:generate` |
  15. | `mvnboot` | `mvn spring-boot:run` |
  16. | `mvnqdev` | `mvn quarkus:dev` |
  17. | `mvnc` | `mvn clean` |
  18. | `mvncd` | `mvn clean deploy` |
  19. | `mvnce` | `mvn clean eclipse:clean eclipse:eclipse` |
  20. | `mvnci` | `mvn clean install` |
  21. | `mvncie` | `mvn clean install eclipse:eclipse` |
  22. | `mvncini` | `mvn clean initialize` |
  23. | `mvncist` | `mvn clean install -DskipTests` |
  24. | `mvncisto` | `mvn clean install -DskipTests --offline` |
  25. | `mvncom` | `mvn compile` |
  26. | `mvncp` | `mvn clean package` |
  27. | `mvnct` | `mvn clean test` |
  28. | `mvncv` | `mvn clean verify` |
  29. | `mvncvst` | `mvn clean verify -DskipTests` |
  30. | `mvnd` | `mvn deploy` |
  31. | `mvndocs` | `mvn dependency:resolve -Dclassifier=javadoc` |
  32. | `mvndt` | `mvn dependency:tree` |
  33. | `mvne` | `mvn eclipse:eclipse` |
  34. | `mvnfmt` | `mvn fmt:format` |
  35. | `mvnjetty` | `mvn jetty:run` |
  36. | `mvnp` | `mvn package` |
  37. | `mvns` | `mvn site` |
  38. | `mvnsrc` | `mvn dependency:sources` |
  39. | `mvnt` | `mvn test` |
  40. | `mvntc` | `mvn tomcat:run` |
  41. | `mvntc7` | `mvn tomcat7:run` |
  42. | `mvn-updates` | `mvn versions:display-dependency-updates` |
  43. ## mvn-color
  44. It's a function that wraps the mvn command to colorize it's output. You can use it in place
  45. of the `mvn` command. For example: instead of `mvn test`, use `mvn-color test`.
  46. Since [Maven 3.5.0](https://maven.apache.org/docs/3.5.0/release-notes.html) the mvn command
  47. has colored output, so this function will be soon removed from the plugin.
  48. ### Known bugs
  49. It has a bug where it will swallow mvn prompts for user input, _e.g._ when using
  50. `archetype:generate`. See [#5052](https://github.com/ohmyzsh/ohmyzsh/issues/5052).