Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.1
-
Labels:None
-
Number of attachments :
Description
currently, maven-model will not generate apidocs by simply calling javadoc:javadoc. This is because maven-model's sources are generated, and the javadoc report doesn't ensure that the 'generate-sources' phase is called.
However, when I changed the report to have:
@execute phase="generate-sources"
It still doesn't work. I suspect this may be because it's forking a new lifecycle and cloning the project to call generate-sources, which means the report doesn't use the right project instance to create the report. However, I've been unable to inject $
{executedProject}as a parameter; it fails the build, saying I need to supply that parameter on the command line.
I haven't committed any code changes to this report, since I don't currently have time to debug it properly, and I obviously haven't solved the problem.
steps to reproduce:
1. go into maven-model
{basedir}2. `mvn clean site`
3. open $
target/site/apidocs/index.html in your browser.