Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当使用 maven 1(不是 maven 2)作为构建工具时,有没有办法将项目的依赖项复制到某个目录中?
我知道 Maven 2 存在一个依赖插件,但我找不到 Maven 1 的依赖插件。
将所有依赖项 jar 复制到文件夹的最简单方法是什么?
你将不得不使用 Jelly 来做到这一点,使用类似这样的东西:
<j:forEach var="lib" items="${pom.artifacts}"> <ant:copy todir="${your.target.dir}" file="${lib.path}"/> </j:forEach>