Is it necessary to always select 'update project' before selecting run as 'maven build…' in Eclipse?

huangapple go评论65阅读模式
英文:

Is it necessary to always select 'update project' before selecting run as 'maven build...' in Eclipse?

问题

以下是翻译好的内容:

在在 Eclipse 中执行 Maven 构建之前,我是否必须首先更新项目?(参考图片)

如图片所示更新项目

在图片中看到的选项中选择“作为 Maven 构建运行”?

如图片所示的“作为 Maven 构建运行”选项

我是否可以直接选择“作为 Maven 构建运行”选项?如果我这样做会有什么影响吗?

英文:

Do I have to go update project first before run as maven build in Eclipse? (Refer to pics)

Update Project as seen in picture

Run as Maven build... option as seen in picture

Can I just select the run as Maven build... option? Will there be any implications if I did that?

答案1

得分: 1

不需要在使用“以Maven构建运行…”之前运行更新项目。通常情况下,您使用更新项目将Eclipse项目与pom.xml的内容进行同步。因此,您在更改pom.xml中的内容后使用它。

另请参考此问题:

https://stackoverflow.com/questions/20546962/what-does-maven-update-project-do-in-eclipse

英文:

No, it is not required to run update project before building with "Run as Maven build ...".
You usually use update project to sync the Eclipse project with the content of the pom.xml. So you use it after changing something in the pom.xml.

See also this question:

https://stackoverflow.com/questions/20546962/what-does-maven-update-project-do-in-eclipse

huangapple
  • 本文由 发表于 2020年9月9日 18:13:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/63809468.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定