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

Cross module dependencies for multi-module projects

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 2.0.9
    • None
    • None
    • None
    • windows, jdk1.6.0_16

    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.
      Module B uses the shade plugin to 'merge' classes from B with his dependencies.
      Separate install of B and C works fine, but an install on A fails by compiling C
      because of missing classes. Maven don't use the generated jar file of B for compiling C.
      I need a different behaviour (maybe command line option) to change it.

      This is not only related to shade plugin. In any cases in which a maven project uses
      some 'manipulation' plugins after compile phase, will fail.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bentmann Benjamin Bentmann
            robert.lieb Robert Lieb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment