native - How can I package a binary in Maven so that other projects can depend on it at compile time? -
i want build maven artifact contains executable native binaries other maven projects can depend on artifact , refer binaries @ build time.
i've looked @ maven-assembler-plugin , appears promising, i'm not sure how going end end. if tell package dir i'll still need way tell clients depend on artifact , have cause binaries pulled in , put in well-defined location.
some specifics might help. want put various platform versions of thrift compiler artifact. want clients depend on artifact , use maven-thrift-plugin execute binary thrift compiler appropriate platform generate java code built java compiler.
the maven-assembly-plugin
should sufficient package native binaries archive.
clients can use unpack
goal of maven-dependency-plugin
unpack archive given directory, e.g. current target
.
then need maven plugin knows how run native binaries , pick them given directory.
Comments
Post a Comment