I'm wondering if it is feasible to use nar-maven-plugin without the internal build engine. Coming from the C++ camp, we have a large code base which is largely CMake-based, and I'm investigating if nar-maven-plugin could be customized to work with that. The primary feature I'm looking for is dependency management, not building the actual C++ code.
Thanks in advance,
/Jesper
Hi Jesper,
I was looking into that myself and have found that it is not a big problem. You just have to make sure to get the output-files in the right location for the NAR-plugin to package it all up, but that's about it.
I'll try to make an example POM for you.
Thanks. I would like to avoid having to place such hard requirements on the CMake project about where to put things. We have a pretty large codebase in CMake projects, and it would be nice if it was possible to make the Maven site adapt to the CMake package structure.
However, there is one big thing missing, and that is dependency management. I would like to (with minimal effort on the developer's part) to be able specify dependencies on other Maven modules (using the same conventions or plugins) and have those dependencies automatically injected into the CMake build. On the CMake side, I can use INSTALL(EXPORT ...) to create a .cmake script file which will contain the "public" CMake "API" for a given project (i.e. a set of CMake targets), but for all of this to work, I need CMake to build the artifacts, and the Maven side to simply pick up whatever zip-file or tarball CMake has produced. I have a proof-of-concept pom.xml which does exactly this for a small toy project, but it needs to resort to some semi-black magic using external ruby scripts to get it all together.
Maybe I will write my own plugin for this, or possible extend nar-maven-plugin in some way. It would be nice if this was doable so that the generated Maven projects could use the same packaging type and have compatible binaries.
--
You received this message because you are subscribed to the Google Groups "NAR Maven plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-nar+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.