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

different environment variables like JAVA_HOME depending on the project.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • None
    • None
    • Maven Wrapper
    • None

    Description

      Hello,

      A suggestion :
      Add in script just after

         if [-f "$ HOME/.mavenrc"]; then
           . "$ HOME/.mavenrc"
         fi
        # <==== this to load local mavenrc
         if [-f ".mvn/mavenrc"]; then
           . ".mvn/mavenrc"
         fi
      

      This allows to have different environment variables like JAVA_HOME depending on the project.

      Currently it is possible to choose the version of maven in the properties file but not the version of java.
      In all projects, the maven command is run with the same version of java because it depends on the user's environment and not the project.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sekaijin Terrien Jean-Yves
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: