Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4719

Aether cannot to resolve m2 repositories after adjustments in org.ops4j.pax.url.mvn.cfg

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.5, 4.0.6
    • 4.1.0
    • None
    • None

    Description

      Start levels for pax-url-aether(5) and org.apache.felix.configadmin(10) are defined in framework xml feature. Therefore pax url aether is configured after org.ops4j.pax.url.mvn.local properties are loaded.

      This causes that in case of assemble Karaf using offline repository, by adjusting:

      org.ops4j.pax.url.mvn.localRepository=${karaf.home}/${karaf.default.repository}
      

      Don't really work, because is too late for aether, that is already started.

      Eventually causes an error when karaf starts. The error is quite random, and happens quite often when karaf starts using the wrapper as a windows services.

      By decreasing the aether starts level to any value after felix configadmin, it improves the bootstrap robustness when creating offline distribution.

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              antoniomaria Antonio Maria
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified