-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MJAVADOC-784] Upgrade to Doxia 2.0.0 Milestone Stack #204
Conversation
ad2924a
to
3023f89
Compare
a40b703
to
1ed5881
Compare
@kriegaex Have a look at the second commit. It is a prototype how to align this plugin with the behavior of Maven Reporting Impl. |
f877d10
to
99d4d64
Compare
@michael-o, I am quite busy and only took a quick glance at the changes. But to me it seems as if before, you could override the default directory including the "apidocs" part. Now, it looks as if you can only adjust the report base directory, but "apidocs" is hard-coded. I would have expected that part to still be configurable. Existing projects which store the API docs in, say target/javadoc for direct mojo execution or target/site/javadoc for site generation, would no longer have a way to configure that. If my assumption is wrong, it is of course my fault 100%, because I spent no more than 2 minutes, scrolling through the changes, which certainly by no means qualifies as a proper code review. |
Your observations are correct, let me clarify: (1) We know the semantical behavior of WDYT? |
That might be so. I neither know nor use all plugins. But at least, for Javadoc and JXR it currently is possible to change that. Generally, I agree that most people will just use defaults for the destination directories (destDirs, I mean the last part of the final directory path), but we have no way of knowing, because in many cases they do not have a choice. I also find it unfortunate that the destDir names are fixed, and many of them I do not like. On the one hand, one could argue that this is just cosmetics. On the other hand, IMO it is suboptimal that a bunch of Maven plugins feel entitled to just usurp those directory "namespaces". For instance, I would prefer "javadocs" to "apidocs", "unit-test-reports" to "surefire-reports" and "integration-test-reports" to "failsafe-reports". Having said that, I acknowledge that the current state of affairs, though suboptimal, is certainly something I can live with. Arguably, it might be out of scope of this PR to change it.
Yes, other plugins outside the set of Maven core plugins offer the option to change destDirs, and I rather like it. One such example is the plugin I was working one when we got this whole avalanche here rolling: AspectJ Maven Plugin. Actually, the AspectJ report first creates normal javadocs and then decorates them with additional information about which aspects affect which classes/methods and vice versa. In this regard, the AspectJ Maven report replaces the Maven Javadoc report, i.e. some users might like the option to change the default destDir "aspectj-report" to "apidocs" to further document that fact. They can do that, because the plugin permits them to do it. If for whatever reason the user also redundantly wants to generate the original javadocs, in the future he could not rename "apidocs" to "apidocs-orig" or whatever. That is by no means a big deal, I just meant to provide an example. |
7c55d05
to
69839fc
Compare
LGTM. First, I opened c79769a and was confused after you just merged apache/maven-reporting-impl#26, seeing lots of mojo executions under target/site/apidocs. Then I noticed ba931bc, which changed the previous commit again, now sporting target/reports/apidocs, but has a somewhat anonymous commit message "MSHARED". Probably, you are going to create a Jira issue, edit the commit message and force-push the last commit once more, if I am guessing correctly. |
That's WIP, the actual code works. The reason you see both |
I know that. You misread my comment. But before your force-push, there was only |
21721ee
to
ac8986b
Compare
7a575da
to
a8967bd
Compare
…maven-reporting-impl)
The default superdirectory was changed by apache/maven-reporting-impl#26 and introduced in apache/maven-javadoc-plugin#204.
The default superdirectory was changed by apache/maven-reporting-impl#26 and introduced in apache/maven-javadoc-plugin#204.
Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[MJAVADOC-XXX] - Fixes bug in ApproximateQuantiles
,where you replace
MJAVADOC-XXX
with the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean verify -Prun-its
to make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licensed under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.