我有一个我的项目依赖的jar,但是该库中还包含一个实用程序,但是为了使该实用程序正常工作,我需要主JAR依赖的所有依赖项。
库的制造商为其提供了jar-with-dependencies.jar文件,该文件也位于中央Maven存储库中。
但是,当我仅指定groupId / artifactId / version时,我在.m2/repository
目录中看到的只是主jar,而不是一个jar-with-dependencies.jar
。
如何自动下载该库的jar-with-dependencies.jar
?当我在pom.xml
中将该库指定为依赖项时,是否要指定一些特殊内容?