I don't think it is. But I'm not sure I understand what you want to do. If
you're trying to build an eclipse plugin jar from some project, you
shouldn't do it yourself. There's tools out there that will do it just fine:
have a look at tycho, maven-bundle-plugin, or maven-pde-plugin (this last
one is quite outdated, from what I remember).
These tools will deal just fine with your version number.
Fwiw, here's the OSGi versioning grammar:
version::=major('.'minor('.'micro('.'qualifier)?)?)?
major::=digit+
minor::=digit+
micro::=digit+
qualifier::=(alpha|digit|'_'|'-')+
digit::=[0..9]
alpha::=[a..zA..Z]
There must be no whitespace in version.
Cheers
2009/1/25 Thiago Moreira (timba) <[email protected]>
> Hi there,
>
> Is there a way to get only the numbers of the ${pom.version} property??
> Something like this: 1.2.3-SNAPSHOT, I want just the 1.2.3 part.I will use
> it to build a Eclipse plugin that don't accept Strings on the version
> property.
>
> Thanks
>
> Thiago Moreira
>
--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !