Bug 334143 - [jar exporter] export project as jar puts resources in resources dir
Summary: [jar exporter] export project as jar puts resources in resources dir
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-01-12 12:36 EST by Sebastian Dietrich CLA
Modified: 2011-05-01 18:37 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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