How do I add jars needed to compile a maven project if they were never built with a pom?
Posted
by JasonH
on Stack Overflow
See other posts from Stack Overflow
or by JasonH
Published on 2010-05-18T21:44:49Z
Indexed on
2010/05/18
21:50 UTC
Read the original article
Hit count: 204
I'm just starting with maven, coming from years of working with Ant. I'm trying a basic task now, building a simple project that requires some libraries from a vendor. I have the jars in src\main\resources\VENDORNAME. When I run mvn compile it fails on compilation saying the libraries don't exist.
I can't seem to add these as dependencies because I don't know their version number and as they are proprietary I can't find them in ibiblio or elsewhere. Without these Jars I can't compile my classes.
Is there a way to use jars that didn't follow Maven's convention? I might not understand maven correctly, so any guidance is welcome. Much appreciated for any responses.
© Stack Overflow or respective owner