Continuum
  1. Continuum
  2. CONTINUUM-2531

Cannot change DEFAULT local repository via settings.xml in Windows 7

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.6
    • Fix Version/s: 1.4.1
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      Windows 7 Home Premium, 1.3.6-maestro-2.3.2,

      java version "1.6.0_19"
      Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
      Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)

      Description

      Changing the DEFAULT local repository is not possible via ~/.m2/settings.xml in contrary to what the doc says -
      http://continuum.apache.org/docs/1.3.1/administrator_guides/localRepository.html

      As a result, a C:\.m2\repository directory is being created automatically every time continuum runs.

        Activity

        eradicus created issue -
        Hide
        eradicus added a comment - - edited

        the correct path of the document is http://continuum.apache.org/docs/1.3.6/administrator_guides/localRepository.html to be consistent with the version reported.

        Show
        eradicus added a comment - - edited the correct path of the document is http://continuum.apache.org/docs/1.3.6/administrator_guides/localRepository.html to be consistent with the version reported.
        Hide
        Maria Catherine Tan added a comment -

        The default local repository is updated during continuum startup.

        I tried it on linux and it's working. The previous location of my DEFAULT local repository was "/home/marica/.m2/repository". I changed the localRepository in my settings.xml and the DEFAULT local repository was changed to the new location after restarting continuum.

        Show
        Maria Catherine Tan added a comment - The default local repository is updated during continuum startup. I tried it on linux and it's working. The previous location of my DEFAULT local repository was "/home/marica/.m2/repository". I changed the localRepository in my settings.xml and the DEFAULT local repository was changed to the new location after restarting continuum.
        Hide
        eradicus added a comment -

        This is related to http://bugs.sun.com/view_bug.do;jsessionid=fb6e478118f963cc2468f8a1f8b0?bug_id=4162112 bug. Temporary solution works, i.e. by passing

        -Duser.home=C:\Users\Username,

        if you are using maestro, this can be achieved by adding the following line in <maestrohome>/projectserver/conf/wrapper.conf,

        wrapper.java.additional.12=-Duser.home=C:\Users\Username

        Show
        eradicus added a comment - This is related to http://bugs.sun.com/view_bug.do;jsessionid=fb6e478118f963cc2468f8a1f8b0?bug_id=4162112 bug. Temporary solution works, i.e. by passing -Duser.home=C:\Users\Username, if you are using maestro, this can be achieved by adding the following line in <maestrohome>/projectserver/conf/wrapper.conf, wrapper.java.additional.12=-Duser.home=C:\Users\Username
        Hide
        eradicus added a comment -

        This patch contains the notes for setting the user.home property correctly on Windows 7.

        Show
        eradicus added a comment - This patch contains the notes for setting the user.home property correctly on Windows 7.
        eradicus made changes -
        Field Original Value New Value
        Attachment CONTINUUM-2531.patch [ 49410 ]
        Maria Odea Ching made changes -
        Assignee Maria Odea Ching [ oching ]
        Maria Odea Ching made changes -
        Summary Cannot change DEFAULT local repository via settings.xml, http://continuum.apache.org/docs/1.3.1/administrator_guides/localRepository.html Cannot change DEFAULT local repository via settings.xml in Windows 7
        Hide
        Maria Odea Ching added a comment -

        Thanks again for the patch! I already applied it to trunk -r950928.

        Show
        Maria Odea Ching added a comment - Thanks again for the patch! I already applied it to trunk -r950928 .
        Maria Odea Ching made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.4.1 (Beta) [ 15104 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:36:01 UTC 2015 [ 1428222961749 ]
        Mark Thomas made changes -
        Workflow jira [ 12711175 ] Default workflow, editable Closed status [ 12740688 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:12:18 UTC 2015 [ 1428268338676 ]
        Mark Thomas made changes -
        Workflow jira [ 12948094 ] Default workflow, editable Closed status [ 12983519 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        6d 1h 55m 1 Maria Odea Ching 03/Jun/10 06:05

          People

          • Assignee:
            Maria Odea Ching
            Reporter:
            eradicus
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development