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

Tamás Cservenák <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.user
Message-ID <CAPLpRQKseXY4j=qKPiOhX2JcNER5PVs5xG5Txm5c8Ph5ozYQnQ@mail.gmail.com>
Cool! So then we are sorted out?

If yes:
In cases like this, if we'd get a beer, half of it would be yours :D

Thanks
T

On Fri, Jul 11, 2025 at 4:22 PM Steinar Bang <[email protected]> wrote:
>
> >>>>> Steinar Bang <[email protected]>:
>
> > So I put the javadoc generation config back, and "mvn release:prepare"
> > stopped working again.
>
> > I have tried the following:
> >  1. Remove the aggregate javadoc
> >  2. Go back from javadoc-no-fork to javadoc as the execution goal
> >  3. Put javadoc attachment in the <verify> phase
>
> > But all of them fails in "mvn release:prepare".
>
> I figured it out from the documentation of "release:prepare"
>  https://maven.apache.org/maven-release/maven-release-plugin/usage/prepare-release.html
>
> Specifically, this bit:
>  Note: If an error occurs, or the process is cancelled, then running this command again will pick up from where the last one left off.
>
> So when
>  mvn release:prepare -DreleaseVersion=3.0.2 -DdevelopmentVersion=3.0.3-SNAPSHOT -DautoVersionSubmodules=true
> failed with the expected, obscure, compilation failure, I ran the
> command without any arguments, i.e. just:
>  mvn release:prepare
>
> This time the command completed without issues and did its things, and
> the "mvn release:perform" command completed successfully, since the jar
> files were now accompanied by matching javadoc jars.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
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.