在 AzureDevOps 管道中找不到 Maven POM 文件

时间:2021-04-20 11:57:20

标签: azure maven azure-devops devops pom.xml

我收到以下错误: problem picture

它说找不到 POM 文件。我的 github 项目中有我的 yaml 文件,如下所示: Project picture

我的 yaml 文件如下所示: 在我的 github 中有一个名为 dataops/poms/pom.xml 的文件夹中的 pom 文件,所以我不知道为什么找不到它。

<script>
var URL = 'https://your.domain/your-page.php';
// on 'beforeunload'
window.addEventListener('beforeunload', function (event) {  
    navigator.sendBeacon(URL);
    // more safely is to wait a bit
    var wait_until = new Date().getTime() + 500;
    while (new Date().getTime() <= wait_until);
});
</script>

非常感谢任何帮助!

1 个答案:

答案 0 :(得分:0)

我们建议您可以尝试使用 mavenPomFile: 'DATAOPS/poms/pom.xml' 而不是 mavenPomFile: '$(project_name)/poms/pom.xml'。 在我的测试中,我创建了一个类似于您的 yaml 的演示,并且它与完整路径配合良好: enter image description here enter image description here

请忽略测试结果,它只是用来检查任务是否可以找到 pom.xml。