[英]Java maven project building with clean, install, run as
Many times I find that for my changes to take effect while working on a Maven/java project I need to Maven clean -> Maven install -> run as .. 很多时候,我发现为了使更改在Maven / java项目上生效时生效,我需要Maven清理-> Maven安装->以..运行。
How can I automate this in Eclipse? 如何在Eclipse中自动执行此操作? So every time Im running the application it would clean, install then run
因此,每次我运行该应用程序时,它都会清理,安装并运行
Install the m2Eclipse plugin in your eclipse http://www.eclipse.org/m2e/ 在您的Eclipse中安装m2Eclipse插件http://www.eclipse.org/m2e/
or create bat file in your project with command mvn clean install
或使用命令
mvn clean install
在项目中创建bat文件
If you select option 5 "Maven build...", you will get a window where you can specify different goals. 如果选择选项5“ Maven build ...”,则会出现一个窗口,您可以在其中指定其他目标。 Put in
clean install
and click Run. 进行
clean install
,然后单击“运行”。 This will create a new menu item (which you can also name) in the "Run As..." menu. 这将在“运行方式...”菜单中创建一个新的菜单项(您也可以命名)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.