Continuum
  1. Continuum
  2. CONTINUUM-2531

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

    Details

    • Type: Bug Bug
    • Status: Closed 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)
    • Complexity:
      Intermediate
    • Number of attachments :
      1

      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.

      1. CONTINUUM-2531.patch
        0.8 kB
        Joset Anthony Zamora

        Activity

        Hide
        Joset Anthony Zamora 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
        Joset Anthony Zamora 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
        Joset Anthony Zamora 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
        Joset Anthony Zamora 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
        Joset Anthony Zamora added a comment -

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

        Show
        Joset Anthony Zamora added a comment - This patch contains the notes for setting the user.home property correctly on 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 .

          People

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

            Dates

            • Created:
              Updated:
              Resolved: