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

Bug 369307

Summary: natives and m2e
Product: z_Archived Reporter: Alexey Kuznetsov <axet>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: enhancement    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Alexey Kuznetsov CLA 2012-01-20 19:02:27 EST
Hello!

I'm looking for easy way to add native librarys to eclipse. After some internet digging I found the best way to do so is by using maven + m2e.

Unfortunatly m2e plugin do not handle native librarys in any way. Some times ago here is been mavennatives pom build plugin which can handle for the natives and add it to the project.

But with last eclipse release 3.7 this feature has been dropper.

Right now i see no easy and simple way to add natives.
Comment 1 Igor Fedorenko CLA 2012-01-20 19:42:49 EST
First please provide complete standalone example that works from command line and also provide detailed expected behaviour of that project inside eclipse workspace. Then we can discuss the best way to implement this in m2e.
Comment 2 Alexey Kuznetsov CLA 2012-01-20 19:51:06 EST
Can i just give a link, it has some expalantion as it does on eclipse previous version?

http://code.google.com/p/mavennatives/

This Eclipse plugin is an extension to m2eclipse, it detects if you have the maven plugin configured, and if you do it executes the unpacking of natives, and configures the Native Library Location.

If you import a maven project that has the mavennatives plugin configured, and you have the m2eclipse integration plugin, on import the natives will be extracted, also when performing a clean from eclipse the natives will be extracted.

So, if you use both these tools, using native dependencies requires no manual configuration, other than whats in the pom, just run your app and it works.
Comment 3 Igor Fedorenko CLA 2012-01-20 20:02:11 EST
I am not sure I understand the problem then. There is an existing m2e extension that works with mavennatives already, so you just need to install it. Am I missing something?
Comment 4 Alexey Kuznetsov CLA 2012-01-20 20:10:59 EST
that is right. i have installed everyting and it is not working.

eclipse dont see natives, project settings isn't changed (im looking for natives folder referernsing), natives is not created after i call project clean.

seems like m2e drops support for mavennatives plugin.
Comment 5 Igor Fedorenko CLA 2012-01-21 07:21:36 EST
And what makes you think the problem is in m2e and not in mavennatives m2e integration?
Comment 6 Alexey Kuznetsov CLA 2012-01-21 12:16:10 EST
i can't guess, i need some one to tell me. sorry.

studding source of booth project is not the right answer to me.

but having this functionlatial is critical for m2e project.
Comment 7 Igor Fedorenko CLA 2012-01-21 12:39:18 EST
m2e development team is not in the position to troubleshoot problems with thirdparty m2e extensions. For m2e problems we generally expect standalone example project and steps to reproduce the problem using clean/fresh "Eclipse IDE for Java Developers" installation.
Comment 8 Denis Roy CLA 2021-04-19 13:25:25 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/