-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency as a source code - is it possible? #329
Comments
Are there any chances thy this issue is related to #326? |
The I have modified a bit With this modification nar-maven-plugin copies the A and B dependencies to target/nar/libraries folder and also tries to compile them (I'm using build-helper-maven-plugin to add this path to the sources). I see also that the gcc's search path is updated automatically with includes path, like Is this a bug or I have configured the plugin incorrectly? Am I on the good way? |
I have just one more thing to say in this topic. The search path from my last comment is like: It is not so good, because the A and B libraries that I have doesn't contain any *include folder. What I want to say that those libraries doesn't follow the NarFileLayout10.java I wanted to compile Arduino project with nar-maven-plugin but the Arduino library's layout is different; there is no such a folders like include, bin or lib. |
If the dependency is not a nar file (doesn't conform to a NarLayout) then this plugin will not help you. If you want to do something like this, it has to be configured manually using the maven-dependency-plugin unpack or similar. That way, you can unpack the source code to a directory under target and add that as a source directory to your project. Since this isn't a bug in NAR itself, I am closing. |
I have a generic question about using nar-maven-plugin. I do not know how to configure the plugin to do what I want to do. Here is the case:
in my main C++ project (let's call it MAIN) I want to use two dependencies: let's call it A and B. I can provide those dependencies as a NAR packages and they will be available in my local Maven repository. One remark is, that those dependecies are provided as a source code. It would be nice if I could do the following with nar-maven-plugin when I execute mvn clean package on MAIN project:
gcc -IpathToIncludesOfA -IpathToIncludesOfB ...
I thought that nar plugin will unpack the dependencies in the
NarUnpackMojo
but it doesn't work; the dependencies A and B are not copied. I took a quick look at the source code of NarUnpackMojo and it looks like it will copy only the dependencies that are defined by A and B, but not the A and B itself. Is it a desired behavior? Maybe I do not understand how it suppose to work or I'm not using nar-maven-plugin correctly?The text was updated successfully, but these errors were encountered: