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

.mvn/maven.config does not expand environmental variables

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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.3.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux mint 17.2

      java version "1.8.0_66"
      Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

      Description

      environmental variables used in .mvn/maven.config are not expanded out.

      running
      mvn clean install -Dmaven.repo.local=$HOME/.m2/otherRepo
      correctly creates and uses the local repo in /home/user/.m2/otherRepo

      if the argument -Dmaven.repo.local=$HOME/.m2/otherRepo, is placed in the .mvn/maven.config file, then the local repo used is
      current working directory/$HOME/.m2/otherRepo

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wbuss William Buss

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment