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

SimpleMavenResolver does not handle wrap: prefix in mvn urls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.3
    • 4.0.11, 4.1.3, 4.2.0.M1
    • karaf
    • None

    Description

      If you have a dependency on:

      <!-- karaf standard features -->
      <dependency>
      <groupId>org.apache.karaf.features</groupId>
      <artifactId>standard</artifactId>
      <version>${karaf.version}</version>
      <type>xml</type>
      <classifier>features</classifier>
      </dependency>

      Note: compile scope... this will cause a radical overpopulation of startup.properties which will result in a listing with a wrap: prefix which will
      then cause a failure of karaf startup because the SimpleMavenResolver does not have any logic to deal with a wrap:mvn:<groupId>/<artifactId> (because it presumes all mvn urls are prefixed with mvn. As a result you will get a failure on first karaf startup, and on subsequent startups you will get a partial resolution case.

      Suggested solution: check for the wrap: prefix in SimpleMavenResolver and handle it correctly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hagbard Ed Warnicke
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: