I have started to work on maven project recently.
The piece of code I am writing needs JAR files that are not a part of the project.
When I add the JARS TO THE build path and use a mvn clean install, the build is failing with errors saying that the classes that were supposed to be in the jar were not found.
Is there anything that i am missing?
Is there a different way to add the JAR’s in maven projects?
If the JARs are already hoisted in some public Maven repositories, add them to the
<dependency>section in thepom.xml. You may have to configure the address of these public Maven repositories in the<repositories>section in thepom.xmlin order to cause Maven can connect them.Otherwise , you have to use the
installcommand to include these JARs into the your local repository and then add their<dependency>section in thepom.xmlThe command to install the JARs into your local repository: