【问题标题】:When Jenkins Building a maven project gave Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter Jenkins [duplicate]当 Jenkins 构建 maven 项目时出现错误:无法找到或加载主类 org.apache.maven.surefire.booter.ForkedBooter Jenkins [重复]
【发布时间】:2019-04-09 13:30:23
【问题描述】:
Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter Jenkins.

我从 jenkins 构建 maven 项目时遇到以下错误。

【问题讨论】:

    标签: java amazon-web-services maven jenkins pom.xml


    【解决方案1】:

    我将此添加到我的 pom xml 插件中。这解决了我所有的问题。

    <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.22.1</version>
                <configuration>
                    <useSystemClassLoader>false</useSystemClassLoader>
                </configuration>
            </plugin>
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-05-21
    • 2017-07-30
    • 1970-01-01
    • 2015-04-14
    • 2020-05-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多