Maven surefire could not find ForkedBooter class

后端 未结 20 2693
盖世英雄少女心
盖世英雄少女心 2020-11-28 19:21

Recently coming to a new project, I\'m trying to compile our source code. Everything worked fine yesterday, but today is another story.

Every time I\'m running

20条回答
  •  猫巷女王i
    2020-11-28 19:43

    I recently setup maven job on Jenkins and got stuck into the same problem. I took the suggestion to modify the JAVA env variable and confirm the issue resolved. This is how I tested.

    Becomes "jenkins" user and change folder to workspace project name that you setup for the job.

     $ _JAVA_OPTIONS=-Djdk.net.URLClassPath.disableClassPathURLCheck=true mvn clean install -U
    
     $ lsb_release -rd
     Description:   Ubuntu 16.04.5 LTS
     Release:   16.04
    
     $ mvn -v
     Apache Maven 3.3.9
     Maven home: /usr/share/maven
     Java version: 1.8.0_181, vendor: Oracle Corporation
     Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
     Default locale: en_US, platform encoding: UTF-8
     OS name: "linux", version: "4.4.0-131-generic", arch: "amd64", family: "unix"
    

提交回复
热议问题