Re: multimodule aggregate javadoc jar

2020-02-04 Thread Jon Harper
Well almost, as far as I understand it's having aggregate-jar-no-fork and binding it to a submodule that is after all other submodules in the build plan (a "distribution"- like artifact, or an aggregator that is not the parent). Unfortunately this changes the artifact in which clients look up the

Re: multimodule aggregate javadoc jar

2020-02-04 Thread Robert Scholte
Well, so we're back to the missing javadoc:aggregate-jar-no-fork :) On 4-2-2020 19:38:43, Jon Harper wrote: Hi Robert, thanks again for your answers. I can't bind the javadoc:aggregate-jar goal to the package phase because goals with "@Mojo ( aggregator = true )" are only executed once

Re: multimodule aggregate javadoc jar

2020-02-04 Thread Jon Harper
Hi Robert, thanks again for your answers. I can't bind the javadoc:aggregate-jar goal to the package phase because goals with "@Mojo ( aggregator = true )" are only executed once (instead of once per module) if they are invoked from the command line. Cheers, Jon Le mar. 4 févr. 2020 à 18:48,

Re: multimodule aggregate javadoc jar

2020-02-04 Thread Robert Scholte
Looks like a bug, please create a ticket for it at  https://issues.apache.org/jira/browse/MNG thanks, Robert On 4-2-2020 09:20:12, Jon Harper wrote: Also a "funny" thing is that running an aggregator mojo between 2 phases in a multimodule project shows the wrong build step numbers: (In this

Re: multimodule aggregate javadoc jar

2020-02-04 Thread Robert Scholte
Hi Jon, it is not possible so start a lifecycle from the middle. In case of 'mvn package javadoc:aggregate-jar install' you should bind the   javadoc:aggregate-jar to the package-phase, and now you can run 'mvn install'. If you don't want to run it all the time, consider putting the

Re: multimodule aggregate javadoc jar

2020-02-04 Thread Jon Harper
Also a "funny" thing is that running an aggregator mojo between 2 phases in a multimodule project shows the wrong build step numbers: (In this example I generated a quick project setup with mvn archetype: a parent pom with 2 children) # javadoc:jar is *not* an aggregator mojo, this looks correct

Re: multimodule aggregate javadoc jar

2020-02-03 Thread Jon Harper
Hi Robert, thanks for you reply. I'll keep an eye out for these improvements. Another obstacle to my use case is that when running $ mvn package javadoc:aggregate-jar install the install phase doesn't continue where package finished, instead it starts over. Is there a way to tell maven to run

Re: multimodule aggregate javadoc jar

2020-02-03 Thread Robert Scholte
Hi Jon, it is bothering me for a while that Maven is not yet capable to see that a fork is not required (in most cases) when it is executed as part of a lifecycle. Introducing x-no-fork goals is a fast workaround, but it is probably time to do this properly. Also plugins should be improved to

multimodule aggregate javadoc jar

2020-02-02 Thread Jon Harper
Hi list, I would like to package a multimodule project (jar of each submodule) and then create one aggregated javadoc jar attached to root pom. The best solution I came up with is using the following command line $ mvn package javadoc:aggregate-jar It uses the fact that aggregate-jar is

multimodule aggregate javadoc jar

2020-01-30 Thread Jon Harper
Hi list, I would like to package a multimodule project (jar of each submodule) and then create one aggregated javadoc jar attached to root pom. The best solution I came up with is using the following command line $ mvn package javadoc:aggregate-jar It uses the fact that aggregate-jar is