Ok, I found the solution!

  To add the Eclipse plugins to the Maven repository you should use the
maven-eclipse-plugin for it. The goal is
eclipse:make-artifacts<http://maven.apache.org/plugins/maven-eclipse-plugin/make-artifacts-mojo.html>

  Cheers

On Sun, Jan 25, 2009 at 1:05 PM, Thiago Moreira (timba) <
[email protected]> wrote:

>
>   Okay, I found the problem!
>
>   Eclipse don't accept "-" on the name of the artifacs... so I changed the
> name to 1.2.3.SNAPSHOT and now I'm good to go.
>
>   Another question, how can I reference a Eclipse dependency in the pom
> file?? Like org.eclipse.core.resources??
>
>   Cheers
>
>
> On Sun, Jan 25, 2009 at 8:44 AM, Rusty Wright <[email protected]>wrote:
>
>> If I understand that OSGi version grammar, doesn't that mean that
>> 1.2.3-SNAPSHOT is an invalid OSGi version number?  I.e., only periods are
>> allowed between the version parts, no dash, and there should be three
>> periods, not two.  E.g., 1.2.3.SNAPSHOT.
>>
>> Does the maven OSGi plugin transform the maven style version number to the
>> OSGi style when creating the bundle/jar?
>>
>> I was reading about OSGi over the winter break and it looks like the
>> answer for various problems.
>>
>>
>>
>> Baptiste MATHUS wrote:
>>
>>> 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
>>>>
>>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

Reply via email to