如何在Eclipse中访问(嵌入)Maven控制台?

问题描述:

可以在Eclipse中访问Maven(嵌入式)控制台,如shell(linux shell,windows cmd.exe),以运行自定义maven命令(mvn archetype:create .... etc)?我使用的是m2e,但是只能通过GUI运行Maven命令。

Is possible to access Maven (embedded) console in Eclipse like in shell (linux shell, windows cmd.exe) to run custom maven commands (mvn archetype:create.... etc) ? I'm using m2e, but can run Maven commands only by GUI.

您可以直接从Eclipse运行自定义maven命令做:

You can run custom maven commands directly from Eclipse by doing:

 Run -> Run Configurations... -> Maven Build

您将只需要一些适用于Eclipse的Maven插件,如m2e。

You'll need just some Maven plugin for Eclipse like m2e.