简体   繁体   English

Java Maven项目构建,带有清理,安装和运行方式

[英]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.

相关问题 Maven项目(Cucumber + TestNG + Selenium-Java)测试无法使用mvn clean install在命令行上运行测试 - Maven Project(Cucumber+TestNG+Selenium-Java] Test Can't Run test on command line with mvn clean install 使用Maven全新安装某些模块会导致错误:构建POM时出错(可能不是该项目的POM) - Clean install some modules with maven results in an error: Error building POM (may not be this project's POM) Maven项目在“全新安装”之前起作用。 为什么? - Maven project worked before “clean install”. Why? Maven全新安装无法在项目上执行目标 - Maven clean install failed to execute goal on project JAVA maven 全新安装测试未完成迭代器 - JAVA maven clean install test not finishing iterator 如何配置maven hbm2hbmxml和hbm2java在mvn clean install中一个接一个地运行 - How to configure maven hbm2hbmxml and hbm2java to run one after the other in mvn clean install 为什么我总是需要在 intellij 中执行主 Java 代码之前运行“maven clean install”? - Why I always need to run "maven clean install" before executing main java code in intellij? Maven - 无需构建即可安装项目依赖项 - Maven - Install project dependencies without building java maven exec-maven-plugin没有在mvn clean install上执行 - java maven exec-maven-plugin not executing on mvn clean install 在Java中以编程方式运行maven install? - Run maven install programmatically in Java?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM