Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CCB3F9E82 for ; Thu, 23 May 2013 06:06:23 +0000 (UTC) Received: (qmail 33893 invoked by uid 500); 23 May 2013 06:06:23 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 33462 invoked by uid 500); 23 May 2013 06:06:22 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 33220 invoked by uid 99); 23 May 2013 06:06:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 May 2013 06:06:21 +0000 Date: Thu, 23 May 2013 06:06:21 +0000 (UTC) From: "xiezhi (JIRA)" To: dev@geronimo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GERONIMO-6465) Make the feature of calculating artifact string from the file name better MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMO-6465?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1= 3664909#comment-13664909 ]=20 xiezhi commented on GERONIMO-6465: ---------------------------------- Maven rule need to follow also. Maven version rule: ..([ - ] | [ - ]) major ::=3D number minor ::=3D number micro ::=3D number qualifier ::=3D (alphanum)+ build :: =3D [1-9]?[0-9]* =20 > Make the feature of calculating artifact string from the file name better > ------------------------------------------------------------------------- > > Key: GERONIMO-6465 > URL: https://issues.apache.org/jira/browse/GERONIMO-6465 > Project: Geronimo > Issue Type: Improvement > Security Level: public(Regular issues)=20 > Components: geronimo-maven-plugin, installer > Affects Versions: 3.0-beta-1 > Reporter: xiezhi > Priority: Minor > > As we know, to install a jar into geronimo repository by command tool, th= e file name may be a key to transfer a bundle. The geronimo will use the re= gex 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 ::=3D > major( '.' minor ( '.' micro ( '.' qualifier )? )? )? > major ::=3D number // See 1.3.2 > minor ::=3D number > micro ::=3D number > qualifier ::=3D ( alphanum | =E2=80=99_=E2=80=99 | '-' )+ > So I think it is better to do some change. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira