This content has been marked as final. Show 3 replies
To get an understanding of what will go into an exported EAR/WAR or what will be published when running from Eclipse, take a look under project properties on the "Deployment Assembly" page. The content of this page will be influenced by project type, which facets are installed and can be edited by user to customize the project.
Note that when you see a Java source folder mapping in the deployment assembly, Eclipse will actually include the compiled class files originating from that source folder. See the "Java Build Path" page for relationships between Java source and output folders.
Neither the deployment assembly (/src mapped to /WEB-INF/classes, /WebContent mapped to the root of the war) or the default output folder (build/classes) settings have information about the build/weboutput folder which gets generated as part of publish. What can we do to make sure resources generated under build/weboutput are included in the exported war?
Edited by: user623867 on Jan 2, 2013 1:02 PM
What can we do to make sure resources generated under build/weboutput are included in the exported war?You need to add a rule in the project's deployment assembly mapping build/weboutput to whatever location in WAR you need those files.