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

Project scoped Repository

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • None
    • None
    • None

    Description

      In multi module builds I would like jars to not instally locally until I instruct it and still be able to build individual modules. At the moment if I try and build an invidiual module it insists on looking in the local repo. In Maven 1 we worked around this by using jar override.

      The use case for this is for when you are messing around with multiple checkouts of the same version and don't want them to interact with each other. With current M2 I either have to create different versions in the pom for each checkout, when all changes are likely to end up in the "master" checkout for a specific verison. Or I can specify the repo to be in the project, but that means I have to checkout everything each time I want to build something.

      This could be achieve by using root/target as a project level repo for the produced jars which would use the local repo for anything that it can't find it the project repo. Only when I tell it to install will it copy the jars from the project repo to the local repo.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mdproctor Mark Proctor
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: