问题标签 [aether-ant]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
196 浏览

windows - 为什么我的 Windows Slave 上的 aether-ant 中的工件路径搞砸了?

我正在使用 aether-ant 来解决 pom.xml 文件中的依赖关系。在我的 jenkins master 上运行脚本时,工件的路径如下所示:

但是,在 Windows 从站上运行它时,它看起来像:

在 jenkins master 和 jenkins windows slave 上,maven settings.xml 文件被拾取,所有工件都下载到 C:\m2 ......但由于某种原因,在 Windows slave 上,路径不是指向 C:\m2...

路径 C:\Windows\system32\config\systemprofile 甚至都不存在。

这是我的 ant 构建脚本的片段:

github 上的 aether-ant 项目可以在https://github.com/eclipse/aether-ant找到

我搜索了一下,发现一些条目说一些 Windows 注册表条目可能指向错误的目录......我不知道这是否与这个问题有关。

0 投票
0 回答
193 浏览

ant - 从 maven-ant-tasks 迁移到 aether-ant-tasks

作为 Fedora 项目打包软件的一部分,我想更新一个上游 ant 构建,它使用 maven-ant-tasks 进行依赖解析,以使用 aether-ant-tasks。这两个库令人沮丧地彼此接近,但它们并不完全兼容。特别是,这个构建使用多个<dependencies>元素来声明多个类路径和文件集;这对于 maven-ant-tasks 是可以的,但对于 aether-ant-tasks 来说不是(据我所知)。在以太蚂蚁任务中处理这个用例有没有好方法?