Re: "mvn clean install" builds without problem but "mvn release:prepare" fails with compilation error

Slawomir Jaranowski <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.user
Message-ID <CAGjJkv338sbQBbmt-gViT+rmvEAZ9ktXCtUqmVav7LCtR5diMA@mail.gmail.com>
Hi,

As release execute goal, after bump version from snapshot to release:

[INFO] Executing goals 'clean verify'...


you can try  build project by the same goal
mvn clean verify

next you can update version manually to release one

mvn versions:set -DnewVersion=3.0.2
and build again
mvn clean verify

On Thu, 10 Jul 2025 at 20:31, Steinar Bang <[email protected]> wrote:
>
> >>>>> Tamás Cservenák <[email protected]>:
>
> > Steinar, also try with newer Maven, see 3.8.8 and 3.8.9 (if 3.9.10 is
> > not an option for you):
>
> > https://issues.apache.org/jira/projects/MNG/versions/12352869
> > https://issues.apache.org/jira/projects/MNG/versions/12353108
>
> > There were some bugfixes related to forking mojos, the ones you used
> > (before latest commit)
>
> Tried maven 3.9.10, both with and without your change, but behaviour on
> "mvn release:prepare" was the same as with maven 3.8.7 :-/
>
> I also tried removing both source jars and javadoc jars but still no
> luck with release:prepare (both were tried on 3.8.7 but I'm not sure if
> maven version would make a difference...?)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>


-- 
Sławomir Jaranowski
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.