Eclipse including Java source code files with clas

2019-07-17 10:29发布

问题:

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.



标签: java eclipse war