[英]Azure DevOps SaaS Maven build agent issue
我對 Azure DevOps SaaS Maven 構建代理問題有疑問。
當我使用 Azure DevOps SaaS(Windows 2019)Maven 構建代理運行 maven 構建時,我收到以下錯誤消息。 我通讀了 MojoExecutionException 指南,似乎是 POM.xml 中的插件導致了這個問題。
順便說一句,該構建在開發人員的本地 Maven 構建環境中運行良好
感謝您一直以來的幫助!
構建錯誤
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :eorder-base
POM.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>eorder</artifactId>
<groupId>kr.co.ob.eorder</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>kr.co.ob.eorder.base</groupId>
<artifactId>eorder-base</artifactId>
<packaging>jar</packaging>
<name>eorder-base</name>
<properties>
<spring-boot.repackage.skip>true</spring-boot.repackage.skip>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/servlets.com/cos -->
<dependency>
<groupId>servlets.com</groupId>
<artifactId>cos</artifactId>
<version>05Nov2002</version>
</dependency>
<!-- JWT -->
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
</dependency>
<dependency>
<groupId>com.sap.conn</groupId>
<artifactId>sapjco</artifactId>
<version>3.1.3</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/sapjco3.jar</systemPath>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>/**/*</include>
</includes>
</resource>
</resources>
</build>
</project>
請從您的 Maven 項目中嘗試以下命令行,看看是否可以解決問題。
mvn clean install
以下是幾個類似的案例作為參考:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.