Shouldn't you use the jar-no-fork *goal* of the maven-source-plugin? Using that value as execution id does nothing special.
BTW, did you read https://central.sonatype.org/publish/publish-maven/ ? (No idea if any of this would solve your problem though) Le jeu. 21 déc. 2023, 03:15, Laird Nelson <ljnel...@gmail.com> a écrit : > On Wed, Dec 20, 2023 at 5:45 PM Laird Nelson <ljnel...@gmail.com> wrote: > > > That is, when I tell the maven-release-plugin to activate the > "deployment" > > profile (via the releaseProfiles user property), I am told that the > source > > plugin has been invoked twice, and the build fails. > > > > I think this is because the maven-javadoc-plugin's jar goal invokes the > lifecycle, which of course contains the maven-source-plugin's jar-no-fork > goal, which attaches the source jar. How would I make this work? > > Best, > Laird > > > >