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

-Dmaven.repo.local not honored

    XMLWordPrintableJSON

Details

    Description

      STR:

      1) Checkout a multimodule project, e.g. JBoss AS 7

      git clone git://github.com/jbossas/jboss-as.git

      2)

      mvn -Dmaven.repo.local=foo dependencies:go-offline clean install -DallTests -DskipTests

      3)

      mvn -Dmaven.repo.local=foo -o install -DallTests -DskipTests

      This will complain about not having artifact XYZ.

      4) On the other hand, this works:

      mv ~/.m2/repository ~/.m2/repository_
      ln -s `pwd`/localRepo ~/.m2/repository
      
      mvn -o install
      

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              pekarna Ondra Žižka
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: