Geronimo
  1. Geronimo
  2. GERONIMO-6465

Make the feature of calculating artifact string from the file name better

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0-beta-1
    • Fix Version/s: None
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      As we know, to install a jar into geronimo repository by command tool, the file name may be a key to transfer a bundle. The geronimo will use the regex string "(.)-([0-9].)
      .([^0-9]+)" to extract the artiface id,version and type from the filename.
      Based on the regex string, the filename should be like "mylib-1.0.jar".
      But I think it does not accord with the OSGi rule about bundle version.
      From OSGi Core Release 5(osgi.core.5.0.0.pdf)

      A version has the following grammar:
      version ::=
      major( '.' minor ( '.' micro ( '.' qualifier )? )? )?
      major ::= number // See 1.3.2
      minor ::= number
      micro ::= number
      qualifier ::= ( alphanum | ’_’ | '-' )+

      So I think it is better to do some change.

        Activity

        Hide
        xiezhi added a comment -

        Make a patch to follow these rules:

        • Maven version rule:
        • <major>.<minor>.<revision>([ -<qualififer> ] | [ -<build> ])
        • major ::= number
        • minor ::= number
        • micro ::= number
        • qualifier ::= (alphanum)+
        • build :: = [1-9]?[0-9]*
        • OSGi bundle version rule:
        • version ::=
        • major( '.' minor ( '.' micro ( '.' qualifier )? )? )?
        • major ::= number // See 1.3.2
        • minor ::= number
        • micro ::= number
        • qualifier ::= (alphanum | '_')+
        • A version must not contain any white space.
        Show
        xiezhi added a comment - Make a patch to follow these rules: Maven version rule: <major>.<minor>.<revision>([ -<qualififer> ] | [ -<build> ]) major ::= number minor ::= number micro ::= number qualifier ::= (alphanum)+ build :: = [1-9] ? [0-9] * OSGi bundle version rule: version ::= major( '.' minor ( '.' micro ( '.' qualifier )? )? )? major ::= number // See 1.3.2 minor ::= number micro ::= number qualifier ::= (alphanum | '_')+ A version must not contain any white space.
        Hide
        xiezhi added a comment -

        Maven rule need to follow also.
        Maven version rule:
        <major>.<minor>.<revision>([ -<qualififer> ] | [ -<build> ])
        major ::= number
        minor ::= number
        micro ::= number
        qualifier ::= (alphanum)+
        build :: = [1-9]?[0-9]*

        Show
        xiezhi added a comment - Maven rule need to follow also. Maven version rule: <major>.<minor>.<revision>([ -<qualififer> ] | [ -<build> ]) major ::= number minor ::= number micro ::= number qualifier ::= (alphanum)+ build :: = [1-9] ? [0-9] *

          People

          • Assignee:
            Unassigned
            Reporter:
            xiezhi
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development