You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@onami.apache.org by Jordan Zimmerman <jz...@netflix.com> on 2013/03/08 22:04:12 UTC

org.apache.onami in artifactIds

Out of curiosity, why do the Onami artifacts have org.apache.onami in them? Typically this is only in the groupId.

-Jordan

Re: org.apache.onami in artifactIds

Posted by Simone Tripodi <si...@apache.org>.
> Simone explained somewhere its necessary for some OSGi magic. Maybe
> its a good thing to document as it the question comes up from time to
> time.

it is not _necessary_ mate, it is just to adhere to a widely adopted
convention :)

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/

Re: org.apache.onami in artifactIds

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
Here's the relevant mail:

http://mail-archives.apache.org/mod_mbox/incubator-onami-dev/201212.mbox/%3CCAAqLGLNmB+P9+MTWbt0dWw_dUscM+Uh==Vk0ff7bwMtK+PyuXQ@mail.gmail.com%3E

-JZ

On Mar 9, 2013, at 3:10 AM, Christian Grobmeier <gr...@gmail.com> wrote:

> On Fri, Mar 8, 2013 at 10:04 PM, Jordan Zimmerman
> <jz...@netflix.com> wrote:
>> Out of curiosity, why do the Onami artifacts have org.apache.onami in them? Typically this is only in the groupId.
> 
> No reference at the moment, but if you search the mailinglists:
> http://mail-archives.apache.org/mod_mbox/incubator-onami-dev/
> 
> Simone explained somewhere its necessary for some OSGi magic. Maybe
> its a good thing to document as it the question comes up from time to
> time.
> 
> Cheers
> 
>> -Jordan
> 
> 
> 
> --
> http://www.grobmeier.de
> https://www.timeandbill.de


Re: org.apache.onami in artifactIds

Posted by Stuart McCulloch <mc...@gmail.com>.
On 9 Mar 2013, at 11:10, Christian Grobmeier wrote:

> On Fri, Mar 8, 2013 at 10:04 PM, Jordan Zimmerman
> <jz...@netflix.com> wrote:
>> Out of curiosity, why do the Onami artifacts have org.apache.onami in them? Typically this is only in the groupId.
> 
> No reference at the moment, but if you search the mailinglists:
> http://mail-archives.apache.org/mod_mbox/incubator-onami-dev/
> 
> Simone explained somewhere its necessary for some OSGi magic.

FYI, OSGi doesn't mind what Maven artifactId you use, since it works off the OSGi metadata in the manifest. Each bundle should be uniquely identified by the Bundle-SymbolicName and Bundle-Version. The bundleplugin defaults set the Bundle-SymbolicName to be "groupId.artifactId" with any common segments collapsed. So from both OSGi and the bundleplugin's perspective it's not necessary to have org.apache.onami in the artifactId.

Some projects choose to have their artifactIds prefixed with their namespace, but AFAIK this is more so that people downloading jars directly from the Maven repository get the full name rather than just the short form (since the default Maven repository layout is "groupId/artifactId/version/artifactId-version.type"). Some deployment tools/scripts might also prefer the artifactId to be fully qualified like the Bundle-SymbolicName, to make it easier to map between Maven and OSGi coordinates - but that would be a feature of the tool rather than a limitation in OSGi.

HTH

> Maybe its a good thing to document as it the question comes up from time to
> time.
> 
> Cheers
> 
>> -Jordan
> 
> --
> http://www.grobmeier.de
> https://www.timeandbill.de


Re: org.apache.onami in artifactIds

Posted by Christian Grobmeier <gr...@gmail.com>.
On Fri, Mar 8, 2013 at 10:04 PM, Jordan Zimmerman
<jz...@netflix.com> wrote:
> Out of curiosity, why do the Onami artifacts have org.apache.onami in them? Typically this is only in the groupId.

No reference at the moment, but if you search the mailinglists:
http://mail-archives.apache.org/mod_mbox/incubator-onami-dev/

Simone explained somewhere its necessary for some OSGi magic. Maybe
its a good thing to document as it the question comes up from time to
time.

Cheers

> -Jordan



--
http://www.grobmeier.de
https://www.timeandbill.de