Re: "mvn release:prepare" fails but "mvn -X release:prepare" works
Steinar Bang <[email protected]> Fri, 23 Jan 2026 20:13:33 +0100
| Newsgroups | gmane.comp.jakarta.turbine.maven.user |
|---|---|
| Organization | Probably a good idea |
| Message-ID | <[email protected]> |
>>>>> Steinar Bang <[email protected]>: >>>>> Tamás Cservenák <[email protected]>: >> Found the karaf issue, went to 3.9.10 and >> https://gist.github.com/cstamas/4b80c164506ec4f0c4bf2f6c4acaf436 >> did several builds and "releases" (of course, at end I failed w/o >> auth), still nada. > So you're saying it is something in my local environment, probably...? > Something in ~/.m2/repository/ maybe? > I will try trashing the entire ~/.m2/repository and do a "mvn clean" and > then try a new release. Hm... didn't help. Did "rm -rf ~/.m2/repository" Then "mvn clean install" which failed. https://gist.github.com/steinarb/22de7404c08354f3297f7f6c5e4a3c96#file-build1_log-L47 Did "rm -rf ~/.m2/repository/org/jacoco" (to lose the lastUpdated files stopping maven from looking at remote repos) Then a new "mvn clean install" which ran OK. Then a "mvn release:prepare" which fail in a new but similar way (junit jupiter not finding production classes is a recurring issue): https://gist.github.com/steinarb/22de7404c08354f3297f7f6c5e4a3c96#file-release_log-L152