Last active
April 12, 2016 07:36
-
-
Save zyjibmcn/45fd576fa81eba753701f7f8554e6885 to your computer and use it in GitHub Desktop.
maven常用的命令行工具
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**mvn help:effective-pom** - 生成完整的pom.xml,包含从parent projects继承而来的东西 | |
**mvn dependency:copy-dependencies** - 将项目依赖的所有jars放到一个目录中target/dependency | |
以上两个命令可以将一个maven项目转换成一个Java project(src/, lib/, ...). | |
这个有时候在出现解决不了的问题,请求外部support时比较有用。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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