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

Steinar Bang <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.user
Organization Probably a good idea
Message-ID <[email protected]>
>>>>> 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.
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.