jarjava-native-interfacemaven-3archivajnotify

Getting JNotify into Maven/Archiva


I am currently working on a project that includes using JNotify to monitor when a directory/file has been created, renamed/modified, and deleted. The project is being built in Java 6, not Java 7. JNotify uses JNI to hook into the native OS to monitor the directory/file. My problem is that I need to get JNotify into our repo but I want it to be built so that the java.library.path (DLL) is packaged with the JNI JAR. How would I go about doing that in Maven?


Solution

  • I was able to find the solution I needed using the following maven plugin: http://code.google.com/p/mavennatives/