在maven中声明依赖项时,您是否可以指定项目所依赖但具有的最低版本 mvn exec 使用最新的二进制文件。
mvn exec
您可以管理每个依赖项的版本范围,例如:
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>[4.0,)</version> <scope>test</scope> </dependency>