When talking about a CI solution, I assumed that the javadoc generation is
not required as part of the build-lifecycle, but could be executed as a
separate step.
If that is a requirement, then a separate pom is not the preferred
solution, it'll make things much more complicated and you might be the
only one who understands it (once solved). Probably the clearest solution
is reordering your module structure, but I really wonder if it is worth it
just for javadoc...
And of course there's the solution where you take the sources from the
plugin and add the feature yourself.
I haven't had a look at dependencySourceIncludes/Excludes. Maybe JIRA[1]
has an answer. Search for "MDEP dependencySourceIncludes"
Robert
[1] http://jira.codehaus.org/browse/MDEP
Op Mon, 18 Aug 2014 20:00:33 +0200 schreef robertmvn <[email protected]>:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]