Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.

前端 未结 28 1638
予麋鹿
予麋鹿 2020-12-03 06:41

I have been trying from a couple of days to resolve the following error but I am unable to resolve it :(

My module\'s pom.xml file is:



        
28条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-03 07:16

    This happens when Maven tries to run your test cases while building the jar. You can simply skip running the test cases by adding -DskipTests at the end of your maven command.

    Ex: mvn clean install -DskipTests or mvn clean package -DskipTests

提交回复
热议问题