Karaf
  1. Karaf
  2. KARAF-688

Ability to retrieve a available list of a specific maven artifact's versions via ( with given groupId and artifactId )

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1
    • Fix Version/s: 4.0.0
    • Component/s: karaf-osgi
    • Labels:
      None
    • Environment:

      windows/linix,java 6

      Description

      Details discussion is here

      http://karaf.922171.n3.nabble.com/Ability-to-retrieve-a-available-list-of-a-specific-maven-artifact-s-versions-via-with-given-groupId--td2989285.html

      Basically I have a karaf base agent which I'd like to get the agent to periodically polling maven repos to check for available upgrade version. This requested feature is crucial for my work

      1. KARAF-688.diff
        11 kB
        Dan Tran
      2. KARAF-688-2.diff
        10 kB
        Dan Tran

        Activity

        Hide
        Dan Tran added a comment - - edited

        In order to determine available versions under groupId/artifactId

        I would like to propose to enhancement to the current mvn URL format:

        • original format: mvn-uri := 'mvn:' [ repository-url '!' ] group-id '/' artifact-id [ '/' [version] [ '/' [type] [ '/' classifier ] ] ] ]
        • new format: mvn-uri := 'mvn:' [ repository-url '!' ] group-id '/' artifact-id [ '/' [version] [ '/' [type] [ '/' classifier ] '/' [fileName] ] ] ] ]

        original api for this is http://ops4j1.jira.com/wiki/display/paxurl/Mvn+Protocol

        So

        for mvn:groupId/artifactId///metadata.xml indiates we want metadata.xml file under groupId/artifactId

        Thoughts?

        Show
        Dan Tran added a comment - - edited In order to determine available versions under groupId/artifactId I would like to propose to enhancement to the current mvn URL format: original format: mvn-uri := 'mvn:' [ repository-url '!' ] group-id '/' artifact-id [ '/' [version] [ '/' [type] [ '/' classifier ] ] ] ] new format: mvn-uri := 'mvn:' [ repository-url '!' ] group-id '/' artifact-id [ '/' [version] [ '/' [type] [ '/' classifier ] '/' [fileName] ] ] ] ] original api for this is http://ops4j1.jira.com/wiki/display/paxurl/Mvn+Protocol So for mvn:groupId/artifactId///metadata.xml indiates we want metadata.xml file under groupId/artifactId Thoughts?
        Hide
        Dan Tran added a comment - - edited

        the first crack to allow download any file did not go well so we settle for only getting maven-metadata.xml ( this is truely what we after)

        Please advice on the attached patch karaf-688.diff

        Show
        Dan Tran added a comment - - edited the first crack to allow download any file did not go well so we settle for only getting maven-metadata.xml ( this is truely what we after) Please advice on the attached patch karaf-688.diff
        Hide
        Dan Tran added a comment -
        Show
        Dan Tran added a comment - fixed is checked in at https://github.com/dantran/org.ops4j.pax.url/tree/url-1.2.x
        Hide
        Andreas Pieber added a comment -

        I'll give this a shot within this week

        Show
        Andreas Pieber added a comment - I'll give this a shot within this week
        Hide
        Dan Tran added a comment -

        since pax-url-mvn 1.2.x is retired any way, it is best for pax-url team to provide a service retrieve a list of available version key a pair of groupId/artifactId for 1.5.x to be ready for karaf 3.0

        thanks

        Show
        Dan Tran added a comment - since pax-url-mvn 1.2.x is retired any way, it is best for pax-url team to provide a service retrieve a list of available version key a pair of groupId/artifactId for 1.5.x to be ready for karaf 3.0 thanks
        Hide
        Dan Tran added a comment -

        added another patch same content but using relative path for ease of patching the source tree. It works with url-1.3.6 url-1.3.7

        Show
        Dan Tran added a comment - added another patch same content but using relative path for ease of patching the source tree. It works with url-1.3.6 url-1.3.7
        Hide
        Dan Tran added a comment -

        I created an issue at https://ops4j1.jira.com/browse/PAXURL-247 to get more attention

        Show
        Dan Tran added a comment - I created an issue at https://ops4j1.jira.com/browse/PAXURL-247 to get more attention

          People

          • Assignee:
            Andreas Pieber
            Reporter:
            Dan Tran
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development