eclipse自动构建只在测试包运行一段时间后启动

eclipse自动构建只在测试包运行一段时间后启动,eclipse,Eclipse,我如何告诉eclipse增加查找已更改文件的时间,以便eclipse自动重新构建这些文件。目前,在大多数情况下,我必须在eclipse开始重建我的测试包后等待大约10-50秒。 与此同时,我不得不无限期地等待几十秒才能得到最新的编译版本——这真是令人恼火 也许它与我的eclipse.ini有关: -startup ../Eclipse/plugins/org.eclipse.equinox.launcher_1.6.100.v20201223-0822.jar --launcher.librar

我如何告诉eclipse增加查找已更改文件的时间,以便eclipse自动重新构建这些文件。目前,在大多数情况下,我必须在eclipse开始重建我的测试包后等待大约10-50秒。 与此同时,我不得不无限期地等待几十秒才能得到最新的编译版本——这真是令人恼火

也许它与我的eclipse.ini有关:

-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.6.100.v20201223-0822.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.100.v20210209-1541
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.11
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dsun.java.command=Eclipse
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Xms4g
-Xmx9g
--add-modules=ALL-SYSTEM
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-javaagent:/Applications/Eclipse.app/Contents/Eclipse/lombok.jar
我在Mac OS上使用Eclipse版本:2021-03(4.19.0)

我的项目:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>my-project</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.common.project.facet.core.builder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.jboss.tools.cdi.core.cdibuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.jboss.tools.ws.jaxrs.metamodelBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.validation.validationbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.m2e.core.maven2Builder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
        <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
        <nature>org.eclipse.m2e.core.maven2Nature</nature>
        <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
        <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
        <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
        <nature>org.jboss.tools.cdi.core.cdinature</nature>
        <nature>org.jboss.tools.ws.jaxrs.nature</nature>
        <nature>org.jboss.tools.jsf.jsfnature</nature>
    </natures>
</projectDescription>

我的项目
org.eclipse.jdt.core.javabuilder
org.eclipse.wst.common.project.facet.core.builder
org.jboss.tools.jst.web.kb.kbbuilder
org.jboss.tools.cdi.core.cdibuilder
org.jboss.tools.ws.jaxrs.metamodelBuilder
org.eclipse.wst.validation.validationbuilder
org.eclipse.m2e.core.maven2Builder
org.eclipse.jem.workbench.JavaEMFNature
org.eclipse.wst.common.modulecore.ModuleCoreNature
org.eclipse.jdt.core.javanature
org.eclipse.m2e.core.maven2Nature
org.eclipse.wst.common.project.facet.core.nature
org.eclipse.wst.jsdt.core.jsNature
org.jboss.tools.jst.web.kb.kbnature
org.jboss.tools.cdi.core.cdinature
org.jboss.tools.ws.jaxrs.nature
org.jboss.tools.jsf.jsf

在“首选项常规”>“工作区”中,启用了使用本机挂钩或轮询刷新选项,工作区位于本地驱动器上,对吗?@howlger是的,挂钩已启用,其位于本地右侧。原因是
-XX:+UseG1GC
还是
eclipse.ini
中的任何其他设置?我不这么认为。在项目资源管理器或包资源管理器中,当您点击刷新(F5)时,您不必等待,对吗?如果是,请告知您的工作区所在的文件系统。如果没有,请显示您的
.project
文件(使用project builder),并告诉您是否有一些防病毒软件可以在访问文件时扫描这些文件。手动刷新有效-无需等待。Mac OS上工作区所在的文件系统:APFS卷。我没有任何反病毒软件在后台。我在上面的问题中粘贴了我的
.project
。看起来像(与Windows相比,macOS的本机钩子尚未实现)。