Eclipse freezes in construction project after each save

It has become so annoying. Every time I save the Ant construct, I get Eclipse when rebuilding myself ... I have a Java Project that depends on a project other than Java. When I edit a file in a project other than Java, save, create. I get the whole project synchronization process started ... After 1-5 minutes, I get the invitation back.

+7
source share
2 answers

You can try disabling auto-build globally in the Project menu. If you do this, the Build ... project and Build all options will become enabled, allowing you to manually create when necessary.

Another option would be to set the update workspace policy of the completed ANT assembly (if you are using Eclipse AntRunner): in the Run configuration on the Update tab, you can manually select only the project update modified with the ANT build.

+5
source

I had the same problem, every time I edited web.xml, it hung, showing a busy icon for 5-10 seconds. I tried an old web project and it worked fine.

I found that the web.xml web application tag is different, and after changing it, the problem disappeared. I think this has something to do with finding XML schemas.

I think you can turn off the circuit check (which exits and loads the circuit every time).

Otherwise, find what I changed below to stop it every time I save.

From:

  `<web-app xmlns =" โ€‹โ€‹http://java.sun.com/xml/ns/j2ee "
     xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
     xsi: schemaLocation = "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
     version = "2.4"> `

To:

  `<web-app xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance " 
   xmlns = "http://java.sun.com/xml/ns/javaee" 
   xmlns: web = "http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd" 
   xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
   version = "2.5"> `

I know that the version differs from 2.4-> 2.5, but note that it refers to the layout of the circuit in different ways.

+3
source

All Articles