felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alin Dreghiciu" <adreghi...@gmail.com>
Subject Re: [jira] Created: (FELIX-256) maven-bundle-plugin, versions with more then 1 digit, and - before qualifier
Date Thu, 15 Mar 2007 07:52:35 GMT
Thanx (again),

But to this one I suppose that the Felix guys will react fast and fix it. Is
very trivial.

Alin

On 3/15/07, Stuart McCulloch <mcculls@gmail.com> wrote:
>
> Hi Alin,
>
> If you're using the 0.0.115 version of bnd (or later) you can try the
> following:
>
>      $(replace;${project.version};(\\d+(\\.\\d+)*)[-_]?([^.].*);$1.$3)
>
> as a workaround - it also handles corner cases like "1.5.2a" and "2.1_3".
>
> Cheers, Stuart
>
> On 15/03/07, Alin Dreghiciu (JIRA) <jira@apache.org> wrote:
> > maven-bundle-plugin, versions with more then 1 digit, and - before
> qualifier
> >
> ----------------------------------------------------------------------------
> >
> >                  Key: FELIX-256
> >                  URL: https://issues.apache.org/jira/browse/FELIX-256
> >              Project: Felix
> >           Issue Type: Bug
> >           Components: Maven Plugin
> >             Reporter: Alin Dreghiciu
> >
> >
> > maven-bundle-plugin will replace the first - from the version of the
> artifact with an . in order to form an osgi valid version. The problem is
> that the regexp used to figure if it should replace it does not match if
> there are two digits in the second/third group from the version. So a
> version as 1.2.8-SNAPSHOT will match and be transformed to 1.2.8.SNAPSHOTbut
> 1.2.12-SNAPSHOT will not match and result in an invalid osgi version that
> will be correctrly chached by bnd.
> > So
> > Pattern P_VERSION = Pattern.compile("([0-9]+(\\.[0-9])*)-(.*)");
> > should become
> > Pattern P_VERSION = Pattern.compile("([0-9]+(\\.[0-9]+)*)-(.*)");
> >
> > This is also the problem from FELIX-230.
> >
> > Pleae solve asap since is an easy fix and will speedup felix commons.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message