Community
Participate
Working Groups
Eclipse can't compile any class, but the jar package introduced by gradle can be generated normally. I used the Gradle command to compile war, but it was very successful, no error, using eclipse ui to deploy tomcat does not always compile class ```shell ``` If you can, I hope to agree on a point in time, remotely my computer reproduces this bug.
Very weird, there is no error in eclipse, but it does not generate a normal war file. Exporting the war file will find that none of the classes are compiled, and other resource files are added normally.
I have cleared the project and refreshed the project (the project is based on gradle build)
My development environment Eclipse Java EE IDE for Web Developers. Version: Photon Release (4.8.0) Build id: 20180619-1200 OS: Linux, v.4.9.0-7-amd64, x86_64 / gtk 3.22.11 Java version: 1.8.0_171
I think this belongs in the webtools. In any case, we are going to need a testcase or complete steps to reproduce the issue.
How was the project first created? Can you attach the .project and .classpath files? I'll point out that the webtools doesn't actually compile your Java sources. It does help manage dependencies, validation of JSPs, and with deployment, but it's never invoking or responsible for the compilation of Java sources into class files. Looking at the settings folder for the likely duplicate bug 537503, the .settings folder is frankly a mess. Something has mismanaged at least the contents of the org.eclipse.wst.common.project.facet.core.xml file (again, though, this wouldn't affect whether sources get compiled). This looks more like a combination of Buildship and Spring Tools.