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.
我对本地 jar 有系统依赖关系,该 jar 由 maven ant 执行任务使用 maven-ant-run 插件编译。如何确保在执行依赖任务之前执行了 ant 任务。我将系统范围用于编译后存在 jar 的相对路径。
它不依赖于依赖的范围,它依赖于您为任何特定插件绑定目标执行的生命周期阶段。
一种可能性是创建一个具有两个模块的多模块项目。模块 1 应该在构建模块 2 之前编译并放置该依赖项(这将拥有您现有的项目)