Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8923

mvnw wrapper shouldn't deppend on .m2/wrapper location

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.1.0.DR14
    • 7.1.0.DR12, 7.1.0.DR13
    • Build System, Test Suite
    • None
    • Regression

      mvnw stores maven to ~/.m2/wrapper directory. But customers could have denied access to .m2 folder. They could have allowed access only to .m2/repository, because they want to protect settings.xml file.

      Our mvnw script should download maven to project directory.

      Possible solution could be adding these two lines to .mvn/wrapper/maven-wrapper.properties:

      distributionBase=PROJECT
      zipStoreBase=PROJECT
      

      This issue is regression against EAP 7.0.0 and EAP 7.1.0.DR11.

      FYI: unfortunately, distributionBase and zipStoreBase properties are not documented.

            ppalaga Peter Palaga
            mkopecky@redhat.com Marek Kopecky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: