Difference between Maven source plugin jar and jar-no-fork goal?
问题 Could you give me a detail explanation about the difference between jar and jar-no-fork goal? I see it from official site, but I can not get a clear idea for this. 回答1: My interpretation: the jar goal is meant to be run from the command line ( mvn source:jar ), the jar-no-fork is meant to be bound to the lifecycle. If you look at the docs for the jar goal the key phrase is "Invokes the execution of the lifecycle phase generate-sources prior to executing itself." If you configure your POM to