如何在Eclipse中使用m2e进行“mvn compile”和“mvn package” [英] How to do 'mvn compile' and 'mvn package' with m2e in Eclipse?
本文介绍了如何在Eclipse中使用m2e进行“mvn compile”和“mvn package”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
本周我开始使用Maven为我正在开展的一些项目,我使用Eclipse与m2e插件。我一直在看它,但是我找不到编译和打包的方法(据我看到我可以做干净,生成源,测试和安装)。如何通过m2e实现?
I've started this week to use Maven for some projects I'm working on and I use Eclipse with the m2e plugin. I've been having a look at it but I can't find a way to compile and package (as far as I can see I can do clean, generate-sources, test and install). How can this be achieved with m2e?
推荐答案
- 右键单击您的项目
- 运行方式
- Maven构建...
- 填写所需目标
- Hit Run
- Right click on your project
- Run As
- Maven build...
- Fill in the goals you want
- Hit Run
这篇关于如何在Eclipse中使用m2e进行“mvn compile”和“mvn package”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文