maven-nar-plugin

Nar dependency in multi-module maven project

给你一囗甜甜゛ 提交于 2020-01-03 18:55:33
问题 I set up a multi module maven project, which is comprised of a module destined to build nar jni library, and a jar packaged module that is dependent on that library. I am able to install the nar library to my local maven repository, but I fail to use it in dependent module. For instance, I run mvn nar:nar-unpack and I get: [INFO] ------------------------------------------------------------------------ [INFO] Building nar-dependent 1.0-SNAPSHOT [INFO] ------------------------------------------

build C++ projects in Maven with maven-nar-plugin

雨燕双飞 提交于 2020-01-01 03:26:09
问题 has anyone using maven-nar-plugin to build C++ code for different platforms, using different compilers? If there is someone please give me more info regarding this. I am just wondering how can be a NAR file built for different platforms with maven. I know that in order to be able to build a project on a specific platform you should run the build on that platform, and use the specific compilers and linkers of that platform. But my experience is related to Java projects and Maven and as you

Maven cannot run program “link”

旧城冷巷雨未停 提交于 2019-12-25 04:16:06
问题 I am trying to build a simple C++ project with maven and the nar-maven-plugin, but I'm getting the following error: Failed to execute goal com.github.maven-nar:nar-maven-plugin:3.2.3:nar-validate (default-nar-validate) on project it0015-cpp-executable: Could not launch cmd.exe /X /C "link /?": Error while executing process. Cannot run program "link": CreateProcess error=2, The system cannot find the file specified -> [Help 1] I am using Windows 8.1. Does anyone have ideas on how to

maven-nar-plugin and tests in dependent module

て烟熏妆下的殇ゞ 提交于 2019-12-25 02:44:47
问题 I have two maven modules: native-wrapper - is a JNI wrapper over system lib, that is build by nar-maven-plugin. main-module - depends on native-wrapper and uses it's JNI calls during tests. Tests in native-wrapper work fine. But, during tests in main-module, I get "UnsatisfiedLinkError" - NarSystem is unable to locate my JNI lib. native-wrapper's pom includes: ... <packaging>nar</packaging> ... <plugin> <groupId>com.github.maven-nar</groupId> <artifactId>nar-maven-plugin</artifactId> <version

Using a native Maven artifact (nar) in a webapp

℡╲_俬逩灬. 提交于 2019-12-13 02:25:36
问题 I have a native shared library that is built and packaged using the maven-nar plugin. This works great and builds on Linux/MacOSX/Windows. I've also defined a JNI library, also built using maven-nar, that wraps the shared library. Both of these are produced as NAR artifacts and require the maven-nar plugin in order to be used. The problem arises when declaring a dependency on these NARs from a non-NAR-packaged project. The maven-nar plugin never seems to get invoked. Only when I change the

Avoiding machine-dependent POM with MinGW compiler and nar-maven-plugin

二次信任 提交于 2019-12-11 06:51:56
问题 I have a simple JNI-based project up to experiment with the nar-maven-plugin . I'm running Windows 10 and am using MinGW compilers. I'm compiling the native code as C++ rather than C, although I don't think that matters for this question. (The native implementations in the "real" project will use C++, so just changing this is not trivial once I move beyond this initial test.) In order to make this build with maven install via the Eclipse IDE, I need to specify the linker explicitly in the POM

Adding a JNI library to the local Maven Repository

China☆狼群 提交于 2019-12-03 11:24:19
问题 I wish to add a JNI library, including its shared object (.so) file to my project using Maven. Unfortunately it is not yet on a public repository so I guess I have to install it myself on my local repository to have it working. How do I go about including the native part in Maven to be bundled in my project (and eventually exported with the copy-dependencies plugin). This is a standard J2SE app (not a web-app), with packaging .jar? The library I am trying to add is junixsocket, just in case

build C++ projects in Maven with maven-nar-plugin

纵饮孤独 提交于 2019-12-03 08:05:00
has anyone using maven-nar-plugin to build C++ code for different platforms, using different compilers? If there is someone please give me more info regarding this. I am just wondering how can be a NAR file built for different platforms with maven. I know that in order to be able to build a project on a specific platform you should run the build on that platform, and use the specific compilers and linkers of that platform. But my experience is related to Java projects and Maven and as you already know java is pretty platform portable so I've not experienced problems like thin until now. So,

Adding a JNI library to the local Maven Repository

烈酒焚心 提交于 2019-12-03 01:49:06
I wish to add a JNI library, including its shared object (.so) file to my project using Maven. Unfortunately it is not yet on a public repository so I guess I have to install it myself on my local repository to have it working. How do I go about including the native part in Maven to be bundled in my project (and eventually exported with the copy-dependencies plugin). This is a standard J2SE app (not a web-app), with packaging .jar? The library I am trying to add is junixsocket , just in case it helps to know. It has a .so (native library) component, and the Java .jar component. I came across