Maven 使用 Maven Dependencies 和 Referenced Libraries 构建项目

Maven building a project using both Maven Dependencies and Referenced Libraries

是否有命令可以让 Maven 在构建项目时使用引用的库?

参见Maven/POM 参考Dependencies section

The cornerstone of the POM is its dependency list. Most every project depends upon others to build and run correctly, and if all Maven does for you is manage this list for you, you have gained a lot. Maven downloads and links the dependencies for you on compilation and other goals that require them. As an added bonus, Maven brings in the dependencies of those dependencies (transitive dependencies), allowing your list to focus solely on the dependencies your project requires.