My Java library depends on Boost C++. I’ve generated the following artifact:
boost-maven-project:boost-thread:jar:windows-i386-vs10:1.47.0-b1
where windows-i386-vs10 denotes: “Windows platform, 32-bit architecture, Visual Studio 2010 linker”.
I’ve attempted to upload this to Maven Central but the Sonatype staff dislikes the fact that the artifact does not contain a main JAR (only attachment JARs, one per platform).
I don’t think that “bundle” packaging is any more appropriate than JAR. Nor do I want to depend on the NAR project (which seems to be inactive). Is there a precedence in the Maven world? What is the best way to package precompiled binaries (without a corresponding Java component)?
I ended up packaging binaries in JAR files without a main-jar.