Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-62

javadoc:javadoc needs access to generated sources

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None

      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.

        Attachments

        1. MJAVADOC-62.diff
          1 kB
          Brett Porter
        2. MJAVADOC-62.diff
          9 kB
          Brett Porter

          Activity

            People

            • Assignee:
              siveton Siveton Vincent
              Reporter:
              jdcasey John Casey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: