Eclipse 构建不工作

发布于 2025-01-05 06:26:04 字数 621 浏览 0 评论 0原文

我已经使用 Maven 布局设置了 Eclipse 项目。我还启用了 Maven 依赖管理(使用 m2eclipse)。我可以从 eclipse 菜单运行测试。

现在,我已经在我的项目中初始化了一个 git 存储库(在 eclipse 外部。无插件),并且我已经提交了 .gitignore 和 pom.xml 文件

.gitignore

*.pydevproject
.project
.metadata
bin/**
target/**
tmp/**
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

现在我创建了一个新分支并检查它是否可以工作。现在我的自动构建停止工作了。 Eclipse 菜单仍然显示“自动构建”已勾选。

我不是这里出了问题的人。 我有什么遗漏的吗?

I have set up eclipse project with maven layout. I have also enabled the maven dependency management(with m2eclipse). I can run the tests from the eclipse menu.

Now, I have initialized a git repository (external to eclipse. no plugins) inside my project and I have commited the .gitignore and pom.xml files

.gitignore

*.pydevproject
.project
.metadata
bin/**
target/**
tmp/**
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

Now I have created a new branch and checked it out to work. Now my autobuild is stopped working. The eclipse menu still shows "Build automatically" as ticked.

I am not what is going wrong here.
Is there something that I am missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ˉ厌 2025-01-12 06:26:04

OP Varun Naik 在评论中报告说:

似乎当我在 m2eclipse 中“启用依赖项”时,自动构建停止工作

这似乎是项目配置不再与 Maven 项目同步的迹象:

看来我的项目配置已以某种方式更新。
我右键单击 Project -> Maven->Update Project Conf,现在一切都恢复正常了。

这类似于问题“maven-archetype-webapp eclipse问题”。

The OP Varun Naik reports in the comment that:

It seems when I "Enable dependency" in my m2eclipse, the auto build stops working

That seems a sign of a project configuration being no longer in sync with the Maven project:

It seems that my project configurations were updated somehow.
I right clicked Project -> Maven->Update Project Conf, and everything is back to normal now.

This is similar to the question "maven-archetype-webapp eclipse problem".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文