The reason I ask about calling it from the main pom.xml is because I don't quite understand how I can put all this in the maven lifecycle. If I would configure the javadoc plugin as in http://maven.apache.org/plugins/maven-javadoc-plugin/examples/aggregate.html in a separate pom-javadoc.xml and execute it as a separate action, then it would process and compile those modules two times, right? So what I probably need is do the lifecycle in the main pom.xml, but after the compile phase call a separate pom to generate only the javadoc. But I have no idea how to do this. Or maybe there is an easier way, but I don't see it.
Another question is why the dependencySourceIncludes or dependencySourceExcludes isn't actually working. Robert Scholte-4 wrote > It's much easier to execute it as a separate action. In Jenkins-terms: a > post-build step, but I believe almost every CI server has an equivalent > solution. > > If you still want to solve this in the main pom.xml, you could do it with > the maven-invoker-plugin, though I wouldn't advice it. > > Robert > > Op Mon, 18 Aug 2014 18:02:24 +0200 schreef robertmvn < > forums@ > >: > >> Hi, >> >> Could I call the pom-javadoc.xml from the main pom.xml? >> I am just thinking how we can use this from the build server. >> >> >> >> Robert Scholte-4 wrote >>> Hi, >>> >>> You can't specify this in the pom, but for now it would give you the >>> desired result. >>> Since it's not possible with the current version of the javadoc-plugin, >>> other options which I can think of: >>> - add a javadoc-profile or create a pom-javadoc.xml where you specify >>> the >>> required modules. >>> - reorganize the modules >>> >>> I understand that these are all suboptimal solutions, but maybe your >>> rare >>> case needs something like this. >>> >>> thanks, >>> Robert >>> >>> >>> Op Sun, 17 Aug 2014 21:27:37 +0200 schreef robertmvn < >> >>> forums@ >> >>> >: >>> >>>> Hi, >>>> >>>> How would you specify this in a pom.xml ? >>>> >>>> >>>> Robert Scholte-4 wrote >>>>> Hi, >>>>> >>>>> Did you try it with the -pl (or --projects) argument? >>>>> >>>>> Robert >>>>> >>>>> >>>>> Op Sun, 17 Aug 2014 20:13:43 +0200 schreef robertmvn < >>>> >>>>> forums@ >>>> >>>>> >: >>>>> >>>>>> Hi, >>>>>> >>>>>> It's okay if the aggregate report only executes on the root of a >>>>>> multi-module build. I just need some option to include only selected >>>>>> submodules. Or some other way to include and exclude. >>>>>> >>>>>> >>>>>> >>>>>> Hervé BOUTEMY wrote >>>>>>> Hi, >>>>>>> >>>>>>> At the moment, the aggregate javadoc report can only execute on the >>>>>>> root >>>>>>> of a >>>>>>> multi-module build. This is partly a wanted feature to avoid too >>>>>>> much >>>>>>> javadoc >>>>>>> generation and a workaround against problems with forked lifecycles: >>>>>>> see >>>>>>> MJAVADOC-171 [1] >>>>>>> >>>>>>> So this is simply not possible actually. >>>>>>> >>>>>>> Regards, >>>>>>> >>>>>>> Hervé >>>>>>> >>>>>>> [1] http://jira.codehaus.org/browse/MJAVADOC-171 >>>>>>> >>>>>>> Le dimanche 17 août 2014 03:51:43 robertmvn a écrit : >>>>>>>> Hi, >>>>>>>> >>>>>>>> How do you generate a combined javadoc for a selection of >>>>>>>> submodules? >>>>>>>> >>>>>>>> I have added the javadoc plugin with the aggregate goal to the >>>>>>>> build >>>>>>>> as >>>>>>>> specified in >>>>>>>> http://maven.apache.org/plugins/maven-javadoc-plugin/examples/aggregate.html >>>>>>>> but it not generates javadocs for all submodules. I want to be more >>>>>>>> selective. >>>>>>>> >>>>>>>> I have tried to set the dependencySourceIncludes or >>>>>>>> dependencySourceExcludes >>>>>>>> in the configuration, but it doesn't seem to have any effect. >>>>>>>> >>>>>>>> I tried to look at the report sets, but I don't seem to be able to >>>>>>>> find >>>>>>>> any >>>>>>>> configuration documentation about them. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> View this message in context: >>>>>>>> http://maven.40175.n5.nabble.com/Maven-javadoc-selective-submodules-tp58023 >>>>>>>> 70.html Sent from the Maven - Users mailing list archive at >>>>>>>> Nabble.com. >>>>>>>> >>>>>>>> --------------------------------------------------------------------- >>>>>>>> To unsubscribe, e-mail: >>>>>> >>>>>>> [email protected] >>>>>> >>>>>>>> For additional commands, e-mail: >>>>>> >>>>>>> [email protected] >>>>>> >>>>>>> >>>>>>> >>>>>>> --------------------------------------------------------------------- >>>>>>> To unsubscribe, e-mail: >>>>>> >>>>>>> [email protected] >>>>>> >>>>>>> For additional commands, e-mail: >>>>>> >>>>>>> [email protected] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> View this message in context: >>>>>> http://maven.40175.n5.nabble.com/Maven-javadoc-selective-submodules-tp5802370p5802396.html >>>>>> Sent from the Maven - Users mailing list archive at Nabble.com. >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: >>>> >>>>> [email protected] >>>> >>>>>> For additional commands, e-mail: >>>> >>>>> [email protected] >>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: >>>> >>>>> [email protected] >>>> >>>>> For additional commands, e-mail: >>>> >>>>> [email protected] >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://maven.40175.n5.nabble.com/Maven-javadoc-selective-submodules-tp5802370p5802398.html >>>> Sent from the Maven - Users mailing list archive at Nabble.com. >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: >> >>> [email protected] >> >>>> For additional commands, e-mail: >> >>> [email protected] >> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: >> >>> [email protected] >> >>> For additional commands, e-mail: >> >>> [email protected] >> >> >> >> >> >> -- >> View this message in context: >> http://maven.40175.n5.nabble.com/Maven-javadoc-selective-submodules-tp5802370p5802463.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: > [email protected] >> For additional commands, e-mail: > [email protected] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [email protected] > For additional commands, e-mail: > [email protected] -- View this message in context: http://maven.40175.n5.nabble.com/Maven-javadoc-selective-submodules-tp5802370p5802482.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
