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-2.diff
        10 kB
        Dan Tran
      2. KARAF-688.diff
        11 kB
        Dan Tran

        Activity

        Dan Tran created issue -
        Dan Tran made changes -
        Field Original Value New Value
        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

        Basic a have karaf base agent ( a lots ) which I like to get the agent to periodically polling maven repos to check for available upgrade and the requested feature is crucial for my work
        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
        Jean-Baptiste Onofré made changes -
        Fix Version/s 3.1.0 [ 12316946 ]
        Jean-Baptiste Onofré made changes -
        Component/s karaf-osgi [ 12315012 ]
        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?
        Jean-Baptiste Onofré made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        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
        Dan Tran made changes -
        Attachment KARAF-688.diff [ 12486708 ]
        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
        Jean-Baptiste Onofré made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        Andreas Pieber made changes -
        Assignee Andreas Pieber [ pieber ]
        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
        Dan Tran made changes -
        Attachment KARAF-688-2.diff [ 12630397 ]
        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