Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test

前端 未结 14 1891
夕颜
夕颜 2020-11-29 16:35

I have scoured the internet for almost five days now looking for a fix to this issue, but I cannot seem to find and fix it on my own, mainly because I am so new to both Mave

相关标签:
14条回答
  • 2020-11-29 17:05

    You're probably missing some dependencies.

    Locate the dependencies you're missing with mvn dependency:tree, then install them manually, and build your project with the -o (offline) option.

    0 讨论(0)
  • 2020-11-29 17:06

    When I encountered the problem, the changes.xml document was malformed (missing an end tag). The fix was to edit the XML to make it well formed.

    So checking that the XML is well formed can be important, especially when the release plugin does not complain about it.

    0 讨论(0)
  • 2020-11-29 17:09

    I had similar issue, I was able to solve it using -U option along with mvn command as

    mvn clean install -U
    

    This worked for me, hope it helps.

    0 讨论(0)
  • 2020-11-29 17:10

    I tried following instructions given in most of the comments on this thread, including the chosen answer but the error persisted. I did some research and found this page that gave a solution that helped me out (okay, with some guessing though of my part).

    So what I did is that I replaced the version number in the maven surefire plugin as follows: <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M1</version>

    I hope this helps!

    0 讨论(0)
  • 2020-11-29 17:10

    Or

    Navigate to project root folder and use following commands :

    mvn clean install -U or mvn clean install --update-snapshots

    Here -U will Forces a check for missing releases and updated snapshots on remote repositories

    0 讨论(0)
  • 2020-11-29 17:11

    Update the Maven project:

    Steps:

    1. Right-click on "project"
    2. Go to "Maven" >> "Update"
    3. Wait for all the changes to be applied
    4. Commit the changes (if code is on repo)
    5. Run
    0 讨论(0)
提交回复
热议问题