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
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.
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.
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.
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!
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
Update the Maven project:
Steps: