Best way to add local dependency to Maven project
问题 There are a lot of questions about this, but the answers seem to contradict each other. So I wanted to ask it for my version of Maven (3.0.4). I have a JAR file that's not part of any maven repository. It's a local dependency. I understand there are two ways to add it to my Maven project. Add it as a dependency and specify the file path in the <systemPath> property. (No other work needed.) Create a local repository <my-project>/repo and install the JAR in this repository. Then, add the new