Azure DevOps SaaS Maven 构建代理问题

问题描述

我有一个关于 Azure DevOps SaaS Maven 构建代理问题的问题。

当我使用 Azure DevOps SaaS (Windows 2019) Maven 构建代理运行 maven 构建时,我收到以下错误消息。 我通读了 MojoExecutionException 指南,似乎是 POM.xml 中的插件导致了问题。

  1. 我如何知道是哪个 POM 导致了这个问题?
  2. 此问题修复的指导方针是什么?

顺便说一句,该构建在开发人员的本地 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

以下几个类似案例供参考:

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...