[ 
http://jira.codehaus.org/browse/MECLIPSE-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jingkei Ly updated MECLIPSE-176:
--------------------------------

    Attachment: MECLIPSE-176.patch

I've been encountering the same problem. I've attached a patch that will ensure 
the version number works with the OSGI version format in the original post 
(although it doesn't handle non-valid characters in the qualifier part). 

The patch also contains new and modified test cases for some additional problem 
areas, i.e:

* I believe 2.1.3.0-SNAPSHOT is valid
* and 2.0.0-beta-1 should be normalized to 2.0.0.beta-1(the trunk version only 
normalizes if it ends with -SNAPSHOT)


> Qualifier in version are not renamed correctly in MANIFEST.MF
> -------------------------------------------------------------
>
>                 Key: MECLIPSE-176
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-176
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: OSGi, Manifest
>    Affects Versions: 2.3
>            Reporter: Damien Lecan
>            Priority: Critical
>         Attachments: MECLIPSE-176.patch
>
>
> In MANIFEST.MF, qualifiers in version are not renamed correctly
> 2.0.0-beta-1-SNAPSHOT must be rename by 2.0.0.beta-1-SNAPSHOT and not by 
> 2.0.0-beta-1.SNAPSHOT
> In OSGi spec R4 ยง3.2.4, versions can have a qualifier, but separator must be 
> dot '.', not '-'
> version ::=
> major( '.' minor ( '.' micro ( '.' qualifier )? )? )?
> major ::= number
> minor ::= number
> micro ::= number
> qualifier ::= ( alphanum | '_' | '-' )+
> For a patch, see maven-eclipse-plugin-447076.patch  in MECLIPSE-140

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to