Saturday, 14 September 2013

Add jar to classpath using Maven without installing to repository

Add jar to classpath using Maven without installing to repository

I have a jar that has a specific naming and must not be altered because
native libraries are referring to it (part of a JNI). I can not install it
to a maven repository because of mavens naming convention. How can I add
this file to the classpath using maven configuration? It works by adding
the jar to the ".classpath" file of eclipse, but I want a maven solution
to this problem.
Thanks in advance!

No comments:

Post a Comment