Skip to content

Instantly share code, notes, and snippets.

@zyjibmcn
Last active April 12, 2016 07:36
Show Gist options
  • Save zyjibmcn/45fd576fa81eba753701f7f8554e6885 to your computer and use it in GitHub Desktop.
Save zyjibmcn/45fd576fa81eba753701f7f8554e6885 to your computer and use it in GitHub Desktop.
maven常用的命令行工具
**mvn help:effective-pom** - 生成完整的pom.xml,包含从parent projects继承而来的东西
**mvn dependency:copy-dependencies** - 将项目依赖的所有jars放到一个目录中target/dependency
以上两个命令可以将一个maven项目转换成一个Java project(src/, lib/, ...).
这个有时候在出现解决不了的问题,请求外部support时比较有用。
@zyjibmcn
Copy link
Author

Generate a project skeleton from a archetype, issue this command will bring you a list of archetypes, choose the number of the

archetype you want to use, then input the groupId, artifactId, package

mvn archetype:generate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment