[英]Pipeline for a java based web app on azure devops.Apache maven to create build . Below yaml code and the output error i'm getting
trigger:
- master
pool:
vmImage: ubuntu-latest
steps:
- task: Maven@3
inputs:
mavenPomFile: 'smart-test-admin-api/pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'
BUILD ERROR: [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Malformed POM /home/vsts/work/1/s/smart-test-admin-api/pom.xml: Unrecognised tag: 'repositories' (position: START_TAG seen...\n... @17:19) @ /home/vsts/work/1/s/smart-test-admin-api/pom.xml, line 17, column 19 @ [ERROR] The build could not read 1 project -> [Help 1]构建错误:[错误] [错误] 处理 POM 时遇到一些问题:[错误] 格式错误的 POM /home/vsts/work/1/s/smart-test-admin-api/pom.xml:无法识别的标签:'存储库'(位置:START_TAG 看到...\n...@17:19)@ /home/vsts/work/1/s/smart-test-admin-api/pom.xml,第 17 行,第 19 列 @ [错误] 构建无法读取 1 个项目 -> [帮助 1]
Malformed POM /home/vsts/work/1/s/smart-test-admin-api/pom.xml: Unrecognised tag: 'repositories' (position: START_TAG seen...\n... @17:19)格式错误的 POM /home/vsts/work/1/s/smart-test-admin-api/pom.xml:无法识别的标签:“存储库”(位置:已看到 START_TAG...\n...@17:19)
Based on the error message, this issue is from the Pom.xml.根据错误消息,此问题来自 Pom.xml。 The format of the repositories field in Pom.xml file has some issue. Pom.xml 文件中存储库字段的格式存在一些问题。
Here is the correct format sample: you could refer to it and check your content format of the Pom.xml file.这是正确的格式示例:您可以参考它并检查 Pom.xml 文件的内容格式。
<project>
...
<repositories>
<repository>
<id>my-repo1</id>
<name>your custom repo</name>
<url>http://jarsm2.dyndns.dk</url>
</repository>
<repository>
<id>my-repo2</id>
<name>your custom repo</name>
<url>http://jarsm2.dyndns.dk</url>
</repository>
</repositories>
...
</project>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.