问题
When I choose the option to export my dynamic web project in Eclipse (Juno) as a WAR file, all of the .java files are being deployed to WEB-INF/classes along with the .class files. I've never noticed this happening before, so I was wondering what I needed to do to stop this from happening.
回答1:
I could not reproduce this on Juno, however I noticed there is a checkbox named "Export source files" I assume you have it unchecked, but if not, then this might be it.

来源:https://stackoverflow.com/questions/12462200/eclipse-including-java-source-code-files-with-class-files-in-war