Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2979

Cross module dependencies for multi-module site

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux 2.6.18-gentoo-r6 #2 SMP PREEMPT Wed Feb 28 10:25:50 CET 2007 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

      Description

      Considering a multi-module project A which declares two sub-projects (modules) B and C. Having module C indicating in its POM a dependency against module B. Compilation and packaging work great without having to install module B in maven local repository, it locate module B for module C using declared aggregation at top level project A.

      But for site goals it does not work, that is to say when maven try to generate site for module C it tells that module B artifact cannot be found. So we have to install module B to be able to generate module C site, whereas it is not necessary for compile or package goals.

      I think it would be great if site goals behaves like compile and package with aggregation. It would be more coherent, and avoid to have to run install just for site goals.

        Attachments

        1. maven-core-2.0.11-SNAPSHOT.jar
          160 kB
          Tiago Bruno Pires Gomes
        2. maven.diff
          1 kB
          Tiago Bruno Pires Gomes
        3. maven.diff
          0.5 kB
          Tiago Bruno Pires Gomes
        4. mng-2979-testcase.tar.gz
          2 kB
          Oran Kelly
        5. to-package.log
          10 kB
          John Casey
        6. build.log
          12 kB
          John Casey
        7. site.txt
          8 kB
          Mat Gessel
        8. package.txt
          6 kB
          Mat Gessel
        9. gwttk-m2.zip
          19 kB
          Mat Gessel

          Activity

            People

            • Assignee:
              jdcasey John Casey
              Reporter:
              wallaye Wally Wallou
            • Votes:
              14 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: