Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334143

Summary: [jar exporter] export project as jar puts resources in resources dir
Product: [Eclipse Project] JDT Reporter: Sebastian Dietrich <Sebastian.Dietrich>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, pwebster
Version: 3.7Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Sebastian Dietrich CLA 2011-01-12 12:36:51 EST
Build Identifier: 20100917-0705

I'm having a Maven project structure with some gifs in src/main/resources. Like normal sources they get compiled into target/classes. So far so good.
When I export the project as jar file the classes are in root, while the gifs are put in resources --> resources are not found

Reproducible: Always
Comment 1 Dani Megert CLA 2011-01-13 03:45:08 EST
Please attach a test project that demonstrates the problem along with screenshots that show us which options you use in the wizard.
Comment 3 Sebastian Dietrich CLA 2011-05-01 18:37:58 EDT
Works for me now as well - the problem was that generating a new maven project with M2Eclipse plugin sets JavaBuildPath of src/main/resources to "Excluded: **" - so it seems to be a bug of the plugin