Community
Participate
Working Groups
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.
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.
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.
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?
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.
And what makes you think the problem is in m2e and not in mavennatives m2e integration?
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.
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.
Moved to https://github.com/eclipse-m2e/m2e-core/issues/